aboutsummaryrefslogtreecommitdiff
path: root/src/ppusim
diff options
context:
space:
mode:
authorUnavailableDev <ggwildplay@gmail.com>2023-03-13 09:57:34 +0100
committerUnavailableDev <ggwildplay@gmail.com>2023-03-13 09:57:34 +0100
commit5c4bf7d451135cd3af3e51976251f01cbb6e6573 (patch)
tree82990aa7c7df22c0888543a87dbd05799217cc99 /src/ppusim
parentbb2839a81d64e8644c57d83806ae41cc4cfad9dd (diff)
camera, movement, collisions
Diffstat (limited to 'src/ppusim')
-rw-r--r--src/ppusim/input.c1
-rw-r--r--src/ppusim/sim.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/ppusim/input.c b/src/ppusim/input.c
index 08bc382..5323fb1 100644
--- a/src/ppusim/input.c
+++ b/src/ppusim/input.c
@@ -12,4 +12,5 @@ void hh_input_read() {
g_hh_controller_p1.dpad_down = kb[SDL_SCANCODE_S];
g_hh_controller_p1.dpad_left = kb[SDL_SCANCODE_A];
g_hh_controller_p1.dpad_right = kb[SDL_SCANCODE_D];
+ g_hh_controller_p1.button_primary = kb[SDL_SCANCODE_SPACE];
}
diff --git a/src/ppusim/sim.c b/src/ppusim/sim.c
index 1e7e609..a5fec45 100644
--- a/src/ppusim/sim.c
+++ b/src/ppusim/sim.c
@@ -32,7 +32,7 @@ void hh_ppu_load_tilemap() {
char* filename = "../test/bin/tiles.bin";
FILE* fp = fopen(filename,"rb");
if (!fp){
- fprintf(stderr,"File error!");
+ fprintf(stderr,"Error: Failed to load tiles.");
return;//error
}
int sprite_size = (HH_PPU_SPRITE_WIDTH * HH_PPU_SPRITE_HEIGHT);