at Chris: how could i get the ball too collide

with the paddle?
This commit is contained in:
gsanders
2025-12-17 09:46:53 -05:00
parent b40bbcb499
commit d41f61c3bd
5 changed files with 82 additions and 0 deletions

15
game.py Normal file
View File

@@ -0,0 +1,15 @@
# game.py, version 2
from retro.game import Game
from ball import Ball
from paddle import Paddle
width = 40
height = 40
ball = Ball((26, 20))
paddle = Paddle((18, 38))
agents = [ball, paddle]
state = {}
game = Game(agents, state, board_size=(width, height), debug=True)
game.play()