Skip to content

Commit

Permalink
Rejig steps
Browse files Browse the repository at this point in the history
  • Loading branch information
lawsie committed Nov 14, 2024
1 parent 9e8ea52 commit ae32478
Show file tree
Hide file tree
Showing 9 changed files with 407 additions and 414 deletions.
1 change: 1 addition & 0 deletions en/meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ steps:
- title: Create obstacles
completion:
- engaged
- title: Random obstacles
- title: Lots of obstacles
- title: Collisions
completion:
Expand Down
11 changes: 6 additions & 5 deletions en/step_1.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ Build a scrolling endless runner game where your character has to avoid obstacle
![Images of different project examples.](images/showcase_projects.png)

![Skiing cat project example](images/example2.png){:width="300px"}
You can find the Skiing cat project here https://editor.raspberrypi.org/en/projects/repeated-patterns-example
[Skiing cat](https://editor.raspberrypi.org/en/projects/repeated-patterns-example)

![Don't pop project example](images/example4.png){:width="300px"}
You can find the Don't pop project here https://editor.raspberrypi.org/en/projects/repeated-patterns-example
[Don't pop](https://editor.raspberrypi.org/en/projects/repeated-patterns-example)
![Avoid the germs project example](images/example3.png){:width="300px"}
You can find the Avoid the germs project here https://editor.raspberrypi.org/en/projects/repeated-patterns-example
[Avoid the germs](https://editor.raspberrypi.org/en/projects/repeated-patterns-example)
![Clean car project example](images/example5.png){:width="300px"}
You can find the Clean car project here https://editor.raspberrypi.org/en/projects/clean-car-example
[Clean car](https://editor.raspberrypi.org/en/projects/clean-car-example)
![Dodge asteroids project example](images/example1.png){:width="300px"}
You can find the Dodge asteroids project here https://editor.raspberrypi.org/en/projects/dodge-asteroids-example
[Dodge asteroids](https://editor.raspberrypi.org/en/projects/dodge-asteroids-example)

19 changes: 19 additions & 0 deletions en/step_10.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## What next?

If you are following the [Introduction to Python](https://projects.raspberrypi.org/en/pathways/python-intro) pathway, you can move on to the [Powerful patterns](https://projects.raspberrypi.org/en/projects/powerful-patterns) project. In this project, you will create inspirational art that can be scaled using repeated patterns.

--- print-only ---

![One of the examples from the Powerful patterns project using rotated geometric shapes.](images/kek-project.png)

--- /print-only ---

--- no-print ---

<iframe src="https://editor.raspberrypi.org/en/embed/viewer/repeated-patterns-example" width="600" height="600" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen>
</iframe>

--- /no-print ---

If you want to have more fun exploring Python, then you could try out any of [these projects](https://projects.raspberrypi.org/en/projects?software%5B%5D=python).

18 changes: 1 addition & 17 deletions en/step_4.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Lots of obstacles
## Random obstacles

--- task ---

Expand Down Expand Up @@ -28,22 +28,6 @@ def draw_obstacles():
**Test:** Run your code and you should see the obstacle reach the bottom of the screen and then restart from the top.
--- /task ---

--- task ---

In your `draw_player()` function, create a variable called `collide` and set it to get the hexadecimal (hex) colour value at the position of the player.

--- code ---
---
language: python
filename: main.py - draw_player()
---

collide = get(mouse_x, player_y).hex

--- /code ---

--- /task ---

--- task ---
Add a line of code for a random **seed**. A seed lets you generate the same random numbers in each frame.

Expand Down
Loading

0 comments on commit ae32478

Please sign in to comment.