diff options
author | Julien Dessaux | 2022-10-04 23:03:27 +0200 |
---|---|---|
committer | Julien Dessaux | 2022-10-04 23:03:27 +0200 |
commit | e4b1d7f94759158b1cbd6cc32faa9cf626cc0f67 (patch) | |
tree | 7e8f4b8206e7bdc37eb57d0db71d1153e3fed84d | |
parent | Change who serves on each round (diff) | |
download | grenade-brothers-e4b1d7f94759158b1cbd6cc32faa9cf626cc0f67.tar.gz grenade-brothers-e4b1d7f94759158b1cbd6cc32faa9cf626cc0f67.tar.bz2 grenade-brothers-e4b1d7f94759158b1cbd6cc32faa9cf626cc0f67.zip |
Add an alternative button for jumping
-rw-r--r-- | src/brothers.zig | 2 |
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; } |