From 8dd5eff733e01df2728b270790acbace01435a91 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Tue, 16 Aug 2022 19:25:53 +0200 Subject: Implemented the jump command --- src/game.zig | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/game.zig') diff --git a/src/game.zig b/src/game.zig index 97c2c80..ddd0b62 100644 --- a/src/game.zig +++ b/src/game.zig @@ -12,6 +12,9 @@ pub const Game = struct { try self.brothers[0].draw(rc); try self.brothers[1].draw(rc); } + pub fn moveJump(self: *Game) void { + self.brothers[@enumToInt(self.side)].moveJump(); + } pub fn moveLeft(self: *Game) void { self.brothers[@enumToInt(self.side)].moveLeft(); } -- cgit v1.2.3