generated from mwc/project_game
16 lines
285 B
Python
16 lines
285 B
Python
# 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()
|
|
|