generated from mwc/project_game
17 lines
337 B
Python
17 lines
337 B
Python
from random import randint
|
|
from retro.game import Game
|
|
from catcher import Catcher
|
|
from manager import FruitManager
|
|
import json
|
|
|
|
WIDTH = 27
|
|
HEIGHT = 30
|
|
|
|
agents = [
|
|
Catcher((11, 29)),
|
|
FruitManager(),
|
|
]
|
|
|
|
state = {'Score': 0}
|
|
game = Game(agents, state, board_size=(WIDTH, HEIGHT), framerate=24, color="white_on_indigo")
|
|
game.play() |