From 2b9c6f8533f786d1ae2fa2632bca25638770205e Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sun, 25 Sep 2022 23:01:37 +0200 Subject: Added brothers and ball collisions --- src/game.zig | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/game.zig') diff --git a/src/game.zig b/src/game.zig index 01e3dc4..d0395a0 100644 --- a/src/game.zig +++ b/src/game.zig @@ -35,5 +35,7 @@ pub const Game = struct { self.brothers[0].update(self.gamepads[0]); self.brothers[1].update(self.gamepads[1]); self.ball.update(); + self.brothers[0].collide(&self.ball); + self.brothers[1].collide(&self.ball); } }; -- cgit v1.2.3