aboutsummaryrefslogtreecommitdiff
path: root/src/ppusim/input.c
diff options
context:
space:
mode:
authorFlenk008 <frenk_0_0@hotmail.com>2023-03-15 18:58:25 +0100
committerFlenk008 <frenk_0_0@hotmail.com>2023-03-15 18:58:25 +0100
commite79c36460f400991caa82598499c0ea7c37ebb90 (patch)
tree1a9bb572243b6c807d2a702c80ee4969db906b9d /src/ppusim/input.c
parent8ddc75bc09a08227846f888fc4bef23ce578adc5 (diff)
Player-Enemy collision
Added player with enemy collision. Also changed input system to a vector system with friction and gravity. Jump also works. Enemy is 1 stationary object.
Diffstat (limited to 'src/ppusim/input.c')
-rw-r--r--src/ppusim/input.c1
1 files changed, 1 insertions, 0 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];
}