Files
project_game/new.py
jwberent abca9dbd4f This is my third commit. I made the cars 2 in length although I am having a problem where they break apart sometimes.
I am getting very close to finishing the project.  I was having a problem where I made the symbol for the cars 'OO' and only one of the 'O' was leaving the screen when it made it to the far right of the screen.
I emailed you and you said to only make the symbol 'O' and spawn 2 right next to each other.  I figured out how to do this by myself but am now trying to figure out why they are breaking apart.
2025-12-03 21:32:04 -05:00

10 lines
300 B
Python

from retro.game import Game
from person import Person
from spawner import CarSpawner
from path import Car
board_size = (30, 35)
person = Person(board_size)
spawner = CarSpawner()
game = Game([person,spawner], {"score": 0,"lives":3}, board_size=board_size,color="black_on_white")
game.play()