Fix some hitbox values and makefile messages.
This commit is contained in:
parent
0cf8b424b2
commit
21428dbe29
|
|
@ -21,6 +21,7 @@ setup_asset:
|
||||||
@echo "Building $(notdir $(ASSET_OUTPUT))"
|
@echo "Building $(notdir $(ASSET_OUTPUT))"
|
||||||
|
|
||||||
$(ASSET_OUTPUT): $(ASSET_BUILDER_OUTPUT) $(ASSETS)
|
$(ASSET_OUTPUT): $(ASSET_BUILDER_OUTPUT) $(ASSETS)
|
||||||
|
@echo -e "[100%] $(YELLOW)Building $(notdir $(ASSET_OUTPUT))$(RESET)"
|
||||||
$(Q)$(ASSET_BUILDER_OUTPUT) $@ $(ASSETS)
|
$(Q)$(ASSET_BUILDER_OUTPUT) $@ $(ASSETS)
|
||||||
|
|
||||||
asset_end: $(ASSET_OUTPUT)
|
asset_end: $(ASSET_OUTPUT)
|
||||||
|
|
|
||||||
|
|
@ -101,7 +101,7 @@ int game_init(void)
|
||||||
|
|
||||||
((hitbox_component_data_t *)component->data)->scale = (fvector2d_t) {
|
((hitbox_component_data_t *)component->data)->scale = (fvector2d_t) {
|
||||||
.x = 1.0f / 3.0f,
|
.x = 1.0f / 3.0f,
|
||||||
.y = 1.0f / 3.0f
|
.y = 0.3f
|
||||||
};
|
};
|
||||||
|
|
||||||
component = entity_new_component(lever_entity, INTERACT_COMPONENT);
|
component = entity_new_component(lever_entity, INTERACT_COMPONENT);
|
||||||
|
|
@ -109,12 +109,12 @@ int game_init(void)
|
||||||
|
|
||||||
((interact_component_data_t *)component->data)->position = (fvector2d_t) {
|
((interact_component_data_t *)component->data)->position = (fvector2d_t) {
|
||||||
.x = 0.5f,
|
.x = 0.5f,
|
||||||
.y = 2.0f
|
.y = 1.9f
|
||||||
};
|
};
|
||||||
|
|
||||||
((interact_component_data_t *)component->data)->scale = (fvector2d_t) {
|
((interact_component_data_t *)component->data)->scale = (fvector2d_t) {
|
||||||
.x = 2.0f / 3.0f,
|
.x = 2.0f / 3.0f,
|
||||||
.y = 5.0f / 6.0f
|
.y = 0.8f
|
||||||
};
|
};
|
||||||
|
|
||||||
if(!entity_new_component(lever_entity, LEVER_COMPONENT)) return EXIT_FAILURE;
|
if(!entity_new_component(lever_entity, LEVER_COMPONENT)) return EXIT_FAILURE;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue