Skip to content

Commit

Permalink
Merge pull request #111 from raspberrypilearning/draft
Browse files Browse the repository at this point in the history
Update txt files for localisation
  • Loading branch information
sashamishcheriakova authored Feb 21, 2024
2 parents bdddff7 + 889fe10 commit 7d818b8
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 108 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
67 changes: 17 additions & 50 deletions en/python-translatable.txt
Original file line number Diff line number Diff line change
@@ -1,71 +1,38 @@
speed

score

draw_obstacles

You reached speed

You reached level

ob_x

ob_y

skiing

crashed

player_y

collide

safe

level

collide2

collide3
draw_player

collide4

safe_player

crashed_player
player_y

player_x
player

car
draw_player

lives
mouse_x

invulnerability
image_file

display_score
x_coord

πŸŽ‰πŸŽ‰ You win! πŸŽ‰πŸŽ‰
y_coord

display_lives
width

rocket
height

rock
draw_obstacles

random_seed
ob_x

player
ob_y

obstacle

Great flying!

Doing well!
collide

Keep going!
level

But be careful!
score

Push harder!
message

Head for base!

0 comments on commit 7d818b8

Please sign in to comment.