Skip to content

Commit

Permalink
Update python-comments.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
sashamishcheriakova authored Feb 21, 2024
1 parent 6594ed4 commit 36239a5
Showing 1 changed file with 35 additions and 58 deletions.
93 changes: 35 additions & 58 deletions en/python-comments.txt
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

0 comments on commit 36239a5

Please sign in to comment.