generated from mwc/project_game
This round, i was able to add the food and set up the collisions but after i edited some parts, the game just started crashing everytime.
It worked up until I got to test to take away the food and add it.
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
from retro.game import Game
|
||||
from player import Player
|
||||
|
||||
from food import Food
|
||||
|
||||
board_size = (100, 25)
|
||||
player = Player(board_size)
|
||||
game = Game([player],{"score": 0}, board_size=board_size, color="pink", debug=True,)
|
||||
food = Food(board_size)
|
||||
|
||||
game.play()
|
||||
player = Player(board_size)
|
||||
game = Game([player, food],{"score": 0}, board_size=board_size, color="pink", debug=True,)
|
||||
game.play()
|
||||
Reference in New Issue
Block a user