diff options
author | Flenk008 <frenk_0_0@hotmail.com> | 2023-03-13 13:24:44 +0100 |
---|---|---|
committer | Flenk008 <frenk_0_0@hotmail.com> | 2023-03-13 13:24:44 +0100 |
commit | e47f7fa198229b8598b8ab03ef8b2483f7c685bc (patch) | |
tree | b3b772e0fc396aa7d09d8581c61d68b963394ac4 /src/ppusim | |
parent | 19bc4a3a13d17422cfa9b2a9fcede95d4c83e822 (diff) |
Background collision
Added background collision for player and other entities. Added gravity and jump functionailty
Diffstat (limited to 'src/ppusim')
-rw-r--r-- | src/ppusim/input.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ppusim/input.c b/src/ppusim/input.c index 08bc382..4491a63 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_K]; } |