Files
project_game/game.py

11 lines
329 B
Python

from retro.game import Game
from player import Player
from apple import Apple
from apple_sprawner import AppleSpawner
board_size = (100, 25)
player = Player(board_size)
apple = Apple((board_size[0] // 2, 0))
spawner = AppleSpawner()
game = Game([player,spawner], {"score": 0}, board_size=board_size, color = "white")
game.play()