From e4b1d7f94759158b1cbd6cc32faa9cf626cc0f67 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Tue, 4 Oct 2022 23:03:27 +0200 Subject: Add an alternative button for jumping --- src/brothers.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3