Skip to content

Commit db6b5e4

Browse files
authored
Merge pull request #31 from Willy-JL/air-labyrinth-fixes
Air Labyrinth Fixes
2 parents d5c3297 + 4c228ff commit db6b5e4

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

vgm/apps/air_labyrinth/application.fam

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ App(
1414
# fap_extbuild=(
1515
# ExtFile(
1616
# path="${FAP_SRC_DIR}/assets",
17-
# command="python3 ${FAP_SRC_DIR}/engine/scripts/sprite_builder.py ${FAP_SRC_DIR.abspath}/sprites ${TARGET.abspath}/sprites",
17+
# command="${PYTHON3} ${FAP_SRC_DIR}/engine/scripts/sprite_builder.py ${FAP_SRC_DIR.abspath}/sprites ${TARGET.abspath}/sprites",
1818
# ),
1919
# ),
2020
)

vgm/apps/air_labyrinth/game.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -83,29 +83,29 @@ static void player_update(Entity* self, GameManager* manager, void* context) {
8383

8484
player->trajectory = vector_add(
8585
player->trajectory,
86-
(Vector){
86+
((Vector){
8787
player_x_from_pitch(-imu_pitch_get(game_context->imu)),
88-
player_y_from_roll(-imu_roll_get(game_context->imu))});
88+
player_y_from_roll(-imu_roll_get(game_context->imu))}));
8989
}
9090

9191
// Get game input
9292
InputState input = game_manager_input_get(manager);
9393

9494
// Control player movement
9595
if(input.held & GameKeyUp) {
96-
player->trajectory = vector_add(player->trajectory, (Vector){0, -0.8});
96+
player->trajectory = vector_add(player->trajectory, ((Vector){0, -0.8}));
9797
}
9898

9999
if(input.held & GameKeyDown) {
100-
player->trajectory = vector_add(player->trajectory, (Vector){0, +0.8});
100+
player->trajectory = vector_add(player->trajectory, ((Vector){0, +0.8}));
101101
}
102102

103103
if(input.held & GameKeyLeft) {
104-
player->trajectory = vector_add(player->trajectory, (Vector){-0.8, 0});
104+
player->trajectory = vector_add(player->trajectory, ((Vector){-0.8, 0}));
105105
}
106106

107107
if(input.held & GameKeyRight) {
108-
player->trajectory = vector_add(player->trajectory, (Vector){0.8, 0});
108+
player->trajectory = vector_add(player->trajectory, ((Vector){0.8, 0}));
109109
}
110110

111111
// Get player position

0 commit comments

Comments
 (0)