Skip to content

Commit

Permalink
Day 22
Browse files Browse the repository at this point in the history
  • Loading branch information
neubrom committed Sep 18, 2021
1 parent 2f08bf8 commit 044cc6f
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 0 deletions.
Empty file added .gitignore
Empty file.
8 changes: 8 additions & 0 deletions 22/car_manager.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
COLORS = ["red", "orange", "yellow", "green", "blue", "purple"]
STARTING_MOVE_DISTANCE = 5
MOVE_INCREMENT = 10


class CarManager(Turtle):

pass
14 changes: 14 additions & 0 deletions 22/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import time
from turtle import Screen
from player import Player
from car_manager import CarManager
from scoreboard import Scoreboard

screen = Screen()
screen.setup(width=600, height=600)
screen.tracer(0)

game_is_on = True
while game_is_on:
time.sleep(0.1)
screen.update()
7 changes: 7 additions & 0 deletions 22/player.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
STARTING_POSITION = (0, -280)
MOVE_DISTANCE = 10
FINISH_LINE_Y = 280


class Player:
pass
5 changes: 5 additions & 0 deletions 22/scoreboard.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FONT = ("Courier", 24, "normal")


class Scoreboard:
pass

0 comments on commit 044cc6f

Please sign in to comment.