add photo
This commit is contained in:
BIN
images/dino2.png
BIN
images/dino2.png
Binary file not shown.
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.1 KiB |
BIN
images/dino3.png
Normal file
BIN
images/dino3.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.9 KiB |
6
main.py
6
main.py
@@ -13,9 +13,9 @@ SPAWN_ACCELERATION = 0.3
|
|||||||
CORPSE_LIFETIME = 2.0
|
CORPSE_LIFETIME = 2.0
|
||||||
APPLE_HIT_RADIUS = 25
|
APPLE_HIT_RADIUS = 25
|
||||||
|
|
||||||
apple = Actor("apple", APPLE_POS)
|
apple = Actor("apple", APPLE_POS) # Sprite
|
||||||
|
|
||||||
sword = Actor("sword", APPLE_POS)
|
sword = Actor("sword", APPLE_POS) # Sprite
|
||||||
|
|
||||||
dinosaurs = []
|
dinosaurs = []
|
||||||
corpses = []
|
corpses = []
|
||||||
@@ -32,7 +32,7 @@ def on_mouse_move(pos, rel, buttons):
|
|||||||
|
|
||||||
def spawn_dinosaurs():
|
def spawn_dinosaurs():
|
||||||
"""Create a dinosaur just outside one edge of the screen."""
|
"""Create a dinosaur just outside one edge of the screen."""
|
||||||
dino_images = ("dino", "dino2")
|
dino_images = ("dino", "dino2","dino3")
|
||||||
random_dino = random.choice(dino_images)
|
random_dino = random.choice(dino_images)
|
||||||
dino = Actor(random_dino)
|
dino = Actor(random_dino)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user