generated from mwc/project_game
I created an agent the shape of a penguin. I used the retro lab to help guide its movement and how to run the program. The penguin moves left, right, up, and down. I noticed that when I move it over to the far right, the wall disappears. I think that's something I need to work on while figuring out collision detection. However, my penguin does not move beyond the board.
9 lines
176 B
Python
9 lines
176 B
Python
from retro.game import Game
|
|
from player import Player
|
|
|
|
board_size = (100, 40)
|
|
player = Player(board_size)
|
|
|
|
game = Game([player], {}, board_size=board_size)
|
|
game.play()
|