From e47f7fa198229b8598b8ab03ef8b2483f7c685bc Mon Sep 17 00:00:00 2001 From: Flenk008 Date: Mon, 13 Mar 2023 13:24:44 +0100 Subject: Background collision Added background collision for player and other entities. Added gravity and jump functionailty --- src/ppusim/input.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ppusim') 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]; } -- cgit v1.2.3