aboutsummaryrefslogtreecommitdiff
path: root/src/game_loop/gameplay.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game_loop/gameplay.c')
-rw-r--r--src/game_loop/gameplay.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/game_loop/gameplay.c b/src/game_loop/gameplay.c
index da029f3..2950870 100644
--- a/src/game_loop/gameplay.c
+++ b/src/game_loop/gameplay.c
@@ -1,5 +1,6 @@
#include "gameplay.h"
#include "engine/entity.h"
+#include "static/tilemap.h"
// player struct
@@ -16,13 +17,13 @@ void hh_gameplay(hh_g_all_levels* game, hh_e_game_state* hh_game_state){
.size = (vec2){32,32},
.vel = (vec2){0,0},
.render = {
- .frame0 = 3,
+ .frame0 = HH_TM_GOZER_OFFSET,
.palette = 3,
.fam = (hh_s_ppu_loc_fam_entry){
.horizontal_flip = false,
.vertical_flip = false,
.palette_index = 3,
- .tilemap_index = 80,
+ .tilemap_index = HH_TM_GOZER_OFFSET,
}
}
};
@@ -38,13 +39,13 @@ void hh_gameplay(hh_g_all_levels* game, hh_e_game_state* hh_game_state){
.vel = (vec2){0,0},
// .vec = (vec2){0,0},
.render = {
- .frame0 = 1,
+ .frame0 = HH_TM_SLIME_OFFSET,
.palette = 7,
.fam = (hh_s_ppu_loc_fam_entry){
.horizontal_flip = false,
.vertical_flip = false,
.palette_index = 7,
- .tilemap_index = 1,
+ .tilemap_index = HH_TM_SLIME_OFFSET,
}
}
};