generated from mwc/project_game
at Chris: how could i get the ball too collide
with the paddle?
This commit is contained in:
15
game.py
Normal file
15
game.py
Normal 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()
|
||||
|
||||
Reference in New Issue
Block a user