diff --git a/en/step_1.md b/en/step_1.md index 11fa22c02..519dcce44 100644 --- a/en/step_1.md +++ b/en/step_1.md @@ -1,6 +1,6 @@ ## You will make -Use Python, with the `p5` graphics library, to draw a target and score points by hitting it with arrows. +Use Python, with the `p5` graphics library, to draw a target and score points by hitting it with arrows. You will: + Personalise your game with **RGB colours** @@ -8,7 +8,7 @@ You will: + Position shapes with **x, y coordinates**
- RGB colours have values between 0 and 255 for each of R(ed), G(reen), and B(lue). Purple has values R,G,B (128, 0, 128) — medium amounts of red and blue, with no green. Video game artists and graphic designers work with RGB colours. + RGB colours have values between 0 and 255 for each of R(ed), G(reen), and B(lue). Purple has values R,G,B (128, 0, 128) — medium amounts of red and blue, with no green. Video game artists and graphic designers work with RGB colours.
--- no-print --- @@ -19,10 +19,10 @@ You will:-The oldest evidence of archery comes from the Sibudu Cave in KwaZulu-Natal, South Africa. Remains of stone and bone arrowheads have been found, which date to between 60,000 and 70,000 years ago. +The oldest evidence of archery comes from the Sibudu Cave in KwaZulu-Natal, South Africa. Remains of stone and bone arrowheads have been found, which date to between 60,000 and 70,000 years ago.
diff --git a/en/step_2.md b/en/step_2.md index cd3720922..f7b78271a 100644 --- a/en/step_2.md +++ b/en/step_2.md @@ -13,19 +13,19 @@ The sky and grass are made by writing code to draw coloured rectangles. --- task --- -Open the [Archery starter](https://trinket.io/python/9973649e5c){:target="_blank"} project. +Open the [Archery starter](https://editor.raspberrypi.org/python/python-archery-starter){:target="_blank"} project. If you have a Trinket account, you can click on the **Remix** button to save a copy to your `My Trinkets` library. --- /task --- -The starter project has some code already written for you to import the `p5` library, you will use this library to build your archery game. +The starter project has some code already written for you to import the `p5` library, you will use this library to build your archery game. [[[p5-processing-library]]] --- task --- -The `fill()` function sets the inside colour of shapes. The starter project already contains some RGB colours you can use to do this. +The `fill()` function sets the inside colour of shapes. The starter project already contains some RGB colours you can use to do this. Find your `draw()` function and prepare to draw the sky by adding indented code to set the `fill()` colour to `sky`: @@ -44,7 +44,7 @@ def draw(): grass = color(149, 212, 122) wood = color(145, 96, 51) outer = color(0, 120, 180) - + fill(sky) --- /code --- @@ -66,7 +66,7 @@ After your `fill()` code, draw a `rect()` for the sky with top-left coordinates language: python filename: main.py — draw() line_numbers: true -line_number_start: 25 +line_number_start: 25 line_highlights: 26 --- @@ -100,7 +100,7 @@ line_number_start: 23 line_highlights: 25 --- - outer = color(0, 120, 180) + outer = color(0, 120, 180) no_stroke() fill(sky) @@ -120,7 +120,7 @@ line_highlights: 25 `fill()` changes the fill colour for all shapes drawn until `fill()` is called again with a new colour. -Change the `fill()` colour to `grass` and add another `rect(x, y, width, height)`. +Change the `fill()` colour to `grass` and add another `rect(x, y, width, height)`. This rectangle needs to be positioned below the sky at coordinates (0, 250), so that it starts in the lower part of the screen. @@ -133,8 +133,8 @@ line_number_start: 23 line_highlights: 28-29 --- - outer = color(0, 120, 180) - + outer = color(0, 120, 180) + no_stroke() fill(sky) rect(0, 0, 400, 250) #x, y, width, height diff --git a/en/step_7.md b/en/step_7.md index a3696bcb3..353c37feb 100644 --- a/en/step_7.md +++ b/en/step_7.md @@ -29,7 +29,7 @@ You could: title: Completed project --- -You can view the [completed project here](https://trinket.io/python/f686c82d8a){:target="_blank"}. +You can view the [completed project here](https://editor.raspberrypi.org/python/python-archery-example){:target="_blank"}. --- /collapse --- diff --git a/en/step_8.md b/en/step_8.md index a51c8845e..07fa29871 100644 --- a/en/step_8.md +++ b/en/step_8.md @@ -1,6 +1,6 @@ ## What next? -If you are following the [Introduction to Python](https://projects.raspberrypi.org/en/raspberrypi/python-intro) pathway, you can move on to the [Rocket launch](https://projects.raspberrypi.org/en/projects/rocket-launch) project. In this project, you will make an interactive animation of a rocket launching a satellite into orbit. +If you are following the [Introduction to Python](https://projects.raspberrypi.org/en/raspberrypi/python-intro) pathway, you can move on to the [Rocket launch](https://projects.raspberrypi.org/en/projects/rocket-launch) project. In this project, you will make an interactive animation of a rocket launching a satellite into orbit. --- print-only --- @@ -12,11 +12,11 @@ If you are following the [Introduction to Python](https://projects.raspberrypi.o --- task --- -**Try it:** Your program will adjust the animation based on how much fuel you give it and will succeed or fail in reaching orbit. How much fuel do you want to use to reach orbit but not waste too much extra fuel? +**Try it:** Your program will adjust the animation based on how much fuel you give it and will succeed or fail in reaching orbit. How much fuel do you want to use to reach orbit but not waste too much extra fuel? **Tip:** Around 25,000kg should be enough, but experiment with the numbers to see what happens. -