diff --git a/README.md b/README.md index 0c7edf0..7a0e459 100644 --- a/README.md +++ b/README.md @@ -33,8 +33,11 @@ You can also check an already deployed WebAssembly version here: [https://tsodin |keys|description| |---|---| |A/D or /|move bar left/right| +|A/F or H/L|move bar left/right| |ESC|toggle pause| |SPACE|release the "ball"| +|W|score right-to-left| +|P|switch translation| ### Debug Build diff --git a/src/game.jai b/src/game.jai index f27ae50..65654e5 100644 --- a/src/game.jai +++ b/src/game.jai @@ -29,9 +29,10 @@ update :: (dt: float) { key_press :: (key: u32) { if key == { case #char "Q"; #if DEBUG if state == .PLAY for *targets target_hit(it); - case #char "L"; rtl = !rtl; + case #char "W"; rtl = !rtl; case #char "P"; lang = cast(I18N_Lang) ((lang + 1) % I18N_LANG_COUNT); case 130; #through; + case #char "H"; #through; case #char "A"; { left = true; if state == .START { @@ -40,6 +41,8 @@ key_press :: (key: u32) { } } case 131; #through; + case #char "F"; #through; + case #char "L"; #through; case #char "D"; { right = true; if state == .START { @@ -59,8 +62,8 @@ key_press :: (key: u32) { key_release :: (key: u32) { if key == { - case 130; #through; case #char "A"; left = false; - case 131; #through; case #char "D"; right = false; + case 130; #through; case #char "A"; #through; case #char "H"; left = false; + case 131; #through; case #char "D"; #through; case #char "L"; #through; case #char "F"; right = false; } }