aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Dessaux2022-10-04 23:03:27 +0200
committerJulien Dessaux2022-10-04 23:03:27 +0200
commite4b1d7f94759158b1cbd6cc32faa9cf626cc0f67 (patch)
tree7e8f4b8206e7bdc37eb57d0db71d1153e3fed84d
parentChange who serves on each round (diff)
downloadgrenade-brothers-e4b1d7f94759158b1cbd6cc32faa9cf626cc0f67.tar.gz
grenade-brothers-e4b1d7f94759158b1cbd6cc32faa9cf626cc0f67.tar.bz2
grenade-brothers-e4b1d7f94759158b1cbd6cc32faa9cf626cc0f67.zip
Add an alternative button for jumping
-rw-r--r--src/brothers.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/brothers.zig b/src/brothers.zig
index f13b5ce..f29895e 100644
--- a/src/brothers.zig
+++ b/src/brothers.zig
@@ -61,7 +61,7 @@ pub const Brother = struct {
self.y += self.vy * utils.frequency;
if (self.y > 160)
self.y = 160;
- } else if (gamepad.pressed.up) {
+ } else if (gamepad.pressed.up or gamepad.pressed.x) {
self.vy = -200;
self.y += self.vy * utils.frequency;
}