From 873b384bc6a1c6359b5f890e90e37ce3374ec90b Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Mon, 17 Oct 2022 22:21:09 +0200 Subject: Fixed bug when a round ends while falling, and reset gamepad state between rounds --- src/brothers.zig | 1 + 1 file changed, 1 insertion(+) (limited to 'src/brothers.zig') diff --git a/src/brothers.zig b/src/brothers.zig index f29895e..ddd0903 100644 --- a/src/brothers.zig +++ b/src/brothers.zig @@ -50,6 +50,7 @@ pub const Brother = struct { pub fn resetRound(self: *Brother) void { self.x = utils.startingX[@enumToInt(self.side)]; self.y = 160; + self.vy = 0; } pub fn update(self: *Brother, gamepad: inputs.Gamepad) void { if (gamepad.held.left and self.x > utils.leftLimit[@enumToInt(self.side)]) -- cgit v1.2.3