aboutsummaryrefslogtreecommitdiff
path: root/src/game.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.zig')
-rw-r--r--src/game.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game.zig b/src/game.zig
index 2f3dfcd..01e3dc4 100644
--- a/src/game.zig
+++ b/src/game.zig
@@ -12,9 +12,9 @@ pub const Game = struct {
playerSide: utils.side = undefined,
pub fn draw(self: *Game) void {
- self.ball.draw();
self.brothers[0].draw();
self.brothers[1].draw();
+ self.ball.draw();
// draw the net
w4.DRAW_COLORS.* = 0x42;
w4.rect(78, 100, 4, 61);
@@ -34,5 +34,6 @@ pub const Game = struct {
self.gamepads[1].update(w4.GAMEPAD2.*);
self.brothers[0].update(self.gamepads[0]);
self.brothers[1].update(self.gamepads[1]);
+ self.ball.update();
}
};