aboutsummaryrefslogtreecommitdiff
path: root/src/game.zig
diff options
context:
space:
mode:
authorJulien Dessaux2022-08-16 19:25:53 +0200
committerJulien Dessaux2022-08-16 19:25:53 +0200
commit8dd5eff733e01df2728b270790acbace01435a91 (patch)
tree4a73d8484578d815d75edb606ed775283e8c2bad /src/game.zig
parentImplement left and right movements (diff)
downloadgrenade-brothers-8dd5eff733e01df2728b270790acbace01435a91.tar.gz
grenade-brothers-8dd5eff733e01df2728b270790acbace01435a91.tar.bz2
grenade-brothers-8dd5eff733e01df2728b270790acbace01435a91.zip
Implemented the jump command
Diffstat (limited to '')
-rw-r--r--src/game.zig3
1 files changed, 3 insertions, 0 deletions
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();
}