diff options
author | UnavailableDev <ggwildplay@gmail.com> | 2023-03-13 09:57:34 +0100 |
---|---|---|
committer | UnavailableDev <ggwildplay@gmail.com> | 2023-03-13 09:57:34 +0100 |
commit | 5c4bf7d451135cd3af3e51976251f01cbb6e6573 (patch) | |
tree | 82990aa7c7df22c0888543a87dbd05799217cc99 /src/ppusim | |
parent | bb2839a81d64e8644c57d83806ae41cc4cfad9dd (diff) |
camera, movement, collisions
Diffstat (limited to 'src/ppusim')
-rw-r--r-- | src/ppusim/input.c | 1 | ||||
-rw-r--r-- | src/ppusim/sim.c | 2 |
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); |