-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6594ed4
commit 36239a5
Showing
1 changed file
with
35 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,95 +1,72 @@ | ||
Import library code | ||
|
||
Wrap around | ||
|
||
The draw_player function goes here | ||
|
||
Setup your animation here | ||
|
||
Things to do in every frame | ||
|
||
Definitions for compatibility with the p5py processing library | ||
|
||
Shape | ||
|
||
Fonts | ||
|
||
Text | ||
|
||
Colour | ||
|
||
Images | ||
|
||
Environment | ||
|
||
Transform | ||
Add the colour of your theme | ||
|
||
Keyboard | ||
Positioned towards the screen bottom | ||
|
||
Draw collision point | ||
Your chosen colour | ||
|
||
Off the left of the screen | ||
Load your image | ||
|
||
Off the right of the screen | ||
Controls the size of the emoji | ||
|
||
Position around the centre, top | ||
Position around the centre | ||
|
||
Face | ||
|
||
Eyes | ||
|
||
Mouth | ||
Replace with your obstacle | ||
|
||
Collided | ||
Before drawing the player | ||
|
||
Put code to run once here | ||
Load your player image | ||
|
||
Width and height | ||
Load your obstacle image | ||
|
||
Put code to run every frame here | ||
Resize to fit your theme | ||
|
||
Keep this to run your code | ||
Draw a fir tree | ||
|
||
The draw_obstacle function goes here | ||
Green for needles | ||
|
||
Brown for trunk | ||
|
||
Off the bottom of the screen | ||
Increases each frame | ||
|
||
Off the top of the screen | ||
Wrap around | ||
|
||
Add the colour of your theme | ||
Replace with your obstacle | ||
|
||
Positioned towards the screen bottom | ||
Any number is fine | ||
|
||
Your chosen colour | ||
Draw collision point | ||
|
||
Load your image | ||
Useful for debugging | ||
|
||
Controls the size of the emoji | ||
Draw circles around the pixels to check for collisions | ||
|
||
Position around the centre | ||
Off the left of the screen | ||
|
||
Replace with your obstacle | ||
Off the right of the screen | ||
|
||
Before drawing the player | ||
Include global variables here | ||
|
||
Resize to fit your theme | ||
Use the global level | ||
|
||
Draw a fir tree | ||
You have reached level | ||
|
||
Green for needles | ||
Score: | ||
|
||
Brown for trunk | ||
Text to display | ||
|
||
Increases each frame | ||
Great flying! | ||
|
||
Any number is fine | ||
Doing well! | ||
|
||
On background | ||
Keep going! | ||
|
||
Useful for debugging | ||
But be careful! | ||
|
||
Draw circles around the pixels to check for collisions | ||
Push harder! | ||
|
||
Include global variables here | ||
Head for base! | ||
|
||
Use the global level |