forked from technolyceum/ai6-m2
Added astroid game
This commit is contained in:
File diff suppressed because it is too large
Load Diff
26
dodge_astroid_game/main.py
Normal file
26
dodge_astroid_game/main.py
Normal file
@@ -0,0 +1,26 @@
|
||||
from p5 import *
|
||||
from random import randint, seed
|
||||
|
||||
# Include global variables here
|
||||
screen_size = 400
|
||||
|
||||
# Draw player function goes here
|
||||
|
||||
|
||||
|
||||
# Draw obstacles function goes here
|
||||
|
||||
|
||||
def setup():
|
||||
# Put code to run once here
|
||||
size(screen_size, screen_size)
|
||||
text_size(40)
|
||||
|
||||
|
||||
def draw():
|
||||
# Put code to run every frame here
|
||||
|
||||
|
||||
|
||||
# Keep this to run your code
|
||||
run()
|
||||
Reference in New Issue
Block a user