Scaffold the project: pyproject, gitignore, constants, Doxyfile, README, CI

Task: MIL-002#1
Task: MIL-002#2
Task: MIL-002#3
Task: MIL-002#4
Task: MIL-002#5
This commit is contained in:
2026-10-13 13:56:00 +08:00
parent d91161d5f8
commit abc20f477a
13 changed files with 375 additions and 2 deletions
+27
View File
@@ -0,0 +1,27 @@
"""@file main.py
@brief Entry point: sets up the screen and runs the game loop.
"""
import time
from turtle import Screen
from car_manager import CarManager
from constants import LOOP_DELAY, SCREEN_HEIGHT, SCREEN_WIDTH
from player import Player
from scoreboard import Scoreboard
def main() -> None:
"""@brief Run the game until the player is hit by a car."""
screen = Screen()
screen.setup(width=SCREEN_WIDTH, height=SCREEN_HEIGHT)
screen.tracer(0)
game_is_on = True
while game_is_on:
time.sleep(LOOP_DELAY)
screen.update()
if __name__ == "__main__":
main()