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:
mbhatti4
2025-12-14 00:51:52 -05:00
parent e273f1a954
commit cf49d4e0e4
5 changed files with 60 additions and 27 deletions

View File

@@ -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()