Skip to content

Commit

Permalink
Allow 2nd/alpha for jump/duck
Browse files Browse the repository at this point in the history
  • Loading branch information
commandblockguy committed Nov 28, 2021
1 parent 7be1b35 commit 0dab7eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
#define DIFF_STATUS 1
#endif
#ifndef VERSION
#define VERSION 1.1
#define VERSION 1.3
#endif


Expand Down
4 changes: 2 additions & 2 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ bool play(void) {
any_hid_held(KEY_SPACE) ||
any_hid_mouse_held(HID_MOUSE_LEFT);
#else
duck_pressed = kb_IsDown(kb_KeyDown);
jump_pressed = kb_IsDown(kb_KeyUp);
duck_pressed = kb_IsDown(kb_KeyDown) || kb_IsDown(kb_KeyAlpha);
jump_pressed = kb_IsDown(kb_KeyUp) || kb_IsDown(kb_Key2nd);
#endif

game.dino.ducking = duck_pressed && game.dino.on_ground;
Expand Down

0 comments on commit 0dab7eb

Please sign in to comment.