Added assets
This commit is contained in:
33
main.py
Normal file
33
main.py
Normal file
@@ -0,0 +1,33 @@
|
||||
# Import library code
|
||||
from p5 import *
|
||||
from random import randint
|
||||
|
||||
# Set up global variables
|
||||
screen_size = 400
|
||||
|
||||
# The draw_rocket function goes here
|
||||
|
||||
|
||||
|
||||
# The draw_background function goes here
|
||||
|
||||
|
||||
|
||||
def setup():
|
||||
# Set up your animation here
|
||||
size(screen_size, screen_size)
|
||||
image_mode(CENTER)
|
||||
global planet
|
||||
planet = load_image('planet.png')
|
||||
|
||||
|
||||
def draw():
|
||||
# Things to do in every frame
|
||||
|
||||
|
||||
|
||||
|
||||
run()
|
||||
|
||||
|
||||
|
||||
BIN
orange_planet.png
Normal file
BIN
orange_planet.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 49 KiB |
BIN
planet.png
Normal file
BIN
planet.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 52 KiB |
BIN
purple_planet.png
Normal file
BIN
purple_planet.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 52 KiB |
BIN
rocket.png
Normal file
BIN
rocket.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 34 KiB |
Reference in New Issue
Block a user