diff --git a/af-ZA/images/banner.png b/af-ZA/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/af-ZA/images/banner.png differ diff --git a/af-ZA/images/ghostbusters-static.png b/af-ZA/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/af-ZA/images/ghostbusters-static.png differ diff --git a/af-ZA/images/lost-in-space.png b/af-ZA/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/af-ZA/images/lost-in-space.png differ diff --git a/af-ZA/images/make-white.png b/af-ZA/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/af-ZA/images/make-white.png differ diff --git a/af-ZA/images/montage-1.png b/af-ZA/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/af-ZA/images/montage-1.png differ diff --git a/af-ZA/images/montage-2.png b/af-ZA/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/af-ZA/images/montage-2.png differ diff --git a/af-ZA/images/montage-3.png b/af-ZA/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/af-ZA/images/montage-3.png differ diff --git a/af-ZA/images/showcase_static.png b/af-ZA/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/af-ZA/images/showcase_static.png differ diff --git a/af-ZA/images/space-animate-stage.png b/af-ZA/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/af-ZA/images/space-animate-stage.png differ diff --git a/af-ZA/images/space-animate.png b/af-ZA/images/space-animate.png new file mode 100644 index 000000000..46a5038ab Binary files /dev/null and b/af-ZA/images/space-animate.png differ diff --git a/af-ZA/images/space-backdrop.png b/af-ZA/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/af-ZA/images/space-backdrop.png differ diff --git a/af-ZA/images/space-bounce-blocks.png b/af-ZA/images/space-bounce-blocks.png new file mode 100644 index 000000000..9294bb7f7 Binary files /dev/null and b/af-ZA/images/space-bounce-blocks.png differ diff --git a/af-ZA/images/space-bounce-code.png b/af-ZA/images/space-bounce-code.png new file mode 100644 index 000000000..e8791d62f Binary files /dev/null and b/af-ZA/images/space-bounce-code.png differ diff --git a/af-ZA/images/space-bounce-test.png b/af-ZA/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/af-ZA/images/space-bounce-test.png differ diff --git a/af-ZA/images/space-colour-blocks.png b/af-ZA/images/space-colour-blocks.png new file mode 100644 index 000000000..54461788b Binary files /dev/null and b/af-ZA/images/space-colour-blocks.png differ diff --git a/af-ZA/images/space-colour-code.png b/af-ZA/images/space-colour-code.png new file mode 100644 index 000000000..8afbd513d Binary files /dev/null and b/af-ZA/images/space-colour-code.png differ diff --git a/af-ZA/images/space-colour-test.png b/af-ZA/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/af-ZA/images/space-colour-test.png differ diff --git a/af-ZA/images/space-costume.png b/af-ZA/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/af-ZA/images/space-costume.png differ diff --git a/af-ZA/images/space-delete-glide.png b/af-ZA/images/space-delete-glide.png new file mode 100644 index 000000000..1d6fe71a9 Binary files /dev/null and b/af-ZA/images/space-delete-glide.png differ diff --git a/af-ZA/images/space-egs.png b/af-ZA/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/af-ZA/images/space-egs.png differ diff --git a/af-ZA/images/space-glide.png b/af-ZA/images/space-glide.png new file mode 100644 index 000000000..c04d7bfa9 Binary files /dev/null and b/af-ZA/images/space-glide.png differ diff --git a/af-ZA/images/space-initial-position.png b/af-ZA/images/space-initial-position.png new file mode 100644 index 000000000..260fa4f54 Binary files /dev/null and b/af-ZA/images/space-initial-position.png differ diff --git a/af-ZA/images/space-monkey-edit.png b/af-ZA/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/af-ZA/images/space-monkey-edit.png differ diff --git a/af-ZA/images/space-monkey-sprite.png b/af-ZA/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/af-ZA/images/space-monkey-sprite.png differ diff --git a/af-ZA/images/space-repeat-blocks.png b/af-ZA/images/space-repeat-blocks.png new file mode 100644 index 000000000..287663af6 Binary files /dev/null and b/af-ZA/images/space-repeat-blocks.png differ diff --git a/af-ZA/images/space-repeat-code.png b/af-ZA/images/space-repeat-code.png new file mode 100644 index 000000000..9800ca99d Binary files /dev/null and b/af-ZA/images/space-repeat-code.png differ diff --git a/af-ZA/images/space-rock-sprite.png b/af-ZA/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/af-ZA/images/space-rock-sprite.png differ diff --git a/af-ZA/images/space-rotate.png b/af-ZA/images/space-rotate.png new file mode 100644 index 000000000..916fb08f0 Binary files /dev/null and b/af-ZA/images/space-rotate.png differ diff --git a/af-ZA/images/space-size-blocks.png b/af-ZA/images/space-size-blocks.png new file mode 100644 index 000000000..1124075a4 Binary files /dev/null and b/af-ZA/images/space-size-blocks.png differ diff --git a/af-ZA/images/space-size-code.png b/af-ZA/images/space-size-code.png new file mode 100644 index 000000000..14c5d7bcc Binary files /dev/null and b/af-ZA/images/space-size-code.png differ diff --git a/af-ZA/images/space-size-test.png b/af-ZA/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/af-ZA/images/space-size-test.png differ diff --git a/af-ZA/images/space-spin-blocks.png b/af-ZA/images/space-spin-blocks.png new file mode 100644 index 000000000..ca9fd52ee Binary files /dev/null and b/af-ZA/images/space-spin-blocks.png differ diff --git a/af-ZA/images/space-spin-code.png b/af-ZA/images/space-spin-code.png new file mode 100644 index 000000000..8b3b016f9 Binary files /dev/null and b/af-ZA/images/space-spin-code.png differ diff --git a/af-ZA/images/space-spin-test.png b/af-ZA/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/af-ZA/images/space-spin-test.png differ diff --git a/af-ZA/images/space-sprites.png b/af-ZA/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/af-ZA/images/space-sprites.png differ diff --git a/af-ZA/images/space-star-blocks.png b/af-ZA/images/space-star-blocks.png new file mode 100644 index 000000000..f3b9f1e81 Binary files /dev/null and b/af-ZA/images/space-star-blocks.png differ diff --git a/af-ZA/images/space-star-code.png b/af-ZA/images/space-star-code.png new file mode 100644 index 000000000..7097d2e12 Binary files /dev/null and b/af-ZA/images/space-star-code.png differ diff --git a/af-ZA/images/space-star-sprite.png b/af-ZA/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/af-ZA/images/space-star-sprite.png differ diff --git a/af-ZA/images/space-star-test.png b/af-ZA/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/af-ZA/images/space-star-test.png differ diff --git a/af-ZA/images/sprite-earth.png b/af-ZA/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/af-ZA/images/sprite-earth.png differ diff --git a/af-ZA/images/sprite-monkey.png b/af-ZA/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/af-ZA/images/sprite-monkey.png differ diff --git a/af-ZA/images/sprite-rock.png b/af-ZA/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/af-ZA/images/sprite-rock.png differ diff --git a/af-ZA/images/sprite-spaceship.png b/af-ZA/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/af-ZA/images/sprite-spaceship.png differ diff --git a/af-ZA/images/sprite-star.png b/af-ZA/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/af-ZA/images/sprite-star.png differ diff --git a/af-ZA/images/trim_and_tile.sh b/af-ZA/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/af-ZA/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/af-ZA/meta.yml b/af-ZA/meta.yml new file mode 100644 index 000000000..b207a1b45 --- /dev/null +++ b/af-ZA/meta.yml @@ -0,0 +1,35 @@ +--- +title: Lost in space +hero_image: images/lost-in-space.png +description: Learn how to program your own animation! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introduction + - + title: Animating a spaceship + - + title: 'Challenge: improve your animation' + challenge: true + - + title: Animation using loops + completion: + - engaged + - + title: Floating monkey + - + title: Bouncing asteroid + - + title: Shining star + completion: + - internal + - + title: 'Challenge: make your own animation' + challenge: true + - + title: What next? diff --git a/af-ZA/resources/LostinSpace-Finished.sb2 b/af-ZA/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..89753817a Binary files /dev/null and b/af-ZA/resources/LostinSpace-Finished.sb2 differ diff --git a/af-ZA/scratch-translatable.txt b/af-ZA/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/af-ZA/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/af-ZA/solutions/lost-in-space-solution.sb3 b/af-ZA/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/af-ZA/solutions/lost-in-space-solution.sb3 differ diff --git a/af-ZA/step_1.md b/af-ZA/step_1.md new file mode 100644 index 000000000..bc43f86cd --- /dev/null +++ b/af-ZA/step_1.md @@ -0,0 +1,60 @@ +## Introduction + +You are going to learn how to program your own animation! + +### What you will make + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: What you will need + +### Hardware + +- A computer capable of running Scratch 3 + +### Software + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + +- None + +\--- /collapse \--- + +## \--- collapse \--- + +## title: What you will learn + +- Use a repeat loop to animate a sprite in Scratch +- Use a forever loop to repeat an animation indefinitely +- Understand that loops can be nested within each other + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Additional information for educators + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/af-ZA/step_10.md b/af-ZA/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/af-ZA/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/af-ZA/step_2.md b/af-ZA/step_2.md new file mode 100644 index 000000000..cbcdff0c6 --- /dev/null +++ b/af-ZA/step_2.md @@ -0,0 +1,72 @@ +## Animating a spaceship + +Your first step will be to create a spaceship that flies towards the Earth! + +\--- task \--- + +Open a new Scratch project. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** open a new project in the offline editor. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/af-ZA/step_3.md b/af-ZA/step_3.md new file mode 100644 index 000000000..4af9cb400 --- /dev/null +++ b/af-ZA/step_3.md @@ -0,0 +1,16 @@ +## Challenge: improve your animation + +Can you change the numbers in your animation code so that: + ++ The spaceship moves until it touches the Earth? ++ The spaceship moves more slowly towards the Earth? + +You'll need to change the numbers in this block: + +![Rocketship sprite](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/af-ZA/step_4.md b/af-ZA/step_4.md new file mode 100644 index 000000000..0e1397c55 --- /dev/null +++ b/af-ZA/step_4.md @@ -0,0 +1,126 @@ +## Animation using loops + +Another way to animate the spaceship is to tell it to move a small amount many times + +\--- task \--- + +Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testing a spaceship animation](images/space-animate-stage.png) + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Your spaceship should start at `100% size`{:class="blocklooks"}, and then `change size`{:class="blocklooks"} by a small amount each time it moves. + +\--- /hint \--- + +\--- hint \--- + +You will need to add these blocks to your code: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Your code should look like this: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/af-ZA/step_5.md b/af-ZA/step_5.md new file mode 100644 index 000000000..ab4c451b7 --- /dev/null +++ b/af-ZA/step_5.md @@ -0,0 +1,70 @@ +## Floating monkey + +Now you will add a monkey who's lost in space to your animation! + +\--- task \--- + +Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/af-ZA/step_6.md b/af-ZA/step_6.md new file mode 100644 index 000000000..729b6d975 --- /dev/null +++ b/af-ZA/step_6.md @@ -0,0 +1,59 @@ +## Bouncing asteroid + +Now you will add a floating space rock to your animation. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/af-ZA/step_7.md b/af-ZA/step_7.md new file mode 100644 index 000000000..e53504c76 --- /dev/null +++ b/af-ZA/step_7.md @@ -0,0 +1,61 @@ +## Shining star + +Now you will combine loops to make a shining star. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Star sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/af-ZA/step_8.md b/af-ZA/step_8.md new file mode 100644 index 000000000..841b139ec --- /dev/null +++ b/af-ZA/step_8.md @@ -0,0 +1,7 @@ +## Challenge: make your own animation + +Stop your space animation, save it, and start a new Scratch project. + +Use what you've learned in this project to make your own animation. It can be anything you like, but try to make your animation match the background you choose. Here are some examples: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/af-ZA/step_9.md b/af-ZA/step_9.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/af-ZA/step_9.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/am-ET/images/banner.png b/am-ET/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/am-ET/images/banner.png differ diff --git a/am-ET/images/ghostbusters-static.png b/am-ET/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/am-ET/images/ghostbusters-static.png differ diff --git a/am-ET/images/lost-in-space.png b/am-ET/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/am-ET/images/lost-in-space.png differ diff --git a/am-ET/images/make-white.png b/am-ET/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/am-ET/images/make-white.png differ diff --git a/am-ET/images/montage-1.png b/am-ET/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/am-ET/images/montage-1.png differ diff --git a/am-ET/images/montage-2.png b/am-ET/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/am-ET/images/montage-2.png differ diff --git a/am-ET/images/montage-3.png b/am-ET/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/am-ET/images/montage-3.png differ diff --git a/am-ET/images/showcase_static.png b/am-ET/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/am-ET/images/showcase_static.png differ diff --git a/am-ET/images/space-animate-stage.png b/am-ET/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/am-ET/images/space-animate-stage.png differ diff --git a/am-ET/images/space-backdrop.png b/am-ET/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/am-ET/images/space-backdrop.png differ diff --git a/am-ET/images/space-bounce-test.png b/am-ET/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/am-ET/images/space-bounce-test.png differ diff --git a/am-ET/images/space-colour-test.png b/am-ET/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/am-ET/images/space-colour-test.png differ diff --git a/am-ET/images/space-costume.png b/am-ET/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/am-ET/images/space-costume.png differ diff --git a/am-ET/images/space-egs.png b/am-ET/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/am-ET/images/space-egs.png differ diff --git a/am-ET/images/space-monkey-edit.png b/am-ET/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/am-ET/images/space-monkey-edit.png differ diff --git a/am-ET/images/space-monkey-sprite.png b/am-ET/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/am-ET/images/space-monkey-sprite.png differ diff --git a/am-ET/images/space-rock-sprite.png b/am-ET/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/am-ET/images/space-rock-sprite.png differ diff --git a/am-ET/images/space-rotate.png b/am-ET/images/space-rotate.png new file mode 100644 index 000000000..916fb08f0 Binary files /dev/null and b/am-ET/images/space-rotate.png differ diff --git a/am-ET/images/space-size-test.png b/am-ET/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/am-ET/images/space-size-test.png differ diff --git a/am-ET/images/space-spin-test.png b/am-ET/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/am-ET/images/space-spin-test.png differ diff --git a/am-ET/images/space-sprites.png b/am-ET/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/am-ET/images/space-sprites.png differ diff --git a/am-ET/images/space-star-sprite.png b/am-ET/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/am-ET/images/space-star-sprite.png differ diff --git a/am-ET/images/sprite-earth.png b/am-ET/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/am-ET/images/sprite-earth.png differ diff --git a/am-ET/images/sprite-monkey.png b/am-ET/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/am-ET/images/sprite-monkey.png differ diff --git a/am-ET/images/sprite-rock.png b/am-ET/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/am-ET/images/sprite-rock.png differ diff --git a/am-ET/images/sprite-spaceship.png b/am-ET/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/am-ET/images/sprite-spaceship.png differ diff --git a/am-ET/images/sprite-star.png b/am-ET/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/am-ET/images/sprite-star.png differ diff --git a/am-ET/images/trim_and_tile.sh b/am-ET/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/am-ET/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/am-ET/meta.yml b/am-ET/meta.yml new file mode 100644 index 000000000..b207a1b45 --- /dev/null +++ b/am-ET/meta.yml @@ -0,0 +1,35 @@ +--- +title: Lost in space +hero_image: images/lost-in-space.png +description: Learn how to program your own animation! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introduction + - + title: Animating a spaceship + - + title: 'Challenge: improve your animation' + challenge: true + - + title: Animation using loops + completion: + - engaged + - + title: Floating monkey + - + title: Bouncing asteroid + - + title: Shining star + completion: + - internal + - + title: 'Challenge: make your own animation' + challenge: true + - + title: What next? diff --git a/am-ET/scratch-translatable.txt b/am-ET/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/am-ET/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/am-ET/solutions/lost-in-space-solution.sb3 b/am-ET/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/am-ET/solutions/lost-in-space-solution.sb3 differ diff --git a/am-ET/step_1.md b/am-ET/step_1.md new file mode 100644 index 000000000..bc43f86cd --- /dev/null +++ b/am-ET/step_1.md @@ -0,0 +1,60 @@ +## Introduction + +You are going to learn how to program your own animation! + +### What you will make + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: What you will need + +### Hardware + +- A computer capable of running Scratch 3 + +### Software + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + +- None + +\--- /collapse \--- + +## \--- collapse \--- + +## title: What you will learn + +- Use a repeat loop to animate a sprite in Scratch +- Use a forever loop to repeat an animation indefinitely +- Understand that loops can be nested within each other + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Additional information for educators + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/am-ET/step_10.md b/am-ET/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/am-ET/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/am-ET/step_2.md b/am-ET/step_2.md new file mode 100644 index 000000000..cbcdff0c6 --- /dev/null +++ b/am-ET/step_2.md @@ -0,0 +1,72 @@ +## Animating a spaceship + +Your first step will be to create a spaceship that flies towards the Earth! + +\--- task \--- + +Open a new Scratch project. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** open a new project in the offline editor. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/am-ET/step_3.md b/am-ET/step_3.md new file mode 100644 index 000000000..4af9cb400 --- /dev/null +++ b/am-ET/step_3.md @@ -0,0 +1,16 @@ +## Challenge: improve your animation + +Can you change the numbers in your animation code so that: + ++ The spaceship moves until it touches the Earth? ++ The spaceship moves more slowly towards the Earth? + +You'll need to change the numbers in this block: + +![Rocketship sprite](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/am-ET/step_4.md b/am-ET/step_4.md new file mode 100644 index 000000000..0e1397c55 --- /dev/null +++ b/am-ET/step_4.md @@ -0,0 +1,126 @@ +## Animation using loops + +Another way to animate the spaceship is to tell it to move a small amount many times + +\--- task \--- + +Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testing a spaceship animation](images/space-animate-stage.png) + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Your spaceship should start at `100% size`{:class="blocklooks"}, and then `change size`{:class="blocklooks"} by a small amount each time it moves. + +\--- /hint \--- + +\--- hint \--- + +You will need to add these blocks to your code: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Your code should look like this: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/am-ET/step_5.md b/am-ET/step_5.md new file mode 100644 index 000000000..ab4c451b7 --- /dev/null +++ b/am-ET/step_5.md @@ -0,0 +1,70 @@ +## Floating monkey + +Now you will add a monkey who's lost in space to your animation! + +\--- task \--- + +Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/am-ET/step_6.md b/am-ET/step_6.md new file mode 100644 index 000000000..729b6d975 --- /dev/null +++ b/am-ET/step_6.md @@ -0,0 +1,59 @@ +## Bouncing asteroid + +Now you will add a floating space rock to your animation. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/am-ET/step_7.md b/am-ET/step_7.md new file mode 100644 index 000000000..e53504c76 --- /dev/null +++ b/am-ET/step_7.md @@ -0,0 +1,61 @@ +## Shining star + +Now you will combine loops to make a shining star. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Star sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/am-ET/step_8.md b/am-ET/step_8.md new file mode 100644 index 000000000..841b139ec --- /dev/null +++ b/am-ET/step_8.md @@ -0,0 +1,7 @@ +## Challenge: make your own animation + +Stop your space animation, save it, and start a new Scratch project. + +Use what you've learned in this project to make your own animation. It can be anything you like, but try to make your animation match the background you choose. Here are some examples: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/am-ET/step_9.md b/am-ET/step_9.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/am-ET/step_9.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/ar-SA/images/banner.png b/ar-SA/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/ar-SA/images/banner.png differ diff --git a/ar-SA/images/ghostbusters-static.png b/ar-SA/images/ghostbusters-static.png new file mode 100644 index 000000000..005734cb6 Binary files /dev/null and b/ar-SA/images/ghostbusters-static.png differ diff --git a/ar-SA/images/lost-in-space.png b/ar-SA/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/ar-SA/images/lost-in-space.png differ diff --git a/ar-SA/images/make-white.png b/ar-SA/images/make-white.png new file mode 100644 index 000000000..588101f9f Binary files /dev/null and b/ar-SA/images/make-white.png differ diff --git a/ar-SA/images/montage-1.png b/ar-SA/images/montage-1.png new file mode 100644 index 000000000..789d099c7 Binary files /dev/null and b/ar-SA/images/montage-1.png differ diff --git a/ar-SA/images/montage-2.png b/ar-SA/images/montage-2.png new file mode 100644 index 000000000..854c0da26 Binary files /dev/null and b/ar-SA/images/montage-2.png differ diff --git a/ar-SA/images/montage-3.png b/ar-SA/images/montage-3.png new file mode 100644 index 000000000..5460f5591 Binary files /dev/null and b/ar-SA/images/montage-3.png differ diff --git a/ar-SA/images/showcase_static.png b/ar-SA/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/ar-SA/images/showcase_static.png differ diff --git a/ar-SA/images/space-animate-stage.png b/ar-SA/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/ar-SA/images/space-animate-stage.png differ diff --git a/ar-SA/images/space-animate.png b/ar-SA/images/space-animate.png new file mode 100644 index 000000000..9aa966d09 Binary files /dev/null and b/ar-SA/images/space-animate.png differ diff --git a/ar-SA/images/space-backdrop.png b/ar-SA/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/ar-SA/images/space-backdrop.png differ diff --git a/ar-SA/images/space-bounce-blocks.png b/ar-SA/images/space-bounce-blocks.png new file mode 100644 index 000000000..759938b91 Binary files /dev/null and b/ar-SA/images/space-bounce-blocks.png differ diff --git a/ar-SA/images/space-bounce-code.png b/ar-SA/images/space-bounce-code.png new file mode 100644 index 000000000..4fcfbbcef Binary files /dev/null and b/ar-SA/images/space-bounce-code.png differ diff --git a/ar-SA/images/space-bounce-test.png b/ar-SA/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/ar-SA/images/space-bounce-test.png differ diff --git a/ar-SA/images/space-colour-blocks.png b/ar-SA/images/space-colour-blocks.png new file mode 100644 index 000000000..c4bf019d2 Binary files /dev/null and b/ar-SA/images/space-colour-blocks.png differ diff --git a/ar-SA/images/space-colour-code.png b/ar-SA/images/space-colour-code.png new file mode 100644 index 000000000..3887cca1d Binary files /dev/null and b/ar-SA/images/space-colour-code.png differ diff --git a/ar-SA/images/space-colour-test.png b/ar-SA/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/ar-SA/images/space-colour-test.png differ diff --git a/ar-SA/images/space-costume.png b/ar-SA/images/space-costume.png new file mode 100644 index 000000000..73aa8b879 Binary files /dev/null and b/ar-SA/images/space-costume.png differ diff --git a/ar-SA/images/space-delete-glide.png b/ar-SA/images/space-delete-glide.png new file mode 100644 index 000000000..10d5ad16c Binary files /dev/null and b/ar-SA/images/space-delete-glide.png differ diff --git a/ar-SA/images/space-egs.png b/ar-SA/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/ar-SA/images/space-egs.png differ diff --git a/ar-SA/images/space-glide.png b/ar-SA/images/space-glide.png new file mode 100644 index 000000000..9370ec618 Binary files /dev/null and b/ar-SA/images/space-glide.png differ diff --git a/ar-SA/images/space-initial-position.png b/ar-SA/images/space-initial-position.png new file mode 100644 index 000000000..f1c9b508e Binary files /dev/null and b/ar-SA/images/space-initial-position.png differ diff --git a/ar-SA/images/space-monkey-edit.png b/ar-SA/images/space-monkey-edit.png new file mode 100644 index 000000000..63dad31b7 Binary files /dev/null and b/ar-SA/images/space-monkey-edit.png differ diff --git a/ar-SA/images/space-monkey-sprite.png b/ar-SA/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/ar-SA/images/space-monkey-sprite.png differ diff --git a/ar-SA/images/space-repeat-blocks.png b/ar-SA/images/space-repeat-blocks.png new file mode 100644 index 000000000..7265243ea Binary files /dev/null and b/ar-SA/images/space-repeat-blocks.png differ diff --git a/ar-SA/images/space-repeat-code.png b/ar-SA/images/space-repeat-code.png new file mode 100644 index 000000000..8981434a5 Binary files /dev/null and b/ar-SA/images/space-repeat-code.png differ diff --git a/ar-SA/images/space-rock-sprite.png b/ar-SA/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/ar-SA/images/space-rock-sprite.png differ diff --git a/ar-SA/images/space-rotate.png b/ar-SA/images/space-rotate.png new file mode 100644 index 000000000..ebb422cf5 Binary files /dev/null and b/ar-SA/images/space-rotate.png differ diff --git a/ar-SA/images/space-size-blocks.png b/ar-SA/images/space-size-blocks.png new file mode 100644 index 000000000..c8fba31ae Binary files /dev/null and b/ar-SA/images/space-size-blocks.png differ diff --git a/ar-SA/images/space-size-code.png b/ar-SA/images/space-size-code.png new file mode 100644 index 000000000..890869087 Binary files /dev/null and b/ar-SA/images/space-size-code.png differ diff --git a/ar-SA/images/space-size-test.png b/ar-SA/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/ar-SA/images/space-size-test.png differ diff --git a/ar-SA/images/space-spin-blocks.png b/ar-SA/images/space-spin-blocks.png new file mode 100644 index 000000000..ca5fbdd16 Binary files /dev/null and b/ar-SA/images/space-spin-blocks.png differ diff --git a/ar-SA/images/space-spin-code.png b/ar-SA/images/space-spin-code.png new file mode 100644 index 000000000..aaec5d783 Binary files /dev/null and b/ar-SA/images/space-spin-code.png differ diff --git a/ar-SA/images/space-spin-test.png b/ar-SA/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/ar-SA/images/space-spin-test.png differ diff --git a/ar-SA/images/space-sprites.png b/ar-SA/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/ar-SA/images/space-sprites.png differ diff --git a/ar-SA/images/space-star-blocks.png b/ar-SA/images/space-star-blocks.png new file mode 100644 index 000000000..cea251727 Binary files /dev/null and b/ar-SA/images/space-star-blocks.png differ diff --git a/ar-SA/images/space-star-code.png b/ar-SA/images/space-star-code.png new file mode 100644 index 000000000..a4e97a21d Binary files /dev/null and b/ar-SA/images/space-star-code.png differ diff --git a/ar-SA/images/space-star-sprite.png b/ar-SA/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/ar-SA/images/space-star-sprite.png differ diff --git a/ar-SA/images/space-star-test.png b/ar-SA/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/ar-SA/images/space-star-test.png differ diff --git a/ar-SA/images/sprite-earth.png b/ar-SA/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/ar-SA/images/sprite-earth.png differ diff --git a/ar-SA/images/sprite-monkey.png b/ar-SA/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/ar-SA/images/sprite-monkey.png differ diff --git a/ar-SA/images/sprite-rock.png b/ar-SA/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/ar-SA/images/sprite-rock.png differ diff --git a/ar-SA/images/sprite-spaceship.png b/ar-SA/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/ar-SA/images/sprite-spaceship.png differ diff --git a/ar-SA/images/sprite-star.png b/ar-SA/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/ar-SA/images/sprite-star.png differ diff --git a/ar-SA/images/trim_and_tile.sh b/ar-SA/images/trim_and_tile.sh new file mode 100644 index 000000000..610ba3cb2 --- /dev/null +++ b/ar-SA/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +افعل + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +اكتمل +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/ar-SA/meta.yml b/ar-SA/meta.yml new file mode 100644 index 000000000..3b795cd04 --- /dev/null +++ b/ar-SA/meta.yml @@ -0,0 +1,35 @@ +--- +title: تائه في الفضاء +hero_image: images/lost-in-space.png +description: تعلَّم كيف تُبرمج الرسم المتحرك! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: المقدمة + - + title: تحريك سفينة فضاء + - + title: 'التحدي: تحسين الرسم المتحرك' + challenge: true + - + title: التحريك باستخدام حلقات التكرار + completion: + - engaged + - + title: قرد سابح + - + title: كويكب يرتدّ + - + title: نجم متلألئ + completion: + - internal + - + title: 'تحدي: اصنع رسمتك المتحركة' + challenge: true + - + title: ما التالي؟ diff --git a/ar-SA/resources/LostinSpace-Finished.sb2 b/ar-SA/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..8643fa852 Binary files /dev/null and b/ar-SA/resources/LostinSpace-Finished.sb2 differ diff --git a/ar-SA/scratch-translatable.txt b/ar-SA/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/ar-SA/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/ar-SA/solutions/lost-in-space-solution.sb3 b/ar-SA/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..80d8b84f5 Binary files /dev/null and b/ar-SA/solutions/lost-in-space-solution.sb3 differ diff --git a/ar-SA/step_1.md b/ar-SA/step_1.md new file mode 100644 index 000000000..3b5b7d40d --- /dev/null +++ b/ar-SA/step_1.md @@ -0,0 +1,60 @@ +## المقدمة + +You are going to learn how to program your own animation! + +### ما الذي ستصنعه + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: ما الذي ستحتاجه + +### الأجهزة + +- جهاز كمبيوتر يدعم تشغيل برنامج Scratch 3 + +### البرامج + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### التنزيلات + +- لا يوجد + +\--- /collapse \--- + +## \--- collapse \--- + +## title: ما الذي ستتعلمه + +- استخدام حلقة التكرار لتحريك الكائن في Scratch +- استخدم اللبنة كرر باستمرار لتكرار الرسوم المتحركة إلى الابد +- نفهم أن حلقات التكرار يمكن أن تتداخل داخل بعضها البعض + +\--- /collapse \--- + +## \--- collapse \--- + +## title: معلومات إضافية للمعلمين + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- collapse \--- \ No newline at end of file diff --git a/ar-SA/step_10.md b/ar-SA/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/ar-SA/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/ar-SA/step_2.md b/ar-SA/step_2.md new file mode 100644 index 000000000..d8ef0008b --- /dev/null +++ b/ar-SA/step_2.md @@ -0,0 +1,72 @@ +## تحريك سفينة فضاء + +ستكون خطوتك الأولى هي إنشاء سفينة فضائية تطير باتجاه الأرض! + +\--- task \--- + +افتح مشروع فارغ جديد في Scratch. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**من دون اتصال بالانترنت:** افتح مشروع Scratch جديد عبر برنامج المحرر الموجود على جهازك دون اتصال بالانترنت. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +أضف الكائنين"سفينة الفضاء" و "كوكب الأرض" إلى المنصة. + +![الكائنين سفينة الفضاء و كوكب الأرض](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +أضف خلفية "النجوم" إلى المنصة. + +![خلفية الفضاء](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +انقر فوق كائن سفينة الفضاء، ثم انقر فوق علامة التبويب **المظاهر**. + +![مظهر الكائن](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +استخدم أداة **السهم** لتحديد الصورة. ثم انقر فوق مقبض **التدوير الدائري**، وأدر الصورة حتى تكون على جانبها. + +![تدوير المظهر](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +أضف هذه التعليمة البرمجية إلى كائن سفينة الفضاء: + +![كائن سفينة الفضاء](images/sprite-spaceship.png) + +```blocks3 +عند نقر ⚑ +اتجه نحو الاتجاه (0) +اذهب إلى الموضع س: (-150) ص: (-150) +قل [Let's go] لمدة (2) ثانية +اتجه نحو (Earth v) +انزلق خلال (1) ثانية إلى الموضع س: (0) ص: (0) +``` + +غيِّر الأرقام الموجودة في قوالب التعليمات البرمجية بحيث تكون التعليمات البرمجية مماثلة لتلك الموضحة في الصورة أعلاه. + +\--- /task \--- + +إذا نقرتَ على العلم الأخضر، فستجد أن سفينة الفضاء تتكلم ثم تستدير ثم تسبح نحو كوكب الأرض. + +![اختبار تحرك سفينة الفضاء](images/space-animate-stage.png) \ No newline at end of file diff --git a/ar-SA/step_3.md b/ar-SA/step_3.md new file mode 100644 index 000000000..bf6dcd1af --- /dev/null +++ b/ar-SA/step_3.md @@ -0,0 +1,16 @@ +## تحدي: تحسين الرسوم المتحركة الخاصة بك + +هل يمكنك تغيير الأرقام في التعليمات البرمجية للرسم المتحرك، بحيث: + ++ تتحرك سفينة الفضاء حتى تُلامس كوكب الأرض؟ ++ تتحرك سفينة الفضاء بشكل أبطأ نحو كوكب الأرض؟ + +ستحتاج إلى تغيير الأرقام في هذا القالب: + +![كائن سفينة الفضاء](images/sprite-spaceship.png) + +```blocks3 +انزلق خلال (1) ثانية إلى الموضع س: (0) ص: (0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/ar-SA/step_4.md b/ar-SA/step_4.md new file mode 100644 index 000000000..064167741 --- /dev/null +++ b/ar-SA/step_4.md @@ -0,0 +1,127 @@ +## التحريك باستخدام حلقات التكرار + +توجد طريقة أخرى لتحريك سفينة الفضاء وهي أن تأمر السفينة بالتحرك مسافات صغيرة عدة مرّات + +\--- task \--- + +احذف لبنة `إنزلق` {: class = "block3motion"} من تعليماتك البرمجية. للقيام بذلك، اسحب الكتلة خارج منطقة الكود واسقطها مرة أخرى حيث توجد التعليمات البرمجية المفردة الأخرى. + +![كائن سفينة الفضاء](images/sprite-spaceship.png) + +```blocks3 +عند نقر ⚑ +اتجه نحو الاتجاه (0) +اذهب إلى الموضع س: (-150) ص: (-150) +قل [Let's go] لمدة (2) ثانية +اتجه نحو (Earth v) + +انزلق خلال (1) ثانية إلى الموضع س: (0) ص: (0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![اختبار تحرك سفينة الفضاء](images/space-animate-stage.png) + +![كائن سفينة الفضاء](images/sprite-spaceship.png) + +```blocks3 +عند نقر ⚑ +اتجه نحو الاتجاه (0) +اذهب إلى الموضع س: (-150) ص: (-150) +قل [Let's go] لمدة (2) ثانية +اتجه نحو (Earth v) + ++ كرِّر (200) مرة + تحرك (2) خطوة +end +``` + +اختبر مشروعك وقم بحفظه: ستتحرَّك سفينة الفضاء نحو كوكب الأرض تمامًا كما كانت من قبل، لكن باستخدام القالب `كرِّر ` {:class="block3control"} في هذه المرة. + +\--- /task \--- + +\--- task \--- + +بعدها قم بإضافة التعليمات البرمجية إلى كائن سفينة الفضاء الخاصة بك بحيث يتغير لون سفينة الفضاء أثناء تحركها نحو الأرض؟ + +استخدم هذه الكتلة: + +![كائن سفينة الفضاء](images/sprite-spaceship.png) + +```blocks3 +عند نقر ⚑ +اتجه نحو الاتجاه (0) +اذهب إلى الموضع س: (-150) ص: (-150) +قل [Let's go] لمدة (2) ثانية +اتجه نحو (Earth v) +كرِّر (200) مرة + تحرك (2) خطوة + + غيِّر مؤثر [color v] بمقدار (25) +end +``` + +إختبر واحفظ المشروع الخاص بك. + +![اختبار تغيير لون السفينة الفضائية](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +هل يمكنك تصغير حجم سفينة الفضاء تدريجيًا أثناء اقترابها من كوكب الأرض؟ + +\--- hints \--- + +\--- hint \--- + +يجب أن تبدأ سفينة الفضاء الخاصة بك بحجم ` 100٪ ` {:class="blocklooks"}، ثم ` يتغير الحجم ` {:class="blocklooks"} بمقدار صغير في كل مرة يتحرك فيها. + +\--- /hint \--- + +\--- hint \--- + +ستحتاج إلى إضافة هذه الكتل للكود الخاصة بك: + +![كائن سفينة الفضاء](images/sprite-spaceship.png) + +```blocks3 +غيِّر الحجم بمقدار (10) + +اجعل الحجم مساويًا (100) ٪ +``` + +\--- /hint \--- + +\--- hint \--- + +يجب أن تبدو التعليمات البرمجية الخاصة بك بالشكل التالي: + +![كائن سفينة الفضاء](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +اختبر مشروعك وقم بحفظه. يجب أن يقل حجم سفينة الفضاء الآن أثناء تحركها. اختبر سفينة الفضاء **مرة أخرى**. هل تكون بالحجم الصحيح عندما تبدأ؟ + +![اختبار تقلص السفينة الفضائية](images/space-size-test.png) \ No newline at end of file diff --git a/ar-SA/step_5.md b/ar-SA/step_5.md new file mode 100644 index 000000000..71ad141f5 --- /dev/null +++ b/ar-SA/step_5.md @@ -0,0 +1,71 @@ +## قرد سابح + +الآن سوف تضيف قردًا تائهاً في الفضاء إلى الرسوم المتحركة الخاصة بك! + +\--- task \--- + +ابدأ بإضافة كائن 'القرد' من المكتبة. + +![إضافة كائن القرد](images/space-monkey-sprite.png) + +\--- /task \--- + +إذا نقرتَ على كائن القرد الجديد ثم نقرتَ على علامة التبويب **المظاهر**، فسيمكنك تحرير/تعديل الشكل الذي سيظهر به القرد. + +\--- task \--- + +قم بتعيين التعبئة لتكون شفافة من خلال تحديد الخط الأحمر. بالنسبة إلى الحدود الخارجية، قم بتعيين لون أبيض عن طريق تحريك منزلق تشبع اللون إلى `0`. + +![صنع لون أبيض](images/make-white.png) + +\---/task\--- + +\--- task \--- + +انقر على أداة **الدائرة** ثم استخدمها لرسم خوذة بمساحة بيضاء حول رأس القرد. + +![خوذة فضائية للقرد](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +هل يمكنك إضافة تعليمة برمجية إلى كائن القرد بحيث يدور ببطء في دائرة بشكل مستمر؟ + +\--- hints \--- \--- hint \--- + +**عند نقر العلم الأخضر**، يجب أن **يدور** كائن القرد في دائرة **باستمرار**. + +\--- /hint \--- \--- hint \--- + +هنا التعليمات البرمجية التي ستحتاج اليها: + +```blocks3 +كرِّر باستمرار +end + +استدر ↻ (15) درجة + +عند نقر ⚑ +``` + +\--- /hint \--- \--- hint \--- + +إليك الكود لجعل قردك يدور: + +![كائن القرد](images/sprite-monkey.png) + +```blocks3 +عند نقر ⚑ +كرِّر باستمرار + استدر ↻ (1) درجة +end +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +اختبر مشروعك وقم بحفظه. ستحتاج إلى النقر فوق الزر الأحمر **إيقاف** لإنهاء هذه الحركة، لأنها ستتكرَّر باستمرار! + +![اختبار القرد الذي يدور](images/space-spin-test.png) \ No newline at end of file diff --git a/ar-SA/step_6.md b/ar-SA/step_6.md new file mode 100644 index 000000000..89970e685 --- /dev/null +++ b/ar-SA/step_6.md @@ -0,0 +1,61 @@ +## كويكب يرتدّ + +الآن سنقوم بإضافة صخرة عائمة في الفضاء إلى الرسم المتحرك. + +\--- task \--- + +أضف كائن "الصخرة" الى الرسم المتحرك. + +![إضافة كائن القرد](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +هل يمكنك إضافة تعليمات برمجية لكائن الصخرة الخاصة بك بحيث ترتد حول المنصة؟ + +![اختبار إرتداد الصخرة](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +عند النقر فوق **العلم الأخضر**، يجب أن **يتحرك** كائن الصخرة و **يرتد** عن حواف المنصة **باستمرار**. + +\--- /hint \--- \--- hint \--- + +هنا التعليمات البرمجية التي ستحتاج اليها: + +```blocks3 +تحرك (10) خطوة + +ارتد إذا كنت عند الحافة + +عند نقر ⚑ + +كرِّر باستمرار +end +``` + +يمكنك أيضًا تعيين اتجاه البداية بشكل أكثر إثارة للاهتمام لكائن الصخرة باستخدام إحدى هذه الكتل: + +```blocks3 +استدر ↻ (15) درجة + +اتجه نحو (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +إليك التعليمات البرمجية اللازمة لجعل الصخرة ترتد حول المنصة: + +![كائن الصخرة](images/sprite-rock.png) + +```blocks3 +عند نقر ⚑ +اتجه نحو (Earth v) +كرِّر باستمرار + تحرك (2) خطوة + ارتد إذا كنت عند الحافة +end +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/ar-SA/step_7.md b/ar-SA/step_7.md new file mode 100644 index 000000000..18bfac444 --- /dev/null +++ b/ar-SA/step_7.md @@ -0,0 +1,63 @@ +## نجم متلألئ + +والآن سنقوم بجمع الحلقات لنصنع نجمًا لامعًا. + +\--- task \--- + +أضف كائن النجم إلى الرسم المتحرك. + +![إضافة كائن النجم](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +هل يمكنك إضافة تعليمات برمجية إلى كائن النجمة الخاص بك لجعل النجمة تكبر وتتقلص بشكل متكرر؟ + +![اختبار النجم اللامع](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +عند **النقر على العلم الأخضر**, يجب أن **يتغير حجم** نجمتك لتصبح أكبر بعدد من المرات, ومن ثم **يتغير حجمها** لتصبح أصغر عدد من المرات. يجب أن تفعل هذا بحيث تصبح أكبر ثم أصغر ** إلى الأبد ** لتبدو كأنها ضوء ساطع. + +\--- /hint \--- \--- hint \--- + +هنا التعليمات البرمجية التي ستحتاج اليها: + +```blocks3 +كرِّر (10) مرة +end + +عند نقر ⚑ + +كرِّر (10) مرة +end + +غيِّر الحجم بمقدار (10) + +غيِّر الحجم بمقدار (10) + +كرِّر باستمرار +end +``` + +\--- /hint \--- \--- hint \--- + +اليك التعليمات البرمجية التي تجعل النجمة الخاصة بك تكبر وتتقلص: + +![كائن النجمة](images/sprite-star.png) + +```blocks3 +عند نقر ⚑ +كرِّر باستمرار + كرِّر (20) مرة + غيِّر الحجم بمقدار (2) + end + كرِّر (20) مرة + غيِّر الحجم بمقدار (-2) + end +end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/ar-SA/step_8.md b/ar-SA/step_8.md new file mode 100644 index 000000000..4c075626c --- /dev/null +++ b/ar-SA/step_8.md @@ -0,0 +1,7 @@ +## تحدي: اصنع رسمتك المتحركة + +أوقف مشروع الرسم المتحرك للفضاء واحفظه، ثم ابدأ مشروعًا جديدًا على برنامج Scratch. + +استخدم ما تعلمتَه في هذا المشروع لابتكار رسم متحرك خاص بك. ويمكنك أن تبتكر أي رسم متحرك تريده، لكن حاول اختيار خلفية مناسبة لهذا الرسم. إليك بعض الأمثلة: + +![لقطة شاشة](images/space-egs.png) \ No newline at end of file diff --git a/ar-SA/step_9.md b/ar-SA/step_9.md new file mode 100644 index 000000000..0b0243a68 --- /dev/null +++ b/ar-SA/step_9.md @@ -0,0 +1,18 @@ +## ما التالي؟ + +جرّب مشروع [صائدوا الاشباح](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects)! في هذا المشروع، سوف تتعلم كيفية إنشاء لعبة مع أشباح تظهر في كل مكان وتحتاج إلى اللحاق بها. سوف تتعلم أيضًا كيفية إضافة مؤقت ونقاط للعبة، بحيث يمكنك معرفة عدد الأشباح التي يمكنك التقاطها. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![معرض](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/az-AZ/images/banner.png b/az-AZ/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/az-AZ/images/banner.png differ diff --git a/az-AZ/images/ghostbusters-static.png b/az-AZ/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/az-AZ/images/ghostbusters-static.png differ diff --git a/az-AZ/images/lost-in-space.png b/az-AZ/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/az-AZ/images/lost-in-space.png differ diff --git a/az-AZ/images/make-white.png b/az-AZ/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/az-AZ/images/make-white.png differ diff --git a/az-AZ/images/montage-1.png b/az-AZ/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/az-AZ/images/montage-1.png differ diff --git a/az-AZ/images/montage-2.png b/az-AZ/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/az-AZ/images/montage-2.png differ diff --git a/az-AZ/images/montage-3.png b/az-AZ/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/az-AZ/images/montage-3.png differ diff --git a/az-AZ/images/showcase_static.png b/az-AZ/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/az-AZ/images/showcase_static.png differ diff --git a/az-AZ/images/space-animate-stage.png b/az-AZ/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/az-AZ/images/space-animate-stage.png differ diff --git a/az-AZ/images/space-animate.png b/az-AZ/images/space-animate.png new file mode 100644 index 000000000..46a5038ab Binary files /dev/null and b/az-AZ/images/space-animate.png differ diff --git a/az-AZ/images/space-backdrop.png b/az-AZ/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/az-AZ/images/space-backdrop.png differ diff --git a/az-AZ/images/space-bounce-blocks.png b/az-AZ/images/space-bounce-blocks.png new file mode 100644 index 000000000..9294bb7f7 Binary files /dev/null and b/az-AZ/images/space-bounce-blocks.png differ diff --git a/az-AZ/images/space-bounce-code.png b/az-AZ/images/space-bounce-code.png new file mode 100644 index 000000000..e8791d62f Binary files /dev/null and b/az-AZ/images/space-bounce-code.png differ diff --git a/az-AZ/images/space-bounce-test.png b/az-AZ/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/az-AZ/images/space-bounce-test.png differ diff --git a/az-AZ/images/space-colour-blocks.png b/az-AZ/images/space-colour-blocks.png new file mode 100644 index 000000000..54461788b Binary files /dev/null and b/az-AZ/images/space-colour-blocks.png differ diff --git a/az-AZ/images/space-colour-code.png b/az-AZ/images/space-colour-code.png new file mode 100644 index 000000000..8afbd513d Binary files /dev/null and b/az-AZ/images/space-colour-code.png differ diff --git a/az-AZ/images/space-colour-test.png b/az-AZ/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/az-AZ/images/space-colour-test.png differ diff --git a/az-AZ/images/space-costume.png b/az-AZ/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/az-AZ/images/space-costume.png differ diff --git a/az-AZ/images/space-delete-glide.png b/az-AZ/images/space-delete-glide.png new file mode 100644 index 000000000..1d6fe71a9 Binary files /dev/null and b/az-AZ/images/space-delete-glide.png differ diff --git a/az-AZ/images/space-egs.png b/az-AZ/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/az-AZ/images/space-egs.png differ diff --git a/az-AZ/images/space-glide.png b/az-AZ/images/space-glide.png new file mode 100644 index 000000000..c04d7bfa9 Binary files /dev/null and b/az-AZ/images/space-glide.png differ diff --git a/az-AZ/images/space-initial-position.png b/az-AZ/images/space-initial-position.png new file mode 100644 index 000000000..260fa4f54 Binary files /dev/null and b/az-AZ/images/space-initial-position.png differ diff --git a/az-AZ/images/space-monkey-edit.png b/az-AZ/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/az-AZ/images/space-monkey-edit.png differ diff --git a/az-AZ/images/space-monkey-sprite.png b/az-AZ/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/az-AZ/images/space-monkey-sprite.png differ diff --git a/az-AZ/images/space-repeat-blocks.png b/az-AZ/images/space-repeat-blocks.png new file mode 100644 index 000000000..287663af6 Binary files /dev/null and b/az-AZ/images/space-repeat-blocks.png differ diff --git a/az-AZ/images/space-repeat-code.png b/az-AZ/images/space-repeat-code.png new file mode 100644 index 000000000..9800ca99d Binary files /dev/null and b/az-AZ/images/space-repeat-code.png differ diff --git a/az-AZ/images/space-rock-sprite.png b/az-AZ/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/az-AZ/images/space-rock-sprite.png differ diff --git a/az-AZ/images/space-rotate.png b/az-AZ/images/space-rotate.png new file mode 100644 index 000000000..916fb08f0 Binary files /dev/null and b/az-AZ/images/space-rotate.png differ diff --git a/az-AZ/images/space-size-blocks.png b/az-AZ/images/space-size-blocks.png new file mode 100644 index 000000000..1124075a4 Binary files /dev/null and b/az-AZ/images/space-size-blocks.png differ diff --git a/az-AZ/images/space-size-code.png b/az-AZ/images/space-size-code.png new file mode 100644 index 000000000..14c5d7bcc Binary files /dev/null and b/az-AZ/images/space-size-code.png differ diff --git a/az-AZ/images/space-size-test.png b/az-AZ/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/az-AZ/images/space-size-test.png differ diff --git a/az-AZ/images/space-spin-blocks.png b/az-AZ/images/space-spin-blocks.png new file mode 100644 index 000000000..ca9fd52ee Binary files /dev/null and b/az-AZ/images/space-spin-blocks.png differ diff --git a/az-AZ/images/space-spin-code.png b/az-AZ/images/space-spin-code.png new file mode 100644 index 000000000..8b3b016f9 Binary files /dev/null and b/az-AZ/images/space-spin-code.png differ diff --git a/az-AZ/images/space-spin-test.png b/az-AZ/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/az-AZ/images/space-spin-test.png differ diff --git a/az-AZ/images/space-sprites.png b/az-AZ/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/az-AZ/images/space-sprites.png differ diff --git a/az-AZ/images/space-star-blocks.png b/az-AZ/images/space-star-blocks.png new file mode 100644 index 000000000..f3b9f1e81 Binary files /dev/null and b/az-AZ/images/space-star-blocks.png differ diff --git a/az-AZ/images/space-star-code.png b/az-AZ/images/space-star-code.png new file mode 100644 index 000000000..7097d2e12 Binary files /dev/null and b/az-AZ/images/space-star-code.png differ diff --git a/az-AZ/images/space-star-sprite.png b/az-AZ/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/az-AZ/images/space-star-sprite.png differ diff --git a/az-AZ/images/space-star-test.png b/az-AZ/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/az-AZ/images/space-star-test.png differ diff --git a/az-AZ/images/sprite-earth.png b/az-AZ/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/az-AZ/images/sprite-earth.png differ diff --git a/az-AZ/images/sprite-monkey.png b/az-AZ/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/az-AZ/images/sprite-monkey.png differ diff --git a/az-AZ/images/sprite-rock.png b/az-AZ/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/az-AZ/images/sprite-rock.png differ diff --git a/az-AZ/images/sprite-spaceship.png b/az-AZ/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/az-AZ/images/sprite-spaceship.png differ diff --git a/az-AZ/images/sprite-star.png b/az-AZ/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/az-AZ/images/sprite-star.png differ diff --git a/az-AZ/images/trim_and_tile.sh b/az-AZ/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/az-AZ/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/az-AZ/meta.yml b/az-AZ/meta.yml new file mode 100644 index 000000000..b207a1b45 --- /dev/null +++ b/az-AZ/meta.yml @@ -0,0 +1,35 @@ +--- +title: Lost in space +hero_image: images/lost-in-space.png +description: Learn how to program your own animation! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introduction + - + title: Animating a spaceship + - + title: 'Challenge: improve your animation' + challenge: true + - + title: Animation using loops + completion: + - engaged + - + title: Floating monkey + - + title: Bouncing asteroid + - + title: Shining star + completion: + - internal + - + title: 'Challenge: make your own animation' + challenge: true + - + title: What next? diff --git a/az-AZ/resources/LostinSpace-Finished.sb2 b/az-AZ/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..89753817a Binary files /dev/null and b/az-AZ/resources/LostinSpace-Finished.sb2 differ diff --git a/az-AZ/scratch-translatable.txt b/az-AZ/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/az-AZ/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/az-AZ/solutions/lost-in-space-solution.sb3 b/az-AZ/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/az-AZ/solutions/lost-in-space-solution.sb3 differ diff --git a/az-AZ/step_1.md b/az-AZ/step_1.md new file mode 100644 index 000000000..bc43f86cd --- /dev/null +++ b/az-AZ/step_1.md @@ -0,0 +1,60 @@ +## Introduction + +You are going to learn how to program your own animation! + +### What you will make + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: What you will need + +### Hardware + +- A computer capable of running Scratch 3 + +### Software + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + +- None + +\--- /collapse \--- + +## \--- collapse \--- + +## title: What you will learn + +- Use a repeat loop to animate a sprite in Scratch +- Use a forever loop to repeat an animation indefinitely +- Understand that loops can be nested within each other + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Additional information for educators + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/az-AZ/step_10.md b/az-AZ/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/az-AZ/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/az-AZ/step_2.md b/az-AZ/step_2.md new file mode 100644 index 000000000..cbcdff0c6 --- /dev/null +++ b/az-AZ/step_2.md @@ -0,0 +1,72 @@ +## Animating a spaceship + +Your first step will be to create a spaceship that flies towards the Earth! + +\--- task \--- + +Open a new Scratch project. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** open a new project in the offline editor. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/az-AZ/step_3.md b/az-AZ/step_3.md new file mode 100644 index 000000000..4af9cb400 --- /dev/null +++ b/az-AZ/step_3.md @@ -0,0 +1,16 @@ +## Challenge: improve your animation + +Can you change the numbers in your animation code so that: + ++ The spaceship moves until it touches the Earth? ++ The spaceship moves more slowly towards the Earth? + +You'll need to change the numbers in this block: + +![Rocketship sprite](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/az-AZ/step_4.md b/az-AZ/step_4.md new file mode 100644 index 000000000..0e1397c55 --- /dev/null +++ b/az-AZ/step_4.md @@ -0,0 +1,126 @@ +## Animation using loops + +Another way to animate the spaceship is to tell it to move a small amount many times + +\--- task \--- + +Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testing a spaceship animation](images/space-animate-stage.png) + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Your spaceship should start at `100% size`{:class="blocklooks"}, and then `change size`{:class="blocklooks"} by a small amount each time it moves. + +\--- /hint \--- + +\--- hint \--- + +You will need to add these blocks to your code: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Your code should look like this: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/az-AZ/step_5.md b/az-AZ/step_5.md new file mode 100644 index 000000000..ab4c451b7 --- /dev/null +++ b/az-AZ/step_5.md @@ -0,0 +1,70 @@ +## Floating monkey + +Now you will add a monkey who's lost in space to your animation! + +\--- task \--- + +Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/az-AZ/step_6.md b/az-AZ/step_6.md new file mode 100644 index 000000000..729b6d975 --- /dev/null +++ b/az-AZ/step_6.md @@ -0,0 +1,59 @@ +## Bouncing asteroid + +Now you will add a floating space rock to your animation. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/az-AZ/step_7.md b/az-AZ/step_7.md new file mode 100644 index 000000000..e53504c76 --- /dev/null +++ b/az-AZ/step_7.md @@ -0,0 +1,61 @@ +## Shining star + +Now you will combine loops to make a shining star. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Star sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/az-AZ/step_8.md b/az-AZ/step_8.md new file mode 100644 index 000000000..841b139ec --- /dev/null +++ b/az-AZ/step_8.md @@ -0,0 +1,7 @@ +## Challenge: make your own animation + +Stop your space animation, save it, and start a new Scratch project. + +Use what you've learned in this project to make your own animation. It can be anything you like, but try to make your animation match the background you choose. Here are some examples: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/az-AZ/step_9.md b/az-AZ/step_9.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/az-AZ/step_9.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/bn-BD/images/banner.png b/bn-BD/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/bn-BD/images/banner.png differ diff --git a/bn-BD/images/ghostbusters-static.png b/bn-BD/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/bn-BD/images/ghostbusters-static.png differ diff --git a/bn-BD/images/lost-in-space.png b/bn-BD/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/bn-BD/images/lost-in-space.png differ diff --git a/bn-BD/images/make-white.png b/bn-BD/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/bn-BD/images/make-white.png differ diff --git a/bn-BD/images/montage-1.png b/bn-BD/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/bn-BD/images/montage-1.png differ diff --git a/bn-BD/images/montage-2.png b/bn-BD/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/bn-BD/images/montage-2.png differ diff --git a/bn-BD/images/montage-3.png b/bn-BD/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/bn-BD/images/montage-3.png differ diff --git a/bn-BD/images/showcase_static.png b/bn-BD/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/bn-BD/images/showcase_static.png differ diff --git a/bn-BD/images/space-animate-stage.png b/bn-BD/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/bn-BD/images/space-animate-stage.png differ diff --git a/bn-BD/images/space-animate.png b/bn-BD/images/space-animate.png new file mode 100644 index 000000000..46a5038ab Binary files /dev/null and b/bn-BD/images/space-animate.png differ diff --git a/bn-BD/images/space-backdrop.png b/bn-BD/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/bn-BD/images/space-backdrop.png differ diff --git a/bn-BD/images/space-bounce-blocks.png b/bn-BD/images/space-bounce-blocks.png new file mode 100644 index 000000000..9294bb7f7 Binary files /dev/null and b/bn-BD/images/space-bounce-blocks.png differ diff --git a/bn-BD/images/space-bounce-code.png b/bn-BD/images/space-bounce-code.png new file mode 100644 index 000000000..e8791d62f Binary files /dev/null and b/bn-BD/images/space-bounce-code.png differ diff --git a/bn-BD/images/space-bounce-test.png b/bn-BD/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/bn-BD/images/space-bounce-test.png differ diff --git a/bn-BD/images/space-colour-blocks.png b/bn-BD/images/space-colour-blocks.png new file mode 100644 index 000000000..54461788b Binary files /dev/null and b/bn-BD/images/space-colour-blocks.png differ diff --git a/bn-BD/images/space-colour-code.png b/bn-BD/images/space-colour-code.png new file mode 100644 index 000000000..8afbd513d Binary files /dev/null and b/bn-BD/images/space-colour-code.png differ diff --git a/bn-BD/images/space-colour-test.png b/bn-BD/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/bn-BD/images/space-colour-test.png differ diff --git a/bn-BD/images/space-costume.png b/bn-BD/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/bn-BD/images/space-costume.png differ diff --git a/bn-BD/images/space-delete-glide.png b/bn-BD/images/space-delete-glide.png new file mode 100644 index 000000000..1d6fe71a9 Binary files /dev/null and b/bn-BD/images/space-delete-glide.png differ diff --git a/bn-BD/images/space-egs.png b/bn-BD/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/bn-BD/images/space-egs.png differ diff --git a/bn-BD/images/space-glide.png b/bn-BD/images/space-glide.png new file mode 100644 index 000000000..c04d7bfa9 Binary files /dev/null and b/bn-BD/images/space-glide.png differ diff --git a/bn-BD/images/space-initial-position.png b/bn-BD/images/space-initial-position.png new file mode 100644 index 000000000..260fa4f54 Binary files /dev/null and b/bn-BD/images/space-initial-position.png differ diff --git a/bn-BD/images/space-monkey-edit.png b/bn-BD/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/bn-BD/images/space-monkey-edit.png differ diff --git a/bn-BD/images/space-monkey-sprite.png b/bn-BD/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/bn-BD/images/space-monkey-sprite.png differ diff --git a/bn-BD/images/space-repeat-blocks.png b/bn-BD/images/space-repeat-blocks.png new file mode 100644 index 000000000..287663af6 Binary files /dev/null and b/bn-BD/images/space-repeat-blocks.png differ diff --git a/bn-BD/images/space-repeat-code.png b/bn-BD/images/space-repeat-code.png new file mode 100644 index 000000000..9800ca99d Binary files /dev/null and b/bn-BD/images/space-repeat-code.png differ diff --git a/bn-BD/images/space-rock-sprite.png b/bn-BD/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/bn-BD/images/space-rock-sprite.png differ diff --git a/bn-BD/images/space-rotate.png b/bn-BD/images/space-rotate.png new file mode 100644 index 000000000..916fb08f0 Binary files /dev/null and b/bn-BD/images/space-rotate.png differ diff --git a/bn-BD/images/space-size-blocks.png b/bn-BD/images/space-size-blocks.png new file mode 100644 index 000000000..1124075a4 Binary files /dev/null and b/bn-BD/images/space-size-blocks.png differ diff --git a/bn-BD/images/space-size-code.png b/bn-BD/images/space-size-code.png new file mode 100644 index 000000000..14c5d7bcc Binary files /dev/null and b/bn-BD/images/space-size-code.png differ diff --git a/bn-BD/images/space-size-test.png b/bn-BD/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/bn-BD/images/space-size-test.png differ diff --git a/bn-BD/images/space-spin-blocks.png b/bn-BD/images/space-spin-blocks.png new file mode 100644 index 000000000..ca9fd52ee Binary files /dev/null and b/bn-BD/images/space-spin-blocks.png differ diff --git a/bn-BD/images/space-spin-code.png b/bn-BD/images/space-spin-code.png new file mode 100644 index 000000000..8b3b016f9 Binary files /dev/null and b/bn-BD/images/space-spin-code.png differ diff --git a/bn-BD/images/space-spin-test.png b/bn-BD/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/bn-BD/images/space-spin-test.png differ diff --git a/bn-BD/images/space-sprites.png b/bn-BD/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/bn-BD/images/space-sprites.png differ diff --git a/bn-BD/images/space-star-blocks.png b/bn-BD/images/space-star-blocks.png new file mode 100644 index 000000000..f3b9f1e81 Binary files /dev/null and b/bn-BD/images/space-star-blocks.png differ diff --git a/bn-BD/images/space-star-code.png b/bn-BD/images/space-star-code.png new file mode 100644 index 000000000..7097d2e12 Binary files /dev/null and b/bn-BD/images/space-star-code.png differ diff --git a/bn-BD/images/space-star-sprite.png b/bn-BD/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/bn-BD/images/space-star-sprite.png differ diff --git a/bn-BD/images/space-star-test.png b/bn-BD/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/bn-BD/images/space-star-test.png differ diff --git a/bn-BD/images/sprite-earth.png b/bn-BD/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/bn-BD/images/sprite-earth.png differ diff --git a/bn-BD/images/sprite-monkey.png b/bn-BD/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/bn-BD/images/sprite-monkey.png differ diff --git a/bn-BD/images/sprite-rock.png b/bn-BD/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/bn-BD/images/sprite-rock.png differ diff --git a/bn-BD/images/sprite-spaceship.png b/bn-BD/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/bn-BD/images/sprite-spaceship.png differ diff --git a/bn-BD/images/sprite-star.png b/bn-BD/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/bn-BD/images/sprite-star.png differ diff --git a/bn-BD/images/trim_and_tile.sh b/bn-BD/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/bn-BD/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/bn-BD/meta.yml b/bn-BD/meta.yml new file mode 100644 index 000000000..b207a1b45 --- /dev/null +++ b/bn-BD/meta.yml @@ -0,0 +1,35 @@ +--- +title: Lost in space +hero_image: images/lost-in-space.png +description: Learn how to program your own animation! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introduction + - + title: Animating a spaceship + - + title: 'Challenge: improve your animation' + challenge: true + - + title: Animation using loops + completion: + - engaged + - + title: Floating monkey + - + title: Bouncing asteroid + - + title: Shining star + completion: + - internal + - + title: 'Challenge: make your own animation' + challenge: true + - + title: What next? diff --git a/bn-BD/resources/LostinSpace-Finished.sb2 b/bn-BD/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..89753817a Binary files /dev/null and b/bn-BD/resources/LostinSpace-Finished.sb2 differ diff --git a/bn-BD/scratch-translatable.txt b/bn-BD/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/bn-BD/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/bn-BD/solutions/lost-in-space-solution.sb3 b/bn-BD/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/bn-BD/solutions/lost-in-space-solution.sb3 differ diff --git a/bn-BD/step_1.md b/bn-BD/step_1.md new file mode 100644 index 000000000..bc43f86cd --- /dev/null +++ b/bn-BD/step_1.md @@ -0,0 +1,60 @@ +## Introduction + +You are going to learn how to program your own animation! + +### What you will make + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: What you will need + +### Hardware + +- A computer capable of running Scratch 3 + +### Software + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + +- None + +\--- /collapse \--- + +## \--- collapse \--- + +## title: What you will learn + +- Use a repeat loop to animate a sprite in Scratch +- Use a forever loop to repeat an animation indefinitely +- Understand that loops can be nested within each other + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Additional information for educators + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/bn-BD/step_10.md b/bn-BD/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/bn-BD/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/bn-BD/step_2.md b/bn-BD/step_2.md new file mode 100644 index 000000000..cbcdff0c6 --- /dev/null +++ b/bn-BD/step_2.md @@ -0,0 +1,72 @@ +## Animating a spaceship + +Your first step will be to create a spaceship that flies towards the Earth! + +\--- task \--- + +Open a new Scratch project. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** open a new project in the offline editor. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/bn-BD/step_3.md b/bn-BD/step_3.md new file mode 100644 index 000000000..4af9cb400 --- /dev/null +++ b/bn-BD/step_3.md @@ -0,0 +1,16 @@ +## Challenge: improve your animation + +Can you change the numbers in your animation code so that: + ++ The spaceship moves until it touches the Earth? ++ The spaceship moves more slowly towards the Earth? + +You'll need to change the numbers in this block: + +![Rocketship sprite](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/bn-BD/step_4.md b/bn-BD/step_4.md new file mode 100644 index 000000000..0e1397c55 --- /dev/null +++ b/bn-BD/step_4.md @@ -0,0 +1,126 @@ +## Animation using loops + +Another way to animate the spaceship is to tell it to move a small amount many times + +\--- task \--- + +Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testing a spaceship animation](images/space-animate-stage.png) + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Your spaceship should start at `100% size`{:class="blocklooks"}, and then `change size`{:class="blocklooks"} by a small amount each time it moves. + +\--- /hint \--- + +\--- hint \--- + +You will need to add these blocks to your code: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Your code should look like this: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/bn-BD/step_5.md b/bn-BD/step_5.md new file mode 100644 index 000000000..ab4c451b7 --- /dev/null +++ b/bn-BD/step_5.md @@ -0,0 +1,70 @@ +## Floating monkey + +Now you will add a monkey who's lost in space to your animation! + +\--- task \--- + +Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/bn-BD/step_6.md b/bn-BD/step_6.md new file mode 100644 index 000000000..729b6d975 --- /dev/null +++ b/bn-BD/step_6.md @@ -0,0 +1,59 @@ +## Bouncing asteroid + +Now you will add a floating space rock to your animation. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/bn-BD/step_7.md b/bn-BD/step_7.md new file mode 100644 index 000000000..e53504c76 --- /dev/null +++ b/bn-BD/step_7.md @@ -0,0 +1,61 @@ +## Shining star + +Now you will combine loops to make a shining star. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Star sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/bn-BD/step_8.md b/bn-BD/step_8.md new file mode 100644 index 000000000..841b139ec --- /dev/null +++ b/bn-BD/step_8.md @@ -0,0 +1,7 @@ +## Challenge: make your own animation + +Stop your space animation, save it, and start a new Scratch project. + +Use what you've learned in this project to make your own animation. It can be anything you like, but try to make your animation match the background you choose. Here are some examples: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/bn-BD/step_9.md b/bn-BD/step_9.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/bn-BD/step_9.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/bn-IN/images/banner.png b/bn-IN/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/bn-IN/images/banner.png differ diff --git a/bn-IN/images/ghostbusters-static.png b/bn-IN/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/bn-IN/images/ghostbusters-static.png differ diff --git a/bn-IN/images/lost-in-space.png b/bn-IN/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/bn-IN/images/lost-in-space.png differ diff --git a/bn-IN/images/make-white.png b/bn-IN/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/bn-IN/images/make-white.png differ diff --git a/bn-IN/images/montage-1.png b/bn-IN/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/bn-IN/images/montage-1.png differ diff --git a/bn-IN/images/montage-2.png b/bn-IN/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/bn-IN/images/montage-2.png differ diff --git a/bn-IN/images/montage-3.png b/bn-IN/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/bn-IN/images/montage-3.png differ diff --git a/bn-IN/images/showcase_static.png b/bn-IN/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/bn-IN/images/showcase_static.png differ diff --git a/bn-IN/images/space-animate-stage.png b/bn-IN/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/bn-IN/images/space-animate-stage.png differ diff --git a/bn-IN/images/space-backdrop.png b/bn-IN/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/bn-IN/images/space-backdrop.png differ diff --git a/bn-IN/images/space-bounce-test.png b/bn-IN/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/bn-IN/images/space-bounce-test.png differ diff --git a/bn-IN/images/space-colour-test.png b/bn-IN/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/bn-IN/images/space-colour-test.png differ diff --git a/bn-IN/images/space-costume.png b/bn-IN/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/bn-IN/images/space-costume.png differ diff --git a/bn-IN/images/space-egs.png b/bn-IN/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/bn-IN/images/space-egs.png differ diff --git a/bn-IN/images/space-monkey-edit.png b/bn-IN/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/bn-IN/images/space-monkey-edit.png differ diff --git a/bn-IN/images/space-monkey-sprite.png b/bn-IN/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/bn-IN/images/space-monkey-sprite.png differ diff --git a/bn-IN/images/space-rock-sprite.png b/bn-IN/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/bn-IN/images/space-rock-sprite.png differ diff --git a/bn-IN/images/space-rotate.png b/bn-IN/images/space-rotate.png new file mode 100644 index 000000000..957a8cf1d Binary files /dev/null and b/bn-IN/images/space-rotate.png differ diff --git a/bn-IN/images/space-size-test.png b/bn-IN/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/bn-IN/images/space-size-test.png differ diff --git a/bn-IN/images/space-spin-test.png b/bn-IN/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/bn-IN/images/space-spin-test.png differ diff --git a/bn-IN/images/space-sprites.png b/bn-IN/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/bn-IN/images/space-sprites.png differ diff --git a/bn-IN/images/space-star-sprite.png b/bn-IN/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/bn-IN/images/space-star-sprite.png differ diff --git a/bn-IN/images/sprite-earth.png b/bn-IN/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/bn-IN/images/sprite-earth.png differ diff --git a/bn-IN/images/sprite-monkey.png b/bn-IN/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/bn-IN/images/sprite-monkey.png differ diff --git a/bn-IN/images/sprite-rock.png b/bn-IN/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/bn-IN/images/sprite-rock.png differ diff --git a/bn-IN/images/sprite-spaceship.png b/bn-IN/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/bn-IN/images/sprite-spaceship.png differ diff --git a/bn-IN/images/sprite-star.png b/bn-IN/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/bn-IN/images/sprite-star.png differ diff --git a/bn-IN/images/trim_and_tile.sh b/bn-IN/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/bn-IN/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/bn-IN/meta.yml b/bn-IN/meta.yml new file mode 100644 index 000000000..cfc78c2a3 --- /dev/null +++ b/bn-IN/meta.yml @@ -0,0 +1,35 @@ +--- +title: মহাকাশে স্থান হারিয়ে +hero_image: images/lost-in-space.png +description: কীভাবে আপনার নিজের অ্যানিমেশন প্রোগ্রাম করবেন তা শিখুন! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: ভূমিকা + - + title: একটি স্পেসশিপ অ্যানিমেট করা + - + title: 'Challenge: আপনার এনিমেশনের মান উন্নত করুন' + challenge: true + - + title: লুপগুলি ব্যবহার করে অ্যানিমেশন করুন + completion: + - engaged + - + title: ভাসমান বানর + - + title: লাফাচ্ছে এমন গ্রহাণু + - + title: উজ্জ্বল নক্ষত্র + completion: + - internal + - + title: 'Challenge: আপনার নিজের অ্যানিমেশন তৈরি করুন' + challenge: true + - + title: এরপর কি? diff --git a/bn-IN/scratch-translatable.txt b/bn-IN/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/bn-IN/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/bn-IN/solutions/lost-in-space-solution.sb3 b/bn-IN/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/bn-IN/solutions/lost-in-space-solution.sb3 differ diff --git a/bn-IN/step_1.md b/bn-IN/step_1.md new file mode 100644 index 000000000..b03997107 --- /dev/null +++ b/bn-IN/step_1.md @@ -0,0 +1,60 @@ +## ভূমিকা + +You are going to learn how to program your own animation! + +### আপনি যা বানাবেন + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: আপনার যা প্রয়োজন হবে + +### Hardware + +- Scratch 3 চালানোর জন্য সক্ষম একটি কম্পিউটার + +### Software + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + +- কোনটাই নয় + +\--- /collapse \--- + +## \--- collapse \--- + +## title: আপনি যা শিখবেন + +- স্ক্র্যাচে একটি স্প্রিট (sprite) এনিমেট করে বানাতে রিপিট লুপ ব্যবহার করুন +- একটি অ্যানিমেশন অনির্দিষ্টকালের জন্য পুনরাবৃত্তি করতে ফরএভার (forever) লুপ ব্যবহার করুন +- বুঝতে হবে যে লুপগুলি একে অপরের মধ্যে কাজ করতে পারে + +\--- /collapse \--- + +## \--- collapse \--- + +## title: শিক্ষাবিদদের জন্য অতিরিক্ত তথ্য + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/bn-IN/step_2.md b/bn-IN/step_2.md new file mode 100644 index 000000000..6b4bd1f03 --- /dev/null +++ b/bn-IN/step_2.md @@ -0,0 +1,72 @@ +## একটি স্পেসশিপ অ্যানিমেট করে বানানো + +আপনার প্রথম পদক্ষেপটি হলো একটি মহাকাশযান (spaceship) তৈরি করা যা পৃথিবীর দিকে উড়ে আসে! + +\--- task \--- + +একটি নতুন স্ক্র্যাচ প্রকল্প খুলুন।. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** offline editor এ একটি নতুন প্রকল্প খুলুন।. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +আপনার পর্যায়ে 'রকেটশিপ (rocketship)' এবং 'আর্থ (earth)' স্প্রিট (sprite) যুক্ত করুন।. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +পর্যায়ে 'তারার (stars)' পরিপ্রেক্ষিত (backdrop) যুক্ত করুন।. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +আপনার স্পেসশিপ স্প্রাইটে (sprite) ক্লিক করুন এবং **Costumes** এ ক্লিক করুন।. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +** তীরটি ব্যবহার করুন ** পুরো স্পেসশিপ চিত্রের চারপাশে একটি বাক্সে ক্লিক করতে এবং টেনে আনতে। তারপরে বিজ্ঞপ্তি ** ঘোরানোর জায়গায় ক্লিক করে ** চিত্রটিকে নিজের জায়গায় না যাওয়া পর্যন্ত ঘোরান।. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +আপনার মহাকাশযান স্প্রাইটে (sprite) এই কোড যোগ করুন: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +আপনি যে কোড ব্লকগুলি যুক্ত করেছেন তাতে নম্বরগুলি পরিবর্তন করুন যাতে কোডটি ঠিক উপরের মতই হয়।. + +\--- /task \--- + +আপনি যদি সবুজ পতাকাটিতে ক্লিক করেন তবে আপনার মহাকাশযানের কথা বলা, ঘুরে যাওয়া এবং মঞ্চের কেন্দ্রের দিকে সরে যাওয়া উচিত।. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/bn-IN/step_3.md b/bn-IN/step_3.md new file mode 100644 index 000000000..7d8e13345 --- /dev/null +++ b/bn-IN/step_3.md @@ -0,0 +1,16 @@ +## Challenge: আপনার অ্যানিমেশন উন্নত করুন + +আপনি আপনার অ্যানিমেশন কোডটিতে নম্বরগুলি পরিবর্তন করতে পারেন যাতে: + ++ পৃথিবী স্পর্শ না করা অবধি মহাকাশযানটি চলতে থাকে? ++ মহাকাশযানটি আরও ধীরে ধীরে পৃথিবীর দিকে চলে যায়? + +আপনাকে এই ব্লকের নম্বরগুলি পরিবর্তন করতে হবে: + +![Rocketship sprite](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/bn-IN/step_4.md b/bn-IN/step_4.md new file mode 100644 index 000000000..9bc865311 --- /dev/null +++ b/bn-IN/step_4.md @@ -0,0 +1,126 @@ +## লুপগুলি বা loops ব্যবহার করে অ্যানিমেশন করুন + +মহাকাশযান এনিমেট করে বানানোর আরেকটি উপায় হ'ল এটিকে অল্প পরিমাণে অনেকবার স্থানান্তরিত করতে বলা + +\--- task \--- + +`glide`{:class="block3motion"} ব্লকটি আপনার কোড থেকে মুছুন। এটি করার জন্য, কোড অঞ্চলটি থেকে ব্লকটি টানুন এবং অন্যান্য সিঙ্গল কোড ব্লকগুলি যেখানে রয়েছে সেখানে রেখে দিন।. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testing a spaceship animation](images/space-animate-stage.png) + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +পরীক্ষা করে আপনার কোডটি সেভ করুন। আপনার স্পেসশিপটি ঠিক আগের মতো পৃথিবীর দিকে অগ্রসর হওয়া উচিত তবে এবার এটি `repeat`{:class="block3control"} ব্লক ব্যবহার করবে।. + +\--- /task \--- + +\--- task \--- + +এবার আপনার মহাকাশযান স্প্রাইটে কোড যুক্ত করুন যাতে স্পেসশিপ পৃথিবীর দিকে চলে যাওয়ার সাথে সাথে রঙ পরিবর্তন করে? + +এই ব্লকটি ব্যবহার করুন: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +আপনার কোডটি পরীক্ষা করুন এবং সেভ করুন।. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +আপনি কি আপনার মহাকাশযানটি পৃথিবীর দিকে যাওয়ার সাথে সাথে আরও ছোট করে তুলতে পারবেন? + +\--- hints \--- + +\--- hint \--- + +আপনার স্পেসশিপটি `100% size`{:class="blocklooks"} আকারে শুরু হওয়া উচিত এবং তারপরে প্রতিবার যখন সরানো হয় অল্প পরিমাণে `change size`{:class="blocklooks"} করে আকার পরিবর্তন করুন।. + +\--- /hint \--- + +\--- hint \--- + +আপনার কোডগুলিতে আপনাকে এই ব্লকগুলি যুক্ত করতে হবে: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +আপনার কোডটি দেখতে এমন হওয়া উচিত: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +আপনার কোডটি পরীক্ষা করুন এবং সেভ করুন। আপনার স্পেসশিপটি চলার সাথে সাথে এখন আরও ছোট হওয়া উচিত। আপনার মহাকাশযানটি **second time** পরীক্ষা করুন। শুরু হওয়ার সাথে সাথে কি এটি সঠিক আকারে আছে? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/bn-IN/step_5.md b/bn-IN/step_5.md new file mode 100644 index 000000000..2ac416298 --- /dev/null +++ b/bn-IN/step_5.md @@ -0,0 +1,70 @@ +## ভাসমান বানর + +এখন আপনি আপনার অ্যানিমেশনে মহাকাশে হারিয়ে যাওয়া একটি বানর যুক্ত করবেন! + +\--- task \--- + +লাইব্রেরী থেকে 'বানর' বা monkey sprite যুক্ত করে শুরু করুন।. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +আপনার নতুন বানরের sprite ক্লিক করুন এবং তারপরে **Costumes** এ ক্লিক করুন যাতে আপনি বানরটি দেখতে কেমন হবে তা নির্ধারণ করতে পারেন।. + +\--- task \--- + +লাল রেখা নির্বাচন করে স্বচ্ছতা নির্ধারণ করুন। রূপরেখার জন্য, স্যাচুরেশন স্লাইডারটিকে `0` এ সরিয়ে একটি সাদা রঙ সেট করুন।. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +**circle** এ ক্লিক করুন এবং তারপরে বানরের মাথার চারপাশে একটি সাদা স্পেস হেলমেট আঁকতে এটি ব্যবহার করুন।. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +আপনি কি আপনার বানরের sprite এ কোড যুক্ত করতে পারেন যাতে এটি চিরতরে আস্তে আস্তে বৃত্তাকারে ঘুরতে থাকে? + +\--- hints \--- \--- hint \--- + +সবুজ পতাকা **ক্লিক করা হলে**, আপনার বানরের স্প্রাইটটি **চিরকাল** চক্রাকারে **ঘুরবে**।. + +\--- /hint \--- \--- hint \--- + +আপনার প্রয়োজনীয় কোডগুলি এখানে রইল: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +আপনার বানরকে ঘুরিয়ে দেওয়ার কোডটি এখানে: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +আপনার প্রকল্পটি পরীক্ষা করুন এবং সেভ করুন। এই অ্যানিমেশনটি শেষ করতে আপনাকে লাল **stop** বাটনে ক্লিক করতে হবে যেহেতু এটি চিরকাল চলবে! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/bn-IN/step_6.md b/bn-IN/step_6.md new file mode 100644 index 000000000..24c8e1a20 --- /dev/null +++ b/bn-IN/step_6.md @@ -0,0 +1,59 @@ +## লাফাচ্ছে এমন গ্রহাণু + +এখন আপনি আপনার অ্যানিমেশনে একটি ভাসমান মহাজাগতিক প্রস্তরখন্ড যুক্ত করবেন।. + +\--- task \--- + +আপনার অ্যানিমেশনে একটি প্রস্তর sprite যোগ করুন।. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +আপনি কি আপনার প্রস্তর spriteর জন্য কোড যুক্ত করতে পারেন যাতে মঞ্চের চারপাশে প্রস্থরটি লাফাতে থাকে? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +যখন সবুজ ** পতাকা ক্লিক করা হয় **, আপনার প্রস্তর sprite টির ** সরে ** যাওয়া উচিত এবং মঞ্চের চারপাশে ** চিরকাল ** ** লাফাতে থাকা ** উচিত।. + +\--- /hint \--- \--- hint \--- + +আপনার প্রয়োজনীয় কোডগুলি এখানে রইল: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +আপনি এই ব্লকগুলির মধ্যে একটি দিয়ে প্রস্তর sprite র জন্য আরও আকর্ষণীয় শুরু করার দিকনির্দেশটি সেট করতে পারেন: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +মঞ্চটি ঘিরে আপনার প্রস্তরটি যাতে লাফাতে থাকে তার কোড এখানে: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/bn-IN/step_7.md b/bn-IN/step_7.md new file mode 100644 index 000000000..b5f876309 --- /dev/null +++ b/bn-IN/step_7.md @@ -0,0 +1,61 @@ +## উজ্জ্বল নক্ষত্র + +এখন আপনি একটি উজ্জ্বল নক্ষত্র তৈরি করতে লুপগুলি একত্রিত করবেন।. + +\--- task \--- + +মঞ্চে একটি নক্ষত্র sprite যোগ করুন।. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +নক্ষত্রের বারবার বৃদ্ধি এবং সংকোচন করার জন্য আপনি কি আপনার নক্ষত্রের sprite টিতে কোড যুক্ত করতে পারেন? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +যখন সবুজ ** পতাকা ক্লিক করা হবে**, তখন আপনার নক্ষত্র sprite এর ** আকার পরিবর্তন হয়ে ** কয়েকবার বড় হবে এবং তারপরে কয়েকবার ** আকার পরিবর্তন হয়ে** ছোট হবে।. এটি এমনটি করা উচিত যাতে এটি আরও বড় হয় এবং তারপরে চিরকালের জন্য ** ছোট হয় **, দেখে মনে হবে এটি জ্বলজ্বল করছে।. + +\--- /hint \--- \--- hint \--- + +আপনার প্রয়োজনীয় কোডগুলি এখানে রইল: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +আপনার নক্ষত্রের বৃদ্ধি এবং সংকোচন করার জন্য এখানে কোড দেওয়া হয়েছে: + +![Star sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/bn-IN/step_8.md b/bn-IN/step_8.md new file mode 100644 index 000000000..7edf06ff4 --- /dev/null +++ b/bn-IN/step_8.md @@ -0,0 +1,7 @@ +## Challenge: আপনার নিজের অ্যানিমেশন তৈরি করুন + +আপনার মহাকাশ অ্যানিমেশন বন্ধ করুন, এটি সেভ করুন এবং একটি নতুন scratch প্রকল্প শুরু করুন।. + +আপনার নিজের অ্যানিমেশন তৈরি করতে এই প্রকল্পে আপনি যা শিখেছেন তা ব্যবহার করুন। এটি আপনার পছন্দমতো যে কোন কিছু হতে পারে তবে আপনার অ্যানিমেশনটি আপনার বাছাই করা পটভূমির/background এর সাথে মিলিয়ে দেওয়ার চেষ্টা করুন। এখানে কিছু উদাহরন দেওয়া হলো: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/bn-IN/step_9.md b/bn-IN/step_9.md new file mode 100644 index 000000000..811a979d3 --- /dev/null +++ b/bn-IN/step_9.md @@ -0,0 +1,18 @@ +## এরপর কি? + +[Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) প্রকল্প ব্যবহার করে দেখুন! এই প্রকল্পে আপনি শিখবেন কীভাবে ভূতদের একটি গেম তৈরি করা যায় যা পুরো জায়গা জুড়ে প্রদর্শিত হবে এবং সেগুলো আপনাকে ধরতে হবে।. আপনি খেলায় কীভাবে একটি সময় নির্ণায়ক পদ্ধতি/timer এবং স্কোর যুক্ত করবেন তাও শিখবেন, যাতে আপনি কতটা ভূতকে ধরতে সক্ষম তা দেখতে পান।. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/ca-ES/images/banner.png b/ca-ES/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/ca-ES/images/banner.png differ diff --git a/ca-ES/images/ghostbusters-static.png b/ca-ES/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/ca-ES/images/ghostbusters-static.png differ diff --git a/ca-ES/images/lost-in-space.png b/ca-ES/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/ca-ES/images/lost-in-space.png differ diff --git a/ca-ES/images/make-white.png b/ca-ES/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/ca-ES/images/make-white.png differ diff --git a/ca-ES/images/montage-1.png b/ca-ES/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/ca-ES/images/montage-1.png differ diff --git a/ca-ES/images/montage-2.png b/ca-ES/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/ca-ES/images/montage-2.png differ diff --git a/ca-ES/images/montage-3.png b/ca-ES/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/ca-ES/images/montage-3.png differ diff --git a/ca-ES/images/showcase_static.png b/ca-ES/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/ca-ES/images/showcase_static.png differ diff --git a/ca-ES/images/space-animate-stage.png b/ca-ES/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/ca-ES/images/space-animate-stage.png differ diff --git a/ca-ES/images/space-animate.png b/ca-ES/images/space-animate.png new file mode 100644 index 000000000..46a5038ab Binary files /dev/null and b/ca-ES/images/space-animate.png differ diff --git a/ca-ES/images/space-backdrop.png b/ca-ES/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/ca-ES/images/space-backdrop.png differ diff --git a/ca-ES/images/space-bounce-blocks.png b/ca-ES/images/space-bounce-blocks.png new file mode 100644 index 000000000..9294bb7f7 Binary files /dev/null and b/ca-ES/images/space-bounce-blocks.png differ diff --git a/ca-ES/images/space-bounce-code.png b/ca-ES/images/space-bounce-code.png new file mode 100644 index 000000000..e8791d62f Binary files /dev/null and b/ca-ES/images/space-bounce-code.png differ diff --git a/ca-ES/images/space-bounce-test.png b/ca-ES/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/ca-ES/images/space-bounce-test.png differ diff --git a/ca-ES/images/space-colour-blocks.png b/ca-ES/images/space-colour-blocks.png new file mode 100644 index 000000000..54461788b Binary files /dev/null and b/ca-ES/images/space-colour-blocks.png differ diff --git a/ca-ES/images/space-colour-code.png b/ca-ES/images/space-colour-code.png new file mode 100644 index 000000000..8afbd513d Binary files /dev/null and b/ca-ES/images/space-colour-code.png differ diff --git a/ca-ES/images/space-colour-test.png b/ca-ES/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/ca-ES/images/space-colour-test.png differ diff --git a/ca-ES/images/space-costume.png b/ca-ES/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/ca-ES/images/space-costume.png differ diff --git a/ca-ES/images/space-delete-glide.png b/ca-ES/images/space-delete-glide.png new file mode 100644 index 000000000..1d6fe71a9 Binary files /dev/null and b/ca-ES/images/space-delete-glide.png differ diff --git a/ca-ES/images/space-egs.png b/ca-ES/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/ca-ES/images/space-egs.png differ diff --git a/ca-ES/images/space-glide.png b/ca-ES/images/space-glide.png new file mode 100644 index 000000000..c04d7bfa9 Binary files /dev/null and b/ca-ES/images/space-glide.png differ diff --git a/ca-ES/images/space-initial-position.png b/ca-ES/images/space-initial-position.png new file mode 100644 index 000000000..260fa4f54 Binary files /dev/null and b/ca-ES/images/space-initial-position.png differ diff --git a/ca-ES/images/space-monkey-edit.png b/ca-ES/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/ca-ES/images/space-monkey-edit.png differ diff --git a/ca-ES/images/space-monkey-sprite.png b/ca-ES/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/ca-ES/images/space-monkey-sprite.png differ diff --git a/ca-ES/images/space-repeat-blocks.png b/ca-ES/images/space-repeat-blocks.png new file mode 100644 index 000000000..287663af6 Binary files /dev/null and b/ca-ES/images/space-repeat-blocks.png differ diff --git a/ca-ES/images/space-repeat-code.png b/ca-ES/images/space-repeat-code.png new file mode 100644 index 000000000..9800ca99d Binary files /dev/null and b/ca-ES/images/space-repeat-code.png differ diff --git a/ca-ES/images/space-rock-sprite.png b/ca-ES/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/ca-ES/images/space-rock-sprite.png differ diff --git a/ca-ES/images/space-rotate.png b/ca-ES/images/space-rotate.png new file mode 100644 index 000000000..916fb08f0 Binary files /dev/null and b/ca-ES/images/space-rotate.png differ diff --git a/ca-ES/images/space-size-blocks.png b/ca-ES/images/space-size-blocks.png new file mode 100644 index 000000000..1124075a4 Binary files /dev/null and b/ca-ES/images/space-size-blocks.png differ diff --git a/ca-ES/images/space-size-code.png b/ca-ES/images/space-size-code.png new file mode 100644 index 000000000..14c5d7bcc Binary files /dev/null and b/ca-ES/images/space-size-code.png differ diff --git a/ca-ES/images/space-size-test.png b/ca-ES/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/ca-ES/images/space-size-test.png differ diff --git a/ca-ES/images/space-spin-blocks.png b/ca-ES/images/space-spin-blocks.png new file mode 100644 index 000000000..ca9fd52ee Binary files /dev/null and b/ca-ES/images/space-spin-blocks.png differ diff --git a/ca-ES/images/space-spin-code.png b/ca-ES/images/space-spin-code.png new file mode 100644 index 000000000..8b3b016f9 Binary files /dev/null and b/ca-ES/images/space-spin-code.png differ diff --git a/ca-ES/images/space-spin-test.png b/ca-ES/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/ca-ES/images/space-spin-test.png differ diff --git a/ca-ES/images/space-sprites.png b/ca-ES/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/ca-ES/images/space-sprites.png differ diff --git a/ca-ES/images/space-star-blocks.png b/ca-ES/images/space-star-blocks.png new file mode 100644 index 000000000..f3b9f1e81 Binary files /dev/null and b/ca-ES/images/space-star-blocks.png differ diff --git a/ca-ES/images/space-star-code.png b/ca-ES/images/space-star-code.png new file mode 100644 index 000000000..7097d2e12 Binary files /dev/null and b/ca-ES/images/space-star-code.png differ diff --git a/ca-ES/images/space-star-sprite.png b/ca-ES/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/ca-ES/images/space-star-sprite.png differ diff --git a/ca-ES/images/space-star-test.png b/ca-ES/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/ca-ES/images/space-star-test.png differ diff --git a/ca-ES/images/sprite-earth.png b/ca-ES/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/ca-ES/images/sprite-earth.png differ diff --git a/ca-ES/images/sprite-monkey.png b/ca-ES/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/ca-ES/images/sprite-monkey.png differ diff --git a/ca-ES/images/sprite-rock.png b/ca-ES/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/ca-ES/images/sprite-rock.png differ diff --git a/ca-ES/images/sprite-spaceship.png b/ca-ES/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/ca-ES/images/sprite-spaceship.png differ diff --git a/ca-ES/images/sprite-star.png b/ca-ES/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/ca-ES/images/sprite-star.png differ diff --git a/ca-ES/images/trim_and_tile.sh b/ca-ES/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/ca-ES/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/ca-ES/meta.yml b/ca-ES/meta.yml new file mode 100644 index 000000000..b207a1b45 --- /dev/null +++ b/ca-ES/meta.yml @@ -0,0 +1,35 @@ +--- +title: Lost in space +hero_image: images/lost-in-space.png +description: Learn how to program your own animation! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introduction + - + title: Animating a spaceship + - + title: 'Challenge: improve your animation' + challenge: true + - + title: Animation using loops + completion: + - engaged + - + title: Floating monkey + - + title: Bouncing asteroid + - + title: Shining star + completion: + - internal + - + title: 'Challenge: make your own animation' + challenge: true + - + title: What next? diff --git a/ca-ES/resources/LostinSpace-Finished.sb2 b/ca-ES/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..89753817a Binary files /dev/null and b/ca-ES/resources/LostinSpace-Finished.sb2 differ diff --git a/ca-ES/scratch-translatable.txt b/ca-ES/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/ca-ES/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/ca-ES/solutions/lost-in-space-solution.sb3 b/ca-ES/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/ca-ES/solutions/lost-in-space-solution.sb3 differ diff --git a/ca-ES/step_1.md b/ca-ES/step_1.md new file mode 100644 index 000000000..bc43f86cd --- /dev/null +++ b/ca-ES/step_1.md @@ -0,0 +1,60 @@ +## Introduction + +You are going to learn how to program your own animation! + +### What you will make + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: What you will need + +### Hardware + +- A computer capable of running Scratch 3 + +### Software + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + +- None + +\--- /collapse \--- + +## \--- collapse \--- + +## title: What you will learn + +- Use a repeat loop to animate a sprite in Scratch +- Use a forever loop to repeat an animation indefinitely +- Understand that loops can be nested within each other + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Additional information for educators + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/ca-ES/step_10.md b/ca-ES/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/ca-ES/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/ca-ES/step_2.md b/ca-ES/step_2.md new file mode 100644 index 000000000..cbcdff0c6 --- /dev/null +++ b/ca-ES/step_2.md @@ -0,0 +1,72 @@ +## Animating a spaceship + +Your first step will be to create a spaceship that flies towards the Earth! + +\--- task \--- + +Open a new Scratch project. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** open a new project in the offline editor. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/ca-ES/step_3.md b/ca-ES/step_3.md new file mode 100644 index 000000000..4af9cb400 --- /dev/null +++ b/ca-ES/step_3.md @@ -0,0 +1,16 @@ +## Challenge: improve your animation + +Can you change the numbers in your animation code so that: + ++ The spaceship moves until it touches the Earth? ++ The spaceship moves more slowly towards the Earth? + +You'll need to change the numbers in this block: + +![Rocketship sprite](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/ca-ES/step_4.md b/ca-ES/step_4.md new file mode 100644 index 000000000..0e1397c55 --- /dev/null +++ b/ca-ES/step_4.md @@ -0,0 +1,126 @@ +## Animation using loops + +Another way to animate the spaceship is to tell it to move a small amount many times + +\--- task \--- + +Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testing a spaceship animation](images/space-animate-stage.png) + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Your spaceship should start at `100% size`{:class="blocklooks"}, and then `change size`{:class="blocklooks"} by a small amount each time it moves. + +\--- /hint \--- + +\--- hint \--- + +You will need to add these blocks to your code: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Your code should look like this: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/ca-ES/step_5.md b/ca-ES/step_5.md new file mode 100644 index 000000000..ab4c451b7 --- /dev/null +++ b/ca-ES/step_5.md @@ -0,0 +1,70 @@ +## Floating monkey + +Now you will add a monkey who's lost in space to your animation! + +\--- task \--- + +Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/ca-ES/step_6.md b/ca-ES/step_6.md new file mode 100644 index 000000000..729b6d975 --- /dev/null +++ b/ca-ES/step_6.md @@ -0,0 +1,59 @@ +## Bouncing asteroid + +Now you will add a floating space rock to your animation. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/ca-ES/step_7.md b/ca-ES/step_7.md new file mode 100644 index 000000000..e53504c76 --- /dev/null +++ b/ca-ES/step_7.md @@ -0,0 +1,61 @@ +## Shining star + +Now you will combine loops to make a shining star. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Star sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/ca-ES/step_8.md b/ca-ES/step_8.md new file mode 100644 index 000000000..841b139ec --- /dev/null +++ b/ca-ES/step_8.md @@ -0,0 +1,7 @@ +## Challenge: make your own animation + +Stop your space animation, save it, and start a new Scratch project. + +Use what you've learned in this project to make your own animation. It can be anything you like, but try to make your animation match the background you choose. Here are some examples: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/ca-ES/step_9.md b/ca-ES/step_9.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/ca-ES/step_9.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/cs-CZ/images/banner.png b/cs-CZ/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/cs-CZ/images/banner.png differ diff --git a/cs-CZ/images/ghostbusters-static.png b/cs-CZ/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/cs-CZ/images/ghostbusters-static.png differ diff --git a/cs-CZ/images/lost-in-space.png b/cs-CZ/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/cs-CZ/images/lost-in-space.png differ diff --git a/cs-CZ/images/make-white.png b/cs-CZ/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/cs-CZ/images/make-white.png differ diff --git a/cs-CZ/images/montage-1.png b/cs-CZ/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/cs-CZ/images/montage-1.png differ diff --git a/cs-CZ/images/montage-2.png b/cs-CZ/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/cs-CZ/images/montage-2.png differ diff --git a/cs-CZ/images/montage-3.png b/cs-CZ/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/cs-CZ/images/montage-3.png differ diff --git a/cs-CZ/images/showcase_static.png b/cs-CZ/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/cs-CZ/images/showcase_static.png differ diff --git a/cs-CZ/images/space-animate-stage.png b/cs-CZ/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/cs-CZ/images/space-animate-stage.png differ diff --git a/cs-CZ/images/space-animate.png b/cs-CZ/images/space-animate.png new file mode 100644 index 000000000..46a5038ab Binary files /dev/null and b/cs-CZ/images/space-animate.png differ diff --git a/cs-CZ/images/space-backdrop.png b/cs-CZ/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/cs-CZ/images/space-backdrop.png differ diff --git a/cs-CZ/images/space-bounce-blocks.png b/cs-CZ/images/space-bounce-blocks.png new file mode 100644 index 000000000..9294bb7f7 Binary files /dev/null and b/cs-CZ/images/space-bounce-blocks.png differ diff --git a/cs-CZ/images/space-bounce-code.png b/cs-CZ/images/space-bounce-code.png new file mode 100644 index 000000000..e8791d62f Binary files /dev/null and b/cs-CZ/images/space-bounce-code.png differ diff --git a/cs-CZ/images/space-bounce-test.png b/cs-CZ/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/cs-CZ/images/space-bounce-test.png differ diff --git a/cs-CZ/images/space-colour-blocks.png b/cs-CZ/images/space-colour-blocks.png new file mode 100644 index 000000000..54461788b Binary files /dev/null and b/cs-CZ/images/space-colour-blocks.png differ diff --git a/cs-CZ/images/space-colour-code.png b/cs-CZ/images/space-colour-code.png new file mode 100644 index 000000000..8afbd513d Binary files /dev/null and b/cs-CZ/images/space-colour-code.png differ diff --git a/cs-CZ/images/space-colour-test.png b/cs-CZ/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/cs-CZ/images/space-colour-test.png differ diff --git a/cs-CZ/images/space-costume.png b/cs-CZ/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/cs-CZ/images/space-costume.png differ diff --git a/cs-CZ/images/space-delete-glide.png b/cs-CZ/images/space-delete-glide.png new file mode 100644 index 000000000..1d6fe71a9 Binary files /dev/null and b/cs-CZ/images/space-delete-glide.png differ diff --git a/cs-CZ/images/space-egs.png b/cs-CZ/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/cs-CZ/images/space-egs.png differ diff --git a/cs-CZ/images/space-glide.png b/cs-CZ/images/space-glide.png new file mode 100644 index 000000000..c04d7bfa9 Binary files /dev/null and b/cs-CZ/images/space-glide.png differ diff --git a/cs-CZ/images/space-initial-position.png b/cs-CZ/images/space-initial-position.png new file mode 100644 index 000000000..260fa4f54 Binary files /dev/null and b/cs-CZ/images/space-initial-position.png differ diff --git a/cs-CZ/images/space-monkey-edit.png b/cs-CZ/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/cs-CZ/images/space-monkey-edit.png differ diff --git a/cs-CZ/images/space-monkey-sprite.png b/cs-CZ/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/cs-CZ/images/space-monkey-sprite.png differ diff --git a/cs-CZ/images/space-repeat-blocks.png b/cs-CZ/images/space-repeat-blocks.png new file mode 100644 index 000000000..287663af6 Binary files /dev/null and b/cs-CZ/images/space-repeat-blocks.png differ diff --git a/cs-CZ/images/space-repeat-code.png b/cs-CZ/images/space-repeat-code.png new file mode 100644 index 000000000..9800ca99d Binary files /dev/null and b/cs-CZ/images/space-repeat-code.png differ diff --git a/cs-CZ/images/space-rock-sprite.png b/cs-CZ/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/cs-CZ/images/space-rock-sprite.png differ diff --git a/cs-CZ/images/space-rotate.png b/cs-CZ/images/space-rotate.png new file mode 100644 index 000000000..916fb08f0 Binary files /dev/null and b/cs-CZ/images/space-rotate.png differ diff --git a/cs-CZ/images/space-size-blocks.png b/cs-CZ/images/space-size-blocks.png new file mode 100644 index 000000000..1124075a4 Binary files /dev/null and b/cs-CZ/images/space-size-blocks.png differ diff --git a/cs-CZ/images/space-size-code.png b/cs-CZ/images/space-size-code.png new file mode 100644 index 000000000..14c5d7bcc Binary files /dev/null and b/cs-CZ/images/space-size-code.png differ diff --git a/cs-CZ/images/space-size-test.png b/cs-CZ/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/cs-CZ/images/space-size-test.png differ diff --git a/cs-CZ/images/space-spin-blocks.png b/cs-CZ/images/space-spin-blocks.png new file mode 100644 index 000000000..ca9fd52ee Binary files /dev/null and b/cs-CZ/images/space-spin-blocks.png differ diff --git a/cs-CZ/images/space-spin-code.png b/cs-CZ/images/space-spin-code.png new file mode 100644 index 000000000..8b3b016f9 Binary files /dev/null and b/cs-CZ/images/space-spin-code.png differ diff --git a/cs-CZ/images/space-spin-test.png b/cs-CZ/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/cs-CZ/images/space-spin-test.png differ diff --git a/cs-CZ/images/space-sprites.png b/cs-CZ/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/cs-CZ/images/space-sprites.png differ diff --git a/cs-CZ/images/space-star-blocks.png b/cs-CZ/images/space-star-blocks.png new file mode 100644 index 000000000..f3b9f1e81 Binary files /dev/null and b/cs-CZ/images/space-star-blocks.png differ diff --git a/cs-CZ/images/space-star-code.png b/cs-CZ/images/space-star-code.png new file mode 100644 index 000000000..7097d2e12 Binary files /dev/null and b/cs-CZ/images/space-star-code.png differ diff --git a/cs-CZ/images/space-star-sprite.png b/cs-CZ/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/cs-CZ/images/space-star-sprite.png differ diff --git a/cs-CZ/images/space-star-test.png b/cs-CZ/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/cs-CZ/images/space-star-test.png differ diff --git a/cs-CZ/images/sprite-earth.png b/cs-CZ/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/cs-CZ/images/sprite-earth.png differ diff --git a/cs-CZ/images/sprite-monkey.png b/cs-CZ/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/cs-CZ/images/sprite-monkey.png differ diff --git a/cs-CZ/images/sprite-rock.png b/cs-CZ/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/cs-CZ/images/sprite-rock.png differ diff --git a/cs-CZ/images/sprite-spaceship.png b/cs-CZ/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/cs-CZ/images/sprite-spaceship.png differ diff --git a/cs-CZ/images/sprite-star.png b/cs-CZ/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/cs-CZ/images/sprite-star.png differ diff --git a/cs-CZ/images/trim_and_tile.sh b/cs-CZ/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/cs-CZ/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/cs-CZ/meta.yml b/cs-CZ/meta.yml new file mode 100644 index 000000000..b207a1b45 --- /dev/null +++ b/cs-CZ/meta.yml @@ -0,0 +1,35 @@ +--- +title: Lost in space +hero_image: images/lost-in-space.png +description: Learn how to program your own animation! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introduction + - + title: Animating a spaceship + - + title: 'Challenge: improve your animation' + challenge: true + - + title: Animation using loops + completion: + - engaged + - + title: Floating monkey + - + title: Bouncing asteroid + - + title: Shining star + completion: + - internal + - + title: 'Challenge: make your own animation' + challenge: true + - + title: What next? diff --git a/cs-CZ/resources/LostinSpace-Finished.sb2 b/cs-CZ/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..89753817a Binary files /dev/null and b/cs-CZ/resources/LostinSpace-Finished.sb2 differ diff --git a/cs-CZ/scratch-translatable.txt b/cs-CZ/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/cs-CZ/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/cs-CZ/solutions/lost-in-space-solution.sb3 b/cs-CZ/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/cs-CZ/solutions/lost-in-space-solution.sb3 differ diff --git a/cs-CZ/step_1.md b/cs-CZ/step_1.md new file mode 100644 index 000000000..bc43f86cd --- /dev/null +++ b/cs-CZ/step_1.md @@ -0,0 +1,60 @@ +## Introduction + +You are going to learn how to program your own animation! + +### What you will make + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: What you will need + +### Hardware + +- A computer capable of running Scratch 3 + +### Software + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + +- None + +\--- /collapse \--- + +## \--- collapse \--- + +## title: What you will learn + +- Use a repeat loop to animate a sprite in Scratch +- Use a forever loop to repeat an animation indefinitely +- Understand that loops can be nested within each other + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Additional information for educators + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/cs-CZ/step_10.md b/cs-CZ/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/cs-CZ/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/cs-CZ/step_2.md b/cs-CZ/step_2.md new file mode 100644 index 000000000..cbcdff0c6 --- /dev/null +++ b/cs-CZ/step_2.md @@ -0,0 +1,72 @@ +## Animating a spaceship + +Your first step will be to create a spaceship that flies towards the Earth! + +\--- task \--- + +Open a new Scratch project. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** open a new project in the offline editor. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/cs-CZ/step_3.md b/cs-CZ/step_3.md new file mode 100644 index 000000000..4af9cb400 --- /dev/null +++ b/cs-CZ/step_3.md @@ -0,0 +1,16 @@ +## Challenge: improve your animation + +Can you change the numbers in your animation code so that: + ++ The spaceship moves until it touches the Earth? ++ The spaceship moves more slowly towards the Earth? + +You'll need to change the numbers in this block: + +![Rocketship sprite](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/cs-CZ/step_4.md b/cs-CZ/step_4.md new file mode 100644 index 000000000..0e1397c55 --- /dev/null +++ b/cs-CZ/step_4.md @@ -0,0 +1,126 @@ +## Animation using loops + +Another way to animate the spaceship is to tell it to move a small amount many times + +\--- task \--- + +Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testing a spaceship animation](images/space-animate-stage.png) + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Your spaceship should start at `100% size`{:class="blocklooks"}, and then `change size`{:class="blocklooks"} by a small amount each time it moves. + +\--- /hint \--- + +\--- hint \--- + +You will need to add these blocks to your code: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Your code should look like this: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/cs-CZ/step_5.md b/cs-CZ/step_5.md new file mode 100644 index 000000000..ab4c451b7 --- /dev/null +++ b/cs-CZ/step_5.md @@ -0,0 +1,70 @@ +## Floating monkey + +Now you will add a monkey who's lost in space to your animation! + +\--- task \--- + +Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/cs-CZ/step_6.md b/cs-CZ/step_6.md new file mode 100644 index 000000000..729b6d975 --- /dev/null +++ b/cs-CZ/step_6.md @@ -0,0 +1,59 @@ +## Bouncing asteroid + +Now you will add a floating space rock to your animation. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/cs-CZ/step_7.md b/cs-CZ/step_7.md new file mode 100644 index 000000000..e53504c76 --- /dev/null +++ b/cs-CZ/step_7.md @@ -0,0 +1,61 @@ +## Shining star + +Now you will combine loops to make a shining star. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Star sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/cs-CZ/step_8.md b/cs-CZ/step_8.md new file mode 100644 index 000000000..841b139ec --- /dev/null +++ b/cs-CZ/step_8.md @@ -0,0 +1,7 @@ +## Challenge: make your own animation + +Stop your space animation, save it, and start a new Scratch project. + +Use what you've learned in this project to make your own animation. It can be anything you like, but try to make your animation match the background you choose. Here are some examples: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/cs-CZ/step_9.md b/cs-CZ/step_9.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/cs-CZ/step_9.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/cy-GB/images/banner.png b/cy-GB/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/cy-GB/images/banner.png differ diff --git a/cy-GB/images/ghostbusters-static.png b/cy-GB/images/ghostbusters-static.png new file mode 100644 index 000000000..f97e4b114 Binary files /dev/null and b/cy-GB/images/ghostbusters-static.png differ diff --git a/cy-GB/images/lost-in-space.png b/cy-GB/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/cy-GB/images/lost-in-space.png differ diff --git a/cy-GB/images/make-white.png b/cy-GB/images/make-white.png new file mode 100644 index 000000000..da844ad7c Binary files /dev/null and b/cy-GB/images/make-white.png differ diff --git a/cy-GB/images/montage-1.png b/cy-GB/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/cy-GB/images/montage-1.png differ diff --git a/cy-GB/images/montage-2.png b/cy-GB/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/cy-GB/images/montage-2.png differ diff --git a/cy-GB/images/montage-3.png b/cy-GB/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/cy-GB/images/montage-3.png differ diff --git a/cy-GB/images/showcase_static.png b/cy-GB/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/cy-GB/images/showcase_static.png differ diff --git a/cy-GB/images/space-animate-stage.png b/cy-GB/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/cy-GB/images/space-animate-stage.png differ diff --git a/cy-GB/images/space-backdrop.png b/cy-GB/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/cy-GB/images/space-backdrop.png differ diff --git a/cy-GB/images/space-bounce-test.png b/cy-GB/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/cy-GB/images/space-bounce-test.png differ diff --git a/cy-GB/images/space-colour-test.png b/cy-GB/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/cy-GB/images/space-colour-test.png differ diff --git a/cy-GB/images/space-costume.png b/cy-GB/images/space-costume.png new file mode 100644 index 000000000..c89f60af6 Binary files /dev/null and b/cy-GB/images/space-costume.png differ diff --git a/cy-GB/images/space-egs.png b/cy-GB/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/cy-GB/images/space-egs.png differ diff --git a/cy-GB/images/space-monkey-edit.png b/cy-GB/images/space-monkey-edit.png new file mode 100644 index 000000000..1e8ba4848 Binary files /dev/null and b/cy-GB/images/space-monkey-edit.png differ diff --git a/cy-GB/images/space-monkey-sprite.png b/cy-GB/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/cy-GB/images/space-monkey-sprite.png differ diff --git a/cy-GB/images/space-rock-sprite.png b/cy-GB/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/cy-GB/images/space-rock-sprite.png differ diff --git a/cy-GB/images/space-rotate.png b/cy-GB/images/space-rotate.png new file mode 100644 index 000000000..3e8942b21 Binary files /dev/null and b/cy-GB/images/space-rotate.png differ diff --git a/cy-GB/images/space-size-test.png b/cy-GB/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/cy-GB/images/space-size-test.png differ diff --git a/cy-GB/images/space-spin-test.png b/cy-GB/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/cy-GB/images/space-spin-test.png differ diff --git a/cy-GB/images/space-sprites.png b/cy-GB/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/cy-GB/images/space-sprites.png differ diff --git a/cy-GB/images/space-star-sprite.png b/cy-GB/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/cy-GB/images/space-star-sprite.png differ diff --git a/cy-GB/images/sprite-earth.png b/cy-GB/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/cy-GB/images/sprite-earth.png differ diff --git a/cy-GB/images/sprite-monkey.png b/cy-GB/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/cy-GB/images/sprite-monkey.png differ diff --git a/cy-GB/images/sprite-rock.png b/cy-GB/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/cy-GB/images/sprite-rock.png differ diff --git a/cy-GB/images/sprite-spaceship.png b/cy-GB/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/cy-GB/images/sprite-spaceship.png differ diff --git a/cy-GB/images/sprite-star.png b/cy-GB/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/cy-GB/images/sprite-star.png differ diff --git a/cy-GB/images/trim_and_tile.sh b/cy-GB/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/cy-GB/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/cy-GB/meta.yml b/cy-GB/meta.yml new file mode 100644 index 000000000..64f327855 --- /dev/null +++ b/cy-GB/meta.yml @@ -0,0 +1,35 @@ +--- +title: Ar goll yn y gofod +hero_image: images/lost-in-space.png +description: Dysga sut i raglenni dy animeiddiad dy hunan! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Cyflwyniad + - + title: Animeiddio llong ofod + - + title: 'Her: Perffeithio dy animeiddiad' + challenge: true + - + title: Animeiddio yn defnyddio dolennu + completion: + - engaged + - + title: Mwnci yn arnofio + - + title: Asteroid Sbonciog + - + title: Sêr disglair + completion: + - internal + - + title: 'Her: gwneud dy animeiddiad dy hunan' + challenge: true + - + title: Beth nesaf? diff --git a/cy-GB/scratch-translatable.txt b/cy-GB/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/cy-GB/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/cy-GB/solutions/lost-in-space-solution.sb3 b/cy-GB/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..d6a1e28b0 Binary files /dev/null and b/cy-GB/solutions/lost-in-space-solution.sb3 differ diff --git a/cy-GB/step_1.md b/cy-GB/step_1.md new file mode 100644 index 000000000..c3b9e242e --- /dev/null +++ b/cy-GB/step_1.md @@ -0,0 +1,60 @@ +## Cyflwyniad + +You are going to learn how to program your own animation! + +### Yr hyn byddi di'n ei greu + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: Beth fydd ei angen arno ti + +### Caledwedd + +- Cyfrifiadur sy'n gallu rhedeg Scratch 3 + +### Meddalwedd + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Lawrlwythiadau + +- Dim + +\--- /collapse \--- + +## \---collapse\--- + +## title: Yr hyn byddi di'n ei ddysgu + +- Defnyddio loop ailadrodd i animeiddio corlun yn Scratch +- Defnyddio loop tragwyddol i ailadrodd animeiddiad am byth +- Deall bod loops yn gallu cael eu nythu o fewn ei gilydd + +\--- /collapse \--- + +## \---collapse\--- + +## title: Gwybodaeth ychwanegol i addysgwyr + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/cy-GB/step_10.md b/cy-GB/step_10.md new file mode 100644 index 000000000..141374812 --- /dev/null +++ b/cy-GB/step_10.md @@ -0,0 +1,18 @@ +## Beth nesaf? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/cy-GB/step_2.md b/cy-GB/step_2.md new file mode 100644 index 000000000..59d93cb61 --- /dev/null +++ b/cy-GB/step_2.md @@ -0,0 +1,72 @@ +## Animeiddio llong ofod + +Y cam cyntaf fydd creu llong ofod sy'n hedfan tuag at y Ddaear! + +\--- task \--- + +Agor prosiect Scratch newydd. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**All-lein** agora brosiect newydd yn y golygydd all-lein. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +pan fo'r flag werdd yn cael ei glicio +pwyntio i gyfeiriad (0) +mynd i x: (-150) y: (-150) +dweud [Awn ni!] am (2) eiliad +pwyntio tuag at (Earth v) +llithro (1) eiliad i x: (0) y: (0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/cy-GB/step_3.md b/cy-GB/step_3.md new file mode 100644 index 000000000..6fc00f097 --- /dev/null +++ b/cy-GB/step_3.md @@ -0,0 +1,16 @@ +## Her: Perffeithio dy animeiddiad + +Alli di newid y rhifau yn y côd amineiddio fel bod: + ++ Y llong ofod yn symud tan ei fod yn cyffwrdd y Ddaear? ++ Y llong ofod yn symud yn arafach tuag at y Ddaear? + +Bydd angen i ti newid y rhifau yn y bloc yma: + +![Ciplun llong ofod](images/sprite-spaceship.png) + +```blocks3 +llithro (1) eiliad i x: (0) y: (0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/cy-GB/step_4.md b/cy-GB/step_4.md new file mode 100644 index 000000000..ca0630673 --- /dev/null +++ b/cy-GB/step_4.md @@ -0,0 +1,128 @@ +## Animeiddio yn defnyddio dolennu + +Ffordd arall o animeiddio’r llong ofod yw dweud wrtho i symud ychydig bach, nifer o weithiau. + +\--- task \--- + +Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +pan fo'r flag werdd yn cael ei glicio +pwyntio i gyfeiriad (0) +mynd i x: (-150) y: (-150) +dweud [Awn ni!] am (2) eiliad +pwyntio tuag at (Earth v) + +llithro (1) eiliad i x: (0) y: (0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testing a spaceship animation](images/space-animate-stage.png) + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +pan fo'r flag werdd yn cael ei glicio +pwyntio i gyfeiriad (0) +mynd i x: (-150) y: (-150) +dweud [Awn ni!] am (2) eiliad +pwyntio tuag at (Earth v) + ++ ailadrodd (200) + symud (2) cam +end +``` + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +pan fo'r flag werdd yn cael ei glicio +pwyntio i gyfeiriad (0) +mynd i x: (-150) y: (-150) +dweud [Awn ni!] am (2) eiliad +pwyntio tuag at (Earth v) +ailadrodd (200) + symud (2) cam +end + ++ newid effaith [lliw v] gan (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Your spaceship should start at `100% size`{:class="blocklooks"}, and then `change size`{:class="blocklooks"} by a small amount each time it moves. + +\--- /hint \--- + +\--- hint \--- + +You will need to add these blocks to your code: + +![Corlun llong ofod](images/sprite-spaceship.png) + +```blocks3 +newid maint gan (10) + +gosod maint i (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Your code should look like this: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/cy-GB/step_5.md b/cy-GB/step_5.md new file mode 100644 index 000000000..3da318032 --- /dev/null +++ b/cy-GB/step_5.md @@ -0,0 +1,71 @@ +## Mwnci yn arnofio + +Fe fyddi di nawr yn ychwanegu mwnci sydd ar goll yn y gofod i dy animeiddiad! + +\--- task \--- + +Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +am byth +end + +troi (15) gradd i'r dde + +pan fo'r flag werdd yn cael ei glicio +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +pan fo'r flag werdd yn cael ei glicio +am byth + troi (1) gradd i'r dde +end +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/cy-GB/step_6.md b/cy-GB/step_6.md new file mode 100644 index 000000000..194e7045c --- /dev/null +++ b/cy-GB/step_6.md @@ -0,0 +1,61 @@ +## Asteroid Sbonciog + +Rwyt ti nawr am ychwanegu craig sydd yn arnofio i dy animeiddiad. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +symud (10) cam + +os ar ymyl, bowndio + +pan fo'r flag werdd yn cael ei glicio + +am byth +end +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +troi (15) gradd i'r dde + +pwyntio tuag at (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +pan fo'r flag werdd yn cael ei glicio +pwyntio tuag at (Earth v) +am byth + symud (2) cam + os ar ymyl, bowndio +end +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/cy-GB/step_7.md b/cy-GB/step_7.md new file mode 100644 index 000000000..825c8bac4 --- /dev/null +++ b/cy-GB/step_7.md @@ -0,0 +1,63 @@ +## Seren ddisglair + +Rwyt ti am gyfunio dolenu i greu seren ddisglair. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +ailadrodd (10) +end + +pan fo'r flag werdd yn cael ei glicio + +ailadrodd (10) +end + +newid maint gan (10) + +newid maint gan (10) + +am byth +end +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Star sprite](images/sprite-star.png) + +```blocks3 +pan fo'r flag werdd yn cael ei glicio +am byth + ailadrodd (20) + newid maint gan (2) + end + ailadrodd (20) + newid maint gan (-2) + end +end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/cy-GB/step_8.md b/cy-GB/step_8.md new file mode 100644 index 000000000..e41bc0b24 --- /dev/null +++ b/cy-GB/step_8.md @@ -0,0 +1,7 @@ +## Her: gwneud animeiddiad dy hunan + +Stopia dy animeiddiad gofod, ei arbed a chychwyn prosiect Scratch newydd. + +Defnyddia’r hyn rwyt ti wedi ei ddysgu yn y prosiect yma i wneud animeddiad dy hunan. Gall fod yn unrhywbeth hoffet ti, ond ceisia sicrhau fod yr animeiddiad yn cydfynd â'r gefnlen rwyt ti'n ei ddewis. Dyma rai enghreifftiau: + +![sgrinlun](images/space-egs.png) \ No newline at end of file diff --git a/cy-GB/step_9.md b/cy-GB/step_9.md new file mode 100644 index 000000000..0586f7a7f --- /dev/null +++ b/cy-GB/step_9.md @@ -0,0 +1,18 @@ +## Beth nesaf? + +Rho gynnig ar y prosiect [Dal Ysbrydion](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects)! Yn y prosiect yna, fe fyddi di'n creu gêm gydag ysbrydion fydd yn ymddangos ar draws y sgrin a bydd angen i ti eu dal. Byddi di hefyd yn dysgu ychwanegu amserydd a sgôr i'r gêm, fel dy fod di'n gallu gweld faint o ysbrydion mae modd i ti eu dal. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![arddangos](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/da-DK/images/banner.png b/da-DK/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/da-DK/images/banner.png differ diff --git a/da-DK/images/ghostbusters-static.png b/da-DK/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/da-DK/images/ghostbusters-static.png differ diff --git a/da-DK/images/lost-in-space.png b/da-DK/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/da-DK/images/lost-in-space.png differ diff --git a/da-DK/images/make-white.png b/da-DK/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/da-DK/images/make-white.png differ diff --git a/da-DK/images/montage-1.png b/da-DK/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/da-DK/images/montage-1.png differ diff --git a/da-DK/images/montage-2.png b/da-DK/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/da-DK/images/montage-2.png differ diff --git a/da-DK/images/montage-3.png b/da-DK/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/da-DK/images/montage-3.png differ diff --git a/da-DK/images/showcase_static.png b/da-DK/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/da-DK/images/showcase_static.png differ diff --git a/da-DK/images/space-animate-stage.png b/da-DK/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/da-DK/images/space-animate-stage.png differ diff --git a/da-DK/images/space-backdrop.png b/da-DK/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/da-DK/images/space-backdrop.png differ diff --git a/da-DK/images/space-bounce-test.png b/da-DK/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/da-DK/images/space-bounce-test.png differ diff --git a/da-DK/images/space-colour-test.png b/da-DK/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/da-DK/images/space-colour-test.png differ diff --git a/da-DK/images/space-costume.png b/da-DK/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/da-DK/images/space-costume.png differ diff --git a/da-DK/images/space-egs.png b/da-DK/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/da-DK/images/space-egs.png differ diff --git a/da-DK/images/space-monkey-edit.png b/da-DK/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/da-DK/images/space-monkey-edit.png differ diff --git a/da-DK/images/space-monkey-sprite.png b/da-DK/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/da-DK/images/space-monkey-sprite.png differ diff --git a/da-DK/images/space-rock-sprite.png b/da-DK/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/da-DK/images/space-rock-sprite.png differ diff --git a/da-DK/images/space-rotate.png b/da-DK/images/space-rotate.png new file mode 100644 index 000000000..916fb08f0 Binary files /dev/null and b/da-DK/images/space-rotate.png differ diff --git a/da-DK/images/space-size-test.png b/da-DK/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/da-DK/images/space-size-test.png differ diff --git a/da-DK/images/space-spin-test.png b/da-DK/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/da-DK/images/space-spin-test.png differ diff --git a/da-DK/images/space-sprites.png b/da-DK/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/da-DK/images/space-sprites.png differ diff --git a/da-DK/images/space-star-sprite.png b/da-DK/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/da-DK/images/space-star-sprite.png differ diff --git a/da-DK/images/sprite-earth.png b/da-DK/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/da-DK/images/sprite-earth.png differ diff --git a/da-DK/images/sprite-monkey.png b/da-DK/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/da-DK/images/sprite-monkey.png differ diff --git a/da-DK/images/sprite-rock.png b/da-DK/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/da-DK/images/sprite-rock.png differ diff --git a/da-DK/images/sprite-spaceship.png b/da-DK/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/da-DK/images/sprite-spaceship.png differ diff --git a/da-DK/images/sprite-star.png b/da-DK/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/da-DK/images/sprite-star.png differ diff --git a/da-DK/images/trim_and_tile.sh b/da-DK/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/da-DK/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/da-DK/meta.yml b/da-DK/meta.yml new file mode 100644 index 000000000..b207a1b45 --- /dev/null +++ b/da-DK/meta.yml @@ -0,0 +1,35 @@ +--- +title: Lost in space +hero_image: images/lost-in-space.png +description: Learn how to program your own animation! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introduction + - + title: Animating a spaceship + - + title: 'Challenge: improve your animation' + challenge: true + - + title: Animation using loops + completion: + - engaged + - + title: Floating monkey + - + title: Bouncing asteroid + - + title: Shining star + completion: + - internal + - + title: 'Challenge: make your own animation' + challenge: true + - + title: What next? diff --git a/da-DK/scratch-translatable.txt b/da-DK/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/da-DK/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/da-DK/solutions/lost-in-space-solution.sb3 b/da-DK/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/da-DK/solutions/lost-in-space-solution.sb3 differ diff --git a/da-DK/step_1.md b/da-DK/step_1.md new file mode 100644 index 000000000..bc43f86cd --- /dev/null +++ b/da-DK/step_1.md @@ -0,0 +1,60 @@ +## Introduction + +You are going to learn how to program your own animation! + +### What you will make + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: What you will need + +### Hardware + +- A computer capable of running Scratch 3 + +### Software + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + +- None + +\--- /collapse \--- + +## \--- collapse \--- + +## title: What you will learn + +- Use a repeat loop to animate a sprite in Scratch +- Use a forever loop to repeat an animation indefinitely +- Understand that loops can be nested within each other + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Additional information for educators + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/da-DK/step_10.md b/da-DK/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/da-DK/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/da-DK/step_2.md b/da-DK/step_2.md new file mode 100644 index 000000000..cbcdff0c6 --- /dev/null +++ b/da-DK/step_2.md @@ -0,0 +1,72 @@ +## Animating a spaceship + +Your first step will be to create a spaceship that flies towards the Earth! + +\--- task \--- + +Open a new Scratch project. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** open a new project in the offline editor. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/da-DK/step_3.md b/da-DK/step_3.md new file mode 100644 index 000000000..4af9cb400 --- /dev/null +++ b/da-DK/step_3.md @@ -0,0 +1,16 @@ +## Challenge: improve your animation + +Can you change the numbers in your animation code so that: + ++ The spaceship moves until it touches the Earth? ++ The spaceship moves more slowly towards the Earth? + +You'll need to change the numbers in this block: + +![Rocketship sprite](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/da-DK/step_4.md b/da-DK/step_4.md new file mode 100644 index 000000000..0e1397c55 --- /dev/null +++ b/da-DK/step_4.md @@ -0,0 +1,126 @@ +## Animation using loops + +Another way to animate the spaceship is to tell it to move a small amount many times + +\--- task \--- + +Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testing a spaceship animation](images/space-animate-stage.png) + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Your spaceship should start at `100% size`{:class="blocklooks"}, and then `change size`{:class="blocklooks"} by a small amount each time it moves. + +\--- /hint \--- + +\--- hint \--- + +You will need to add these blocks to your code: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Your code should look like this: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/da-DK/step_5.md b/da-DK/step_5.md new file mode 100644 index 000000000..ab4c451b7 --- /dev/null +++ b/da-DK/step_5.md @@ -0,0 +1,70 @@ +## Floating monkey + +Now you will add a monkey who's lost in space to your animation! + +\--- task \--- + +Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/da-DK/step_6.md b/da-DK/step_6.md new file mode 100644 index 000000000..729b6d975 --- /dev/null +++ b/da-DK/step_6.md @@ -0,0 +1,59 @@ +## Bouncing asteroid + +Now you will add a floating space rock to your animation. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/da-DK/step_7.md b/da-DK/step_7.md new file mode 100644 index 000000000..e53504c76 --- /dev/null +++ b/da-DK/step_7.md @@ -0,0 +1,61 @@ +## Shining star + +Now you will combine loops to make a shining star. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Star sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/da-DK/step_8.md b/da-DK/step_8.md new file mode 100644 index 000000000..841b139ec --- /dev/null +++ b/da-DK/step_8.md @@ -0,0 +1,7 @@ +## Challenge: make your own animation + +Stop your space animation, save it, and start a new Scratch project. + +Use what you've learned in this project to make your own animation. It can be anything you like, but try to make your animation match the background you choose. Here are some examples: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/da-DK/step_9.md b/da-DK/step_9.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/da-DK/step_9.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/de-DE/images/banner.png b/de-DE/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/de-DE/images/banner.png differ diff --git a/de-DE/images/ghostbusters-static.png b/de-DE/images/ghostbusters-static.png new file mode 100644 index 000000000..2dd03f791 Binary files /dev/null and b/de-DE/images/ghostbusters-static.png differ diff --git a/de-DE/images/lost-in-space.png b/de-DE/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/de-DE/images/lost-in-space.png differ diff --git a/de-DE/images/make-white.png b/de-DE/images/make-white.png new file mode 100644 index 000000000..1c7f8537e Binary files /dev/null and b/de-DE/images/make-white.png differ diff --git a/de-DE/images/montage-1.png b/de-DE/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/de-DE/images/montage-1.png differ diff --git a/de-DE/images/montage-2.png b/de-DE/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/de-DE/images/montage-2.png differ diff --git a/de-DE/images/montage-3.png b/de-DE/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/de-DE/images/montage-3.png differ diff --git a/de-DE/images/showcase_static.png b/de-DE/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/de-DE/images/showcase_static.png differ diff --git a/de-DE/images/space-animate-stage.png b/de-DE/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/de-DE/images/space-animate-stage.png differ diff --git a/de-DE/images/space-animate.png b/de-DE/images/space-animate.png new file mode 100644 index 000000000..93ea39409 Binary files /dev/null and b/de-DE/images/space-animate.png differ diff --git a/de-DE/images/space-backdrop.png b/de-DE/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/de-DE/images/space-backdrop.png differ diff --git a/de-DE/images/space-bounce-blocks.png b/de-DE/images/space-bounce-blocks.png new file mode 100644 index 000000000..7a150401f Binary files /dev/null and b/de-DE/images/space-bounce-blocks.png differ diff --git a/de-DE/images/space-bounce-code.png b/de-DE/images/space-bounce-code.png new file mode 100644 index 000000000..50ff2b402 Binary files /dev/null and b/de-DE/images/space-bounce-code.png differ diff --git a/de-DE/images/space-bounce-test.png b/de-DE/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/de-DE/images/space-bounce-test.png differ diff --git a/de-DE/images/space-colour-blocks.png b/de-DE/images/space-colour-blocks.png new file mode 100644 index 000000000..657894b32 Binary files /dev/null and b/de-DE/images/space-colour-blocks.png differ diff --git a/de-DE/images/space-colour-code.png b/de-DE/images/space-colour-code.png new file mode 100644 index 000000000..c21f12ee6 Binary files /dev/null and b/de-DE/images/space-colour-code.png differ diff --git a/de-DE/images/space-colour-test.png b/de-DE/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/de-DE/images/space-colour-test.png differ diff --git a/de-DE/images/space-costume.png b/de-DE/images/space-costume.png new file mode 100644 index 000000000..147cee4e3 Binary files /dev/null and b/de-DE/images/space-costume.png differ diff --git a/de-DE/images/space-delete-glide.png b/de-DE/images/space-delete-glide.png new file mode 100644 index 000000000..823565f12 Binary files /dev/null and b/de-DE/images/space-delete-glide.png differ diff --git a/de-DE/images/space-egs.png b/de-DE/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/de-DE/images/space-egs.png differ diff --git a/de-DE/images/space-glide.png b/de-DE/images/space-glide.png new file mode 100644 index 000000000..9882ee1ff Binary files /dev/null and b/de-DE/images/space-glide.png differ diff --git a/de-DE/images/space-initial-position.png b/de-DE/images/space-initial-position.png new file mode 100644 index 000000000..7ff918ec0 Binary files /dev/null and b/de-DE/images/space-initial-position.png differ diff --git a/de-DE/images/space-monkey-edit.png b/de-DE/images/space-monkey-edit.png new file mode 100644 index 000000000..2e5d4119f Binary files /dev/null and b/de-DE/images/space-monkey-edit.png differ diff --git a/de-DE/images/space-monkey-sprite.png b/de-DE/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/de-DE/images/space-monkey-sprite.png differ diff --git a/de-DE/images/space-repeat-blocks.png b/de-DE/images/space-repeat-blocks.png new file mode 100644 index 000000000..dc9de89fe Binary files /dev/null and b/de-DE/images/space-repeat-blocks.png differ diff --git a/de-DE/images/space-repeat-code.png b/de-DE/images/space-repeat-code.png new file mode 100644 index 000000000..d1caa273f Binary files /dev/null and b/de-DE/images/space-repeat-code.png differ diff --git a/de-DE/images/space-rock-sprite.png b/de-DE/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/de-DE/images/space-rock-sprite.png differ diff --git a/de-DE/images/space-rotate.png b/de-DE/images/space-rotate.png new file mode 100644 index 000000000..09fd4edb5 Binary files /dev/null and b/de-DE/images/space-rotate.png differ diff --git a/de-DE/images/space-size-blocks.png b/de-DE/images/space-size-blocks.png new file mode 100644 index 000000000..6e00f6721 Binary files /dev/null and b/de-DE/images/space-size-blocks.png differ diff --git a/de-DE/images/space-size-code.png b/de-DE/images/space-size-code.png new file mode 100644 index 000000000..8145d7d61 Binary files /dev/null and b/de-DE/images/space-size-code.png differ diff --git a/de-DE/images/space-size-test.png b/de-DE/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/de-DE/images/space-size-test.png differ diff --git a/de-DE/images/space-spin-blocks.png b/de-DE/images/space-spin-blocks.png new file mode 100644 index 000000000..61e80c561 Binary files /dev/null and b/de-DE/images/space-spin-blocks.png differ diff --git a/de-DE/images/space-spin-code.png b/de-DE/images/space-spin-code.png new file mode 100644 index 000000000..3357a01ff Binary files /dev/null and b/de-DE/images/space-spin-code.png differ diff --git a/de-DE/images/space-spin-test.png b/de-DE/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/de-DE/images/space-spin-test.png differ diff --git a/de-DE/images/space-sprites.png b/de-DE/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/de-DE/images/space-sprites.png differ diff --git a/de-DE/images/space-star-blocks.png b/de-DE/images/space-star-blocks.png new file mode 100644 index 000000000..bea09b2b5 Binary files /dev/null and b/de-DE/images/space-star-blocks.png differ diff --git a/de-DE/images/space-star-code.png b/de-DE/images/space-star-code.png new file mode 100644 index 000000000..8ededee31 Binary files /dev/null and b/de-DE/images/space-star-code.png differ diff --git a/de-DE/images/space-star-sprite.png b/de-DE/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/de-DE/images/space-star-sprite.png differ diff --git a/de-DE/images/space-star-test.png b/de-DE/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/de-DE/images/space-star-test.png differ diff --git a/de-DE/images/sprite-earth.png b/de-DE/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/de-DE/images/sprite-earth.png differ diff --git a/de-DE/images/sprite-monkey.png b/de-DE/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/de-DE/images/sprite-monkey.png differ diff --git a/de-DE/images/sprite-rock.png b/de-DE/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/de-DE/images/sprite-rock.png differ diff --git a/de-DE/images/sprite-spaceship.png b/de-DE/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/de-DE/images/sprite-spaceship.png differ diff --git a/de-DE/images/sprite-star.png b/de-DE/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/de-DE/images/sprite-star.png differ diff --git a/de-DE/images/trim_and_tile.sh b/de-DE/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/de-DE/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/de-DE/meta.yml b/de-DE/meta.yml new file mode 100644 index 000000000..64d04078f --- /dev/null +++ b/de-DE/meta.yml @@ -0,0 +1,35 @@ +--- +title: Verschollen im Weltraum +hero_image: images/lost-in-space.png +description: Lerne eigene Animationen zu programmieren! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Einleitung + - + title: Ein Raumschiff animieren + - + title: 'Herausforderung: Verbessere deine Animation' + challenge: true + - + title: Animieren mit Schleifen + completion: + - engaged + - + title: Schwebender Affe + - + title: Abprallender Asteroid + - + title: Glänzender Stern + completion: + - internal + - + title: 'Challenge: Mache deine eigene Animation' + challenge: true + - + title: Wie geht es weiter? diff --git a/de-DE/resources/LostinSpace-Finished.sb2 b/de-DE/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..64095570f Binary files /dev/null and b/de-DE/resources/LostinSpace-Finished.sb2 differ diff --git a/de-DE/scratch-translatable.txt b/de-DE/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/de-DE/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/de-DE/solutions/lost-in-space-solution.sb3 b/de-DE/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..9adb12cee Binary files /dev/null and b/de-DE/solutions/lost-in-space-solution.sb3 differ diff --git a/de-DE/step_1.md b/de-DE/step_1.md new file mode 100644 index 000000000..c945ede33 --- /dev/null +++ b/de-DE/step_1.md @@ -0,0 +1,60 @@ +## Einleitung + +You are going to learn how to program your own animation! + +### Was Du tun wirst + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: Was du brauchen wirst + +### Hardware + +- Einen Computer, auf dem Scratch 3 ausgeführt werden kann + +### Software + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + +- Keine + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Was du lernen wirst + +- Eine Wiederholungsschleife verwenden, um eine Figur in Scratch zu animieren +- Eine Endlosschleife verwenden, um eine Animation auf unbestimmte Zeit zu wiederholen +- Verstehen, dass Schleifen ineinander verschachtelt werden können + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Zusätzliche Informationen für Pädagogen + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/de-DE/step_10.md b/de-DE/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/de-DE/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/de-DE/step_2.md b/de-DE/step_2.md new file mode 100644 index 000000000..cb88ef49b --- /dev/null +++ b/de-DE/step_2.md @@ -0,0 +1,72 @@ +## Ein Raumschiff animieren + +Dein erster Schritt wird es sein, ein Raumschiff zu erstellen, das zur Erde fliegt! + +\--- task \--- + +Erstelle ein neues Scratch-Projekt. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** Erstelle im Offline-Editor ein neues Projekt. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +Wenn die Flagge angeklickt wird +setze Richtung auf (0) Grad +gehe zu x:(-150) y:(-150) +sage [Los geht´s] für (2) Sekunden +drehe dich zu (Earth v) +gleite in (1) Sek. zu x:(0) y:(0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/de-DE/step_3.md b/de-DE/step_3.md new file mode 100644 index 000000000..6e22c94bc --- /dev/null +++ b/de-DE/step_3.md @@ -0,0 +1,16 @@ +## Herausforderung: Verbessere deine Animation + +Kannst du die Zahlen in deinem Animationscode ändern, so dass: + ++ Sich das Raumschiff bewegt, bis es die Erde berührt? ++ Sich das Raumschiff langsamer auf die Erde zu bewegt? + +Du musst die Zahlen in diesem Block ändern: + +![Raumschiff-Figur](images/sprite-spaceship.png) + +```blocks3 +gleite (1) Sek. zu x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/de-DE/step_4.md b/de-DE/step_4.md new file mode 100644 index 000000000..1e2f1113b --- /dev/null +++ b/de-DE/step_4.md @@ -0,0 +1,126 @@ +## Animieren mit Schleifen + +Eine andere Möglichkeit das Raumschiff zu animieren ist, es ganz oft kleine Schritte machen zu lassen + +\--- task \--- + +Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +Wenn die Flagge angeklickt wird +setze Richtung auf (0) Grad +gehe zu x:(-150) y:(-150) +sage [Los geht´s] für (2) Sekunden +drehe dich zu (Earth v) + +-gleite in (1) Sek. zu x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testing a spaceship animation](images/space-animate-stage.png) + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +Wenn die Flagge angeklickt wird +setze Richtung auf (0) Grad +gehe zu x:(-150) y:(-150) +sage [Los geht´s] für (2) Sekunden +drehe dich zu (Earth v) + ++wiederhole (200) mal + gehe (2) er Schritt +``` + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +Wenn die Flagge angeklickt wird +setze Richtung auf (0) Grad +gehe zu x:(-150) y:(-150) +sage [Los geht´s] für (2) Sekunden +drehe dich zu (Earth v) +wiederhole (200) mal + gehe (2) er Schritt + ++ ändere Effekt [Farbe v] um (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Your spaceship should start at `100% size`{:class="blocklooks"}, and then `change size`{:class="blocklooks"} by a small amount each time it moves. + +\--- /hint \--- + +\--- hint \--- + +You will need to add these blocks to your code: + +![Raumschiff-Figur](images/sprite-spaceship.png) + +```blocks3 +ändere Größe um (10) + +setze Größe auf (100) +``` + +\--- /hint \--- + +\--- hint \--- + +Your code should look like this: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/de-DE/step_5.md b/de-DE/step_5.md new file mode 100644 index 000000000..dfeda3fbc --- /dev/null +++ b/de-DE/step_5.md @@ -0,0 +1,69 @@ +## Schwebender Affe + +Lass uns einen Affen, der im Weltraum verloren gegangen ist, zu deiner Animation hinzufügen! + +\--- task \--- + +Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +wiederhole fortlaufend + +drehe dich im Uhrzeigersinn um (15) Grad + +Wenn grüne Flagge angeklickt wird +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +Wenn die Flagge angeklickt wird +wiederhole fortlaufend + drehe dich im Uhrzeigersinn um (1) Grad +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/de-DE/step_6.md b/de-DE/step_6.md new file mode 100644 index 000000000..9b45345d6 --- /dev/null +++ b/de-DE/step_6.md @@ -0,0 +1,59 @@ +## Abprallender Asteroid + +Jetzt wirst du einen schwebenden Weltraumstein zu deiner Animation hinzufügen. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +gehe (10) er Schritt + +pralle vom Rand ab + +Wenn Flagge angeklickt wird + +wiederhole fortlaufend +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +drehe dich im Uhrzeigersinn um (15) Grad + +drehe dich zu (Erde v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +Wenn Flagge angeklickt wird +drehe dich zu (Earth v) +wiederhole fortlaufend + gehe (2) er Schritt + pralle vom Rand ab +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/de-DE/step_7.md b/de-DE/step_7.md new file mode 100644 index 000000000..c951584dc --- /dev/null +++ b/de-DE/step_7.md @@ -0,0 +1,61 @@ +## Glänzender Stern + +Lass' uns Schleifen kombinieren, um einen strahlenden Stern zu machen. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +wiederhole (10) mal +ende + +Wenn die Flagge angeklickt wird + +wiederhole (10) mal +ende + +ändere Größe um (10) + +ändere Größe um (10) + +wiederhole fortlaufend +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Star sprite](images/sprite-star.png) + +```blocks3 +Wenn die Flagge angeklickt wird +wiederhole fortlaufend + wiederhole (20) mal + ändere Größe um (2) + ende + wiederhole (20) mal + ändere Größe um (-2) + ende + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/de-DE/step_8.md b/de-DE/step_8.md new file mode 100644 index 000000000..db8d062e3 --- /dev/null +++ b/de-DE/step_8.md @@ -0,0 +1,7 @@ +## Challenge: Mache deine eigene Animation + +Beende deine Weltraumanimation, speichere sie und starte ein neues Scratch-Projekt. + +Verwende das, was du in diesem Projekt gelernt hast, um deine eigene Animation zu erstellen. Es kann alles sein, was du möchtest. Versuche es so hinzubekommen, dass die Animation und der Hintergrund zueinander passen. Hier sind einige Beispiele: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/de-DE/step_9.md b/de-DE/step_9.md new file mode 100644 index 000000000..9cffbcb6c --- /dev/null +++ b/de-DE/step_9.md @@ -0,0 +1,18 @@ +## Was kommt als nächstes? + +Schau dir das [Geisterjäger](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) Projekt an! In diesem Projekt wirst du lernen, wie du ein Spiel mit Geistern erstellst, die überall auftauchen und die du Fangen musst. Du wirst auch lernen wie du eine Stoppuhr und einen Punktezähler zu deinem Spiel hinzufügst, um zu sehen wieviele Geister du fangen kannst. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Vorschau](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/el-GR/images/banner.png b/el-GR/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/el-GR/images/banner.png differ diff --git a/el-GR/images/ghostbusters-static.png b/el-GR/images/ghostbusters-static.png new file mode 100644 index 000000000..229bff3e5 Binary files /dev/null and b/el-GR/images/ghostbusters-static.png differ diff --git a/el-GR/images/lost-in-space.png b/el-GR/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/el-GR/images/lost-in-space.png differ diff --git a/el-GR/images/make-white.png b/el-GR/images/make-white.png new file mode 100644 index 000000000..752fd8bbd Binary files /dev/null and b/el-GR/images/make-white.png differ diff --git a/el-GR/images/montage-1.png b/el-GR/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/el-GR/images/montage-1.png differ diff --git a/el-GR/images/montage-2.png b/el-GR/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/el-GR/images/montage-2.png differ diff --git a/el-GR/images/montage-3.png b/el-GR/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/el-GR/images/montage-3.png differ diff --git a/el-GR/images/showcase_static.png b/el-GR/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/el-GR/images/showcase_static.png differ diff --git a/el-GR/images/space-animate-stage.png b/el-GR/images/space-animate-stage.png new file mode 100644 index 000000000..417c226d8 Binary files /dev/null and b/el-GR/images/space-animate-stage.png differ diff --git a/el-GR/images/space-animate.png b/el-GR/images/space-animate.png new file mode 100644 index 000000000..e35511ef6 Binary files /dev/null and b/el-GR/images/space-animate.png differ diff --git a/el-GR/images/space-backdrop.png b/el-GR/images/space-backdrop.png new file mode 100644 index 000000000..c46824710 Binary files /dev/null and b/el-GR/images/space-backdrop.png differ diff --git a/el-GR/images/space-bounce-blocks.png b/el-GR/images/space-bounce-blocks.png new file mode 100644 index 000000000..5c1dbada9 Binary files /dev/null and b/el-GR/images/space-bounce-blocks.png differ diff --git a/el-GR/images/space-bounce-code.png b/el-GR/images/space-bounce-code.png new file mode 100644 index 000000000..ead6f47cd Binary files /dev/null and b/el-GR/images/space-bounce-code.png differ diff --git a/el-GR/images/space-bounce-test.png b/el-GR/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/el-GR/images/space-bounce-test.png differ diff --git a/el-GR/images/space-colour-blocks.png b/el-GR/images/space-colour-blocks.png new file mode 100644 index 000000000..d7d824db2 Binary files /dev/null and b/el-GR/images/space-colour-blocks.png differ diff --git a/el-GR/images/space-colour-code.png b/el-GR/images/space-colour-code.png new file mode 100644 index 000000000..51e976a85 Binary files /dev/null and b/el-GR/images/space-colour-code.png differ diff --git a/el-GR/images/space-colour-test.png b/el-GR/images/space-colour-test.png new file mode 100644 index 000000000..5ee25d9fc Binary files /dev/null and b/el-GR/images/space-colour-test.png differ diff --git a/el-GR/images/space-costume.png b/el-GR/images/space-costume.png new file mode 100644 index 000000000..85ab3d481 Binary files /dev/null and b/el-GR/images/space-costume.png differ diff --git a/el-GR/images/space-delete-glide.png b/el-GR/images/space-delete-glide.png new file mode 100644 index 000000000..7ba027335 Binary files /dev/null and b/el-GR/images/space-delete-glide.png differ diff --git a/el-GR/images/space-egs.png b/el-GR/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/el-GR/images/space-egs.png differ diff --git a/el-GR/images/space-glide.png b/el-GR/images/space-glide.png new file mode 100644 index 000000000..157b117aa Binary files /dev/null and b/el-GR/images/space-glide.png differ diff --git a/el-GR/images/space-initial-position.png b/el-GR/images/space-initial-position.png new file mode 100644 index 000000000..97e23496e Binary files /dev/null and b/el-GR/images/space-initial-position.png differ diff --git a/el-GR/images/space-monkey-edit.png b/el-GR/images/space-monkey-edit.png new file mode 100644 index 000000000..60b60e3d6 Binary files /dev/null and b/el-GR/images/space-monkey-edit.png differ diff --git a/el-GR/images/space-monkey-sprite.png b/el-GR/images/space-monkey-sprite.png new file mode 100644 index 000000000..f4ee951c3 Binary files /dev/null and b/el-GR/images/space-monkey-sprite.png differ diff --git a/el-GR/images/space-repeat-blocks.png b/el-GR/images/space-repeat-blocks.png new file mode 100644 index 000000000..9eb383ad9 Binary files /dev/null and b/el-GR/images/space-repeat-blocks.png differ diff --git a/el-GR/images/space-repeat-code.png b/el-GR/images/space-repeat-code.png new file mode 100644 index 000000000..b234c3cf0 Binary files /dev/null and b/el-GR/images/space-repeat-code.png differ diff --git a/el-GR/images/space-rock-sprite.png b/el-GR/images/space-rock-sprite.png new file mode 100644 index 000000000..bbeb2eb64 Binary files /dev/null and b/el-GR/images/space-rock-sprite.png differ diff --git a/el-GR/images/space-rotate.png b/el-GR/images/space-rotate.png new file mode 100644 index 000000000..67fb1edef Binary files /dev/null and b/el-GR/images/space-rotate.png differ diff --git a/el-GR/images/space-size-blocks.png b/el-GR/images/space-size-blocks.png new file mode 100644 index 000000000..4ec4343e3 Binary files /dev/null and b/el-GR/images/space-size-blocks.png differ diff --git a/el-GR/images/space-size-code.png b/el-GR/images/space-size-code.png new file mode 100644 index 000000000..0fdc57268 Binary files /dev/null and b/el-GR/images/space-size-code.png differ diff --git a/el-GR/images/space-size-test.png b/el-GR/images/space-size-test.png new file mode 100644 index 000000000..a7cc3cc9b Binary files /dev/null and b/el-GR/images/space-size-test.png differ diff --git a/el-GR/images/space-spin-blocks.png b/el-GR/images/space-spin-blocks.png new file mode 100644 index 000000000..ff1287e63 Binary files /dev/null and b/el-GR/images/space-spin-blocks.png differ diff --git a/el-GR/images/space-spin-code.png b/el-GR/images/space-spin-code.png new file mode 100644 index 000000000..a930f2859 Binary files /dev/null and b/el-GR/images/space-spin-code.png differ diff --git a/el-GR/images/space-spin-test.png b/el-GR/images/space-spin-test.png new file mode 100644 index 000000000..226cf2d5d Binary files /dev/null and b/el-GR/images/space-spin-test.png differ diff --git a/el-GR/images/space-sprites.png b/el-GR/images/space-sprites.png new file mode 100644 index 000000000..ffdaa1c70 Binary files /dev/null and b/el-GR/images/space-sprites.png differ diff --git a/el-GR/images/space-star-blocks.png b/el-GR/images/space-star-blocks.png new file mode 100644 index 000000000..982498e52 Binary files /dev/null and b/el-GR/images/space-star-blocks.png differ diff --git a/el-GR/images/space-star-code.png b/el-GR/images/space-star-code.png new file mode 100644 index 000000000..74efde5a1 Binary files /dev/null and b/el-GR/images/space-star-code.png differ diff --git a/el-GR/images/space-star-sprite.png b/el-GR/images/space-star-sprite.png new file mode 100644 index 000000000..8ab787e7d Binary files /dev/null and b/el-GR/images/space-star-sprite.png differ diff --git a/el-GR/images/space-star-test.png b/el-GR/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/el-GR/images/space-star-test.png differ diff --git a/el-GR/images/sprite-earth.png b/el-GR/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/el-GR/images/sprite-earth.png differ diff --git a/el-GR/images/sprite-monkey.png b/el-GR/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/el-GR/images/sprite-monkey.png differ diff --git a/el-GR/images/sprite-rock.png b/el-GR/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/el-GR/images/sprite-rock.png differ diff --git a/el-GR/images/sprite-spaceship.png b/el-GR/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/el-GR/images/sprite-spaceship.png differ diff --git a/el-GR/images/sprite-star.png b/el-GR/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/el-GR/images/sprite-star.png differ diff --git a/el-GR/images/trim_and_tile.sh b/el-GR/images/trim_and_tile.sh new file mode 100644 index 000000000..076cc1981 --- /dev/null +++ b/el-GR/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #πάρε τον δεύτερο χαρακτήρα από το όνομα του αρχείου + convert $file -trim +repage $file; #επεξεργάσου την εικόνα + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #πρόσθεσε κείμενο +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #μοντάζ diff --git a/el-GR/meta.yml b/el-GR/meta.yml new file mode 100644 index 000000000..e43c98973 --- /dev/null +++ b/el-GR/meta.yml @@ -0,0 +1,35 @@ +--- +title: Χαμένοι στο διάστημα +hero_image: images/lost-in-space.png +description: Μάθε πώς να προγραμματίζεις το δικό σου κινούμενο σχέδιο! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Εισαγωγή + - + title: Δίνοντας κίνηση σε ένα διαστημόπλοιο + - + title: 'Πρόκληση: βελτίωση του κινούμενου σχεδίου σου' + challenge: true + - + title: Δίνοντας κίνηση με τη χρήση βρόχων + completion: + - engaged + - + title: Αιωρούμενη μαϊμού + - + title: Αναπήδηση αστεροειδούς + - + title: Λαμπρό αστέρι + completion: + - internal + - + title: 'Πρόκληση: δημιούργησε το δικό σου κινούμενο σχέδιο' + challenge: true + - + title: Και τώρα; diff --git a/el-GR/resources/LostinSpace-Finished.sb2 b/el-GR/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..71449e788 Binary files /dev/null and b/el-GR/resources/LostinSpace-Finished.sb2 differ diff --git a/el-GR/scratch-translatable.txt b/el-GR/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/el-GR/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/el-GR/solutions/lost-in-space-solution.sb3 b/el-GR/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..a787f5f47 Binary files /dev/null and b/el-GR/solutions/lost-in-space-solution.sb3 differ diff --git a/el-GR/step_1.md b/el-GR/step_1.md new file mode 100644 index 000000000..4425e45b6 --- /dev/null +++ b/el-GR/step_1.md @@ -0,0 +1,60 @@ +## Εισαγωγή + +You are going to learn how to program your own animation! + +### Τι θα κάνεις + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: Τι θα χρειαστείς + +### Υλικό + +- Ένας υπολογιστής ικανός να τρέχει το Scratch 3 + +### Λογισμικό + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Λήψεις + +- Κανένα + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Τι θα μάθεις + +- Να χρησιμοποιείς έναν βρόχο επανάληψης για να δώσεις κίνηση σε ένα σχέδιο στο Scratch +- Να χρησιμοποιείς ένα βρόχο "για πάντα", ώστε να επαναλαμβάνεις την κίνηση επ' άπειρον +- Να αντιλαμβάνεσαι ότι οι βρόχοι μπορούν να ενθυλακώνονται. + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Πρόσθετες πληροφορίες για εκπαιδευτικούς + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/el-GR/step_10.md b/el-GR/step_10.md new file mode 100644 index 000000000..75cce873c --- /dev/null +++ b/el-GR/step_10.md @@ -0,0 +1,18 @@ +## Και τώρα; + +Δοκίμασε το έργο [Κυνηγοί φαντασμάτων ](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects)! Σε αυτό το έργο θα μάθεις να δημιουργείς ένα παιχνίδι όπου θα εμφανίζονται φαντάσματα και θα προσπαθείς να τα πιάσεις. Θα μάθεις επίσης να προσθέτεις χρονόμετρο και βαθμολογία στο παιχνίδι, έτσι ώστε να μπορείς να δεις πόσα φαντάσματα μπορείς να πιάσεις. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/el-GR/step_2.md b/el-GR/step_2.md new file mode 100644 index 000000000..d84be466c --- /dev/null +++ b/el-GR/step_2.md @@ -0,0 +1,72 @@ +## Δίνοντας κίνηση σε ένα διαστημόπλοιο + +Το πρώτο σου βήμα είναι να δημιουργήσεις ένα διαστημόπλοιο που πετάει προς τη Γη. + +\--- task \--- + +Δημιούργησε ένα νέο έργο Scratch. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline: ** άνοιξε ένα νέο έργο στον επεξεργαστή εκτός σύνδεσης. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +Όταν στην πράσινη σημαία γίνει κλικ +δείξε προς κατεύθυνση (0) +πήγαινε σε θέση x: (-150) y: (-150) +πες [Πάμε] για (2) δευτερόλεπτα +δείξε προς (Earth v) +ολίσθησε για (1) δευτ. στη θέση x: (0) y: (0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/el-GR/step_3.md b/el-GR/step_3.md new file mode 100644 index 000000000..c7c2a5f02 --- /dev/null +++ b/el-GR/step_3.md @@ -0,0 +1,16 @@ +## Πρόκληση: βελτίωση του κινούμενου σχεδίου σου + +Μπορείς να αλλάξεις τους αριθμούς στον κώδικα, έτσι ώστε: + ++ Το διαστημόπλοιο να κινείται μέχρι να αγγίξει τη Γη; ++ Το διαστημόπλοιο να κινείται πιο αργά προς τη Γη; + +Θα χρειαστεί να αλλάξεις τους αριθμούς σε αυτό το μπλοκ: + +![Αντικείμενο διαστημόπλοιου](images/sprite-spaceship.png) + +```blocks3 +ολίσθησε για (1) δευτ. στη θέση x: (0) y: (0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/el-GR/step_4.md b/el-GR/step_4.md new file mode 100644 index 000000000..f3ac6e8b8 --- /dev/null +++ b/el-GR/step_4.md @@ -0,0 +1,126 @@ +## Δίνοντας κίνηση με τη χρήση βρόχων + +Ένας άλλος τρόπος να "ζωντανέψεις" το διαστημόπλοιο είναι να του πεις να κινείται ελάχιστα αλλά πολλές φορές + +\--- task \--- + +Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +Όταν στην πράσινη σημαία γίνει κλικ +δείξε προς κατεύθυνση (0) +πήγαινε σε θέση x: (-150) y: (-150) +πες [Πάμε] για (2) δευτερόλεπτα +δείξε προς (Earth v) + +ολίσθησε για (1) δευτ. στη θέση x: (0) y: (0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testing a spaceship animation](images/space-animate-stage.png) + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +Όταν στην πράσινη σημαία γίνει κλικ +δείξε προς κατεύθυνση (0) +πήγαινε σε θέση x: (-150) y: (-150) +πες [Πάμε] για (2) δευτερόλεπτα +δείξε προς (Earth v) + ++ επανέλαβε (200) + κινήσου (2) βήματα +``` + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +Όταν στην πράσινη σημαία γίνει κλικ +δείξε προς κατεύθυνση (0) +πήγαινε σε θέση x: (-150) y: (-150) +πες [Πάμε] για (2) δευτερόλεπτα +δείξε προς (Earth v) +επανάλαβε (200) + κινήσου (2) βήματα + + άλλαξε εφέ [color v] κατά (25) +end +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Your spaceship should start at `100% size`{:class="blocklooks"}, and then `change size`{:class="blocklooks"} by a small amount each time it moves. + +\--- /hint \--- + +\--- hint \--- + +You will need to add these blocks to your code: + +![Αντικείμενο διαστημόπλοιου](images/sprite-spaceship.png) + +```blocks3 +άλλαξε μέγεθος κατά (10) + +όρισε μέγεθος σε (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Your code should look like this: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/el-GR/step_5.md b/el-GR/step_5.md new file mode 100644 index 000000000..fbfa79888 --- /dev/null +++ b/el-GR/step_5.md @@ -0,0 +1,71 @@ +## Αιωρούμενη μαϊμού + +Τώρα θα προσθέσεις μία μαϊμού που χάθηκε στο διάστημα στο κινούμενο σχέδιο! + +\--- task \--- + +Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +για πάντα +end + +στρίψε δεξιόστροφα (15) μοίρες + +Όταν στην πράσινη σημαία γίνει κλικ +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +Όταν στην πράσινη σημαία γίνει κλικ +για πάντα + στρίψε δεξιόστροφα (1) μοίρες +end +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/el-GR/step_6.md b/el-GR/step_6.md new file mode 100644 index 000000000..d79db442e --- /dev/null +++ b/el-GR/step_6.md @@ -0,0 +1,61 @@ +## Αναπήδηση αστεροειδούς + +Τώρα θα προσθέσεις έναν διαστημικό βράχο που επιπλέει στο κινούμενο σχέδιο. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +κινήσου (10) βήματα + +εάν σε όριο, αναπήδησε + +Όταν στην πράσινη σημαία γίνει κλικ + +για πάντα +end +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +στρίψε δεξιόστροφα (15) μοίρες + +δείξε προς (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +Όταν στην πράσινη σημαία γίνει κλικ +δείξε προς (Earth v) +για πάντα + κινήσου (2) βήματα + εάν σε όριο, αναπήδησε +end +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/el-GR/step_7.md b/el-GR/step_7.md new file mode 100644 index 000000000..b4ed36beb --- /dev/null +++ b/el-GR/step_7.md @@ -0,0 +1,63 @@ +## Λαμπρό αστέρι + +Τώρα θα συνδυάσεις βρόχους για να κάνεις ένα λαμπερό αστέρι. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +επανάλαβε (10) +end + +Όταν στην πράσινη σημαία γίνει κλικ + +επανάλαβε (10) +end + +άλλαξε μέγεθος κατά (10) + +άλλαξε μέγεθος κατά (10) + +για πάντα +end +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Star sprite](images/sprite-star.png) + +```blocks3 +Όταν στην πράσινη σημαία γίνει κλικ +για πάντα + επανάλαβε (20) + άλλαξε μέγεθος κατά (2) + end + επανάλαβε (20) + άλλαξε μέγεθος κατά (-2) + end +end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/el-GR/step_8.md b/el-GR/step_8.md new file mode 100644 index 000000000..cfd84ee34 --- /dev/null +++ b/el-GR/step_8.md @@ -0,0 +1,7 @@ +## Πρόκληση: δημιούργησε το δικό σου κινούμενο σχέδιο + +Σταμάτησε το κινούμενο σχέδιο, αποθήκευσε το και ξεκίνα ένα νέο έργο Scratch. + +Χρησιμοποίησε ότι έχεις μάθει σε αυτό το έργο για να δημιουργήσεις το δικό σου κινούμενο σχέδιο. Μπορεί να είναι οτιδήποτε θέλεις, αλλά προσπάθησε να κάνεις το κινούμενο σχέδιο να ταιριάζει με το σκηνικό/φόντο που επιλέγεις. Ορίστε μερικά παραδείγματα: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/el-GR/step_9.md b/el-GR/step_9.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/el-GR/step_9.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/en-US/images/banner.png b/en-US/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/en-US/images/banner.png differ diff --git a/en-US/images/ghostbusters-static.png b/en-US/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/en-US/images/ghostbusters-static.png differ diff --git a/en-US/images/lost-in-space.png b/en-US/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/en-US/images/lost-in-space.png differ diff --git a/en-US/images/make-white.png b/en-US/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/en-US/images/make-white.png differ diff --git a/en-US/images/montage-1.png b/en-US/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/en-US/images/montage-1.png differ diff --git a/en-US/images/montage-2.png b/en-US/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/en-US/images/montage-2.png differ diff --git a/en-US/images/montage-3.png b/en-US/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/en-US/images/montage-3.png differ diff --git a/en-US/images/showcase_static.png b/en-US/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/en-US/images/showcase_static.png differ diff --git a/en-US/images/space-animate-stage.png b/en-US/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/en-US/images/space-animate-stage.png differ diff --git a/en-US/images/space-backdrop.png b/en-US/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/en-US/images/space-backdrop.png differ diff --git a/en-US/images/space-bounce-test.png b/en-US/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/en-US/images/space-bounce-test.png differ diff --git a/en-US/images/space-colour-test.png b/en-US/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/en-US/images/space-colour-test.png differ diff --git a/en-US/images/space-costume.png b/en-US/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/en-US/images/space-costume.png differ diff --git a/en-US/images/space-egs.png b/en-US/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/en-US/images/space-egs.png differ diff --git a/en-US/images/space-monkey-edit.png b/en-US/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/en-US/images/space-monkey-edit.png differ diff --git a/en-US/images/space-monkey-sprite.png b/en-US/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/en-US/images/space-monkey-sprite.png differ diff --git a/en-US/images/space-rock-sprite.png b/en-US/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/en-US/images/space-rock-sprite.png differ diff --git a/en-US/images/space-rotate.png b/en-US/images/space-rotate.png new file mode 100644 index 000000000..916fb08f0 Binary files /dev/null and b/en-US/images/space-rotate.png differ diff --git a/en-US/images/space-size-test.png b/en-US/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/en-US/images/space-size-test.png differ diff --git a/en-US/images/space-spin-test.png b/en-US/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/en-US/images/space-spin-test.png differ diff --git a/en-US/images/space-sprites.png b/en-US/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/en-US/images/space-sprites.png differ diff --git a/en-US/images/space-star-sprite.png b/en-US/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/en-US/images/space-star-sprite.png differ diff --git a/en-US/images/sprite-earth.png b/en-US/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/en-US/images/sprite-earth.png differ diff --git a/en-US/images/sprite-monkey.png b/en-US/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/en-US/images/sprite-monkey.png differ diff --git a/en-US/images/sprite-rock.png b/en-US/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/en-US/images/sprite-rock.png differ diff --git a/en-US/images/sprite-spaceship.png b/en-US/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/en-US/images/sprite-spaceship.png differ diff --git a/en-US/images/sprite-star.png b/en-US/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/en-US/images/sprite-star.png differ diff --git a/en-US/images/trim_and_tile.sh b/en-US/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/en-US/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/en-US/meta.yml b/en-US/meta.yml new file mode 100644 index 000000000..b207a1b45 --- /dev/null +++ b/en-US/meta.yml @@ -0,0 +1,35 @@ +--- +title: Lost in space +hero_image: images/lost-in-space.png +description: Learn how to program your own animation! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introduction + - + title: Animating a spaceship + - + title: 'Challenge: improve your animation' + challenge: true + - + title: Animation using loops + completion: + - engaged + - + title: Floating monkey + - + title: Bouncing asteroid + - + title: Shining star + completion: + - internal + - + title: 'Challenge: make your own animation' + challenge: true + - + title: What next? diff --git a/en-US/scratch-translatable.txt b/en-US/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/en-US/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/en-US/solutions/lost-in-space-solution.sb3 b/en-US/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/en-US/solutions/lost-in-space-solution.sb3 differ diff --git a/en-US/step_1.md b/en-US/step_1.md new file mode 100644 index 000000000..bc43f86cd --- /dev/null +++ b/en-US/step_1.md @@ -0,0 +1,60 @@ +## Introduction + +You are going to learn how to program your own animation! + +### What you will make + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: What you will need + +### Hardware + +- A computer capable of running Scratch 3 + +### Software + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + +- None + +\--- /collapse \--- + +## \--- collapse \--- + +## title: What you will learn + +- Use a repeat loop to animate a sprite in Scratch +- Use a forever loop to repeat an animation indefinitely +- Understand that loops can be nested within each other + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Additional information for educators + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/en-US/step_10.md b/en-US/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/en-US/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/en-US/step_2.md b/en-US/step_2.md new file mode 100644 index 000000000..cbcdff0c6 --- /dev/null +++ b/en-US/step_2.md @@ -0,0 +1,72 @@ +## Animating a spaceship + +Your first step will be to create a spaceship that flies towards the Earth! + +\--- task \--- + +Open a new Scratch project. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** open a new project in the offline editor. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/en-US/step_3.md b/en-US/step_3.md new file mode 100644 index 000000000..4af9cb400 --- /dev/null +++ b/en-US/step_3.md @@ -0,0 +1,16 @@ +## Challenge: improve your animation + +Can you change the numbers in your animation code so that: + ++ The spaceship moves until it touches the Earth? ++ The spaceship moves more slowly towards the Earth? + +You'll need to change the numbers in this block: + +![Rocketship sprite](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/en-US/step_4.md b/en-US/step_4.md new file mode 100644 index 000000000..0e1397c55 --- /dev/null +++ b/en-US/step_4.md @@ -0,0 +1,126 @@ +## Animation using loops + +Another way to animate the spaceship is to tell it to move a small amount many times + +\--- task \--- + +Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testing a spaceship animation](images/space-animate-stage.png) + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Your spaceship should start at `100% size`{:class="blocklooks"}, and then `change size`{:class="blocklooks"} by a small amount each time it moves. + +\--- /hint \--- + +\--- hint \--- + +You will need to add these blocks to your code: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Your code should look like this: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/en-US/step_5.md b/en-US/step_5.md new file mode 100644 index 000000000..ab4c451b7 --- /dev/null +++ b/en-US/step_5.md @@ -0,0 +1,70 @@ +## Floating monkey + +Now you will add a monkey who's lost in space to your animation! + +\--- task \--- + +Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/en-US/step_6.md b/en-US/step_6.md new file mode 100644 index 000000000..729b6d975 --- /dev/null +++ b/en-US/step_6.md @@ -0,0 +1,59 @@ +## Bouncing asteroid + +Now you will add a floating space rock to your animation. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/en-US/step_7.md b/en-US/step_7.md new file mode 100644 index 000000000..e53504c76 --- /dev/null +++ b/en-US/step_7.md @@ -0,0 +1,61 @@ +## Shining star + +Now you will combine loops to make a shining star. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Star sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/en-US/step_8.md b/en-US/step_8.md new file mode 100644 index 000000000..841b139ec --- /dev/null +++ b/en-US/step_8.md @@ -0,0 +1,7 @@ +## Challenge: make your own animation + +Stop your space animation, save it, and start a new Scratch project. + +Use what you've learned in this project to make your own animation. It can be anything you like, but try to make your animation match the background you choose. Here are some examples: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/en-US/step_9.md b/en-US/step_9.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/en-US/step_9.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/es-CO/images/banner.png b/es-CO/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/es-CO/images/banner.png differ diff --git a/es-CO/images/ghostbusters-static.png b/es-CO/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/es-CO/images/ghostbusters-static.png differ diff --git a/es-CO/images/lost-in-space.png b/es-CO/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/es-CO/images/lost-in-space.png differ diff --git a/es-CO/images/make-white.png b/es-CO/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/es-CO/images/make-white.png differ diff --git a/es-CO/images/showcase_static.png b/es-CO/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/es-CO/images/showcase_static.png differ diff --git a/es-CO/images/space-animate-stage.png b/es-CO/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/es-CO/images/space-animate-stage.png differ diff --git a/es-CO/images/space-animate.png b/es-CO/images/space-animate.png new file mode 100644 index 000000000..46a5038ab Binary files /dev/null and b/es-CO/images/space-animate.png differ diff --git a/es-CO/images/space-backdrop.png b/es-CO/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/es-CO/images/space-backdrop.png differ diff --git a/es-CO/images/space-bounce-blocks.png b/es-CO/images/space-bounce-blocks.png new file mode 100644 index 000000000..9294bb7f7 Binary files /dev/null and b/es-CO/images/space-bounce-blocks.png differ diff --git a/es-CO/images/space-bounce-code.png b/es-CO/images/space-bounce-code.png new file mode 100644 index 000000000..e8791d62f Binary files /dev/null and b/es-CO/images/space-bounce-code.png differ diff --git a/es-CO/images/space-bounce-test.png b/es-CO/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/es-CO/images/space-bounce-test.png differ diff --git a/es-CO/images/space-colour-blocks.png b/es-CO/images/space-colour-blocks.png new file mode 100644 index 000000000..54461788b Binary files /dev/null and b/es-CO/images/space-colour-blocks.png differ diff --git a/es-CO/images/space-colour-code.png b/es-CO/images/space-colour-code.png new file mode 100644 index 000000000..8afbd513d Binary files /dev/null and b/es-CO/images/space-colour-code.png differ diff --git a/es-CO/images/space-colour-test.png b/es-CO/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/es-CO/images/space-colour-test.png differ diff --git a/es-CO/images/space-costume.png b/es-CO/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/es-CO/images/space-costume.png differ diff --git a/es-CO/images/space-delete-glide.png b/es-CO/images/space-delete-glide.png new file mode 100644 index 000000000..1d6fe71a9 Binary files /dev/null and b/es-CO/images/space-delete-glide.png differ diff --git a/es-CO/images/space-egs.png b/es-CO/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/es-CO/images/space-egs.png differ diff --git a/es-CO/images/space-glide.png b/es-CO/images/space-glide.png new file mode 100644 index 000000000..c04d7bfa9 Binary files /dev/null and b/es-CO/images/space-glide.png differ diff --git a/es-CO/images/space-initial-position.png b/es-CO/images/space-initial-position.png new file mode 100644 index 000000000..260fa4f54 Binary files /dev/null and b/es-CO/images/space-initial-position.png differ diff --git a/es-CO/images/space-monkey-edit.png b/es-CO/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/es-CO/images/space-monkey-edit.png differ diff --git a/es-CO/images/space-monkey-sprite.png b/es-CO/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/es-CO/images/space-monkey-sprite.png differ diff --git a/es-CO/images/space-repeat-blocks.png b/es-CO/images/space-repeat-blocks.png new file mode 100644 index 000000000..287663af6 Binary files /dev/null and b/es-CO/images/space-repeat-blocks.png differ diff --git a/es-CO/images/space-repeat-code.png b/es-CO/images/space-repeat-code.png new file mode 100644 index 000000000..9800ca99d Binary files /dev/null and b/es-CO/images/space-repeat-code.png differ diff --git a/es-CO/images/space-rock-sprite.png b/es-CO/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/es-CO/images/space-rock-sprite.png differ diff --git a/es-CO/images/space-rotate.png b/es-CO/images/space-rotate.png new file mode 100644 index 000000000..916fb08f0 Binary files /dev/null and b/es-CO/images/space-rotate.png differ diff --git a/es-CO/images/space-size-blocks.png b/es-CO/images/space-size-blocks.png new file mode 100644 index 000000000..1124075a4 Binary files /dev/null and b/es-CO/images/space-size-blocks.png differ diff --git a/es-CO/images/space-size-code.png b/es-CO/images/space-size-code.png new file mode 100644 index 000000000..14c5d7bcc Binary files /dev/null and b/es-CO/images/space-size-code.png differ diff --git a/es-CO/images/space-size-test.png b/es-CO/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/es-CO/images/space-size-test.png differ diff --git a/es-CO/images/space-spin-blocks.png b/es-CO/images/space-spin-blocks.png new file mode 100644 index 000000000..ca9fd52ee Binary files /dev/null and b/es-CO/images/space-spin-blocks.png differ diff --git a/es-CO/images/space-spin-code.png b/es-CO/images/space-spin-code.png new file mode 100644 index 000000000..8b3b016f9 Binary files /dev/null and b/es-CO/images/space-spin-code.png differ diff --git a/es-CO/images/space-spin-test.png b/es-CO/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/es-CO/images/space-spin-test.png differ diff --git a/es-CO/images/space-sprites.png b/es-CO/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/es-CO/images/space-sprites.png differ diff --git a/es-CO/images/space-star-blocks.png b/es-CO/images/space-star-blocks.png new file mode 100644 index 000000000..f3b9f1e81 Binary files /dev/null and b/es-CO/images/space-star-blocks.png differ diff --git a/es-CO/images/space-star-code.png b/es-CO/images/space-star-code.png new file mode 100644 index 000000000..7097d2e12 Binary files /dev/null and b/es-CO/images/space-star-code.png differ diff --git a/es-CO/images/space-star-sprite.png b/es-CO/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/es-CO/images/space-star-sprite.png differ diff --git a/es-CO/images/space-star-test.png b/es-CO/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/es-CO/images/space-star-test.png differ diff --git a/es-CO/images/sprite-earth.png b/es-CO/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/es-CO/images/sprite-earth.png differ diff --git a/es-CO/images/sprite-monkey.png b/es-CO/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/es-CO/images/sprite-monkey.png differ diff --git a/es-CO/images/sprite-rock.png b/es-CO/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/es-CO/images/sprite-rock.png differ diff --git a/es-CO/images/sprite-spaceship.png b/es-CO/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/es-CO/images/sprite-spaceship.png differ diff --git a/es-CO/images/sprite-star.png b/es-CO/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/es-CO/images/sprite-star.png differ diff --git a/es-CO/meta.yml b/es-CO/meta.yml new file mode 100644 index 000000000..c05588878 --- /dev/null +++ b/es-CO/meta.yml @@ -0,0 +1,31 @@ +--- +title: Lost in space +hero_image: images/lost-in-space.png +description: Learn how to program your own animation! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introduction + - + title: Animating a spaceship + - + title: 'Challenge: improve your animation' + challenge: true + - + title: Animation using loops + - + title: Floating monkey + - + title: Bouncing asteroid + - + title: Shining star + - + title: 'Challenge: make your own animation' + challenge: true + - + title: What next? diff --git a/es-CO/resources/LostinSpace-Finished.sb2 b/es-CO/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..89753817a Binary files /dev/null and b/es-CO/resources/LostinSpace-Finished.sb2 differ diff --git a/es-CO/solutions/lost-in-space-solution.sb3 b/es-CO/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/es-CO/solutions/lost-in-space-solution.sb3 differ diff --git a/es-CO/step_1.md b/es-CO/step_1.md new file mode 100644 index 000000000..0655b7327 --- /dev/null +++ b/es-CO/step_1.md @@ -0,0 +1,63 @@ +\--- no-print \--- + +This is the **Scratch 3** version of the project. There is also a [Scratch 2 version of the project](https://projects.raspberrypi.org/en/projects/lost-in-space-scratch2). + +\--- /no-print \--- + +## Introduction + +You are going to learn how to program your own animation! + +### What you will make + +\--- no-print \--- Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: What you will need + +### Hardware + ++ A computer capable of running Scratch 3 + +### Software + ++ Scratch 3 (either [online](http://rpf.io/scratchon){:target="_blank"} or [offline](http://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + ++ None + +\--- /collapse \--- + +## \--- collapse \--- + +## title: What you will learn + ++ Animate a sprite using a loop ++ Change the appearance of a sprite + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Additional information for educators + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +[Here is a link to the solution for this project](http://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/es-CO/step_2.md b/es-CO/step_2.md new file mode 100644 index 000000000..35c7232f7 --- /dev/null +++ b/es-CO/step_2.md @@ -0,0 +1,62 @@ +## Animating a spaceship + +Your first step will be to create a spaceship that flies towards the Earth! + +\--- task \--- + +Open a new Scratch project. + +**Online:** open a new online Scratch project at [rpf.io/scratchon](http://rpf.io/scratchon){:target="_blank"}. + +**Offline:** open a new project in the offline editor. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](http://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/es-CO/step_3.md b/es-CO/step_3.md new file mode 100644 index 000000000..4af9cb400 --- /dev/null +++ b/es-CO/step_3.md @@ -0,0 +1,16 @@ +## Challenge: improve your animation + +Can you change the numbers in your animation code so that: + ++ The spaceship moves until it touches the Earth? ++ The spaceship moves more slowly towards the Earth? + +You'll need to change the numbers in this block: + +![Rocketship sprite](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/es-CO/step_4.md b/es-CO/step_4.md new file mode 100644 index 000000000..141e0e8e6 --- /dev/null +++ b/es-CO/step_4.md @@ -0,0 +1,89 @@ +## Animation using loops + +Another way to animate the spaceship is to tell it to move a small amount many times + +\--- task \--- Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- Can you use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth? + +![Testing a spaceship animation](images/space-animate-stage.png) + +\--- hints \--- \--- hint \--- + +Instead of **gliding**, your spaceship should **repeatedly** **move** a few steps at a time. + +\--- /hint \--- \--- hint \--- Here are the code blocks you need: + +```blocks3 +move (10) steps + +repeat (10) +``` + +\--- /hint \--- \--- hint \--- Here is the code to animate your spaceship: ![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps +``` + +You can use different numbers in the `repeat`{:class="block3control"} and `move`{:class="block3motion"} blocks, as long as the spaceship still gets to Earth! \--- /hint \--- \--- /hints \--- + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- Can you add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change [color v] effect by (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- Can you make your spaceship get smaller as it moves towards Earth? + +Your spaceship should start at **100% size**, and then **change size** by a small amount each time it moves. + +Use these blocks: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/es-CO/step_5.md b/es-CO/step_5.md new file mode 100644 index 000000000..e20d2ca36 --- /dev/null +++ b/es-CO/step_5.md @@ -0,0 +1,60 @@ +## Floating monkey + +Now you will add a monkey who's lost in space to your animation! + +\--- task \--- Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) \--- /task \--- + +\--- task \--- Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/es-CO/step_6.md b/es-CO/step_6.md new file mode 100644 index 000000000..c59e2c9de --- /dev/null +++ b/es-CO/step_6.md @@ -0,0 +1,49 @@ +## Bouncing asteroid + +Now you will add a floating space rock to your animation. + +\--- task \--- Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. \--- /hint \--- \--- hint \--- Here are the code blocks you need: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/es-CO/step_7.md b/es-CO/step_7.md new file mode 100644 index 000000000..cadbb6704 --- /dev/null +++ b/es-CO/step_7.md @@ -0,0 +1,47 @@ +## Shining star + +Now you will combine loops to make a shining star. + +\--- task \--- Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. \--- /hint \--- \--- hint \--- Here are the code blocks you need: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- Here's the code to make your star grow and shrink: ![Star sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/es-CO/step_8.md b/es-CO/step_8.md new file mode 100644 index 000000000..841b139ec --- /dev/null +++ b/es-CO/step_8.md @@ -0,0 +1,7 @@ +## Challenge: make your own animation + +Stop your space animation, save it, and start a new Scratch project. + +Use what you've learned in this project to make your own animation. It can be anything you like, but try to make your animation match the background you choose. Here are some examples: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/es-CO/step_9.md b/es-CO/step_9.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/es-CO/step_9.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/es-CU/images/banner.png b/es-CU/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/es-CU/images/banner.png differ diff --git a/es-CU/images/ghostbusters-static.png b/es-CU/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/es-CU/images/ghostbusters-static.png differ diff --git a/es-CU/images/lost-in-space.png b/es-CU/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/es-CU/images/lost-in-space.png differ diff --git a/es-CU/images/make-white.png b/es-CU/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/es-CU/images/make-white.png differ diff --git a/es-CU/images/showcase_static.png b/es-CU/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/es-CU/images/showcase_static.png differ diff --git a/es-CU/images/space-animate-stage.png b/es-CU/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/es-CU/images/space-animate-stage.png differ diff --git a/es-CU/images/space-animate.png b/es-CU/images/space-animate.png new file mode 100644 index 000000000..46a5038ab Binary files /dev/null and b/es-CU/images/space-animate.png differ diff --git a/es-CU/images/space-backdrop.png b/es-CU/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/es-CU/images/space-backdrop.png differ diff --git a/es-CU/images/space-bounce-blocks.png b/es-CU/images/space-bounce-blocks.png new file mode 100644 index 000000000..9294bb7f7 Binary files /dev/null and b/es-CU/images/space-bounce-blocks.png differ diff --git a/es-CU/images/space-bounce-code.png b/es-CU/images/space-bounce-code.png new file mode 100644 index 000000000..e8791d62f Binary files /dev/null and b/es-CU/images/space-bounce-code.png differ diff --git a/es-CU/images/space-bounce-test.png b/es-CU/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/es-CU/images/space-bounce-test.png differ diff --git a/es-CU/images/space-colour-blocks.png b/es-CU/images/space-colour-blocks.png new file mode 100644 index 000000000..54461788b Binary files /dev/null and b/es-CU/images/space-colour-blocks.png differ diff --git a/es-CU/images/space-colour-code.png b/es-CU/images/space-colour-code.png new file mode 100644 index 000000000..8afbd513d Binary files /dev/null and b/es-CU/images/space-colour-code.png differ diff --git a/es-CU/images/space-colour-test.png b/es-CU/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/es-CU/images/space-colour-test.png differ diff --git a/es-CU/images/space-costume.png b/es-CU/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/es-CU/images/space-costume.png differ diff --git a/es-CU/images/space-delete-glide.png b/es-CU/images/space-delete-glide.png new file mode 100644 index 000000000..1d6fe71a9 Binary files /dev/null and b/es-CU/images/space-delete-glide.png differ diff --git a/es-CU/images/space-egs.png b/es-CU/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/es-CU/images/space-egs.png differ diff --git a/es-CU/images/space-glide.png b/es-CU/images/space-glide.png new file mode 100644 index 000000000..c04d7bfa9 Binary files /dev/null and b/es-CU/images/space-glide.png differ diff --git a/es-CU/images/space-initial-position.png b/es-CU/images/space-initial-position.png new file mode 100644 index 000000000..260fa4f54 Binary files /dev/null and b/es-CU/images/space-initial-position.png differ diff --git a/es-CU/images/space-monkey-edit.png b/es-CU/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/es-CU/images/space-monkey-edit.png differ diff --git a/es-CU/images/space-monkey-sprite.png b/es-CU/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/es-CU/images/space-monkey-sprite.png differ diff --git a/es-CU/images/space-repeat-blocks.png b/es-CU/images/space-repeat-blocks.png new file mode 100644 index 000000000..287663af6 Binary files /dev/null and b/es-CU/images/space-repeat-blocks.png differ diff --git a/es-CU/images/space-repeat-code.png b/es-CU/images/space-repeat-code.png new file mode 100644 index 000000000..9800ca99d Binary files /dev/null and b/es-CU/images/space-repeat-code.png differ diff --git a/es-CU/images/space-rock-sprite.png b/es-CU/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/es-CU/images/space-rock-sprite.png differ diff --git a/es-CU/images/space-rotate.png b/es-CU/images/space-rotate.png new file mode 100644 index 000000000..916fb08f0 Binary files /dev/null and b/es-CU/images/space-rotate.png differ diff --git a/es-CU/images/space-size-blocks.png b/es-CU/images/space-size-blocks.png new file mode 100644 index 000000000..1124075a4 Binary files /dev/null and b/es-CU/images/space-size-blocks.png differ diff --git a/es-CU/images/space-size-code.png b/es-CU/images/space-size-code.png new file mode 100644 index 000000000..14c5d7bcc Binary files /dev/null and b/es-CU/images/space-size-code.png differ diff --git a/es-CU/images/space-size-test.png b/es-CU/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/es-CU/images/space-size-test.png differ diff --git a/es-CU/images/space-spin-blocks.png b/es-CU/images/space-spin-blocks.png new file mode 100644 index 000000000..ca9fd52ee Binary files /dev/null and b/es-CU/images/space-spin-blocks.png differ diff --git a/es-CU/images/space-spin-code.png b/es-CU/images/space-spin-code.png new file mode 100644 index 000000000..8b3b016f9 Binary files /dev/null and b/es-CU/images/space-spin-code.png differ diff --git a/es-CU/images/space-spin-test.png b/es-CU/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/es-CU/images/space-spin-test.png differ diff --git a/es-CU/images/space-sprites.png b/es-CU/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/es-CU/images/space-sprites.png differ diff --git a/es-CU/images/space-star-blocks.png b/es-CU/images/space-star-blocks.png new file mode 100644 index 000000000..f3b9f1e81 Binary files /dev/null and b/es-CU/images/space-star-blocks.png differ diff --git a/es-CU/images/space-star-code.png b/es-CU/images/space-star-code.png new file mode 100644 index 000000000..7097d2e12 Binary files /dev/null and b/es-CU/images/space-star-code.png differ diff --git a/es-CU/images/space-star-sprite.png b/es-CU/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/es-CU/images/space-star-sprite.png differ diff --git a/es-CU/images/space-star-test.png b/es-CU/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/es-CU/images/space-star-test.png differ diff --git a/es-CU/images/sprite-earth.png b/es-CU/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/es-CU/images/sprite-earth.png differ diff --git a/es-CU/images/sprite-monkey.png b/es-CU/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/es-CU/images/sprite-monkey.png differ diff --git a/es-CU/images/sprite-rock.png b/es-CU/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/es-CU/images/sprite-rock.png differ diff --git a/es-CU/images/sprite-spaceship.png b/es-CU/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/es-CU/images/sprite-spaceship.png differ diff --git a/es-CU/images/sprite-star.png b/es-CU/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/es-CU/images/sprite-star.png differ diff --git a/es-CU/meta.yml b/es-CU/meta.yml new file mode 100644 index 000000000..c05588878 --- /dev/null +++ b/es-CU/meta.yml @@ -0,0 +1,31 @@ +--- +title: Lost in space +hero_image: images/lost-in-space.png +description: Learn how to program your own animation! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introduction + - + title: Animating a spaceship + - + title: 'Challenge: improve your animation' + challenge: true + - + title: Animation using loops + - + title: Floating monkey + - + title: Bouncing asteroid + - + title: Shining star + - + title: 'Challenge: make your own animation' + challenge: true + - + title: What next? diff --git a/es-CU/resources/LostinSpace-Finished.sb2 b/es-CU/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..89753817a Binary files /dev/null and b/es-CU/resources/LostinSpace-Finished.sb2 differ diff --git a/es-CU/solutions/lost-in-space-solution.sb3 b/es-CU/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/es-CU/solutions/lost-in-space-solution.sb3 differ diff --git a/es-CU/step_1.md b/es-CU/step_1.md new file mode 100644 index 000000000..0655b7327 --- /dev/null +++ b/es-CU/step_1.md @@ -0,0 +1,63 @@ +\--- no-print \--- + +This is the **Scratch 3** version of the project. There is also a [Scratch 2 version of the project](https://projects.raspberrypi.org/en/projects/lost-in-space-scratch2). + +\--- /no-print \--- + +## Introduction + +You are going to learn how to program your own animation! + +### What you will make + +\--- no-print \--- Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: What you will need + +### Hardware + ++ A computer capable of running Scratch 3 + +### Software + ++ Scratch 3 (either [online](http://rpf.io/scratchon){:target="_blank"} or [offline](http://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + ++ None + +\--- /collapse \--- + +## \--- collapse \--- + +## title: What you will learn + ++ Animate a sprite using a loop ++ Change the appearance of a sprite + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Additional information for educators + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +[Here is a link to the solution for this project](http://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/es-CU/step_2.md b/es-CU/step_2.md new file mode 100644 index 000000000..35c7232f7 --- /dev/null +++ b/es-CU/step_2.md @@ -0,0 +1,62 @@ +## Animating a spaceship + +Your first step will be to create a spaceship that flies towards the Earth! + +\--- task \--- + +Open a new Scratch project. + +**Online:** open a new online Scratch project at [rpf.io/scratchon](http://rpf.io/scratchon){:target="_blank"}. + +**Offline:** open a new project in the offline editor. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](http://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/es-CU/step_3.md b/es-CU/step_3.md new file mode 100644 index 000000000..4af9cb400 --- /dev/null +++ b/es-CU/step_3.md @@ -0,0 +1,16 @@ +## Challenge: improve your animation + +Can you change the numbers in your animation code so that: + ++ The spaceship moves until it touches the Earth? ++ The spaceship moves more slowly towards the Earth? + +You'll need to change the numbers in this block: + +![Rocketship sprite](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/es-CU/step_4.md b/es-CU/step_4.md new file mode 100644 index 000000000..141e0e8e6 --- /dev/null +++ b/es-CU/step_4.md @@ -0,0 +1,89 @@ +## Animation using loops + +Another way to animate the spaceship is to tell it to move a small amount many times + +\--- task \--- Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- Can you use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth? + +![Testing a spaceship animation](images/space-animate-stage.png) + +\--- hints \--- \--- hint \--- + +Instead of **gliding**, your spaceship should **repeatedly** **move** a few steps at a time. + +\--- /hint \--- \--- hint \--- Here are the code blocks you need: + +```blocks3 +move (10) steps + +repeat (10) +``` + +\--- /hint \--- \--- hint \--- Here is the code to animate your spaceship: ![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps +``` + +You can use different numbers in the `repeat`{:class="block3control"} and `move`{:class="block3motion"} blocks, as long as the spaceship still gets to Earth! \--- /hint \--- \--- /hints \--- + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- Can you add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change [color v] effect by (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- Can you make your spaceship get smaller as it moves towards Earth? + +Your spaceship should start at **100% size**, and then **change size** by a small amount each time it moves. + +Use these blocks: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/es-CU/step_5.md b/es-CU/step_5.md new file mode 100644 index 000000000..e20d2ca36 --- /dev/null +++ b/es-CU/step_5.md @@ -0,0 +1,60 @@ +## Floating monkey + +Now you will add a monkey who's lost in space to your animation! + +\--- task \--- Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) \--- /task \--- + +\--- task \--- Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/es-CU/step_6.md b/es-CU/step_6.md new file mode 100644 index 000000000..c59e2c9de --- /dev/null +++ b/es-CU/step_6.md @@ -0,0 +1,49 @@ +## Bouncing asteroid + +Now you will add a floating space rock to your animation. + +\--- task \--- Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. \--- /hint \--- \--- hint \--- Here are the code blocks you need: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/es-CU/step_7.md b/es-CU/step_7.md new file mode 100644 index 000000000..cadbb6704 --- /dev/null +++ b/es-CU/step_7.md @@ -0,0 +1,47 @@ +## Shining star + +Now you will combine loops to make a shining star. + +\--- task \--- Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. \--- /hint \--- \--- hint \--- Here are the code blocks you need: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- Here's the code to make your star grow and shrink: ![Star sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/es-CU/step_8.md b/es-CU/step_8.md new file mode 100644 index 000000000..841b139ec --- /dev/null +++ b/es-CU/step_8.md @@ -0,0 +1,7 @@ +## Challenge: make your own animation + +Stop your space animation, save it, and start a new Scratch project. + +Use what you've learned in this project to make your own animation. It can be anything you like, but try to make your animation match the background you choose. Here are some examples: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/es-CU/step_9.md b/es-CU/step_9.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/es-CU/step_9.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/es-ES/images/banner.png b/es-ES/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/es-ES/images/banner.png differ diff --git a/es-ES/images/ghostbusters-static.png b/es-ES/images/ghostbusters-static.png new file mode 100644 index 000000000..a7df4b54d Binary files /dev/null and b/es-ES/images/ghostbusters-static.png differ diff --git a/es-ES/images/lost-in-space.png b/es-ES/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/es-ES/images/lost-in-space.png differ diff --git a/es-ES/images/make-white.png b/es-ES/images/make-white.png new file mode 100644 index 000000000..feb3bd11e Binary files /dev/null and b/es-ES/images/make-white.png differ diff --git a/es-ES/images/montage-1.png b/es-ES/images/montage-1.png new file mode 100644 index 000000000..70f340344 Binary files /dev/null and b/es-ES/images/montage-1.png differ diff --git a/es-ES/images/montage-2.png b/es-ES/images/montage-2.png new file mode 100644 index 000000000..4b9af24e4 Binary files /dev/null and b/es-ES/images/montage-2.png differ diff --git a/es-ES/images/montage-3.png b/es-ES/images/montage-3.png new file mode 100644 index 000000000..d619f4512 Binary files /dev/null and b/es-ES/images/montage-3.png differ diff --git a/es-ES/images/showcase_static.png b/es-ES/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/es-ES/images/showcase_static.png differ diff --git a/es-ES/images/space-animate-stage.png b/es-ES/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/es-ES/images/space-animate-stage.png differ diff --git a/es-ES/images/space-animate.png b/es-ES/images/space-animate.png new file mode 100644 index 000000000..601be1302 Binary files /dev/null and b/es-ES/images/space-animate.png differ diff --git a/es-ES/images/space-backdrop.png b/es-ES/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/es-ES/images/space-backdrop.png differ diff --git a/es-ES/images/space-bounce-blocks.png b/es-ES/images/space-bounce-blocks.png new file mode 100644 index 000000000..29c6485c3 Binary files /dev/null and b/es-ES/images/space-bounce-blocks.png differ diff --git a/es-ES/images/space-bounce-code.png b/es-ES/images/space-bounce-code.png new file mode 100644 index 000000000..5c4e37d91 Binary files /dev/null and b/es-ES/images/space-bounce-code.png differ diff --git a/es-ES/images/space-bounce-test.png b/es-ES/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/es-ES/images/space-bounce-test.png differ diff --git a/es-ES/images/space-colour-blocks.png b/es-ES/images/space-colour-blocks.png new file mode 100644 index 000000000..9d5c3618b Binary files /dev/null and b/es-ES/images/space-colour-blocks.png differ diff --git a/es-ES/images/space-colour-code.png b/es-ES/images/space-colour-code.png new file mode 100644 index 000000000..ca1bdcf9e Binary files /dev/null and b/es-ES/images/space-colour-code.png differ diff --git a/es-ES/images/space-colour-test.png b/es-ES/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/es-ES/images/space-colour-test.png differ diff --git a/es-ES/images/space-costume.png b/es-ES/images/space-costume.png new file mode 100644 index 000000000..03831cb77 Binary files /dev/null and b/es-ES/images/space-costume.png differ diff --git a/es-ES/images/space-delete-glide.png b/es-ES/images/space-delete-glide.png new file mode 100644 index 000000000..4e534c26c Binary files /dev/null and b/es-ES/images/space-delete-glide.png differ diff --git a/es-ES/images/space-egs.png b/es-ES/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/es-ES/images/space-egs.png differ diff --git a/es-ES/images/space-glide.png b/es-ES/images/space-glide.png new file mode 100644 index 000000000..d5897d40b Binary files /dev/null and b/es-ES/images/space-glide.png differ diff --git a/es-ES/images/space-initial-position.png b/es-ES/images/space-initial-position.png new file mode 100644 index 000000000..fecfc4967 Binary files /dev/null and b/es-ES/images/space-initial-position.png differ diff --git a/es-ES/images/space-monkey-edit.png b/es-ES/images/space-monkey-edit.png new file mode 100644 index 000000000..0a1d15956 Binary files /dev/null and b/es-ES/images/space-monkey-edit.png differ diff --git a/es-ES/images/space-monkey-sprite.png b/es-ES/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/es-ES/images/space-monkey-sprite.png differ diff --git a/es-ES/images/space-repeat-blocks.png b/es-ES/images/space-repeat-blocks.png new file mode 100644 index 000000000..7cbb7e691 Binary files /dev/null and b/es-ES/images/space-repeat-blocks.png differ diff --git a/es-ES/images/space-repeat-code.png b/es-ES/images/space-repeat-code.png new file mode 100644 index 000000000..e8c6d11de Binary files /dev/null and b/es-ES/images/space-repeat-code.png differ diff --git a/es-ES/images/space-rock-sprite.png b/es-ES/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/es-ES/images/space-rock-sprite.png differ diff --git a/es-ES/images/space-rotate.png b/es-ES/images/space-rotate.png new file mode 100644 index 000000000..6682f0437 Binary files /dev/null and b/es-ES/images/space-rotate.png differ diff --git a/es-ES/images/space-size-blocks.png b/es-ES/images/space-size-blocks.png new file mode 100644 index 000000000..05c3a9a34 Binary files /dev/null and b/es-ES/images/space-size-blocks.png differ diff --git a/es-ES/images/space-size-code.png b/es-ES/images/space-size-code.png new file mode 100644 index 000000000..58e8d16c1 Binary files /dev/null and b/es-ES/images/space-size-code.png differ diff --git a/es-ES/images/space-size-test.png b/es-ES/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/es-ES/images/space-size-test.png differ diff --git a/es-ES/images/space-spin-blocks.png b/es-ES/images/space-spin-blocks.png new file mode 100644 index 000000000..cf0865d51 Binary files /dev/null and b/es-ES/images/space-spin-blocks.png differ diff --git a/es-ES/images/space-spin-code.png b/es-ES/images/space-spin-code.png new file mode 100644 index 000000000..616a2aef8 Binary files /dev/null and b/es-ES/images/space-spin-code.png differ diff --git a/es-ES/images/space-spin-test.png b/es-ES/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/es-ES/images/space-spin-test.png differ diff --git a/es-ES/images/space-sprites.png b/es-ES/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/es-ES/images/space-sprites.png differ diff --git a/es-ES/images/space-star-blocks.png b/es-ES/images/space-star-blocks.png new file mode 100644 index 000000000..21e8f20ef Binary files /dev/null and b/es-ES/images/space-star-blocks.png differ diff --git a/es-ES/images/space-star-code.png b/es-ES/images/space-star-code.png new file mode 100644 index 000000000..a1937ce48 Binary files /dev/null and b/es-ES/images/space-star-code.png differ diff --git a/es-ES/images/space-star-sprite.png b/es-ES/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/es-ES/images/space-star-sprite.png differ diff --git a/es-ES/images/space-star-test.png b/es-ES/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/es-ES/images/space-star-test.png differ diff --git a/es-ES/images/sprite-earth.png b/es-ES/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/es-ES/images/sprite-earth.png differ diff --git a/es-ES/images/sprite-monkey.png b/es-ES/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/es-ES/images/sprite-monkey.png differ diff --git a/es-ES/images/sprite-rock.png b/es-ES/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/es-ES/images/sprite-rock.png differ diff --git a/es-ES/images/sprite-spaceship.png b/es-ES/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/es-ES/images/sprite-spaceship.png differ diff --git a/es-ES/images/sprite-star.png b/es-ES/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/es-ES/images/sprite-star.png differ diff --git a/es-ES/images/trim_and_tile.sh b/es-ES/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/es-ES/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/es-ES/meta.yml b/es-ES/meta.yml new file mode 100644 index 000000000..0a27da193 --- /dev/null +++ b/es-ES/meta.yml @@ -0,0 +1,35 @@ +--- +title: Perdidos en el espacio +hero_image: images/lost-in-space.png +description: '¡Aprende a programar tu propia animación!' +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introducción + - + title: Animación de una nave espacial + - + title: 'Desafío: mejora tu animación' + challenge: true + - + title: Animación usando bucles + completion: + - engaged + - + title: Mono flotante + - + title: Un asteroide que rebota + - + title: Una estrella brillante + completion: + - internal + - + title: 'Desafío: Haz tu propia animación' + challenge: true + - + title: '¿Qué sigue?' diff --git a/es-ES/resources/LostinSpace-Finished.sb2 b/es-ES/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..4cbd9e9ea Binary files /dev/null and b/es-ES/resources/LostinSpace-Finished.sb2 differ diff --git a/es-ES/scratch-translatable.txt b/es-ES/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/es-ES/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/es-ES/solutions/lost-in-space-solution.sb3 b/es-ES/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..529a76a53 Binary files /dev/null and b/es-ES/solutions/lost-in-space-solution.sb3 differ diff --git a/es-ES/step_1.md b/es-ES/step_1.md new file mode 100644 index 000000000..80494d5ea --- /dev/null +++ b/es-ES/step_1.md @@ -0,0 +1,60 @@ +## Introducción + +You are going to learn how to program your own animation! + +### Lo que crearás + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: Lo que necesitarás + +### Hardware + +- Un ordenador capaz de ejecutar Scratch 3 + +### Software + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Descargas + +- Ninguno + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Lo que aprenderás + +- Usar un bucle de repetición para animar un objeto en Scratch +- Usar un bucle infinito para repetir la animación indefinidamente +- Entender que los bucles pueden estar anidados unos dentro de otros + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Información adicional para educadores + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/es-ES/step_10.md b/es-ES/step_10.md new file mode 100644 index 000000000..50995e0b6 --- /dev/null +++ b/es-ES/step_10.md @@ -0,0 +1,18 @@ +## Desafío: más colores + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![exposición](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/es-ES/step_2.md b/es-ES/step_2.md new file mode 100644 index 000000000..8d710c2bc --- /dev/null +++ b/es-ES/step_2.md @@ -0,0 +1,72 @@ +## Animación de una nave espacial + +¡Tu primer paso será crear una nave espacial que vuela hacia la Tierra! + +\--- task \--- + +Abre un nuevo proyecto en Scratch. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** abre un nuevo proyecto en el editor offline. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Add 'rocketship' and 'Earth' sprites to your Stage. + +![Figuras de la Nave Espacial y de la Tierra](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Agrega el fondo de "Estrellas" (Stars) a tu escenario. + +![Un fondo espacial](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Click on your spaceship sprite, and click on the **Costumes** tab. + +![Disfraz de la figura](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotando un disfraz](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Agrega este código a tu figura de la nave espacial: + +![Objeto Nave Espacial](images/sprite-spaceship.png) + +```blocks3 +cuando la bandera es pulsada +apuntar en dirección (0) +ir a x:(-150) y:(-150) +decir [Vamos] durante (2) segundos +apuntar hacia (Tierra v) +deslizar en (1) segs a x:(0) y:(0) +``` + +Cambia los números en los bloques de código que has añadido para que el código sea exactamente igual al que se muestra arriba. + +\--- /task \--- + +Si haces clic en la bandera verde, deberías ver que la nave espacial habla, gira y se desliza hacia el centro del escenario. + +![Cambia los números en los bloques de código que has añadido para que el código sea exactamente igual al que se muestra arriba.](images/space-animate-stage.png) \ No newline at end of file diff --git a/es-ES/step_3.md b/es-ES/step_3.md new file mode 100644 index 000000000..2973d1a05 --- /dev/null +++ b/es-ES/step_3.md @@ -0,0 +1,16 @@ +## Desafío: mejora tu animación + +¿Puedes cambiar los números en tu código de la animación para que: + ++ La nave espacial se mueva hasta que toca la Tierra? ++ La nave espacial se mueva más despacio hacia la Tierra? + +Deberás cambiar los números en este bloque: + +![Objeto de un cohete espacial](images/sprite-spaceship.png) + +```blocks3 +deslizar en (1) segs a x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/es-ES/step_4.md b/es-ES/step_4.md new file mode 100644 index 000000000..861b042ae --- /dev/null +++ b/es-ES/step_4.md @@ -0,0 +1,126 @@ +## Animación usando bucles + +Otra forma de animar la nave espacial es decirle que se mueva una pequeña cantidad muchas veces + +\--- task \--- + +Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Objeto Nave Espacial](images/sprite-spaceship.png) + +```blocks3 +cuando la bandera es pulsada +apuntar en dirección (0) +ir a x:(-150) y:(-150) +decir [Vamos] durante (2) segundos +apuntar hacia (Tierra v) + +- deslizar en (1) segs a x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Probando una animación de la nave espacial](images/space-animate-stage.png) + +![Objeto Nave Espacial](images/sprite-spaceship.png) + +```blocks3 +cuando la bandera es pulsada +apuntar en dirección (0) +ir a x:(-150) y:(-150) +decir [Vamos] durante (2) segundos +apuntar hacia (Tierra v) + ++ repetir(200) + mover (2) pasos +``` + +Prueba y guarda tu código. Tu nave espacial debería moverse hacia la Tierra exactamente como antes, pero esta vez usa un bloque `repetir`{:class="block3control"}. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Usa este bloque: + +![Objeto Nave Espacial](images/sprite-spaceship.png) + +```blocks3 +cuando la bandera es pulsada +apuntar en dirección (0) +ir a x:(-150) y:(-150) +decir [Vamos] durante (2) segundos +apuntar hacia (Tierra v) + repetir(200) + mover (2) pasos + ++ sumar a [color v] (25) +``` + +Prueba y guarda tu código. + +![Probando una nave espacial que cambia de color](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Tu nave espacial debe comenzar a `tamaño 100%`{:class="blocklooks"}, y luego `cambiar de tamaño`{:class="blocklooks"} en una pequeña cantidad cada vez que se mueva. + +\--- /hint \--- + +\--- hint \--- + +Tendrás que añadir estos bloques a tu código: + +![Objeto de una nave espacial](images/sprite-spaceship.png) + +```blocks3 +cambiar tamaño por (10) + +fijar tamaño al (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Tu código debería verse así: + +![Objeto Nave Espacial](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Prueba y guarda tu código. Tu nave espacial debería hacerse más pequeña a medida que se mueve. Prueba tu nave espacial una **segunda vez**. ¿Tiene el tamaño correcto cuando comienza? + +![Probando una nave espacial que se encoge](images/space-size-test.png) \ No newline at end of file diff --git a/es-ES/step_5.md b/es-ES/step_5.md new file mode 100644 index 000000000..d12ca4251 --- /dev/null +++ b/es-ES/step_5.md @@ -0,0 +1,70 @@ +## Mono flotante + +¡Ahora añadirás un mono que está perdido en el espacio a tu animación! + +\--- task \--- + +Comienza agregando la figura "Mono" (Monkey) de la biblioteca. + +![Comienza agregando la figura "Mono" (Monkey) de la biblioteca.](images/space-monkey-sprite.png) + +\--- /task \--- + +Haz clic en tu nuevo objeto de un mono y luego haz clic en **Disfraces** para que puedas editar el aspecto del mono. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Hacer color blanco](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Casco espacial de mono](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +¿Puedes agregar código a la figura de tu mono para que gire lentamente en círculos para siempre? + +\--- hints \--- \--- hint \--- + +Cuando **se hace clic en la bandera** verde, tu objeto de un mono debería **girar** en círculo **para siempre**. + +\--- /hint \--- \--- hint \--- + +Aquí están los bloques de código que necesitas: + +```blocks3 +por siempre +fin + +girar cw (15) grados + +cuando la bandera es pulsada +``` + +\--- /hint \--- \--- hint \--- + +Aquí está el código para hacer girar a tu mono: + +![Objeto de un Mono](images/sprite-monkey.png) + +```blocks3 +cuando la bandera es pulsada +por siempre + girar cw (1) grados +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Prueba y guarda tu proyecto. Tendrás que hacer clic en el botón rojo de **parar** para finalizar esta animación, ¡ya que continúa para siempre! + +![Prueba el mono giratorio](images/space-spin-test.png) \ No newline at end of file diff --git a/es-ES/step_6.md b/es-ES/step_6.md new file mode 100644 index 000000000..80fb56c00 --- /dev/null +++ b/es-ES/step_6.md @@ -0,0 +1,59 @@ +## Un asteroide que rebota + +Ahora añadirás una roca espacial flotante a tu animación. + +\--- task \--- + +Agrega la figura "Roca" (Rock) a tu animación. + +![Agrega la figura de una roca](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Probando una roca que rebota](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Aquí están los bloques de código que necesitas: + +```blocks3 +mover (10) pasos + +si en el borde rebota + +cuando la bandera es pulsada + +por siempre +``` + +También puedes establecer una dirección de inicio más interesante para el objeto roca con uno de estos bloques: + +```blocks3 +girar cw (15) grados + +apuntar hacia (Tierra v) +``` + +\--- /hint \--- \--- hint \--- + +Aquí está el código para hacer que tu roca rebote alrededor del escenario: + +![Objeto de una roca](images/sprite-rock.png) + +```blocks3 +cuando la bandera es pulsada +apuntar hacia (Tierra v) +por siempre + mover (2) pasos + si en el borde, rebotar +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/es-ES/step_7.md b/es-ES/step_7.md new file mode 100644 index 000000000..42d69be10 --- /dev/null +++ b/es-ES/step_7.md @@ -0,0 +1,61 @@ +## Una estrella brillante + +Ahora combinarás bucles para hacer una estrella brillante. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Agregar la figura de una estrella](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Probando una estrella brillante](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. Debería hacer esto para que se haga más grande y luego más pequeña **para siempre** y parezca que es una luz brillante. + +\--- /hint \--- \--- hint \--- + +Aquí están los bloques de código que necesitas: + +```blocks3 +repetir (10) +fin + +cuando la bandera es pulsada + +repetir (10) +fin + +cambiar tamaño por (10) + +cambiar tamaño por (10) + +por siempre +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Objeto de una estrella](images/sprite-star.png) + +```blocks3 +cuando la bandera es pulsada +por siempre + repetir (20) + cambiar tamaño por (2) + fin + repetir (20) + cambiar tamaño por (-2) + fin + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/es-ES/step_8.md b/es-ES/step_8.md new file mode 100644 index 000000000..0e86903cf --- /dev/null +++ b/es-ES/step_8.md @@ -0,0 +1,7 @@ +## Desafío: Haz tu propia animación + +Detén tu animación espacial, guárdala e inicia un nuevo proyecto Scratch. + +Usa lo que has aprendido en este proyecto para hacer tu propia animación. Puede ser lo que quieras, pero trata de hacer que tu animación combine con el fondo elegido. Aquí hay unos ejemplos: + +![captura de pantalla](images/space-egs.png) \ No newline at end of file diff --git a/es-ES/step_9.md b/es-ES/step_9.md new file mode 100644 index 000000000..39cc5cb72 --- /dev/null +++ b/es-ES/step_9.md @@ -0,0 +1,18 @@ +## ¿Qué sigue? + +¡Prueba el proyecto [Cazafantasmas](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects)! En ese proyecto, aprenderás como crear un juego con fantasmas que aparecen por todas partes y que tú necesitas atrapar. También aprenderás cómo añadir un cronómetro y una puntuación al juego, para que puedas ver cuántos fantasmas eres capaz de atrapar. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![exposición](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/es-GT/images/banner.png b/es-GT/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/es-GT/images/banner.png differ diff --git a/es-GT/images/ghostbusters-static.png b/es-GT/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/es-GT/images/ghostbusters-static.png differ diff --git a/es-GT/images/lost-in-space.png b/es-GT/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/es-GT/images/lost-in-space.png differ diff --git a/es-GT/images/make-white.png b/es-GT/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/es-GT/images/make-white.png differ diff --git a/es-GT/images/showcase_static.png b/es-GT/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/es-GT/images/showcase_static.png differ diff --git a/es-GT/images/space-animate-stage.png b/es-GT/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/es-GT/images/space-animate-stage.png differ diff --git a/es-GT/images/space-animate.png b/es-GT/images/space-animate.png new file mode 100644 index 000000000..46a5038ab Binary files /dev/null and b/es-GT/images/space-animate.png differ diff --git a/es-GT/images/space-backdrop.png b/es-GT/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/es-GT/images/space-backdrop.png differ diff --git a/es-GT/images/space-bounce-blocks.png b/es-GT/images/space-bounce-blocks.png new file mode 100644 index 000000000..9294bb7f7 Binary files /dev/null and b/es-GT/images/space-bounce-blocks.png differ diff --git a/es-GT/images/space-bounce-code.png b/es-GT/images/space-bounce-code.png new file mode 100644 index 000000000..e8791d62f Binary files /dev/null and b/es-GT/images/space-bounce-code.png differ diff --git a/es-GT/images/space-bounce-test.png b/es-GT/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/es-GT/images/space-bounce-test.png differ diff --git a/es-GT/images/space-colour-blocks.png b/es-GT/images/space-colour-blocks.png new file mode 100644 index 000000000..54461788b Binary files /dev/null and b/es-GT/images/space-colour-blocks.png differ diff --git a/es-GT/images/space-colour-code.png b/es-GT/images/space-colour-code.png new file mode 100644 index 000000000..8afbd513d Binary files /dev/null and b/es-GT/images/space-colour-code.png differ diff --git a/es-GT/images/space-colour-test.png b/es-GT/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/es-GT/images/space-colour-test.png differ diff --git a/es-GT/images/space-costume.png b/es-GT/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/es-GT/images/space-costume.png differ diff --git a/es-GT/images/space-delete-glide.png b/es-GT/images/space-delete-glide.png new file mode 100644 index 000000000..1d6fe71a9 Binary files /dev/null and b/es-GT/images/space-delete-glide.png differ diff --git a/es-GT/images/space-egs.png b/es-GT/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/es-GT/images/space-egs.png differ diff --git a/es-GT/images/space-glide.png b/es-GT/images/space-glide.png new file mode 100644 index 000000000..c04d7bfa9 Binary files /dev/null and b/es-GT/images/space-glide.png differ diff --git a/es-GT/images/space-initial-position.png b/es-GT/images/space-initial-position.png new file mode 100644 index 000000000..260fa4f54 Binary files /dev/null and b/es-GT/images/space-initial-position.png differ diff --git a/es-GT/images/space-monkey-edit.png b/es-GT/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/es-GT/images/space-monkey-edit.png differ diff --git a/es-GT/images/space-monkey-sprite.png b/es-GT/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/es-GT/images/space-monkey-sprite.png differ diff --git a/es-GT/images/space-repeat-blocks.png b/es-GT/images/space-repeat-blocks.png new file mode 100644 index 000000000..287663af6 Binary files /dev/null and b/es-GT/images/space-repeat-blocks.png differ diff --git a/es-GT/images/space-repeat-code.png b/es-GT/images/space-repeat-code.png new file mode 100644 index 000000000..9800ca99d Binary files /dev/null and b/es-GT/images/space-repeat-code.png differ diff --git a/es-GT/images/space-rock-sprite.png b/es-GT/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/es-GT/images/space-rock-sprite.png differ diff --git a/es-GT/images/space-rotate.png b/es-GT/images/space-rotate.png new file mode 100644 index 000000000..916fb08f0 Binary files /dev/null and b/es-GT/images/space-rotate.png differ diff --git a/es-GT/images/space-size-blocks.png b/es-GT/images/space-size-blocks.png new file mode 100644 index 000000000..1124075a4 Binary files /dev/null and b/es-GT/images/space-size-blocks.png differ diff --git a/es-GT/images/space-size-code.png b/es-GT/images/space-size-code.png new file mode 100644 index 000000000..14c5d7bcc Binary files /dev/null and b/es-GT/images/space-size-code.png differ diff --git a/es-GT/images/space-size-test.png b/es-GT/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/es-GT/images/space-size-test.png differ diff --git a/es-GT/images/space-spin-blocks.png b/es-GT/images/space-spin-blocks.png new file mode 100644 index 000000000..ca9fd52ee Binary files /dev/null and b/es-GT/images/space-spin-blocks.png differ diff --git a/es-GT/images/space-spin-code.png b/es-GT/images/space-spin-code.png new file mode 100644 index 000000000..8b3b016f9 Binary files /dev/null and b/es-GT/images/space-spin-code.png differ diff --git a/es-GT/images/space-spin-test.png b/es-GT/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/es-GT/images/space-spin-test.png differ diff --git a/es-GT/images/space-sprites.png b/es-GT/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/es-GT/images/space-sprites.png differ diff --git a/es-GT/images/space-star-blocks.png b/es-GT/images/space-star-blocks.png new file mode 100644 index 000000000..f3b9f1e81 Binary files /dev/null and b/es-GT/images/space-star-blocks.png differ diff --git a/es-GT/images/space-star-code.png b/es-GT/images/space-star-code.png new file mode 100644 index 000000000..7097d2e12 Binary files /dev/null and b/es-GT/images/space-star-code.png differ diff --git a/es-GT/images/space-star-sprite.png b/es-GT/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/es-GT/images/space-star-sprite.png differ diff --git a/es-GT/images/space-star-test.png b/es-GT/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/es-GT/images/space-star-test.png differ diff --git a/es-GT/images/sprite-earth.png b/es-GT/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/es-GT/images/sprite-earth.png differ diff --git a/es-GT/images/sprite-monkey.png b/es-GT/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/es-GT/images/sprite-monkey.png differ diff --git a/es-GT/images/sprite-rock.png b/es-GT/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/es-GT/images/sprite-rock.png differ diff --git a/es-GT/images/sprite-spaceship.png b/es-GT/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/es-GT/images/sprite-spaceship.png differ diff --git a/es-GT/images/sprite-star.png b/es-GT/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/es-GT/images/sprite-star.png differ diff --git a/es-GT/meta.yml b/es-GT/meta.yml new file mode 100644 index 000000000..c05588878 --- /dev/null +++ b/es-GT/meta.yml @@ -0,0 +1,31 @@ +--- +title: Lost in space +hero_image: images/lost-in-space.png +description: Learn how to program your own animation! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introduction + - + title: Animating a spaceship + - + title: 'Challenge: improve your animation' + challenge: true + - + title: Animation using loops + - + title: Floating monkey + - + title: Bouncing asteroid + - + title: Shining star + - + title: 'Challenge: make your own animation' + challenge: true + - + title: What next? diff --git a/es-GT/resources/LostinSpace-Finished.sb2 b/es-GT/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..89753817a Binary files /dev/null and b/es-GT/resources/LostinSpace-Finished.sb2 differ diff --git a/es-GT/solutions/lost-in-space-solution.sb3 b/es-GT/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/es-GT/solutions/lost-in-space-solution.sb3 differ diff --git a/es-GT/step_1.md b/es-GT/step_1.md new file mode 100644 index 000000000..0655b7327 --- /dev/null +++ b/es-GT/step_1.md @@ -0,0 +1,63 @@ +\--- no-print \--- + +This is the **Scratch 3** version of the project. There is also a [Scratch 2 version of the project](https://projects.raspberrypi.org/en/projects/lost-in-space-scratch2). + +\--- /no-print \--- + +## Introduction + +You are going to learn how to program your own animation! + +### What you will make + +\--- no-print \--- Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: What you will need + +### Hardware + ++ A computer capable of running Scratch 3 + +### Software + ++ Scratch 3 (either [online](http://rpf.io/scratchon){:target="_blank"} or [offline](http://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + ++ None + +\--- /collapse \--- + +## \--- collapse \--- + +## title: What you will learn + ++ Animate a sprite using a loop ++ Change the appearance of a sprite + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Additional information for educators + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +[Here is a link to the solution for this project](http://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/es-GT/step_2.md b/es-GT/step_2.md new file mode 100644 index 000000000..35c7232f7 --- /dev/null +++ b/es-GT/step_2.md @@ -0,0 +1,62 @@ +## Animating a spaceship + +Your first step will be to create a spaceship that flies towards the Earth! + +\--- task \--- + +Open a new Scratch project. + +**Online:** open a new online Scratch project at [rpf.io/scratchon](http://rpf.io/scratchon){:target="_blank"}. + +**Offline:** open a new project in the offline editor. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](http://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/es-GT/step_3.md b/es-GT/step_3.md new file mode 100644 index 000000000..4af9cb400 --- /dev/null +++ b/es-GT/step_3.md @@ -0,0 +1,16 @@ +## Challenge: improve your animation + +Can you change the numbers in your animation code so that: + ++ The spaceship moves until it touches the Earth? ++ The spaceship moves more slowly towards the Earth? + +You'll need to change the numbers in this block: + +![Rocketship sprite](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/es-GT/step_4.md b/es-GT/step_4.md new file mode 100644 index 000000000..141e0e8e6 --- /dev/null +++ b/es-GT/step_4.md @@ -0,0 +1,89 @@ +## Animation using loops + +Another way to animate the spaceship is to tell it to move a small amount many times + +\--- task \--- Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- Can you use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth? + +![Testing a spaceship animation](images/space-animate-stage.png) + +\--- hints \--- \--- hint \--- + +Instead of **gliding**, your spaceship should **repeatedly** **move** a few steps at a time. + +\--- /hint \--- \--- hint \--- Here are the code blocks you need: + +```blocks3 +move (10) steps + +repeat (10) +``` + +\--- /hint \--- \--- hint \--- Here is the code to animate your spaceship: ![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps +``` + +You can use different numbers in the `repeat`{:class="block3control"} and `move`{:class="block3motion"} blocks, as long as the spaceship still gets to Earth! \--- /hint \--- \--- /hints \--- + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- Can you add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change [color v] effect by (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- Can you make your spaceship get smaller as it moves towards Earth? + +Your spaceship should start at **100% size**, and then **change size** by a small amount each time it moves. + +Use these blocks: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/es-GT/step_5.md b/es-GT/step_5.md new file mode 100644 index 000000000..e20d2ca36 --- /dev/null +++ b/es-GT/step_5.md @@ -0,0 +1,60 @@ +## Floating monkey + +Now you will add a monkey who's lost in space to your animation! + +\--- task \--- Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) \--- /task \--- + +\--- task \--- Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/es-GT/step_6.md b/es-GT/step_6.md new file mode 100644 index 000000000..c59e2c9de --- /dev/null +++ b/es-GT/step_6.md @@ -0,0 +1,49 @@ +## Bouncing asteroid + +Now you will add a floating space rock to your animation. + +\--- task \--- Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. \--- /hint \--- \--- hint \--- Here are the code blocks you need: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/es-GT/step_7.md b/es-GT/step_7.md new file mode 100644 index 000000000..cadbb6704 --- /dev/null +++ b/es-GT/step_7.md @@ -0,0 +1,47 @@ +## Shining star + +Now you will combine loops to make a shining star. + +\--- task \--- Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. \--- /hint \--- \--- hint \--- Here are the code blocks you need: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- Here's the code to make your star grow and shrink: ![Star sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/es-GT/step_8.md b/es-GT/step_8.md new file mode 100644 index 000000000..841b139ec --- /dev/null +++ b/es-GT/step_8.md @@ -0,0 +1,7 @@ +## Challenge: make your own animation + +Stop your space animation, save it, and start a new Scratch project. + +Use what you've learned in this project to make your own animation. It can be anything you like, but try to make your animation match the background you choose. Here are some examples: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/es-GT/step_9.md b/es-GT/step_9.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/es-GT/step_9.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/es-LA/images/banner.png b/es-LA/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/es-LA/images/banner.png differ diff --git a/es-LA/images/ghostbusters-static.png b/es-LA/images/ghostbusters-static.png new file mode 100644 index 000000000..491a57854 Binary files /dev/null and b/es-LA/images/ghostbusters-static.png differ diff --git a/es-LA/images/lost-in-space.png b/es-LA/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/es-LA/images/lost-in-space.png differ diff --git a/es-LA/images/make-white.png b/es-LA/images/make-white.png new file mode 100644 index 000000000..59db1a04f Binary files /dev/null and b/es-LA/images/make-white.png differ diff --git a/es-LA/images/montage-1.png b/es-LA/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/es-LA/images/montage-1.png differ diff --git a/es-LA/images/montage-2.png b/es-LA/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/es-LA/images/montage-2.png differ diff --git a/es-LA/images/montage-3.png b/es-LA/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/es-LA/images/montage-3.png differ diff --git a/es-LA/images/showcase_static.png b/es-LA/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/es-LA/images/showcase_static.png differ diff --git a/es-LA/images/space-animate-stage.png b/es-LA/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/es-LA/images/space-animate-stage.png differ diff --git a/es-LA/images/space-backdrop.png b/es-LA/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/es-LA/images/space-backdrop.png differ diff --git a/es-LA/images/space-bounce-test.png b/es-LA/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/es-LA/images/space-bounce-test.png differ diff --git a/es-LA/images/space-colour-test.png b/es-LA/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/es-LA/images/space-colour-test.png differ diff --git a/es-LA/images/space-costume.png b/es-LA/images/space-costume.png new file mode 100644 index 000000000..c96f4133d Binary files /dev/null and b/es-LA/images/space-costume.png differ diff --git a/es-LA/images/space-egs.png b/es-LA/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/es-LA/images/space-egs.png differ diff --git a/es-LA/images/space-monkey-edit.png b/es-LA/images/space-monkey-edit.png new file mode 100644 index 000000000..ace30c3ef Binary files /dev/null and b/es-LA/images/space-monkey-edit.png differ diff --git a/es-LA/images/space-monkey-sprite.png b/es-LA/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/es-LA/images/space-monkey-sprite.png differ diff --git a/es-LA/images/space-rock-sprite.png b/es-LA/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/es-LA/images/space-rock-sprite.png differ diff --git a/es-LA/images/space-rotate.png b/es-LA/images/space-rotate.png new file mode 100644 index 000000000..99f0652fb Binary files /dev/null and b/es-LA/images/space-rotate.png differ diff --git a/es-LA/images/space-size-test.png b/es-LA/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/es-LA/images/space-size-test.png differ diff --git a/es-LA/images/space-spin-test.png b/es-LA/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/es-LA/images/space-spin-test.png differ diff --git a/es-LA/images/space-sprites.png b/es-LA/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/es-LA/images/space-sprites.png differ diff --git a/es-LA/images/space-star-sprite.png b/es-LA/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/es-LA/images/space-star-sprite.png differ diff --git a/es-LA/images/sprite-earth.png b/es-LA/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/es-LA/images/sprite-earth.png differ diff --git a/es-LA/images/sprite-monkey.png b/es-LA/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/es-LA/images/sprite-monkey.png differ diff --git a/es-LA/images/sprite-rock.png b/es-LA/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/es-LA/images/sprite-rock.png differ diff --git a/es-LA/images/sprite-spaceship.png b/es-LA/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/es-LA/images/sprite-spaceship.png differ diff --git a/es-LA/images/sprite-star.png b/es-LA/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/es-LA/images/sprite-star.png differ diff --git a/es-LA/images/trim_and_tile.sh b/es-LA/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/es-LA/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/es-LA/meta.yml b/es-LA/meta.yml new file mode 100644 index 000000000..06a75ee27 --- /dev/null +++ b/es-LA/meta.yml @@ -0,0 +1,35 @@ +--- +title: Perdidos en el espacio +hero_image: images/lost-in-space.png +description: '¡Aprende a programar tu propia animación!' +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4 +last_tested: 26/09/2018 +steps: + - + title: Introducción + - + title: Animando una nave espacial + - + title: 'Desafío: Mejora tu animación' + challenge: true + - + title: Animación utilizando bucles + completion: + - engaged + - + title: Mono flotante + - + title: Asteroide rebotando + - + title: Estrella brillante + completion: + - internal + - + title: 'Desafío: Crea tu propia animación' + challenge: true + - + title: '¿Qué sigue?' diff --git a/es-LA/scratch-translatable.txt b/es-LA/scratch-translatable.txt new file mode 100644 index 000000000..b5c9c3af1 --- /dev/null +++ b/es-LA/scratch-translatable.txt @@ -0,0 +1 @@ +Vamos diff --git a/es-LA/solutions/lost-in-space-solution.sb3 b/es-LA/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..ffdf79fc5 Binary files /dev/null and b/es-LA/solutions/lost-in-space-solution.sb3 differ diff --git a/es-LA/step_1.md b/es-LA/step_1.md new file mode 100644 index 000000000..02346d658 --- /dev/null +++ b/es-LA/step_1.md @@ -0,0 +1,60 @@ +## Introducción + +You are going to learn how to program your own animation! + +### Lo que vas a hacer + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- colapsar \--- + +## título: Lo que necesitarás + +### Hardware + +- Una computadora capaz de ejecutar el Scratch 3 + +### Software + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Descargas + +- Ninguno + +\--- /collapse \--- + +## \--- colapsar \--- + +## título: Lo que aprenderás + +- Usar un bucle de repetición para animar un objeto en Scratch +- Usar un bucle infinito para repetir la animación indefinidamente +- Entender que los bucles pueden estar anidados entre sí + +\--- /collapse \--- + +## \--- colapsar \--- + +## título: Información adicional para educadores + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/es-LA/step_10.md b/es-LA/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/es-LA/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/es-LA/step_2.md b/es-LA/step_2.md new file mode 100644 index 000000000..abe999017 --- /dev/null +++ b/es-LA/step_2.md @@ -0,0 +1,72 @@ +## Animación de una nave espacial + +¡Tu primer paso será crear una nave espacial que vuele hacia la Tierra! + +\--- task \--- + +Abre un nuevo proyecto Scratch. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline: ** Abre un nuevo proyecto en el editor offline. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Añade los objetos "Nave Espacial"' y "Tierra" a tu escenario. + +![Objetos de Nave Espacial y Tierra](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Agrega el fondo "Estrellas" a tu escenario. + +![Fondo espacial](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Haz clic en la figura de tu nave espacial y luego haz clic en la pestaña **Disfraces**. + +![Disfraz de la figura](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Usa la herramienta **flecha** para seleccionar y arrastra un recuadro alrededor de la nave espacial. Luego haz clic en el asa circular **rotar**, y gira la imagen hasta que esté de lado. + +![Girando un disfraz](images/space-rotate.png) + +\--- /tarea \--- + +\--- task \--- + +Agrega este código a tu figura de la nave espacial: + +![Figura de Nave Espacial](images/sprite-spaceship.png) + +```blocks3 +al hacer clic en bandera +apuntar en dirección (0) +ir a x:(-150) y:(-150) +di [Vamos] durante (2) segundos +apuntar hacia (Tierra v) +deslizar (1) segundos a x:(0) y:(0) +``` + +Cambia los números en los bloques de código que has agregado para que el código sea exactamente igual al de arriba. + +\--- /task \--- + +Si haces clic en la bandera verde, deberías ver que la nave espacial habla, gira y se desliza hacia el centro del escenario. + +![Probando animación de la Nave Espacial](images/space-animate-stage.png) \ No newline at end of file diff --git a/es-LA/step_3.md b/es-LA/step_3.md new file mode 100644 index 000000000..3ea85c652 --- /dev/null +++ b/es-LA/step_3.md @@ -0,0 +1,16 @@ +## Desafío: Mejora tu animación + +¿Puedes cambiar los números en tu código de animación para que: + ++ La nave espacial se mueva hasta que toca la Tierra? ++ La nave espacial se mueva más despacio hacia la Tierra? + +Deberás cambiar los números en este bloque: + +![Figura de Nave Espacial](images/sprite-spaceship.png) + +```blocks3 +deslizar (1) segundos hacia x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/es-LA/step_4.md b/es-LA/step_4.md new file mode 100644 index 000000000..6f2b15e52 --- /dev/null +++ b/es-LA/step_4.md @@ -0,0 +1,126 @@ +## Animación usando bucles + +Otra forma de animar la nave espacial es decirle que se mueva una pequeña cantidad muchas veces + +\--- task \--- + +Eliminar el `deslizamiento ` {:class = "block3motion"} del bloque de tu código. Para hacer esto, arrastra el bloque fuera del área de Código y suéltalo donde están los otros bloques de código único. + +![Figura de Nave Espacial](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Probando animación de la nave espacial](images/space-animate-stage.png) + +![Figura de Nave Espacial](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +Prueba y guarda tu código. Tu nave espacial debería moverse hacia la Tierra exactamente como antes, pero esta vez usa un bloque de `repetición`>{:class="block3control"}. + +\--- /task \--- + +\--- task \--- + +A continuación, ¿añade código a tu objeto nave espacial para que la nave espacial cambie de color a medida que avanza hacia la Tierra? + +Usa este bloque: + +![Figura de Nave Espacial](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +Prueba y guarda tu código. + +![Probar una nave espacial que cambia de color](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +¿Puedes hacer que tu nave espacial se haga más pequeña a medida que se mueve hacia la Tierra? + +\--- hints \--- + +\--- hint \--- + +Tu nave espacial debe comenzar a `tamaño 100%`{:class="blocklooks"}, y luego `cambiar de tamaño`{:class="blocklooks"} en una pequeña cantidad cada vez que se mueva. + +\--- /hint \--- + +\--- hint \--- + +Tendrás que añadir estos bloques a tu código: + +![Figura de Nave Espacial](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Tu código debería verse así: + +![Figura de Nave Espacial](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Prueba y guarda tu código. Tu nave espacial ahora debería hacerse más pequeña a medida que se mueve. Prueba tu nave espacial una ** segunda vez **. ¿Es el tamaño correcto cuando comienza? + +![Probando una nave espacial que se encoge](images/space-size-test.png) \ No newline at end of file diff --git a/es-LA/step_5.md b/es-LA/step_5.md new file mode 100644 index 000000000..eb120813e --- /dev/null +++ b/es-LA/step_5.md @@ -0,0 +1,70 @@ +## Mono flotante + +¡Ahora agregarás a tu animación un mono que se perdió en el espacio! + +\--- task \--- + +Comienza agregando la figura "Mono" de la biblioteca. + +![Agregar la figura de un mono](images/space-monkey-sprite.png) + +\--- /task \--- + +Haz clic en su nuevo sprite mono y luego haga clic en ** Disfraces ** para que puedas editar como se ve el mono. + +\--- task \--- + +Establece el relleno para que sea transparente seleccionando la línea roja. Para el contorno, establece un color blanco moviendo el deslizador de Saturación a `0`. + +![Hacer color blanco](images/make-white.png) + +\--- /tarea \--- + +\--- task \--- + +Haz clic en la herramienta **círculo ** y luego úsalo para dibujar un casco espacial blanco alrededor de la cabeza del mono. + +![Casco espacial del mono](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +¿Puedes agregar código a la figura de tu mono para que gire lentamente en un círculo para siempre? + +\--- hints \--- \--- hint \--- + +Cuando se hace clic en la bandera verde ** **, tu objeto del mono debería ** girar ** en un círculo ** para siempre **. + +\--- /hint \--- \--- hint \--- + +Aquí están los bloques de código que necesitas: + +```blocks3 +siempre +fin + +gire (15) grado en onda contínua + +cuando seleccione la bandera +``` + +\--- /hint \--- \--- hint \--- + +Aquí está el código para hacer girar a tu mono: + +![Figura del Mono](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Prueba y guarda tu proyecto. Tendrás que hacer clic en el botón rojo de **parar** para finalizar esta animación, ¡ya que continúa para siempre! + +![Prueba el mono que gira](images/space-spin-test.png) \ No newline at end of file diff --git a/es-LA/step_6.md b/es-LA/step_6.md new file mode 100644 index 000000000..be2916971 --- /dev/null +++ b/es-LA/step_6.md @@ -0,0 +1,59 @@ +## Asteroide rebotando + +Ahora agregarás una roca espacial flotante a su animación. + +\--- task \--- + +Agrega el objeto "Roca" a tu animación. + +![Agregar el objeto de una roca](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +¿Puedes agregar código a tu objeto roca para que la roca rebote alrededor del escenario? + +![Probando una roca que rebota](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +Cuando **se hace clic en la bandera** verde, tu figura de la roca se debería **mover** y **rebotar** alrededor del escenario **para siempre **. + +\--- /hint \--- \--- hint \--- + +Aquí están los bloques de código que necesitas: + +```blocks3 +mueve (10) pasos + +si rebota en el borde + +cuando se hace clic en la bandera + +siempre +``` + +También puedes establecer una dirección de inicio más interesante para el objeto de roca con uno de estos bloques: + +```blocks3 +gira cw (15) grados + +apunta hacia (Tierra v) +``` + +\--- /hint \--- \--- hint \--- + +Aquí está el código para hacer que tu roca rebote por el escenario: + +![Objeto roca](images/sprite-rock.png) + +```blocks3 +al hacer clic en la bandera +apuntar hacia (Tierra v) +para siempre + mover (2) pasos + si está en el borde, rebotar +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/es-LA/step_7.md b/es-LA/step_7.md new file mode 100644 index 000000000..c08d0affa --- /dev/null +++ b/es-LA/step_7.md @@ -0,0 +1,61 @@ +## Una estrella brillante + +Ahora combinarás bucles para hacer una estrella brillante. + +\--- task \--- + +Agrega un objeto 'estrella' a tu escenario. + +![Agregar el objeto de una estrella](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +¿Puedes añadir código a tu objeto de estrella para que la estrella crezca y se reduzca repetidamente? + +![Probando una estrella brillante](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +Cuando **se hace clic en la bandera** verde, tu figura estrella debería **cambiar de tamaño** para hacerse más grande unas cuantas veces, y luego **cambiar de tamaño** para hacerse más pequeña unas cuantas veces. Deberías hacer esto para que se haga más grande y luego más pequeño ** para siempre. ** y parece que está brillando su luz. + +\--- /hint \--- \--- hint \--- + +Aquí están los bloques de código que necesitas: + +```blocks3 +repetir (10) +fin + +cuando la bandera está seleccionada + +repetir (10) +fin + +cambiar tamaño por (10) + +cambiar tamaño por (10) + +por siempre +``` + +\--- /hint \--- \--- hint \--- + +Este es el código para hacer que tu estrella crezca y se encoja: + +![Objeto estrella](images/sprite-star.png) + +```blocks3 +cuando la bandera está seleccionada +para siempre + repetir (20) + cambiar el tamaño por (2) + fin + repetir (20) + cambiar el tamaño por (-2) + fin + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/es-LA/step_8.md b/es-LA/step_8.md new file mode 100644 index 000000000..a824940d7 --- /dev/null +++ b/es-LA/step_8.md @@ -0,0 +1,7 @@ +## Desafío: Haz tu propia animación + +Detén tu animación espacial, guárdala e inicia un nuevo proyecto Scratch. + +Usa lo que has aprendido en este proyecto para hacer tu propia animación. Puede ser lo que quieras, pero trata de hacer que tu animación coincida con el fondo que eljas. Aquí hay unos ejemplos: + +![captura de pantalla](images/space-egs.png) \ No newline at end of file diff --git a/es-LA/step_9.md b/es-LA/step_9.md new file mode 100644 index 000000000..5186f640f --- /dev/null +++ b/es-LA/step_9.md @@ -0,0 +1,18 @@ +## ¿Qué sigue? + +Prueba el proyecto [ Cazafantasmas ](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects)! En ese proyecto aprenderás cómo crear un juego con fantasmas que aparecen por todas partes y que debes atrapar. También aprenderás cómo agregar un cronómetro y una puntuación al juego, para que puedas ver cuántos fantasmas puedes capturar. + +\--- no imprimir \--- + +
+ + +
+ +\--- /no-imprimir \--- + +\--- print-only \--- + +![exposición](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/es-MX/images/banner.png b/es-MX/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/es-MX/images/banner.png differ diff --git a/es-MX/images/ghostbusters-static.png b/es-MX/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/es-MX/images/ghostbusters-static.png differ diff --git a/es-MX/images/lost-in-space.png b/es-MX/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/es-MX/images/lost-in-space.png differ diff --git a/es-MX/images/make-white.png b/es-MX/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/es-MX/images/make-white.png differ diff --git a/es-MX/images/showcase_static.png b/es-MX/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/es-MX/images/showcase_static.png differ diff --git a/es-MX/images/space-animate-stage.png b/es-MX/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/es-MX/images/space-animate-stage.png differ diff --git a/es-MX/images/space-animate.png b/es-MX/images/space-animate.png new file mode 100644 index 000000000..46a5038ab Binary files /dev/null and b/es-MX/images/space-animate.png differ diff --git a/es-MX/images/space-backdrop.png b/es-MX/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/es-MX/images/space-backdrop.png differ diff --git a/es-MX/images/space-bounce-blocks.png b/es-MX/images/space-bounce-blocks.png new file mode 100644 index 000000000..9294bb7f7 Binary files /dev/null and b/es-MX/images/space-bounce-blocks.png differ diff --git a/es-MX/images/space-bounce-code.png b/es-MX/images/space-bounce-code.png new file mode 100644 index 000000000..e8791d62f Binary files /dev/null and b/es-MX/images/space-bounce-code.png differ diff --git a/es-MX/images/space-bounce-test.png b/es-MX/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/es-MX/images/space-bounce-test.png differ diff --git a/es-MX/images/space-colour-blocks.png b/es-MX/images/space-colour-blocks.png new file mode 100644 index 000000000..54461788b Binary files /dev/null and b/es-MX/images/space-colour-blocks.png differ diff --git a/es-MX/images/space-colour-code.png b/es-MX/images/space-colour-code.png new file mode 100644 index 000000000..8afbd513d Binary files /dev/null and b/es-MX/images/space-colour-code.png differ diff --git a/es-MX/images/space-colour-test.png b/es-MX/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/es-MX/images/space-colour-test.png differ diff --git a/es-MX/images/space-costume.png b/es-MX/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/es-MX/images/space-costume.png differ diff --git a/es-MX/images/space-delete-glide.png b/es-MX/images/space-delete-glide.png new file mode 100644 index 000000000..1d6fe71a9 Binary files /dev/null and b/es-MX/images/space-delete-glide.png differ diff --git a/es-MX/images/space-egs.png b/es-MX/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/es-MX/images/space-egs.png differ diff --git a/es-MX/images/space-glide.png b/es-MX/images/space-glide.png new file mode 100644 index 000000000..c04d7bfa9 Binary files /dev/null and b/es-MX/images/space-glide.png differ diff --git a/es-MX/images/space-initial-position.png b/es-MX/images/space-initial-position.png new file mode 100644 index 000000000..260fa4f54 Binary files /dev/null and b/es-MX/images/space-initial-position.png differ diff --git a/es-MX/images/space-monkey-edit.png b/es-MX/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/es-MX/images/space-monkey-edit.png differ diff --git a/es-MX/images/space-monkey-sprite.png b/es-MX/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/es-MX/images/space-monkey-sprite.png differ diff --git a/es-MX/images/space-repeat-blocks.png b/es-MX/images/space-repeat-blocks.png new file mode 100644 index 000000000..287663af6 Binary files /dev/null and b/es-MX/images/space-repeat-blocks.png differ diff --git a/es-MX/images/space-repeat-code.png b/es-MX/images/space-repeat-code.png new file mode 100644 index 000000000..9800ca99d Binary files /dev/null and b/es-MX/images/space-repeat-code.png differ diff --git a/es-MX/images/space-rock-sprite.png b/es-MX/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/es-MX/images/space-rock-sprite.png differ diff --git a/es-MX/images/space-rotate.png b/es-MX/images/space-rotate.png new file mode 100644 index 000000000..916fb08f0 Binary files /dev/null and b/es-MX/images/space-rotate.png differ diff --git a/es-MX/images/space-size-blocks.png b/es-MX/images/space-size-blocks.png new file mode 100644 index 000000000..1124075a4 Binary files /dev/null and b/es-MX/images/space-size-blocks.png differ diff --git a/es-MX/images/space-size-code.png b/es-MX/images/space-size-code.png new file mode 100644 index 000000000..14c5d7bcc Binary files /dev/null and b/es-MX/images/space-size-code.png differ diff --git a/es-MX/images/space-size-test.png b/es-MX/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/es-MX/images/space-size-test.png differ diff --git a/es-MX/images/space-spin-blocks.png b/es-MX/images/space-spin-blocks.png new file mode 100644 index 000000000..ca9fd52ee Binary files /dev/null and b/es-MX/images/space-spin-blocks.png differ diff --git a/es-MX/images/space-spin-code.png b/es-MX/images/space-spin-code.png new file mode 100644 index 000000000..8b3b016f9 Binary files /dev/null and b/es-MX/images/space-spin-code.png differ diff --git a/es-MX/images/space-spin-test.png b/es-MX/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/es-MX/images/space-spin-test.png differ diff --git a/es-MX/images/space-sprites.png b/es-MX/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/es-MX/images/space-sprites.png differ diff --git a/es-MX/images/space-star-blocks.png b/es-MX/images/space-star-blocks.png new file mode 100644 index 000000000..f3b9f1e81 Binary files /dev/null and b/es-MX/images/space-star-blocks.png differ diff --git a/es-MX/images/space-star-code.png b/es-MX/images/space-star-code.png new file mode 100644 index 000000000..7097d2e12 Binary files /dev/null and b/es-MX/images/space-star-code.png differ diff --git a/es-MX/images/space-star-sprite.png b/es-MX/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/es-MX/images/space-star-sprite.png differ diff --git a/es-MX/images/space-star-test.png b/es-MX/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/es-MX/images/space-star-test.png differ diff --git a/es-MX/images/sprite-earth.png b/es-MX/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/es-MX/images/sprite-earth.png differ diff --git a/es-MX/images/sprite-monkey.png b/es-MX/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/es-MX/images/sprite-monkey.png differ diff --git a/es-MX/images/sprite-rock.png b/es-MX/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/es-MX/images/sprite-rock.png differ diff --git a/es-MX/images/sprite-spaceship.png b/es-MX/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/es-MX/images/sprite-spaceship.png differ diff --git a/es-MX/images/sprite-star.png b/es-MX/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/es-MX/images/sprite-star.png differ diff --git a/es-MX/meta.yml b/es-MX/meta.yml new file mode 100644 index 000000000..c05588878 --- /dev/null +++ b/es-MX/meta.yml @@ -0,0 +1,31 @@ +--- +title: Lost in space +hero_image: images/lost-in-space.png +description: Learn how to program your own animation! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introduction + - + title: Animating a spaceship + - + title: 'Challenge: improve your animation' + challenge: true + - + title: Animation using loops + - + title: Floating monkey + - + title: Bouncing asteroid + - + title: Shining star + - + title: 'Challenge: make your own animation' + challenge: true + - + title: What next? diff --git a/es-MX/resources/LostinSpace-Finished.sb2 b/es-MX/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..89753817a Binary files /dev/null and b/es-MX/resources/LostinSpace-Finished.sb2 differ diff --git a/es-MX/solutions/lost-in-space-solution.sb3 b/es-MX/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/es-MX/solutions/lost-in-space-solution.sb3 differ diff --git a/es-MX/step_1.md b/es-MX/step_1.md new file mode 100644 index 000000000..0655b7327 --- /dev/null +++ b/es-MX/step_1.md @@ -0,0 +1,63 @@ +\--- no-print \--- + +This is the **Scratch 3** version of the project. There is also a [Scratch 2 version of the project](https://projects.raspberrypi.org/en/projects/lost-in-space-scratch2). + +\--- /no-print \--- + +## Introduction + +You are going to learn how to program your own animation! + +### What you will make + +\--- no-print \--- Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: What you will need + +### Hardware + ++ A computer capable of running Scratch 3 + +### Software + ++ Scratch 3 (either [online](http://rpf.io/scratchon){:target="_blank"} or [offline](http://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + ++ None + +\--- /collapse \--- + +## \--- collapse \--- + +## title: What you will learn + ++ Animate a sprite using a loop ++ Change the appearance of a sprite + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Additional information for educators + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +[Here is a link to the solution for this project](http://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/es-MX/step_2.md b/es-MX/step_2.md new file mode 100644 index 000000000..35c7232f7 --- /dev/null +++ b/es-MX/step_2.md @@ -0,0 +1,62 @@ +## Animating a spaceship + +Your first step will be to create a spaceship that flies towards the Earth! + +\--- task \--- + +Open a new Scratch project. + +**Online:** open a new online Scratch project at [rpf.io/scratchon](http://rpf.io/scratchon){:target="_blank"}. + +**Offline:** open a new project in the offline editor. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](http://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/es-MX/step_3.md b/es-MX/step_3.md new file mode 100644 index 000000000..4af9cb400 --- /dev/null +++ b/es-MX/step_3.md @@ -0,0 +1,16 @@ +## Challenge: improve your animation + +Can you change the numbers in your animation code so that: + ++ The spaceship moves until it touches the Earth? ++ The spaceship moves more slowly towards the Earth? + +You'll need to change the numbers in this block: + +![Rocketship sprite](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/es-MX/step_4.md b/es-MX/step_4.md new file mode 100644 index 000000000..141e0e8e6 --- /dev/null +++ b/es-MX/step_4.md @@ -0,0 +1,89 @@ +## Animation using loops + +Another way to animate the spaceship is to tell it to move a small amount many times + +\--- task \--- Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- Can you use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth? + +![Testing a spaceship animation](images/space-animate-stage.png) + +\--- hints \--- \--- hint \--- + +Instead of **gliding**, your spaceship should **repeatedly** **move** a few steps at a time. + +\--- /hint \--- \--- hint \--- Here are the code blocks you need: + +```blocks3 +move (10) steps + +repeat (10) +``` + +\--- /hint \--- \--- hint \--- Here is the code to animate your spaceship: ![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps +``` + +You can use different numbers in the `repeat`{:class="block3control"} and `move`{:class="block3motion"} blocks, as long as the spaceship still gets to Earth! \--- /hint \--- \--- /hints \--- + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- Can you add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change [color v] effect by (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- Can you make your spaceship get smaller as it moves towards Earth? + +Your spaceship should start at **100% size**, and then **change size** by a small amount each time it moves. + +Use these blocks: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/es-MX/step_5.md b/es-MX/step_5.md new file mode 100644 index 000000000..e20d2ca36 --- /dev/null +++ b/es-MX/step_5.md @@ -0,0 +1,60 @@ +## Floating monkey + +Now you will add a monkey who's lost in space to your animation! + +\--- task \--- Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) \--- /task \--- + +\--- task \--- Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/es-MX/step_6.md b/es-MX/step_6.md new file mode 100644 index 000000000..c59e2c9de --- /dev/null +++ b/es-MX/step_6.md @@ -0,0 +1,49 @@ +## Bouncing asteroid + +Now you will add a floating space rock to your animation. + +\--- task \--- Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. \--- /hint \--- \--- hint \--- Here are the code blocks you need: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/es-MX/step_7.md b/es-MX/step_7.md new file mode 100644 index 000000000..cadbb6704 --- /dev/null +++ b/es-MX/step_7.md @@ -0,0 +1,47 @@ +## Shining star + +Now you will combine loops to make a shining star. + +\--- task \--- Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. \--- /hint \--- \--- hint \--- Here are the code blocks you need: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- Here's the code to make your star grow and shrink: ![Star sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/es-MX/step_8.md b/es-MX/step_8.md new file mode 100644 index 000000000..841b139ec --- /dev/null +++ b/es-MX/step_8.md @@ -0,0 +1,7 @@ +## Challenge: make your own animation + +Stop your space animation, save it, and start a new Scratch project. + +Use what you've learned in this project to make your own animation. It can be anything you like, but try to make your animation match the background you choose. Here are some examples: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/es-MX/step_9.md b/es-MX/step_9.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/es-MX/step_9.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/es-PE/images/banner.png b/es-PE/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/es-PE/images/banner.png differ diff --git a/es-PE/images/ghostbusters-static.png b/es-PE/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/es-PE/images/ghostbusters-static.png differ diff --git a/es-PE/images/lost-in-space.png b/es-PE/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/es-PE/images/lost-in-space.png differ diff --git a/es-PE/images/make-white.png b/es-PE/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/es-PE/images/make-white.png differ diff --git a/es-PE/images/showcase_static.png b/es-PE/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/es-PE/images/showcase_static.png differ diff --git a/es-PE/images/space-animate-stage.png b/es-PE/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/es-PE/images/space-animate-stage.png differ diff --git a/es-PE/images/space-animate.png b/es-PE/images/space-animate.png new file mode 100644 index 000000000..46a5038ab Binary files /dev/null and b/es-PE/images/space-animate.png differ diff --git a/es-PE/images/space-backdrop.png b/es-PE/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/es-PE/images/space-backdrop.png differ diff --git a/es-PE/images/space-bounce-blocks.png b/es-PE/images/space-bounce-blocks.png new file mode 100644 index 000000000..9294bb7f7 Binary files /dev/null and b/es-PE/images/space-bounce-blocks.png differ diff --git a/es-PE/images/space-bounce-code.png b/es-PE/images/space-bounce-code.png new file mode 100644 index 000000000..e8791d62f Binary files /dev/null and b/es-PE/images/space-bounce-code.png differ diff --git a/es-PE/images/space-bounce-test.png b/es-PE/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/es-PE/images/space-bounce-test.png differ diff --git a/es-PE/images/space-colour-blocks.png b/es-PE/images/space-colour-blocks.png new file mode 100644 index 000000000..54461788b Binary files /dev/null and b/es-PE/images/space-colour-blocks.png differ diff --git a/es-PE/images/space-colour-code.png b/es-PE/images/space-colour-code.png new file mode 100644 index 000000000..8afbd513d Binary files /dev/null and b/es-PE/images/space-colour-code.png differ diff --git a/es-PE/images/space-colour-test.png b/es-PE/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/es-PE/images/space-colour-test.png differ diff --git a/es-PE/images/space-costume.png b/es-PE/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/es-PE/images/space-costume.png differ diff --git a/es-PE/images/space-delete-glide.png b/es-PE/images/space-delete-glide.png new file mode 100644 index 000000000..1d6fe71a9 Binary files /dev/null and b/es-PE/images/space-delete-glide.png differ diff --git a/es-PE/images/space-egs.png b/es-PE/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/es-PE/images/space-egs.png differ diff --git a/es-PE/images/space-glide.png b/es-PE/images/space-glide.png new file mode 100644 index 000000000..c04d7bfa9 Binary files /dev/null and b/es-PE/images/space-glide.png differ diff --git a/es-PE/images/space-initial-position.png b/es-PE/images/space-initial-position.png new file mode 100644 index 000000000..260fa4f54 Binary files /dev/null and b/es-PE/images/space-initial-position.png differ diff --git a/es-PE/images/space-monkey-edit.png b/es-PE/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/es-PE/images/space-monkey-edit.png differ diff --git a/es-PE/images/space-monkey-sprite.png b/es-PE/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/es-PE/images/space-monkey-sprite.png differ diff --git a/es-PE/images/space-repeat-blocks.png b/es-PE/images/space-repeat-blocks.png new file mode 100644 index 000000000..287663af6 Binary files /dev/null and b/es-PE/images/space-repeat-blocks.png differ diff --git a/es-PE/images/space-repeat-code.png b/es-PE/images/space-repeat-code.png new file mode 100644 index 000000000..9800ca99d Binary files /dev/null and b/es-PE/images/space-repeat-code.png differ diff --git a/es-PE/images/space-rock-sprite.png b/es-PE/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/es-PE/images/space-rock-sprite.png differ diff --git a/es-PE/images/space-rotate.png b/es-PE/images/space-rotate.png new file mode 100644 index 000000000..916fb08f0 Binary files /dev/null and b/es-PE/images/space-rotate.png differ diff --git a/es-PE/images/space-size-blocks.png b/es-PE/images/space-size-blocks.png new file mode 100644 index 000000000..1124075a4 Binary files /dev/null and b/es-PE/images/space-size-blocks.png differ diff --git a/es-PE/images/space-size-code.png b/es-PE/images/space-size-code.png new file mode 100644 index 000000000..14c5d7bcc Binary files /dev/null and b/es-PE/images/space-size-code.png differ diff --git a/es-PE/images/space-size-test.png b/es-PE/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/es-PE/images/space-size-test.png differ diff --git a/es-PE/images/space-spin-blocks.png b/es-PE/images/space-spin-blocks.png new file mode 100644 index 000000000..ca9fd52ee Binary files /dev/null and b/es-PE/images/space-spin-blocks.png differ diff --git a/es-PE/images/space-spin-code.png b/es-PE/images/space-spin-code.png new file mode 100644 index 000000000..8b3b016f9 Binary files /dev/null and b/es-PE/images/space-spin-code.png differ diff --git a/es-PE/images/space-spin-test.png b/es-PE/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/es-PE/images/space-spin-test.png differ diff --git a/es-PE/images/space-sprites.png b/es-PE/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/es-PE/images/space-sprites.png differ diff --git a/es-PE/images/space-star-blocks.png b/es-PE/images/space-star-blocks.png new file mode 100644 index 000000000..f3b9f1e81 Binary files /dev/null and b/es-PE/images/space-star-blocks.png differ diff --git a/es-PE/images/space-star-code.png b/es-PE/images/space-star-code.png new file mode 100644 index 000000000..7097d2e12 Binary files /dev/null and b/es-PE/images/space-star-code.png differ diff --git a/es-PE/images/space-star-sprite.png b/es-PE/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/es-PE/images/space-star-sprite.png differ diff --git a/es-PE/images/space-star-test.png b/es-PE/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/es-PE/images/space-star-test.png differ diff --git a/es-PE/images/sprite-earth.png b/es-PE/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/es-PE/images/sprite-earth.png differ diff --git a/es-PE/images/sprite-monkey.png b/es-PE/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/es-PE/images/sprite-monkey.png differ diff --git a/es-PE/images/sprite-rock.png b/es-PE/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/es-PE/images/sprite-rock.png differ diff --git a/es-PE/images/sprite-spaceship.png b/es-PE/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/es-PE/images/sprite-spaceship.png differ diff --git a/es-PE/images/sprite-star.png b/es-PE/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/es-PE/images/sprite-star.png differ diff --git a/es-PE/meta.yml b/es-PE/meta.yml new file mode 100644 index 000000000..c05588878 --- /dev/null +++ b/es-PE/meta.yml @@ -0,0 +1,31 @@ +--- +title: Lost in space +hero_image: images/lost-in-space.png +description: Learn how to program your own animation! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introduction + - + title: Animating a spaceship + - + title: 'Challenge: improve your animation' + challenge: true + - + title: Animation using loops + - + title: Floating monkey + - + title: Bouncing asteroid + - + title: Shining star + - + title: 'Challenge: make your own animation' + challenge: true + - + title: What next? diff --git a/es-PE/resources/LostinSpace-Finished.sb2 b/es-PE/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..89753817a Binary files /dev/null and b/es-PE/resources/LostinSpace-Finished.sb2 differ diff --git a/es-PE/solutions/lost-in-space-solution.sb3 b/es-PE/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/es-PE/solutions/lost-in-space-solution.sb3 differ diff --git a/es-PE/step_1.md b/es-PE/step_1.md new file mode 100644 index 000000000..0655b7327 --- /dev/null +++ b/es-PE/step_1.md @@ -0,0 +1,63 @@ +\--- no-print \--- + +This is the **Scratch 3** version of the project. There is also a [Scratch 2 version of the project](https://projects.raspberrypi.org/en/projects/lost-in-space-scratch2). + +\--- /no-print \--- + +## Introduction + +You are going to learn how to program your own animation! + +### What you will make + +\--- no-print \--- Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: What you will need + +### Hardware + ++ A computer capable of running Scratch 3 + +### Software + ++ Scratch 3 (either [online](http://rpf.io/scratchon){:target="_blank"} or [offline](http://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + ++ None + +\--- /collapse \--- + +## \--- collapse \--- + +## title: What you will learn + ++ Animate a sprite using a loop ++ Change the appearance of a sprite + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Additional information for educators + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +[Here is a link to the solution for this project](http://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/es-PE/step_2.md b/es-PE/step_2.md new file mode 100644 index 000000000..35c7232f7 --- /dev/null +++ b/es-PE/step_2.md @@ -0,0 +1,62 @@ +## Animating a spaceship + +Your first step will be to create a spaceship that flies towards the Earth! + +\--- task \--- + +Open a new Scratch project. + +**Online:** open a new online Scratch project at [rpf.io/scratchon](http://rpf.io/scratchon){:target="_blank"}. + +**Offline:** open a new project in the offline editor. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](http://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/es-PE/step_3.md b/es-PE/step_3.md new file mode 100644 index 000000000..4af9cb400 --- /dev/null +++ b/es-PE/step_3.md @@ -0,0 +1,16 @@ +## Challenge: improve your animation + +Can you change the numbers in your animation code so that: + ++ The spaceship moves until it touches the Earth? ++ The spaceship moves more slowly towards the Earth? + +You'll need to change the numbers in this block: + +![Rocketship sprite](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/es-PE/step_4.md b/es-PE/step_4.md new file mode 100644 index 000000000..141e0e8e6 --- /dev/null +++ b/es-PE/step_4.md @@ -0,0 +1,89 @@ +## Animation using loops + +Another way to animate the spaceship is to tell it to move a small amount many times + +\--- task \--- Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- Can you use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth? + +![Testing a spaceship animation](images/space-animate-stage.png) + +\--- hints \--- \--- hint \--- + +Instead of **gliding**, your spaceship should **repeatedly** **move** a few steps at a time. + +\--- /hint \--- \--- hint \--- Here are the code blocks you need: + +```blocks3 +move (10) steps + +repeat (10) +``` + +\--- /hint \--- \--- hint \--- Here is the code to animate your spaceship: ![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps +``` + +You can use different numbers in the `repeat`{:class="block3control"} and `move`{:class="block3motion"} blocks, as long as the spaceship still gets to Earth! \--- /hint \--- \--- /hints \--- + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- Can you add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change [color v] effect by (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- Can you make your spaceship get smaller as it moves towards Earth? + +Your spaceship should start at **100% size**, and then **change size** by a small amount each time it moves. + +Use these blocks: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/es-PE/step_5.md b/es-PE/step_5.md new file mode 100644 index 000000000..e20d2ca36 --- /dev/null +++ b/es-PE/step_5.md @@ -0,0 +1,60 @@ +## Floating monkey + +Now you will add a monkey who's lost in space to your animation! + +\--- task \--- Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) \--- /task \--- + +\--- task \--- Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/es-PE/step_6.md b/es-PE/step_6.md new file mode 100644 index 000000000..c59e2c9de --- /dev/null +++ b/es-PE/step_6.md @@ -0,0 +1,49 @@ +## Bouncing asteroid + +Now you will add a floating space rock to your animation. + +\--- task \--- Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. \--- /hint \--- \--- hint \--- Here are the code blocks you need: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/es-PE/step_7.md b/es-PE/step_7.md new file mode 100644 index 000000000..cadbb6704 --- /dev/null +++ b/es-PE/step_7.md @@ -0,0 +1,47 @@ +## Shining star + +Now you will combine loops to make a shining star. + +\--- task \--- Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. \--- /hint \--- \--- hint \--- Here are the code blocks you need: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- Here's the code to make your star grow and shrink: ![Star sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/es-PE/step_8.md b/es-PE/step_8.md new file mode 100644 index 000000000..841b139ec --- /dev/null +++ b/es-PE/step_8.md @@ -0,0 +1,7 @@ +## Challenge: make your own animation + +Stop your space animation, save it, and start a new Scratch project. + +Use what you've learned in this project to make your own animation. It can be anything you like, but try to make your animation match the background you choose. Here are some examples: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/es-PE/step_9.md b/es-PE/step_9.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/es-PE/step_9.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/et-EE/images/banner.png b/et-EE/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/et-EE/images/banner.png differ diff --git a/et-EE/images/ghostbusters-static.png b/et-EE/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/et-EE/images/ghostbusters-static.png differ diff --git a/et-EE/images/lost-in-space.png b/et-EE/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/et-EE/images/lost-in-space.png differ diff --git a/et-EE/images/make-white.png b/et-EE/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/et-EE/images/make-white.png differ diff --git a/et-EE/images/montage-1.png b/et-EE/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/et-EE/images/montage-1.png differ diff --git a/et-EE/images/montage-2.png b/et-EE/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/et-EE/images/montage-2.png differ diff --git a/et-EE/images/montage-3.png b/et-EE/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/et-EE/images/montage-3.png differ diff --git a/et-EE/images/showcase_static.png b/et-EE/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/et-EE/images/showcase_static.png differ diff --git a/et-EE/images/space-animate-stage.png b/et-EE/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/et-EE/images/space-animate-stage.png differ diff --git a/et-EE/images/space-backdrop.png b/et-EE/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/et-EE/images/space-backdrop.png differ diff --git a/et-EE/images/space-bounce-test.png b/et-EE/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/et-EE/images/space-bounce-test.png differ diff --git a/et-EE/images/space-colour-test.png b/et-EE/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/et-EE/images/space-colour-test.png differ diff --git a/et-EE/images/space-costume.png b/et-EE/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/et-EE/images/space-costume.png differ diff --git a/et-EE/images/space-egs.png b/et-EE/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/et-EE/images/space-egs.png differ diff --git a/et-EE/images/space-monkey-edit.png b/et-EE/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/et-EE/images/space-monkey-edit.png differ diff --git a/et-EE/images/space-monkey-sprite.png b/et-EE/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/et-EE/images/space-monkey-sprite.png differ diff --git a/et-EE/images/space-rock-sprite.png b/et-EE/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/et-EE/images/space-rock-sprite.png differ diff --git a/et-EE/images/space-rotate.png b/et-EE/images/space-rotate.png new file mode 100644 index 000000000..916fb08f0 Binary files /dev/null and b/et-EE/images/space-rotate.png differ diff --git a/et-EE/images/space-size-test.png b/et-EE/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/et-EE/images/space-size-test.png differ diff --git a/et-EE/images/space-spin-test.png b/et-EE/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/et-EE/images/space-spin-test.png differ diff --git a/et-EE/images/space-sprites.png b/et-EE/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/et-EE/images/space-sprites.png differ diff --git a/et-EE/images/space-star-sprite.png b/et-EE/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/et-EE/images/space-star-sprite.png differ diff --git a/et-EE/images/sprite-earth.png b/et-EE/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/et-EE/images/sprite-earth.png differ diff --git a/et-EE/images/sprite-monkey.png b/et-EE/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/et-EE/images/sprite-monkey.png differ diff --git a/et-EE/images/sprite-rock.png b/et-EE/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/et-EE/images/sprite-rock.png differ diff --git a/et-EE/images/sprite-spaceship.png b/et-EE/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/et-EE/images/sprite-spaceship.png differ diff --git a/et-EE/images/sprite-star.png b/et-EE/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/et-EE/images/sprite-star.png differ diff --git a/et-EE/images/trim_and_tile.sh b/et-EE/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/et-EE/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/et-EE/meta.yml b/et-EE/meta.yml new file mode 100644 index 000000000..b207a1b45 --- /dev/null +++ b/et-EE/meta.yml @@ -0,0 +1,35 @@ +--- +title: Lost in space +hero_image: images/lost-in-space.png +description: Learn how to program your own animation! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introduction + - + title: Animating a spaceship + - + title: 'Challenge: improve your animation' + challenge: true + - + title: Animation using loops + completion: + - engaged + - + title: Floating monkey + - + title: Bouncing asteroid + - + title: Shining star + completion: + - internal + - + title: 'Challenge: make your own animation' + challenge: true + - + title: What next? diff --git a/et-EE/scratch-translatable.txt b/et-EE/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/et-EE/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/et-EE/solutions/lost-in-space-solution.sb3 b/et-EE/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/et-EE/solutions/lost-in-space-solution.sb3 differ diff --git a/et-EE/step_1.md b/et-EE/step_1.md new file mode 100644 index 000000000..bc43f86cd --- /dev/null +++ b/et-EE/step_1.md @@ -0,0 +1,60 @@ +## Introduction + +You are going to learn how to program your own animation! + +### What you will make + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: What you will need + +### Hardware + +- A computer capable of running Scratch 3 + +### Software + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + +- None + +\--- /collapse \--- + +## \--- collapse \--- + +## title: What you will learn + +- Use a repeat loop to animate a sprite in Scratch +- Use a forever loop to repeat an animation indefinitely +- Understand that loops can be nested within each other + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Additional information for educators + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/et-EE/step_10.md b/et-EE/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/et-EE/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/et-EE/step_2.md b/et-EE/step_2.md new file mode 100644 index 000000000..cbcdff0c6 --- /dev/null +++ b/et-EE/step_2.md @@ -0,0 +1,72 @@ +## Animating a spaceship + +Your first step will be to create a spaceship that flies towards the Earth! + +\--- task \--- + +Open a new Scratch project. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** open a new project in the offline editor. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/et-EE/step_3.md b/et-EE/step_3.md new file mode 100644 index 000000000..4af9cb400 --- /dev/null +++ b/et-EE/step_3.md @@ -0,0 +1,16 @@ +## Challenge: improve your animation + +Can you change the numbers in your animation code so that: + ++ The spaceship moves until it touches the Earth? ++ The spaceship moves more slowly towards the Earth? + +You'll need to change the numbers in this block: + +![Rocketship sprite](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/et-EE/step_4.md b/et-EE/step_4.md new file mode 100644 index 000000000..0e1397c55 --- /dev/null +++ b/et-EE/step_4.md @@ -0,0 +1,126 @@ +## Animation using loops + +Another way to animate the spaceship is to tell it to move a small amount many times + +\--- task \--- + +Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testing a spaceship animation](images/space-animate-stage.png) + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Your spaceship should start at `100% size`{:class="blocklooks"}, and then `change size`{:class="blocklooks"} by a small amount each time it moves. + +\--- /hint \--- + +\--- hint \--- + +You will need to add these blocks to your code: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Your code should look like this: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/et-EE/step_5.md b/et-EE/step_5.md new file mode 100644 index 000000000..ab4c451b7 --- /dev/null +++ b/et-EE/step_5.md @@ -0,0 +1,70 @@ +## Floating monkey + +Now you will add a monkey who's lost in space to your animation! + +\--- task \--- + +Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/et-EE/step_6.md b/et-EE/step_6.md new file mode 100644 index 000000000..729b6d975 --- /dev/null +++ b/et-EE/step_6.md @@ -0,0 +1,59 @@ +## Bouncing asteroid + +Now you will add a floating space rock to your animation. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/et-EE/step_7.md b/et-EE/step_7.md new file mode 100644 index 000000000..e53504c76 --- /dev/null +++ b/et-EE/step_7.md @@ -0,0 +1,61 @@ +## Shining star + +Now you will combine loops to make a shining star. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Star sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/et-EE/step_8.md b/et-EE/step_8.md new file mode 100644 index 000000000..841b139ec --- /dev/null +++ b/et-EE/step_8.md @@ -0,0 +1,7 @@ +## Challenge: make your own animation + +Stop your space animation, save it, and start a new Scratch project. + +Use what you've learned in this project to make your own animation. It can be anything you like, but try to make your animation match the background you choose. Here are some examples: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/et-EE/step_9.md b/et-EE/step_9.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/et-EE/step_9.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/fi-FI/images/banner.png b/fi-FI/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/fi-FI/images/banner.png differ diff --git a/fi-FI/images/ghostbusters-static.png b/fi-FI/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/fi-FI/images/ghostbusters-static.png differ diff --git a/fi-FI/images/lost-in-space.png b/fi-FI/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/fi-FI/images/lost-in-space.png differ diff --git a/fi-FI/images/make-white.png b/fi-FI/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/fi-FI/images/make-white.png differ diff --git a/fi-FI/images/montage-1.png b/fi-FI/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/fi-FI/images/montage-1.png differ diff --git a/fi-FI/images/montage-2.png b/fi-FI/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/fi-FI/images/montage-2.png differ diff --git a/fi-FI/images/montage-3.png b/fi-FI/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/fi-FI/images/montage-3.png differ diff --git a/fi-FI/images/showcase_static.png b/fi-FI/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/fi-FI/images/showcase_static.png differ diff --git a/fi-FI/images/space-animate-stage.png b/fi-FI/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/fi-FI/images/space-animate-stage.png differ diff --git a/fi-FI/images/space-animate.png b/fi-FI/images/space-animate.png new file mode 100644 index 000000000..46a5038ab Binary files /dev/null and b/fi-FI/images/space-animate.png differ diff --git a/fi-FI/images/space-backdrop.png b/fi-FI/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/fi-FI/images/space-backdrop.png differ diff --git a/fi-FI/images/space-bounce-blocks.png b/fi-FI/images/space-bounce-blocks.png new file mode 100644 index 000000000..9294bb7f7 Binary files /dev/null and b/fi-FI/images/space-bounce-blocks.png differ diff --git a/fi-FI/images/space-bounce-code.png b/fi-FI/images/space-bounce-code.png new file mode 100644 index 000000000..e8791d62f Binary files /dev/null and b/fi-FI/images/space-bounce-code.png differ diff --git a/fi-FI/images/space-bounce-test.png b/fi-FI/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/fi-FI/images/space-bounce-test.png differ diff --git a/fi-FI/images/space-colour-blocks.png b/fi-FI/images/space-colour-blocks.png new file mode 100644 index 000000000..54461788b Binary files /dev/null and b/fi-FI/images/space-colour-blocks.png differ diff --git a/fi-FI/images/space-colour-code.png b/fi-FI/images/space-colour-code.png new file mode 100644 index 000000000..8afbd513d Binary files /dev/null and b/fi-FI/images/space-colour-code.png differ diff --git a/fi-FI/images/space-colour-test.png b/fi-FI/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/fi-FI/images/space-colour-test.png differ diff --git a/fi-FI/images/space-costume.png b/fi-FI/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/fi-FI/images/space-costume.png differ diff --git a/fi-FI/images/space-delete-glide.png b/fi-FI/images/space-delete-glide.png new file mode 100644 index 000000000..1d6fe71a9 Binary files /dev/null and b/fi-FI/images/space-delete-glide.png differ diff --git a/fi-FI/images/space-egs.png b/fi-FI/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/fi-FI/images/space-egs.png differ diff --git a/fi-FI/images/space-glide.png b/fi-FI/images/space-glide.png new file mode 100644 index 000000000..c04d7bfa9 Binary files /dev/null and b/fi-FI/images/space-glide.png differ diff --git a/fi-FI/images/space-initial-position.png b/fi-FI/images/space-initial-position.png new file mode 100644 index 000000000..260fa4f54 Binary files /dev/null and b/fi-FI/images/space-initial-position.png differ diff --git a/fi-FI/images/space-monkey-edit.png b/fi-FI/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/fi-FI/images/space-monkey-edit.png differ diff --git a/fi-FI/images/space-monkey-sprite.png b/fi-FI/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/fi-FI/images/space-monkey-sprite.png differ diff --git a/fi-FI/images/space-repeat-blocks.png b/fi-FI/images/space-repeat-blocks.png new file mode 100644 index 000000000..287663af6 Binary files /dev/null and b/fi-FI/images/space-repeat-blocks.png differ diff --git a/fi-FI/images/space-repeat-code.png b/fi-FI/images/space-repeat-code.png new file mode 100644 index 000000000..9800ca99d Binary files /dev/null and b/fi-FI/images/space-repeat-code.png differ diff --git a/fi-FI/images/space-rock-sprite.png b/fi-FI/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/fi-FI/images/space-rock-sprite.png differ diff --git a/fi-FI/images/space-rotate.png b/fi-FI/images/space-rotate.png new file mode 100644 index 000000000..916fb08f0 Binary files /dev/null and b/fi-FI/images/space-rotate.png differ diff --git a/fi-FI/images/space-size-blocks.png b/fi-FI/images/space-size-blocks.png new file mode 100644 index 000000000..1124075a4 Binary files /dev/null and b/fi-FI/images/space-size-blocks.png differ diff --git a/fi-FI/images/space-size-code.png b/fi-FI/images/space-size-code.png new file mode 100644 index 000000000..14c5d7bcc Binary files /dev/null and b/fi-FI/images/space-size-code.png differ diff --git a/fi-FI/images/space-size-test.png b/fi-FI/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/fi-FI/images/space-size-test.png differ diff --git a/fi-FI/images/space-spin-blocks.png b/fi-FI/images/space-spin-blocks.png new file mode 100644 index 000000000..ca9fd52ee Binary files /dev/null and b/fi-FI/images/space-spin-blocks.png differ diff --git a/fi-FI/images/space-spin-code.png b/fi-FI/images/space-spin-code.png new file mode 100644 index 000000000..8b3b016f9 Binary files /dev/null and b/fi-FI/images/space-spin-code.png differ diff --git a/fi-FI/images/space-spin-test.png b/fi-FI/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/fi-FI/images/space-spin-test.png differ diff --git a/fi-FI/images/space-sprites.png b/fi-FI/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/fi-FI/images/space-sprites.png differ diff --git a/fi-FI/images/space-star-blocks.png b/fi-FI/images/space-star-blocks.png new file mode 100644 index 000000000..f3b9f1e81 Binary files /dev/null and b/fi-FI/images/space-star-blocks.png differ diff --git a/fi-FI/images/space-star-code.png b/fi-FI/images/space-star-code.png new file mode 100644 index 000000000..7097d2e12 Binary files /dev/null and b/fi-FI/images/space-star-code.png differ diff --git a/fi-FI/images/space-star-sprite.png b/fi-FI/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/fi-FI/images/space-star-sprite.png differ diff --git a/fi-FI/images/space-star-test.png b/fi-FI/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/fi-FI/images/space-star-test.png differ diff --git a/fi-FI/images/sprite-earth.png b/fi-FI/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/fi-FI/images/sprite-earth.png differ diff --git a/fi-FI/images/sprite-monkey.png b/fi-FI/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/fi-FI/images/sprite-monkey.png differ diff --git a/fi-FI/images/sprite-rock.png b/fi-FI/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/fi-FI/images/sprite-rock.png differ diff --git a/fi-FI/images/sprite-spaceship.png b/fi-FI/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/fi-FI/images/sprite-spaceship.png differ diff --git a/fi-FI/images/sprite-star.png b/fi-FI/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/fi-FI/images/sprite-star.png differ diff --git a/fi-FI/images/trim_and_tile.sh b/fi-FI/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/fi-FI/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/fi-FI/meta.yml b/fi-FI/meta.yml new file mode 100644 index 000000000..b207a1b45 --- /dev/null +++ b/fi-FI/meta.yml @@ -0,0 +1,35 @@ +--- +title: Lost in space +hero_image: images/lost-in-space.png +description: Learn how to program your own animation! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introduction + - + title: Animating a spaceship + - + title: 'Challenge: improve your animation' + challenge: true + - + title: Animation using loops + completion: + - engaged + - + title: Floating monkey + - + title: Bouncing asteroid + - + title: Shining star + completion: + - internal + - + title: 'Challenge: make your own animation' + challenge: true + - + title: What next? diff --git a/fi-FI/resources/LostinSpace-Finished.sb2 b/fi-FI/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..89753817a Binary files /dev/null and b/fi-FI/resources/LostinSpace-Finished.sb2 differ diff --git a/fi-FI/scratch-translatable.txt b/fi-FI/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/fi-FI/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/fi-FI/solutions/lost-in-space-solution.sb3 b/fi-FI/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/fi-FI/solutions/lost-in-space-solution.sb3 differ diff --git a/fi-FI/step_1.md b/fi-FI/step_1.md new file mode 100644 index 000000000..bc43f86cd --- /dev/null +++ b/fi-FI/step_1.md @@ -0,0 +1,60 @@ +## Introduction + +You are going to learn how to program your own animation! + +### What you will make + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: What you will need + +### Hardware + +- A computer capable of running Scratch 3 + +### Software + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + +- None + +\--- /collapse \--- + +## \--- collapse \--- + +## title: What you will learn + +- Use a repeat loop to animate a sprite in Scratch +- Use a forever loop to repeat an animation indefinitely +- Understand that loops can be nested within each other + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Additional information for educators + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/fi-FI/step_10.md b/fi-FI/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/fi-FI/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/fi-FI/step_2.md b/fi-FI/step_2.md new file mode 100644 index 000000000..cbcdff0c6 --- /dev/null +++ b/fi-FI/step_2.md @@ -0,0 +1,72 @@ +## Animating a spaceship + +Your first step will be to create a spaceship that flies towards the Earth! + +\--- task \--- + +Open a new Scratch project. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** open a new project in the offline editor. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/fi-FI/step_3.md b/fi-FI/step_3.md new file mode 100644 index 000000000..4af9cb400 --- /dev/null +++ b/fi-FI/step_3.md @@ -0,0 +1,16 @@ +## Challenge: improve your animation + +Can you change the numbers in your animation code so that: + ++ The spaceship moves until it touches the Earth? ++ The spaceship moves more slowly towards the Earth? + +You'll need to change the numbers in this block: + +![Rocketship sprite](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/fi-FI/step_4.md b/fi-FI/step_4.md new file mode 100644 index 000000000..0e1397c55 --- /dev/null +++ b/fi-FI/step_4.md @@ -0,0 +1,126 @@ +## Animation using loops + +Another way to animate the spaceship is to tell it to move a small amount many times + +\--- task \--- + +Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testing a spaceship animation](images/space-animate-stage.png) + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Your spaceship should start at `100% size`{:class="blocklooks"}, and then `change size`{:class="blocklooks"} by a small amount each time it moves. + +\--- /hint \--- + +\--- hint \--- + +You will need to add these blocks to your code: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Your code should look like this: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/fi-FI/step_5.md b/fi-FI/step_5.md new file mode 100644 index 000000000..ab4c451b7 --- /dev/null +++ b/fi-FI/step_5.md @@ -0,0 +1,70 @@ +## Floating monkey + +Now you will add a monkey who's lost in space to your animation! + +\--- task \--- + +Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/fi-FI/step_6.md b/fi-FI/step_6.md new file mode 100644 index 000000000..729b6d975 --- /dev/null +++ b/fi-FI/step_6.md @@ -0,0 +1,59 @@ +## Bouncing asteroid + +Now you will add a floating space rock to your animation. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/fi-FI/step_7.md b/fi-FI/step_7.md new file mode 100644 index 000000000..e53504c76 --- /dev/null +++ b/fi-FI/step_7.md @@ -0,0 +1,61 @@ +## Shining star + +Now you will combine loops to make a shining star. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Star sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/fi-FI/step_8.md b/fi-FI/step_8.md new file mode 100644 index 000000000..841b139ec --- /dev/null +++ b/fi-FI/step_8.md @@ -0,0 +1,7 @@ +## Challenge: make your own animation + +Stop your space animation, save it, and start a new Scratch project. + +Use what you've learned in this project to make your own animation. It can be anything you like, but try to make your animation match the background you choose. Here are some examples: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/fi-FI/step_9.md b/fi-FI/step_9.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/fi-FI/step_9.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/fil-PH/images/banner.png b/fil-PH/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/fil-PH/images/banner.png differ diff --git a/fil-PH/images/ghostbusters-static.png b/fil-PH/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/fil-PH/images/ghostbusters-static.png differ diff --git a/fil-PH/images/lost-in-space.png b/fil-PH/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/fil-PH/images/lost-in-space.png differ diff --git a/fil-PH/images/make-white.png b/fil-PH/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/fil-PH/images/make-white.png differ diff --git a/fil-PH/images/montage-1.png b/fil-PH/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/fil-PH/images/montage-1.png differ diff --git a/fil-PH/images/montage-2.png b/fil-PH/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/fil-PH/images/montage-2.png differ diff --git a/fil-PH/images/montage-3.png b/fil-PH/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/fil-PH/images/montage-3.png differ diff --git a/fil-PH/images/showcase_static.png b/fil-PH/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/fil-PH/images/showcase_static.png differ diff --git a/fil-PH/images/space-animate-stage.png b/fil-PH/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/fil-PH/images/space-animate-stage.png differ diff --git a/fil-PH/images/space-backdrop.png b/fil-PH/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/fil-PH/images/space-backdrop.png differ diff --git a/fil-PH/images/space-bounce-test.png b/fil-PH/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/fil-PH/images/space-bounce-test.png differ diff --git a/fil-PH/images/space-colour-test.png b/fil-PH/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/fil-PH/images/space-colour-test.png differ diff --git a/fil-PH/images/space-costume.png b/fil-PH/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/fil-PH/images/space-costume.png differ diff --git a/fil-PH/images/space-egs.png b/fil-PH/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/fil-PH/images/space-egs.png differ diff --git a/fil-PH/images/space-monkey-edit.png b/fil-PH/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/fil-PH/images/space-monkey-edit.png differ diff --git a/fil-PH/images/space-monkey-sprite.png b/fil-PH/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/fil-PH/images/space-monkey-sprite.png differ diff --git a/fil-PH/images/space-rock-sprite.png b/fil-PH/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/fil-PH/images/space-rock-sprite.png differ diff --git a/fil-PH/images/space-rotate.png b/fil-PH/images/space-rotate.png new file mode 100644 index 000000000..916fb08f0 Binary files /dev/null and b/fil-PH/images/space-rotate.png differ diff --git a/fil-PH/images/space-size-test.png b/fil-PH/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/fil-PH/images/space-size-test.png differ diff --git a/fil-PH/images/space-spin-test.png b/fil-PH/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/fil-PH/images/space-spin-test.png differ diff --git a/fil-PH/images/space-sprites.png b/fil-PH/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/fil-PH/images/space-sprites.png differ diff --git a/fil-PH/images/space-star-sprite.png b/fil-PH/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/fil-PH/images/space-star-sprite.png differ diff --git a/fil-PH/images/sprite-earth.png b/fil-PH/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/fil-PH/images/sprite-earth.png differ diff --git a/fil-PH/images/sprite-monkey.png b/fil-PH/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/fil-PH/images/sprite-monkey.png differ diff --git a/fil-PH/images/sprite-rock.png b/fil-PH/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/fil-PH/images/sprite-rock.png differ diff --git a/fil-PH/images/sprite-spaceship.png b/fil-PH/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/fil-PH/images/sprite-spaceship.png differ diff --git a/fil-PH/images/sprite-star.png b/fil-PH/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/fil-PH/images/sprite-star.png differ diff --git a/fil-PH/images/trim_and_tile.sh b/fil-PH/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/fil-PH/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/fil-PH/meta.yml b/fil-PH/meta.yml new file mode 100644 index 000000000..b207a1b45 --- /dev/null +++ b/fil-PH/meta.yml @@ -0,0 +1,35 @@ +--- +title: Lost in space +hero_image: images/lost-in-space.png +description: Learn how to program your own animation! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introduction + - + title: Animating a spaceship + - + title: 'Challenge: improve your animation' + challenge: true + - + title: Animation using loops + completion: + - engaged + - + title: Floating monkey + - + title: Bouncing asteroid + - + title: Shining star + completion: + - internal + - + title: 'Challenge: make your own animation' + challenge: true + - + title: What next? diff --git a/fil-PH/scratch-translatable.txt b/fil-PH/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/fil-PH/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/fil-PH/solutions/lost-in-space-solution.sb3 b/fil-PH/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/fil-PH/solutions/lost-in-space-solution.sb3 differ diff --git a/fil-PH/step_1.md b/fil-PH/step_1.md new file mode 100644 index 000000000..bc43f86cd --- /dev/null +++ b/fil-PH/step_1.md @@ -0,0 +1,60 @@ +## Introduction + +You are going to learn how to program your own animation! + +### What you will make + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: What you will need + +### Hardware + +- A computer capable of running Scratch 3 + +### Software + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + +- None + +\--- /collapse \--- + +## \--- collapse \--- + +## title: What you will learn + +- Use a repeat loop to animate a sprite in Scratch +- Use a forever loop to repeat an animation indefinitely +- Understand that loops can be nested within each other + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Additional information for educators + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/fil-PH/step_2.md b/fil-PH/step_2.md new file mode 100644 index 000000000..cbcdff0c6 --- /dev/null +++ b/fil-PH/step_2.md @@ -0,0 +1,72 @@ +## Animating a spaceship + +Your first step will be to create a spaceship that flies towards the Earth! + +\--- task \--- + +Open a new Scratch project. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** open a new project in the offline editor. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/fil-PH/step_3.md b/fil-PH/step_3.md new file mode 100644 index 000000000..4af9cb400 --- /dev/null +++ b/fil-PH/step_3.md @@ -0,0 +1,16 @@ +## Challenge: improve your animation + +Can you change the numbers in your animation code so that: + ++ The spaceship moves until it touches the Earth? ++ The spaceship moves more slowly towards the Earth? + +You'll need to change the numbers in this block: + +![Rocketship sprite](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/fil-PH/step_4.md b/fil-PH/step_4.md new file mode 100644 index 000000000..0e1397c55 --- /dev/null +++ b/fil-PH/step_4.md @@ -0,0 +1,126 @@ +## Animation using loops + +Another way to animate the spaceship is to tell it to move a small amount many times + +\--- task \--- + +Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testing a spaceship animation](images/space-animate-stage.png) + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Your spaceship should start at `100% size`{:class="blocklooks"}, and then `change size`{:class="blocklooks"} by a small amount each time it moves. + +\--- /hint \--- + +\--- hint \--- + +You will need to add these blocks to your code: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Your code should look like this: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/fil-PH/step_5.md b/fil-PH/step_5.md new file mode 100644 index 000000000..ab4c451b7 --- /dev/null +++ b/fil-PH/step_5.md @@ -0,0 +1,70 @@ +## Floating monkey + +Now you will add a monkey who's lost in space to your animation! + +\--- task \--- + +Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/fil-PH/step_6.md b/fil-PH/step_6.md new file mode 100644 index 000000000..729b6d975 --- /dev/null +++ b/fil-PH/step_6.md @@ -0,0 +1,59 @@ +## Bouncing asteroid + +Now you will add a floating space rock to your animation. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/fil-PH/step_7.md b/fil-PH/step_7.md new file mode 100644 index 000000000..e53504c76 --- /dev/null +++ b/fil-PH/step_7.md @@ -0,0 +1,61 @@ +## Shining star + +Now you will combine loops to make a shining star. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Star sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/fil-PH/step_8.md b/fil-PH/step_8.md new file mode 100644 index 000000000..841b139ec --- /dev/null +++ b/fil-PH/step_8.md @@ -0,0 +1,7 @@ +## Challenge: make your own animation + +Stop your space animation, save it, and start a new Scratch project. + +Use what you've learned in this project to make your own animation. It can be anything you like, but try to make your animation match the background you choose. Here are some examples: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/fil-PH/step_9.md b/fil-PH/step_9.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/fil-PH/step_9.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/fr-FR/images/banner.png b/fr-FR/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/fr-FR/images/banner.png differ diff --git a/fr-FR/images/ghostbusters-static.png b/fr-FR/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/fr-FR/images/ghostbusters-static.png differ diff --git a/fr-FR/images/lost-in-space.png b/fr-FR/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/fr-FR/images/lost-in-space.png differ diff --git a/fr-FR/images/make-white.png b/fr-FR/images/make-white.png new file mode 100644 index 000000000..7814919d5 Binary files /dev/null and b/fr-FR/images/make-white.png differ diff --git a/fr-FR/images/montage-1.png b/fr-FR/images/montage-1.png new file mode 100644 index 000000000..3f8227f97 Binary files /dev/null and b/fr-FR/images/montage-1.png differ diff --git a/fr-FR/images/montage-2.png b/fr-FR/images/montage-2.png new file mode 100644 index 000000000..9277893fb Binary files /dev/null and b/fr-FR/images/montage-2.png differ diff --git a/fr-FR/images/montage-3.png b/fr-FR/images/montage-3.png new file mode 100644 index 000000000..fd03e23e4 Binary files /dev/null and b/fr-FR/images/montage-3.png differ diff --git a/fr-FR/images/showcase_static.png b/fr-FR/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/fr-FR/images/showcase_static.png differ diff --git a/fr-FR/images/space-animate-stage.png b/fr-FR/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/fr-FR/images/space-animate-stage.png differ diff --git a/fr-FR/images/space-animate.png b/fr-FR/images/space-animate.png new file mode 100644 index 000000000..46a5038ab Binary files /dev/null and b/fr-FR/images/space-animate.png differ diff --git a/fr-FR/images/space-backdrop.png b/fr-FR/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/fr-FR/images/space-backdrop.png differ diff --git a/fr-FR/images/space-bounce-blocks.png b/fr-FR/images/space-bounce-blocks.png new file mode 100644 index 000000000..9294bb7f7 Binary files /dev/null and b/fr-FR/images/space-bounce-blocks.png differ diff --git a/fr-FR/images/space-bounce-code.png b/fr-FR/images/space-bounce-code.png new file mode 100644 index 000000000..e8791d62f Binary files /dev/null and b/fr-FR/images/space-bounce-code.png differ diff --git a/fr-FR/images/space-bounce-test.png b/fr-FR/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/fr-FR/images/space-bounce-test.png differ diff --git a/fr-FR/images/space-colour-blocks.png b/fr-FR/images/space-colour-blocks.png new file mode 100644 index 000000000..54461788b Binary files /dev/null and b/fr-FR/images/space-colour-blocks.png differ diff --git a/fr-FR/images/space-colour-code.png b/fr-FR/images/space-colour-code.png new file mode 100644 index 000000000..8afbd513d Binary files /dev/null and b/fr-FR/images/space-colour-code.png differ diff --git a/fr-FR/images/space-colour-test.png b/fr-FR/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/fr-FR/images/space-colour-test.png differ diff --git a/fr-FR/images/space-costume.png b/fr-FR/images/space-costume.png new file mode 100644 index 000000000..36aa862a3 Binary files /dev/null and b/fr-FR/images/space-costume.png differ diff --git a/fr-FR/images/space-delete-glide.png b/fr-FR/images/space-delete-glide.png new file mode 100644 index 000000000..1d6fe71a9 Binary files /dev/null and b/fr-FR/images/space-delete-glide.png differ diff --git a/fr-FR/images/space-egs.png b/fr-FR/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/fr-FR/images/space-egs.png differ diff --git a/fr-FR/images/space-glide.png b/fr-FR/images/space-glide.png new file mode 100644 index 000000000..c04d7bfa9 Binary files /dev/null and b/fr-FR/images/space-glide.png differ diff --git a/fr-FR/images/space-initial-position.png b/fr-FR/images/space-initial-position.png new file mode 100644 index 000000000..260fa4f54 Binary files /dev/null and b/fr-FR/images/space-initial-position.png differ diff --git a/fr-FR/images/space-monkey-edit.png b/fr-FR/images/space-monkey-edit.png new file mode 100644 index 000000000..418b2682d Binary files /dev/null and b/fr-FR/images/space-monkey-edit.png differ diff --git a/fr-FR/images/space-monkey-sprite.png b/fr-FR/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/fr-FR/images/space-monkey-sprite.png differ diff --git a/fr-FR/images/space-repeat-blocks.png b/fr-FR/images/space-repeat-blocks.png new file mode 100644 index 000000000..287663af6 Binary files /dev/null and b/fr-FR/images/space-repeat-blocks.png differ diff --git a/fr-FR/images/space-repeat-code.png b/fr-FR/images/space-repeat-code.png new file mode 100644 index 000000000..9800ca99d Binary files /dev/null and b/fr-FR/images/space-repeat-code.png differ diff --git a/fr-FR/images/space-rock-sprite.png b/fr-FR/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/fr-FR/images/space-rock-sprite.png differ diff --git a/fr-FR/images/space-rotate.png b/fr-FR/images/space-rotate.png new file mode 100644 index 000000000..3a946b861 Binary files /dev/null and b/fr-FR/images/space-rotate.png differ diff --git a/fr-FR/images/space-size-blocks.png b/fr-FR/images/space-size-blocks.png new file mode 100644 index 000000000..1124075a4 Binary files /dev/null and b/fr-FR/images/space-size-blocks.png differ diff --git a/fr-FR/images/space-size-code.png b/fr-FR/images/space-size-code.png new file mode 100644 index 000000000..14c5d7bcc Binary files /dev/null and b/fr-FR/images/space-size-code.png differ diff --git a/fr-FR/images/space-size-test.png b/fr-FR/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/fr-FR/images/space-size-test.png differ diff --git a/fr-FR/images/space-spin-blocks.png b/fr-FR/images/space-spin-blocks.png new file mode 100644 index 000000000..ca9fd52ee Binary files /dev/null and b/fr-FR/images/space-spin-blocks.png differ diff --git a/fr-FR/images/space-spin-code.png b/fr-FR/images/space-spin-code.png new file mode 100644 index 000000000..8b3b016f9 Binary files /dev/null and b/fr-FR/images/space-spin-code.png differ diff --git a/fr-FR/images/space-spin-test.png b/fr-FR/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/fr-FR/images/space-spin-test.png differ diff --git a/fr-FR/images/space-sprites.png b/fr-FR/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/fr-FR/images/space-sprites.png differ diff --git a/fr-FR/images/space-star-blocks.png b/fr-FR/images/space-star-blocks.png new file mode 100644 index 000000000..f3b9f1e81 Binary files /dev/null and b/fr-FR/images/space-star-blocks.png differ diff --git a/fr-FR/images/space-star-code.png b/fr-FR/images/space-star-code.png new file mode 100644 index 000000000..7097d2e12 Binary files /dev/null and b/fr-FR/images/space-star-code.png differ diff --git a/fr-FR/images/space-star-sprite.png b/fr-FR/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/fr-FR/images/space-star-sprite.png differ diff --git a/fr-FR/images/space-star-test.png b/fr-FR/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/fr-FR/images/space-star-test.png differ diff --git a/fr-FR/images/sprite-earth.png b/fr-FR/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/fr-FR/images/sprite-earth.png differ diff --git a/fr-FR/images/sprite-monkey.png b/fr-FR/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/fr-FR/images/sprite-monkey.png differ diff --git a/fr-FR/images/sprite-rock.png b/fr-FR/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/fr-FR/images/sprite-rock.png differ diff --git a/fr-FR/images/sprite-spaceship.png b/fr-FR/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/fr-FR/images/sprite-spaceship.png differ diff --git a/fr-FR/images/sprite-star.png b/fr-FR/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/fr-FR/images/sprite-star.png differ diff --git a/fr-FR/images/trim_and_tile.sh b/fr-FR/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/fr-FR/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/fr-FR/meta.yml b/fr-FR/meta.yml new file mode 100644 index 000000000..3e49244fb --- /dev/null +++ b/fr-FR/meta.yml @@ -0,0 +1,35 @@ +--- +title: Perdu dans l'espace +hero_image: images/lost-in-space.png +description: Apprends à programmer ta propre animation! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introduction + - + title: Animer un vaisseau spatial + - + title: 'Défi : améliorer ton animation' + challenge: true + - + title: L'animation à l'aide de boucles + completion: + - engaged + - + title: Singe flottant + - + title: Astéroïde rebondissant + - + title: Étoile brillante + completion: + - internal + - + title: 'Défi: fait ta propre animation' + challenge: true + - + title: Et ensuite? diff --git a/fr-FR/resources/LostinSpace-Finished.sb2 b/fr-FR/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..89753817a Binary files /dev/null and b/fr-FR/resources/LostinSpace-Finished.sb2 differ diff --git a/fr-FR/scratch-translatable.txt b/fr-FR/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/fr-FR/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/fr-FR/solutions/lost-in-space-solution.sb3 b/fr-FR/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..c9fe187e4 Binary files /dev/null and b/fr-FR/solutions/lost-in-space-solution.sb3 differ diff --git a/fr-FR/step_1.md b/fr-FR/step_1.md new file mode 100644 index 000000000..7cbcfe10f --- /dev/null +++ b/fr-FR/step_1.md @@ -0,0 +1,60 @@ +## Introduction + +You are going to learn how to program your own animation! + +### Ce que tu vas faire + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: Ce qu'il te faut + +### Matériel informatique + +- Un ordinateur capable d'exécuter Scratch 3 + +### Logiciel + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Téléchargements + +- Aucun + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Ce que tu vas apprendre + +- Utiliser une boucle de répétition pour animer un sprite dans Scratch +- Utiliser une boucle infinie pour répéter une animation indéfiniment +- Comprendre que les boucles peuvent être imbriquées les unes dans les autres + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Informations supplémentaires pour les éducateurs + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/fr-FR/step_10.md b/fr-FR/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/fr-FR/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/fr-FR/step_2.md b/fr-FR/step_2.md new file mode 100644 index 000000000..6ae4bb8fd --- /dev/null +++ b/fr-FR/step_2.md @@ -0,0 +1,72 @@ +## Animer un vaisseau spatial + +Ton premier objectif sera de créer un vaisseau spatial qui vole vers la Terre! + +\--- task \--- + +Ouvre un nouveau projet Scratch. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Hors ligne:** ouvre un nouveau projet dans l'éditeur hors ligne. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +quand le drapeau vert pressé +s'orienter en direction de (0) +aller à x: (-150) y: (-150) +dire [c'est parti !] pendant (2) secondes +s'orienter vers (Earth v) +glisser en (1) secondes à x: (0) y: (0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/fr-FR/step_3.md b/fr-FR/step_3.md new file mode 100644 index 000000000..7be4536b4 --- /dev/null +++ b/fr-FR/step_3.md @@ -0,0 +1,16 @@ +## Challenge: améliorer ton animation + +Peux-tu changer les chiffres dans ton code d'animation, de sorte que: + ++ Le vaisseau spatial se déplace jusqu'à ce qu'il touche la Terre? ++ Le vaisseau spatial se déplace plus lentement vers la Terre? + +Tu dois changer les nombres dans ce bloc: + +![Sprite de Fusée](images/sprite-spaceship.png) + +```blocks3 +glisser en (1) secondes à x: (0) y: (0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/fr-FR/step_4.md b/fr-FR/step_4.md new file mode 100644 index 000000000..48da97107 --- /dev/null +++ b/fr-FR/step_4.md @@ -0,0 +1,126 @@ +## L'animation à l'aide de boucles + +Une autre façon d'animer le vaisseau spatial est de lui dire d'avancer un petit peu beaucoup de fois + +\--- task \--- + +Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +quand le drapeau vert pressé +s'orienter en direction de (0) +aller à x: (-150) y: (-150) +dire [c'est parti !] pendant (2) secondes +s'orienter vers (Terre v) + +glisser en (1) secondes à x: (0) y: (0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testing a spaceship animation](images/space-animate-stage.png) + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +lorsque le drapeau est cliqué +s'orienter en direction de (0) +aller à x: (-150) y: (-150) +dire [c'est parti !] pendant (2) secondes +s'orienter vers (Terre v) + ++ répéter (200) + déplacer de (2) pas +``` + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +lorsque le drapeau est cliqué +s'orienter en direction de (0) +aller à x: (-150) y: (-150) +dire [c'est parti !] pendant (2) secondes +s'orienter vers (Terre v) +répéter (200) + avancer de (2) pas + ++ ajouter (25) à l'effet [couleur v] +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Your spaceship should start at `100% size`{:class="blocklooks"}, and then `change size`{:class="blocklooks"} by a small amount each time it moves. + +\--- /hint \--- + +\--- hint \--- + +You will need to add these blocks to your code: + +![Sprite de vaisseau spatial](images/sprite-spaceship.png) + +```blocks3 +ajouter (10) à la taille + +mettre la taille à (100) % de la taille initiale +``` + +\--- /hint \--- + +\--- hint \--- + +Your code should look like this: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/fr-FR/step_5.md b/fr-FR/step_5.md new file mode 100644 index 000000000..4d9e677e0 --- /dev/null +++ b/fr-FR/step_5.md @@ -0,0 +1,68 @@ +## Singe flottant + +Maintenant tu vas ajouter un singe perdu dans l'espace à ton animation! + +\--- task \--- + +Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +répéter indéfiniment + +tourner droite de (15) degrés + +quand le drapeau vert pressé +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +quand le drapeau vert pressé +répéter (1) indéfiniment +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/fr-FR/step_6.md b/fr-FR/step_6.md new file mode 100644 index 000000000..1630797cb --- /dev/null +++ b/fr-FR/step_6.md @@ -0,0 +1,59 @@ +## Astéroïde rebondissant + +Maintenant tu vas ajouter une météore flottante à ton animation. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +avancer de (10) pas + +rebondir si le bord est atteint + +quand le drapeau vert pressé + +répéter indéfiniment +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +tourner droite de (15) degrés + +s'orienter vers (Terre v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +quand le drapeau vert pressé +s'orienter vers (Terre v) +répéter indéfiniment +avancer de (2) pas +rebondir si le bord est atteint +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/fr-FR/step_7.md b/fr-FR/step_7.md new file mode 100644 index 000000000..de16e1995 --- /dev/null +++ b/fr-FR/step_7.md @@ -0,0 +1,61 @@ +## Étoile brillante + +Maintenant, tu vas combiner les boucles pour faire une étoile brillante. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +répéter (10) fois +end + +quand le drapeau vert pressé + +répéter (10) fois +end + +ajouter (10) à la taille + +ajouter (10) à la taille + +répéter indéfiniment +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Star sprite](images/sprite-star.png) + +```blocks3 +quand le drapeau vert pressé +indéfiniment +répéter (20) +ajouter (2) à la taille +end +répéter (20) +ajouter (-2) à la taille +end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/fr-FR/step_8.md b/fr-FR/step_8.md new file mode 100644 index 000000000..95336a47d --- /dev/null +++ b/fr-FR/step_8.md @@ -0,0 +1,7 @@ +## Défi : fais ta propre animation + +Arrête ton animation d'espace, enregistre-la et démarre un nouveau projet Scratch. + +Utilise ce que tu as appris dans ce projet pour créer ta propre animation. Cela peut être ce que tu veux, mais essaye de faire en sorte que l'animation corresponde à l'arrière-plan que tu choisis. Voici quelques exemples: + +![capture d'écran](images/space-egs.png) \ No newline at end of file diff --git a/fr-FR/step_9.md b/fr-FR/step_9.md new file mode 100644 index 000000000..c41276198 --- /dev/null +++ b/fr-FR/step_9.md @@ -0,0 +1,18 @@ +## Que faire ensuite? + +Essaye le projet [Chasseurs de fantômes](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects)  ! Dans ce projet, tu vas apprendre à créer un jeu avec des fantômes qui apparaissent partout et que tu devras attraper. Tu apprendras également à ajouter une minuterie et un score au jeu afin de voir le nombre de fantômes que tu attrapes. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![démonstration](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/ga-IE/images/banner.png b/ga-IE/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/ga-IE/images/banner.png differ diff --git a/ga-IE/images/ghostbusters-static.png b/ga-IE/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/ga-IE/images/ghostbusters-static.png differ diff --git a/ga-IE/images/lost-in-space.png b/ga-IE/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/ga-IE/images/lost-in-space.png differ diff --git a/ga-IE/images/make-white.png b/ga-IE/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/ga-IE/images/make-white.png differ diff --git a/ga-IE/images/montage-1.png b/ga-IE/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/ga-IE/images/montage-1.png differ diff --git a/ga-IE/images/montage-2.png b/ga-IE/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/ga-IE/images/montage-2.png differ diff --git a/ga-IE/images/montage-3.png b/ga-IE/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/ga-IE/images/montage-3.png differ diff --git a/ga-IE/images/showcase_static.png b/ga-IE/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/ga-IE/images/showcase_static.png differ diff --git a/ga-IE/images/space-animate-stage.png b/ga-IE/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/ga-IE/images/space-animate-stage.png differ diff --git a/ga-IE/images/space-animate.png b/ga-IE/images/space-animate.png new file mode 100644 index 000000000..46a5038ab Binary files /dev/null and b/ga-IE/images/space-animate.png differ diff --git a/ga-IE/images/space-backdrop.png b/ga-IE/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/ga-IE/images/space-backdrop.png differ diff --git a/ga-IE/images/space-bounce-blocks.png b/ga-IE/images/space-bounce-blocks.png new file mode 100644 index 000000000..9294bb7f7 Binary files /dev/null and b/ga-IE/images/space-bounce-blocks.png differ diff --git a/ga-IE/images/space-bounce-code.png b/ga-IE/images/space-bounce-code.png new file mode 100644 index 000000000..e8791d62f Binary files /dev/null and b/ga-IE/images/space-bounce-code.png differ diff --git a/ga-IE/images/space-bounce-test.png b/ga-IE/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/ga-IE/images/space-bounce-test.png differ diff --git a/ga-IE/images/space-colour-blocks.png b/ga-IE/images/space-colour-blocks.png new file mode 100644 index 000000000..54461788b Binary files /dev/null and b/ga-IE/images/space-colour-blocks.png differ diff --git a/ga-IE/images/space-colour-code.png b/ga-IE/images/space-colour-code.png new file mode 100644 index 000000000..8afbd513d Binary files /dev/null and b/ga-IE/images/space-colour-code.png differ diff --git a/ga-IE/images/space-colour-test.png b/ga-IE/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/ga-IE/images/space-colour-test.png differ diff --git a/ga-IE/images/space-costume.png b/ga-IE/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/ga-IE/images/space-costume.png differ diff --git a/ga-IE/images/space-delete-glide.png b/ga-IE/images/space-delete-glide.png new file mode 100644 index 000000000..1d6fe71a9 Binary files /dev/null and b/ga-IE/images/space-delete-glide.png differ diff --git a/ga-IE/images/space-egs.png b/ga-IE/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/ga-IE/images/space-egs.png differ diff --git a/ga-IE/images/space-glide.png b/ga-IE/images/space-glide.png new file mode 100644 index 000000000..c04d7bfa9 Binary files /dev/null and b/ga-IE/images/space-glide.png differ diff --git a/ga-IE/images/space-initial-position.png b/ga-IE/images/space-initial-position.png new file mode 100644 index 000000000..260fa4f54 Binary files /dev/null and b/ga-IE/images/space-initial-position.png differ diff --git a/ga-IE/images/space-monkey-edit.png b/ga-IE/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/ga-IE/images/space-monkey-edit.png differ diff --git a/ga-IE/images/space-monkey-sprite.png b/ga-IE/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/ga-IE/images/space-monkey-sprite.png differ diff --git a/ga-IE/images/space-repeat-blocks.png b/ga-IE/images/space-repeat-blocks.png new file mode 100644 index 000000000..287663af6 Binary files /dev/null and b/ga-IE/images/space-repeat-blocks.png differ diff --git a/ga-IE/images/space-repeat-code.png b/ga-IE/images/space-repeat-code.png new file mode 100644 index 000000000..9800ca99d Binary files /dev/null and b/ga-IE/images/space-repeat-code.png differ diff --git a/ga-IE/images/space-rock-sprite.png b/ga-IE/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/ga-IE/images/space-rock-sprite.png differ diff --git a/ga-IE/images/space-rotate.png b/ga-IE/images/space-rotate.png new file mode 100644 index 000000000..916fb08f0 Binary files /dev/null and b/ga-IE/images/space-rotate.png differ diff --git a/ga-IE/images/space-size-blocks.png b/ga-IE/images/space-size-blocks.png new file mode 100644 index 000000000..1124075a4 Binary files /dev/null and b/ga-IE/images/space-size-blocks.png differ diff --git a/ga-IE/images/space-size-code.png b/ga-IE/images/space-size-code.png new file mode 100644 index 000000000..14c5d7bcc Binary files /dev/null and b/ga-IE/images/space-size-code.png differ diff --git a/ga-IE/images/space-size-test.png b/ga-IE/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/ga-IE/images/space-size-test.png differ diff --git a/ga-IE/images/space-spin-blocks.png b/ga-IE/images/space-spin-blocks.png new file mode 100644 index 000000000..ca9fd52ee Binary files /dev/null and b/ga-IE/images/space-spin-blocks.png differ diff --git a/ga-IE/images/space-spin-code.png b/ga-IE/images/space-spin-code.png new file mode 100644 index 000000000..8b3b016f9 Binary files /dev/null and b/ga-IE/images/space-spin-code.png differ diff --git a/ga-IE/images/space-spin-test.png b/ga-IE/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/ga-IE/images/space-spin-test.png differ diff --git a/ga-IE/images/space-sprites.png b/ga-IE/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/ga-IE/images/space-sprites.png differ diff --git a/ga-IE/images/space-star-blocks.png b/ga-IE/images/space-star-blocks.png new file mode 100644 index 000000000..f3b9f1e81 Binary files /dev/null and b/ga-IE/images/space-star-blocks.png differ diff --git a/ga-IE/images/space-star-code.png b/ga-IE/images/space-star-code.png new file mode 100644 index 000000000..7097d2e12 Binary files /dev/null and b/ga-IE/images/space-star-code.png differ diff --git a/ga-IE/images/space-star-sprite.png b/ga-IE/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/ga-IE/images/space-star-sprite.png differ diff --git a/ga-IE/images/space-star-test.png b/ga-IE/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/ga-IE/images/space-star-test.png differ diff --git a/ga-IE/images/sprite-earth.png b/ga-IE/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/ga-IE/images/sprite-earth.png differ diff --git a/ga-IE/images/sprite-monkey.png b/ga-IE/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/ga-IE/images/sprite-monkey.png differ diff --git a/ga-IE/images/sprite-rock.png b/ga-IE/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/ga-IE/images/sprite-rock.png differ diff --git a/ga-IE/images/sprite-spaceship.png b/ga-IE/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/ga-IE/images/sprite-spaceship.png differ diff --git a/ga-IE/images/sprite-star.png b/ga-IE/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/ga-IE/images/sprite-star.png differ diff --git a/ga-IE/images/trim_and_tile.sh b/ga-IE/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/ga-IE/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/ga-IE/meta.yml b/ga-IE/meta.yml new file mode 100644 index 000000000..b207a1b45 --- /dev/null +++ b/ga-IE/meta.yml @@ -0,0 +1,35 @@ +--- +title: Lost in space +hero_image: images/lost-in-space.png +description: Learn how to program your own animation! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introduction + - + title: Animating a spaceship + - + title: 'Challenge: improve your animation' + challenge: true + - + title: Animation using loops + completion: + - engaged + - + title: Floating monkey + - + title: Bouncing asteroid + - + title: Shining star + completion: + - internal + - + title: 'Challenge: make your own animation' + challenge: true + - + title: What next? diff --git a/ga-IE/resources/LostinSpace-Finished.sb2 b/ga-IE/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..89753817a Binary files /dev/null and b/ga-IE/resources/LostinSpace-Finished.sb2 differ diff --git a/ga-IE/scratch-translatable.txt b/ga-IE/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/ga-IE/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/ga-IE/solutions/lost-in-space-solution.sb3 b/ga-IE/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/ga-IE/solutions/lost-in-space-solution.sb3 differ diff --git a/ga-IE/step_1.md b/ga-IE/step_1.md new file mode 100644 index 000000000..bc43f86cd --- /dev/null +++ b/ga-IE/step_1.md @@ -0,0 +1,60 @@ +## Introduction + +You are going to learn how to program your own animation! + +### What you will make + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: What you will need + +### Hardware + +- A computer capable of running Scratch 3 + +### Software + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + +- None + +\--- /collapse \--- + +## \--- collapse \--- + +## title: What you will learn + +- Use a repeat loop to animate a sprite in Scratch +- Use a forever loop to repeat an animation indefinitely +- Understand that loops can be nested within each other + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Additional information for educators + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/ga-IE/step_10.md b/ga-IE/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/ga-IE/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/ga-IE/step_2.md b/ga-IE/step_2.md new file mode 100644 index 000000000..cbcdff0c6 --- /dev/null +++ b/ga-IE/step_2.md @@ -0,0 +1,72 @@ +## Animating a spaceship + +Your first step will be to create a spaceship that flies towards the Earth! + +\--- task \--- + +Open a new Scratch project. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** open a new project in the offline editor. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/ga-IE/step_3.md b/ga-IE/step_3.md new file mode 100644 index 000000000..4af9cb400 --- /dev/null +++ b/ga-IE/step_3.md @@ -0,0 +1,16 @@ +## Challenge: improve your animation + +Can you change the numbers in your animation code so that: + ++ The spaceship moves until it touches the Earth? ++ The spaceship moves more slowly towards the Earth? + +You'll need to change the numbers in this block: + +![Rocketship sprite](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/ga-IE/step_4.md b/ga-IE/step_4.md new file mode 100644 index 000000000..0e1397c55 --- /dev/null +++ b/ga-IE/step_4.md @@ -0,0 +1,126 @@ +## Animation using loops + +Another way to animate the spaceship is to tell it to move a small amount many times + +\--- task \--- + +Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testing a spaceship animation](images/space-animate-stage.png) + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Your spaceship should start at `100% size`{:class="blocklooks"}, and then `change size`{:class="blocklooks"} by a small amount each time it moves. + +\--- /hint \--- + +\--- hint \--- + +You will need to add these blocks to your code: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Your code should look like this: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/ga-IE/step_5.md b/ga-IE/step_5.md new file mode 100644 index 000000000..ab4c451b7 --- /dev/null +++ b/ga-IE/step_5.md @@ -0,0 +1,70 @@ +## Floating monkey + +Now you will add a monkey who's lost in space to your animation! + +\--- task \--- + +Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/ga-IE/step_6.md b/ga-IE/step_6.md new file mode 100644 index 000000000..729b6d975 --- /dev/null +++ b/ga-IE/step_6.md @@ -0,0 +1,59 @@ +## Bouncing asteroid + +Now you will add a floating space rock to your animation. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/ga-IE/step_7.md b/ga-IE/step_7.md new file mode 100644 index 000000000..e53504c76 --- /dev/null +++ b/ga-IE/step_7.md @@ -0,0 +1,61 @@ +## Shining star + +Now you will combine loops to make a shining star. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Star sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/ga-IE/step_8.md b/ga-IE/step_8.md new file mode 100644 index 000000000..841b139ec --- /dev/null +++ b/ga-IE/step_8.md @@ -0,0 +1,7 @@ +## Challenge: make your own animation + +Stop your space animation, save it, and start a new Scratch project. + +Use what you've learned in this project to make your own animation. It can be anything you like, but try to make your animation match the background you choose. Here are some examples: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/ga-IE/step_9.md b/ga-IE/step_9.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/ga-IE/step_9.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/he-IL/images/banner.png b/he-IL/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/he-IL/images/banner.png differ diff --git a/he-IL/images/ghostbusters-static.png b/he-IL/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/he-IL/images/ghostbusters-static.png differ diff --git a/he-IL/images/lost-in-space.png b/he-IL/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/he-IL/images/lost-in-space.png differ diff --git a/he-IL/images/make-white.png b/he-IL/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/he-IL/images/make-white.png differ diff --git a/he-IL/images/montage-1.png b/he-IL/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/he-IL/images/montage-1.png differ diff --git a/he-IL/images/montage-2.png b/he-IL/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/he-IL/images/montage-2.png differ diff --git a/he-IL/images/montage-3.png b/he-IL/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/he-IL/images/montage-3.png differ diff --git a/he-IL/images/showcase_static.png b/he-IL/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/he-IL/images/showcase_static.png differ diff --git a/he-IL/images/space-animate-stage.png b/he-IL/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/he-IL/images/space-animate-stage.png differ diff --git a/he-IL/images/space-animate.png b/he-IL/images/space-animate.png new file mode 100644 index 000000000..46a5038ab Binary files /dev/null and b/he-IL/images/space-animate.png differ diff --git a/he-IL/images/space-backdrop.png b/he-IL/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/he-IL/images/space-backdrop.png differ diff --git a/he-IL/images/space-bounce-blocks.png b/he-IL/images/space-bounce-blocks.png new file mode 100644 index 000000000..9294bb7f7 Binary files /dev/null and b/he-IL/images/space-bounce-blocks.png differ diff --git a/he-IL/images/space-bounce-code.png b/he-IL/images/space-bounce-code.png new file mode 100644 index 000000000..e8791d62f Binary files /dev/null and b/he-IL/images/space-bounce-code.png differ diff --git a/he-IL/images/space-bounce-test.png b/he-IL/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/he-IL/images/space-bounce-test.png differ diff --git a/he-IL/images/space-colour-blocks.png b/he-IL/images/space-colour-blocks.png new file mode 100644 index 000000000..54461788b Binary files /dev/null and b/he-IL/images/space-colour-blocks.png differ diff --git a/he-IL/images/space-colour-code.png b/he-IL/images/space-colour-code.png new file mode 100644 index 000000000..8afbd513d Binary files /dev/null and b/he-IL/images/space-colour-code.png differ diff --git a/he-IL/images/space-colour-test.png b/he-IL/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/he-IL/images/space-colour-test.png differ diff --git a/he-IL/images/space-costume.png b/he-IL/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/he-IL/images/space-costume.png differ diff --git a/he-IL/images/space-delete-glide.png b/he-IL/images/space-delete-glide.png new file mode 100644 index 000000000..1d6fe71a9 Binary files /dev/null and b/he-IL/images/space-delete-glide.png differ diff --git a/he-IL/images/space-egs.png b/he-IL/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/he-IL/images/space-egs.png differ diff --git a/he-IL/images/space-glide.png b/he-IL/images/space-glide.png new file mode 100644 index 000000000..c04d7bfa9 Binary files /dev/null and b/he-IL/images/space-glide.png differ diff --git a/he-IL/images/space-initial-position.png b/he-IL/images/space-initial-position.png new file mode 100644 index 000000000..260fa4f54 Binary files /dev/null and b/he-IL/images/space-initial-position.png differ diff --git a/he-IL/images/space-monkey-edit.png b/he-IL/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/he-IL/images/space-monkey-edit.png differ diff --git a/he-IL/images/space-monkey-sprite.png b/he-IL/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/he-IL/images/space-monkey-sprite.png differ diff --git a/he-IL/images/space-repeat-blocks.png b/he-IL/images/space-repeat-blocks.png new file mode 100644 index 000000000..287663af6 Binary files /dev/null and b/he-IL/images/space-repeat-blocks.png differ diff --git a/he-IL/images/space-repeat-code.png b/he-IL/images/space-repeat-code.png new file mode 100644 index 000000000..9800ca99d Binary files /dev/null and b/he-IL/images/space-repeat-code.png differ diff --git a/he-IL/images/space-rock-sprite.png b/he-IL/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/he-IL/images/space-rock-sprite.png differ diff --git a/he-IL/images/space-rotate.png b/he-IL/images/space-rotate.png new file mode 100644 index 000000000..916fb08f0 Binary files /dev/null and b/he-IL/images/space-rotate.png differ diff --git a/he-IL/images/space-size-blocks.png b/he-IL/images/space-size-blocks.png new file mode 100644 index 000000000..1124075a4 Binary files /dev/null and b/he-IL/images/space-size-blocks.png differ diff --git a/he-IL/images/space-size-code.png b/he-IL/images/space-size-code.png new file mode 100644 index 000000000..14c5d7bcc Binary files /dev/null and b/he-IL/images/space-size-code.png differ diff --git a/he-IL/images/space-size-test.png b/he-IL/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/he-IL/images/space-size-test.png differ diff --git a/he-IL/images/space-spin-blocks.png b/he-IL/images/space-spin-blocks.png new file mode 100644 index 000000000..ca9fd52ee Binary files /dev/null and b/he-IL/images/space-spin-blocks.png differ diff --git a/he-IL/images/space-spin-code.png b/he-IL/images/space-spin-code.png new file mode 100644 index 000000000..8b3b016f9 Binary files /dev/null and b/he-IL/images/space-spin-code.png differ diff --git a/he-IL/images/space-spin-test.png b/he-IL/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/he-IL/images/space-spin-test.png differ diff --git a/he-IL/images/space-sprites.png b/he-IL/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/he-IL/images/space-sprites.png differ diff --git a/he-IL/images/space-star-blocks.png b/he-IL/images/space-star-blocks.png new file mode 100644 index 000000000..f3b9f1e81 Binary files /dev/null and b/he-IL/images/space-star-blocks.png differ diff --git a/he-IL/images/space-star-code.png b/he-IL/images/space-star-code.png new file mode 100644 index 000000000..7097d2e12 Binary files /dev/null and b/he-IL/images/space-star-code.png differ diff --git a/he-IL/images/space-star-sprite.png b/he-IL/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/he-IL/images/space-star-sprite.png differ diff --git a/he-IL/images/space-star-test.png b/he-IL/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/he-IL/images/space-star-test.png differ diff --git a/he-IL/images/sprite-earth.png b/he-IL/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/he-IL/images/sprite-earth.png differ diff --git a/he-IL/images/sprite-monkey.png b/he-IL/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/he-IL/images/sprite-monkey.png differ diff --git a/he-IL/images/sprite-rock.png b/he-IL/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/he-IL/images/sprite-rock.png differ diff --git a/he-IL/images/sprite-spaceship.png b/he-IL/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/he-IL/images/sprite-spaceship.png differ diff --git a/he-IL/images/sprite-star.png b/he-IL/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/he-IL/images/sprite-star.png differ diff --git a/he-IL/images/trim_and_tile.sh b/he-IL/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/he-IL/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/he-IL/meta.yml b/he-IL/meta.yml new file mode 100644 index 000000000..b207a1b45 --- /dev/null +++ b/he-IL/meta.yml @@ -0,0 +1,35 @@ +--- +title: Lost in space +hero_image: images/lost-in-space.png +description: Learn how to program your own animation! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introduction + - + title: Animating a spaceship + - + title: 'Challenge: improve your animation' + challenge: true + - + title: Animation using loops + completion: + - engaged + - + title: Floating monkey + - + title: Bouncing asteroid + - + title: Shining star + completion: + - internal + - + title: 'Challenge: make your own animation' + challenge: true + - + title: What next? diff --git a/he-IL/resources/LostinSpace-Finished.sb2 b/he-IL/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..89753817a Binary files /dev/null and b/he-IL/resources/LostinSpace-Finished.sb2 differ diff --git a/he-IL/scratch-translatable.txt b/he-IL/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/he-IL/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/he-IL/solutions/lost-in-space-solution.sb3 b/he-IL/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/he-IL/solutions/lost-in-space-solution.sb3 differ diff --git a/he-IL/step_1.md b/he-IL/step_1.md new file mode 100644 index 000000000..bc43f86cd --- /dev/null +++ b/he-IL/step_1.md @@ -0,0 +1,60 @@ +## Introduction + +You are going to learn how to program your own animation! + +### What you will make + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: What you will need + +### Hardware + +- A computer capable of running Scratch 3 + +### Software + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + +- None + +\--- /collapse \--- + +## \--- collapse \--- + +## title: What you will learn + +- Use a repeat loop to animate a sprite in Scratch +- Use a forever loop to repeat an animation indefinitely +- Understand that loops can be nested within each other + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Additional information for educators + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/he-IL/step_10.md b/he-IL/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/he-IL/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/he-IL/step_2.md b/he-IL/step_2.md new file mode 100644 index 000000000..cbcdff0c6 --- /dev/null +++ b/he-IL/step_2.md @@ -0,0 +1,72 @@ +## Animating a spaceship + +Your first step will be to create a spaceship that flies towards the Earth! + +\--- task \--- + +Open a new Scratch project. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** open a new project in the offline editor. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/he-IL/step_3.md b/he-IL/step_3.md new file mode 100644 index 000000000..4af9cb400 --- /dev/null +++ b/he-IL/step_3.md @@ -0,0 +1,16 @@ +## Challenge: improve your animation + +Can you change the numbers in your animation code so that: + ++ The spaceship moves until it touches the Earth? ++ The spaceship moves more slowly towards the Earth? + +You'll need to change the numbers in this block: + +![Rocketship sprite](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/he-IL/step_4.md b/he-IL/step_4.md new file mode 100644 index 000000000..0e1397c55 --- /dev/null +++ b/he-IL/step_4.md @@ -0,0 +1,126 @@ +## Animation using loops + +Another way to animate the spaceship is to tell it to move a small amount many times + +\--- task \--- + +Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testing a spaceship animation](images/space-animate-stage.png) + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Your spaceship should start at `100% size`{:class="blocklooks"}, and then `change size`{:class="blocklooks"} by a small amount each time it moves. + +\--- /hint \--- + +\--- hint \--- + +You will need to add these blocks to your code: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Your code should look like this: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/he-IL/step_5.md b/he-IL/step_5.md new file mode 100644 index 000000000..ab4c451b7 --- /dev/null +++ b/he-IL/step_5.md @@ -0,0 +1,70 @@ +## Floating monkey + +Now you will add a monkey who's lost in space to your animation! + +\--- task \--- + +Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/he-IL/step_6.md b/he-IL/step_6.md new file mode 100644 index 000000000..729b6d975 --- /dev/null +++ b/he-IL/step_6.md @@ -0,0 +1,59 @@ +## Bouncing asteroid + +Now you will add a floating space rock to your animation. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/he-IL/step_7.md b/he-IL/step_7.md new file mode 100644 index 000000000..e53504c76 --- /dev/null +++ b/he-IL/step_7.md @@ -0,0 +1,61 @@ +## Shining star + +Now you will combine loops to make a shining star. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Star sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/he-IL/step_8.md b/he-IL/step_8.md new file mode 100644 index 000000000..841b139ec --- /dev/null +++ b/he-IL/step_8.md @@ -0,0 +1,7 @@ +## Challenge: make your own animation + +Stop your space animation, save it, and start a new Scratch project. + +Use what you've learned in this project to make your own animation. It can be anything you like, but try to make your animation match the background you choose. Here are some examples: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/he-IL/step_9.md b/he-IL/step_9.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/he-IL/step_9.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/hi-IN/images/banner.png b/hi-IN/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/hi-IN/images/banner.png differ diff --git a/hi-IN/images/ghostbusters-static.png b/hi-IN/images/ghostbusters-static.png new file mode 100644 index 000000000..8e5c59634 Binary files /dev/null and b/hi-IN/images/ghostbusters-static.png differ diff --git a/hi-IN/images/lost-in-space.png b/hi-IN/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/hi-IN/images/lost-in-space.png differ diff --git a/hi-IN/images/make-white.png b/hi-IN/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/hi-IN/images/make-white.png differ diff --git a/hi-IN/images/montage-1.png b/hi-IN/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/hi-IN/images/montage-1.png differ diff --git a/hi-IN/images/montage-2.png b/hi-IN/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/hi-IN/images/montage-2.png differ diff --git a/hi-IN/images/montage-3.png b/hi-IN/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/hi-IN/images/montage-3.png differ diff --git a/hi-IN/images/showcase_static.png b/hi-IN/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/hi-IN/images/showcase_static.png differ diff --git a/hi-IN/images/space-animate-stage.png b/hi-IN/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/hi-IN/images/space-animate-stage.png differ diff --git a/hi-IN/images/space-animate.png b/hi-IN/images/space-animate.png new file mode 100644 index 000000000..ba0e47187 Binary files /dev/null and b/hi-IN/images/space-animate.png differ diff --git a/hi-IN/images/space-backdrop.png b/hi-IN/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/hi-IN/images/space-backdrop.png differ diff --git a/hi-IN/images/space-bounce-blocks.png b/hi-IN/images/space-bounce-blocks.png new file mode 100644 index 000000000..aa494e737 Binary files /dev/null and b/hi-IN/images/space-bounce-blocks.png differ diff --git a/hi-IN/images/space-bounce-code.png b/hi-IN/images/space-bounce-code.png new file mode 100644 index 000000000..2ce688f70 Binary files /dev/null and b/hi-IN/images/space-bounce-code.png differ diff --git a/hi-IN/images/space-bounce-test.png b/hi-IN/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/hi-IN/images/space-bounce-test.png differ diff --git a/hi-IN/images/space-colour-blocks.png b/hi-IN/images/space-colour-blocks.png new file mode 100644 index 000000000..55ed47d2a Binary files /dev/null and b/hi-IN/images/space-colour-blocks.png differ diff --git a/hi-IN/images/space-colour-code.png b/hi-IN/images/space-colour-code.png new file mode 100644 index 000000000..2bdc21cdd Binary files /dev/null and b/hi-IN/images/space-colour-code.png differ diff --git a/hi-IN/images/space-colour-test.png b/hi-IN/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/hi-IN/images/space-colour-test.png differ diff --git a/hi-IN/images/space-costume.png b/hi-IN/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/hi-IN/images/space-costume.png differ diff --git a/hi-IN/images/space-delete-glide.png b/hi-IN/images/space-delete-glide.png new file mode 100644 index 000000000..ce4be3ac7 Binary files /dev/null and b/hi-IN/images/space-delete-glide.png differ diff --git a/hi-IN/images/space-egs.png b/hi-IN/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/hi-IN/images/space-egs.png differ diff --git a/hi-IN/images/space-glide.png b/hi-IN/images/space-glide.png new file mode 100644 index 000000000..d9de4bc69 Binary files /dev/null and b/hi-IN/images/space-glide.png differ diff --git a/hi-IN/images/space-initial-position.png b/hi-IN/images/space-initial-position.png new file mode 100644 index 000000000..000dfc844 Binary files /dev/null and b/hi-IN/images/space-initial-position.png differ diff --git a/hi-IN/images/space-monkey-edit.png b/hi-IN/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/hi-IN/images/space-monkey-edit.png differ diff --git a/hi-IN/images/space-monkey-sprite.png b/hi-IN/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/hi-IN/images/space-monkey-sprite.png differ diff --git a/hi-IN/images/space-repeat-blocks.png b/hi-IN/images/space-repeat-blocks.png new file mode 100644 index 000000000..005a52e68 Binary files /dev/null and b/hi-IN/images/space-repeat-blocks.png differ diff --git a/hi-IN/images/space-repeat-code.png b/hi-IN/images/space-repeat-code.png new file mode 100644 index 000000000..9a4cf1f9c Binary files /dev/null and b/hi-IN/images/space-repeat-code.png differ diff --git a/hi-IN/images/space-rock-sprite.png b/hi-IN/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/hi-IN/images/space-rock-sprite.png differ diff --git a/hi-IN/images/space-rotate.png b/hi-IN/images/space-rotate.png new file mode 100644 index 000000000..916fb08f0 Binary files /dev/null and b/hi-IN/images/space-rotate.png differ diff --git a/hi-IN/images/space-size-blocks.png b/hi-IN/images/space-size-blocks.png new file mode 100644 index 000000000..34b9a2851 Binary files /dev/null and b/hi-IN/images/space-size-blocks.png differ diff --git a/hi-IN/images/space-size-code.png b/hi-IN/images/space-size-code.png new file mode 100644 index 000000000..6b13f5e53 Binary files /dev/null and b/hi-IN/images/space-size-code.png differ diff --git a/hi-IN/images/space-size-test.png b/hi-IN/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/hi-IN/images/space-size-test.png differ diff --git a/hi-IN/images/space-spin-blocks.png b/hi-IN/images/space-spin-blocks.png new file mode 100644 index 000000000..d96fa7e30 Binary files /dev/null and b/hi-IN/images/space-spin-blocks.png differ diff --git a/hi-IN/images/space-spin-code.png b/hi-IN/images/space-spin-code.png new file mode 100644 index 000000000..f473ee723 Binary files /dev/null and b/hi-IN/images/space-spin-code.png differ diff --git a/hi-IN/images/space-spin-test.png b/hi-IN/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/hi-IN/images/space-spin-test.png differ diff --git a/hi-IN/images/space-sprites.png b/hi-IN/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/hi-IN/images/space-sprites.png differ diff --git a/hi-IN/images/space-star-blocks.png b/hi-IN/images/space-star-blocks.png new file mode 100644 index 000000000..40a758e15 Binary files /dev/null and b/hi-IN/images/space-star-blocks.png differ diff --git a/hi-IN/images/space-star-code.png b/hi-IN/images/space-star-code.png new file mode 100644 index 000000000..e4deb2af9 Binary files /dev/null and b/hi-IN/images/space-star-code.png differ diff --git a/hi-IN/images/space-star-sprite.png b/hi-IN/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/hi-IN/images/space-star-sprite.png differ diff --git a/hi-IN/images/space-star-test.png b/hi-IN/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/hi-IN/images/space-star-test.png differ diff --git a/hi-IN/images/sprite-earth.png b/hi-IN/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/hi-IN/images/sprite-earth.png differ diff --git a/hi-IN/images/sprite-monkey.png b/hi-IN/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/hi-IN/images/sprite-monkey.png differ diff --git a/hi-IN/images/sprite-rock.png b/hi-IN/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/hi-IN/images/sprite-rock.png differ diff --git a/hi-IN/images/sprite-spaceship.png b/hi-IN/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/hi-IN/images/sprite-spaceship.png differ diff --git a/hi-IN/images/sprite-star.png b/hi-IN/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/hi-IN/images/sprite-star.png differ diff --git a/hi-IN/images/trim_and_tile.sh b/hi-IN/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/hi-IN/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/hi-IN/meta.yml b/hi-IN/meta.yml new file mode 100644 index 000000000..55e73bb14 --- /dev/null +++ b/hi-IN/meta.yml @@ -0,0 +1,35 @@ +--- +title: अंतरिक्ष में खोए +hero_image: images/lost-in-space.png +description: अपने स्वयं के एनीमेशन को प्रोग्राम करना सीखें! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: भूमिका + - + title: अंतरिक्ष-यान एनिमेट करना + - + title: 'चुनौती: अपने एनीमेशन में सुधार करें' + challenge: true + - + title: लूप्स का इस्तेमाल करके एनिमेट करना + completion: + - engaged + - + title: तैरता हुआ बंदर + - + title: उछलता हुआ क्षुद्रग्रह + - + title: चमकता तारा + completion: + - internal + - + title: 'चुनौती: अपना स्वयं का एनीमेशन बनाएँ' + challenge: true + - + title: आगे क्या? diff --git a/hi-IN/resources/LostinSpace-Finished.sb2 b/hi-IN/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..89753817a Binary files /dev/null and b/hi-IN/resources/LostinSpace-Finished.sb2 differ diff --git a/hi-IN/scratch-translatable.txt b/hi-IN/scratch-translatable.txt new file mode 100644 index 000000000..1f987106a --- /dev/null +++ b/hi-IN/scratch-translatable.txt @@ -0,0 +1 @@ +चलो चलें! diff --git a/hi-IN/solutions/lost-in-space-solution.sb3 b/hi-IN/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/hi-IN/solutions/lost-in-space-solution.sb3 differ diff --git a/hi-IN/step_1.md b/hi-IN/step_1.md new file mode 100644 index 000000000..7a54902fa --- /dev/null +++ b/hi-IN/step_1.md @@ -0,0 +1,60 @@ +## भूमिका + +You are going to learn how to program your own animation! + +### आप क्या बनाएँगे + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: आपको किन चीजों की आवश्यकता होगी + +### हार्डवेयर + +- Scratch 3 चलाने में सक्षम कंप्यूटर + +### सॉफ्टवेयर + +- Scratch 3 (या तो [ऑनलाइन](https://rpf.io/scratchon){:target="_blank"} या [ऑफ़लाइन](https://rpf.io/scratchoff){:target="_blank"}) + +### डाउनलोड्स + +- कोई नहीं + +\--- /collapse \--- + +## \--- collapse \--- + +## title: आप क्या सीखेंगे + +- Scratch में स्प्राइट को एनिमेट करने के लिए Repeat loop (रिपीट लूप) का प्रयोग +- एनीमेशन को हमेशा के लिए चालू रखने के लिए एक forever loop (फॉरएवर लूप) का प्रयोग +- यह समझे कि लूप्स को एक दुसरे के अंदर लिखा जा सकता है + +\--- /collapse \--- + +## \--- collapse \--- + +## title: शिक्षकों के लिए अतिरिक्त जानकारी + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/hi-IN/step_10.md b/hi-IN/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/hi-IN/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/hi-IN/step_2.md b/hi-IN/step_2.md new file mode 100644 index 000000000..3ada6f5a9 --- /dev/null +++ b/hi-IN/step_2.md @@ -0,0 +1,72 @@ +## अंतरिक्ष-यान एनिमेट करना + +आप पहले चरण में एक अंतरिक्ष यान बनाएंगे जो पृथ्वी की तरफ उड़ेगा! + +\--- task \--- + +एक नया Scratch प्रोजेक्ट खोलिये। + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**ऑफ़लाइन:** ऑफ़लाइन एडिटर में एक नया प्रोजेक्ट खोलें। + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +अपनी स्टेज में 'अनतरिक्ष यान' और 'पृथ्वी' स्प्राइट जोड़ें। + +![अंतरिक्ष यान और पृथ्वी स्प्राइट्स](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +अपनी स्टेज में 'सितारे' पृष्ठभूमि (backdrop) जोड़ें। + +![एक अंतरिक्ष पृष्ठभूमि](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +अपने अनतरिक्ष-यान स्प्राइट पर क्लिक करें, और **Costumes** टैब पर क्लिक करें। + +![स्प्राइट पोशाक](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +**तीर** टूल का उपयोग एक बॉक्स को क्लिक करने और अंतरिक्ष यान के चित्र के चारों ओर खिसकाने के लिए करें। फिर गोल **रोटेट** हैंडल पर क्लिक करें और चित्र को तब तक घुमाएं जब तक वह अपने किनारे पर न हो। + +![एक पोशाक को घुमाना](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +इस कोड को अपने अंतरिक्ष यान स्प्राइट में जोड़ें: + +![अंतरिक्ष यान स्प्राइट](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +आपके जोड़े हुए कोड ब्लॉक्स में संख्याओं को बदलें ताकि कोड सटीक रूप से उपर्युक्त छवि जैसा दिखाई दे। + +\--- /task \--- + +यदि आप हरे झंडे पर क्लिक करते हैं, तो आप देखेंगे कि अंतरिक्ष यान बोलता है, मुड़ता है, और स्टेज के केंद्र की ओर बढ़ता है। + +![अंतरिक्ष यान एनीमेशन का परीक्षण](images/space-animate-stage.png) \ No newline at end of file diff --git a/hi-IN/step_3.md b/hi-IN/step_3.md new file mode 100644 index 000000000..d8a337d88 --- /dev/null +++ b/hi-IN/step_3.md @@ -0,0 +1,16 @@ +## चुनौती: अपने एनीमेशन में सुधार करें + +क्या आप अपने एनीमेशन कोड में संख्याओं को बदल सकते हैं, ताकि: + ++ अंतरिक्ष यान चलता रहे जब तक यह पृथ्वी को छू न ले? ++ अंतरिक्ष यान पृथ्वी की ओर अधिक धीमी गति से बढ़े? + +आपको इस ब्लॉक में संख्याओं को बदलना होगा: + +![अंतरिक्ष यान स्प्राइट](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/hi-IN/step_4.md b/hi-IN/step_4.md new file mode 100644 index 000000000..5fbff0630 --- /dev/null +++ b/hi-IN/step_4.md @@ -0,0 +1,126 @@ +## लूप्स का इस्तेमाल करके एनिमेट करना + +अंतरिक्ष यान को एनिमेट करने का अन्य तरीका है कि इसे कई बार छोटी मात्रा में चलने के लिए कहा जाए + +\--- task \--- + +`glide (ग्लाइड)`{:class="block3motion"} ब्लॉक को अपने कोड से हटाएं। ऐसा करने के लिए, ब्लॉक को कोड क्षेत्र से खिसकाएं और इसे वापस छोड़ दें जहां अन्य सिंगल कोड ब्लॉक हैं। + +![अंतरिक्ष यान स्प्राइट](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +अब एक `repeat (रिपीट)`{:class="block3control"} ब्लॉक का उपयोग अंतरिक्ष यान को पृथ्वी की ओर स्थानांतरित करने के लिए करें। + +![अंतरिक्ष यान एनीमेशन का परीक्षण](images/space-animate-stage.png) + +![अंतरिक्ष यान स्प्राइट](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +अपने कोड को जाँचकर सेव कर लीजिये। पिछली बार की तरह, आपका अंतरिक्ष यान पृथ्वी की तरफ बढ़ना चाहिए पर इस बार यह `repeat (रिपीट)`{:class="block3control"} ब्लॉक का उपयोग कर रहा है। + +\--- /task \--- + +\--- task \--- + +अगला अपने अंतरिक्ष यान स्प्राइट में कोड जोड़ें ताकि अंतरिक्ष यान पृथ्वी की ओर चलते हुए रंग बदले? + +इस ब्लॉक का उपयोग करे: + +![अंतरिक्ष यान स्प्राइट](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +अपने कोड को जाँच कर सेव कर लीजिये। + +![रंग बदलने वाले अंतरिक्ष यान का परीक्षण करना](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +क्या आप अपने अंतरिक्ष यान को छोटा कर सकते हैं जैसे वो पृथ्वी की तरफ बढे? + +\--- hints \--- + +\--- hint \--- + +आपका अंतरिक्ष यान `100% size`{:class="blocklooks"} से शुरू होनी चाहिए, उसके बाद हर बार चलने पर थोड़ा `आकार`{:class="blocklooks"} बदले । + +\--- /hint \--- + +\--- hint \--- + +आपको अपने कोड में ये ब्लॉक्स जोड़ने होंगे: + +![अंतरिक्ष यान स्प्राइट](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +आपका कोड इस प्रकार दिखना चाहिए: + +![अंतरिक्ष यान स्प्राइट](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +अपने कोड को जाँच कर सेव कर लीजिये। आपका अंतरिक्ष यान चलने पर छोटा होना चाहिए। अपने अंतरिक्ष यान का **दूसरी बार** परीक्षण करें। क्या आरंभ में इसका आकार उचित है? + +![एक सिकुड़ते अंतरिक्ष यान का परीक्षण](images/space-size-test.png) \ No newline at end of file diff --git a/hi-IN/step_5.md b/hi-IN/step_5.md new file mode 100644 index 000000000..cb0502da6 --- /dev/null +++ b/hi-IN/step_5.md @@ -0,0 +1,70 @@ +## तैरता हुआ बंदर + +अब आप अपने एनीमेशन में एक बंदर जोड़ेंगे, जो अन्तरिक्ष में खो गया है! + +\--- task \--- + +लाइब्रेरी से 'बंदर' स्प्राइट को जोड़कर शुरुआत करें। + +![एक बंदर स्प्राइट जोड़ना](images/space-monkey-sprite.png) + +\--- /task \--- + +अपने नए बंदर स्प्राइट पर क्लिक करें और फिर **Costumes** पर क्लिक करें ताकि आप बंदर का रूप एडिट कर सकें। + +\--- task \--- + +लाल रेखा का चयन करके भरण (fill) को पारदर्शी सेट करें। रूपरेखा के लिए, संतृप्ति (saturation) स्लाइडर को ` 0 ` पर ले जाकर एक सफेद रंग सेट करें । + +![सफेद रंग बनाएं](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +**सर्कल** टूल पर क्लिक करें और फिर इसका उपयोग बंदर के सिर के चारों ओर एक सफेद अंतरिक्ष हेलमेट खींचने के लिए करें। + +![बंदर अंतरिक्ष हेलमेट](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +क्या आप अपने बंदर स्प्राइट में कोड जोड़ सकते हैं ताकि यह एक घेरे में सदैव के लिए धीरे-धीरे घूमे? + +\--- hints \--- \--- hint \--- + +जब आप हरे रंग के **झंडे के ऊपर क्लिक करेंगे**, तोह आपका बंदर **हमेशा के लिए** **घूमना** चालू करना चाहिए। + +\--- /hint \--- \--- hint \--- + +आपको इन कोड ब्लॉक्स की ज़रुरत पड़ेगी: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +आपके बंदर को घुमान के लिए कोड यहां दिया गया है: + +![बंदर स्प्राइट](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +अपने प्रोजेक्ट की जाँच करके इसे सेव कीजिये। इस एनीमेशन को समाप्त करने के लिए आपको लाल **stop** बटन पर क्लिक करना होगा, क्योंकि यह हमेशा चलता रहता है! + +![घूमते हुए बंदर का परीक्षण करें](images/space-spin-test.png) \ No newline at end of file diff --git a/hi-IN/step_6.md b/hi-IN/step_6.md new file mode 100644 index 000000000..f7386a495 --- /dev/null +++ b/hi-IN/step_6.md @@ -0,0 +1,59 @@ +## उछलता हुआ क्षुद्रग्रह + +अब आप अपने एनीमेशन में एक तैरता हुआ एक पत्थर जोड़ेंगे। + +\--- task \--- + +अपने एनीमेशन में एक 'पत्थर' स्प्राइट जोड़ें। + +![एक पत्थर स्प्राइट जोड़ना](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +क्या आप अपने पत्थर स्प्राइट के लिए कोड जोड़ सकते हैं ताकि पत्थर स्टेज के चारों ओर उछल पाए? + +![एक उछलते पत्थर का परीक्षण](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +जब आप हरे रंग के **झंडे के ऊपर क्लिक करेंगे**, तोह आपका पत्थर स्प्राइट **सदैव** के लिए स्टेज के आसपास **हिलना** और **उछलना** चाहिए। + +\--- /hint \--- \--- hint \--- + +आपको इन कोड ब्लॉक्स की ज़रुरत पड़ेगी: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +आप इन ब्लॉकों में से एक के साथ पत्थर स्प्राइट के लिए एक और अधिक दिलचस्प प्रारंभिक दिशा निर्धारित कर सकते हैं: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +इस कोड से आप अपने पत्थर को स्टेज के आसपास उछाल सकते हैं: + +![पत्थर स्प्राइट](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/hi-IN/step_7.md b/hi-IN/step_7.md new file mode 100644 index 000000000..c7681ee01 --- /dev/null +++ b/hi-IN/step_7.md @@ -0,0 +1,61 @@ +## चमकता तारा + +अब आप एक चमकता तारा बनाने के लिए कई सरे लूप को जोड़ेंगे। + +\--- task \--- + +अपने स्टेज पर एक 'सितारा' स्प्राइट जोड़ें। + +![एक सितारा स्प्राइट जोड़ना](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +सितारा स्प्राइट को बार-बार बढ़ने और सिकुड़ने के लिए क्या आप कोड जोड़ सकते हैं? + +![एक चमकते सितारे का परीक्षण](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +जब हरे **झंडे पर क्लिक हो**, तब आपका सितारा स्प्राइट अपना **आकार बदलकर** कुछ बार बड़ा हो जाये, और उसके बाद **आकार बदलकर** कुछ बार छोटा हो जाये। इसको यह कार्य **हमेशा** के लिए करना चाहिए ताकि ये बड़ा और छोटा हो और ऐसा लगे की आपका सितारा चमका रहा हैं। + +\--- /hint \--- \--- hint \--- + +आपको इन कोड ब्लॉक्स की ज़रुरत पड़ेगी: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +आपके सितारे को बढ़ाने और सिकुड़ने के लिए कोड यहां दिया गया है: + +![सितारा स्प्राइट](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/hi-IN/step_8.md b/hi-IN/step_8.md new file mode 100644 index 000000000..2a53b7920 --- /dev/null +++ b/hi-IN/step_8.md @@ -0,0 +1,7 @@ +## चुनौती: अपना स्वयं का एनीमेशन बनाएँ + +अपने अंतरिक्ष एनीमेशन को रोकें, इसे सेव करें और एक नया Scratch प्रोजेक्ट शुरू करें। + +आपने जो भी इस प्रोजेक्ट से सीखा, उसका इस्तेमाल करके अपना खुद का एनीमेशन बनाइये। यह कुछ भी हो सकता है जिसे आप पसंद करते हैं, लेकिन अपने एनीमेशन को आपके द्वारा चुनी गई पृष्ठभूमि से मिलाने की कोशिश करें। यहाँ कुछ उदाहरण हैं: + +![स्क्रीनशॉट](images/space-egs.png) \ No newline at end of file diff --git a/hi-IN/step_9.md b/hi-IN/step_9.md new file mode 100644 index 000000000..d7a84fa9e --- /dev/null +++ b/hi-IN/step_9.md @@ -0,0 +1,18 @@ +## आगे क्या? + +[घोस्टबस्टर्स](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) प्रोजेक्ट पर प्रयास करें! उस प्रोजेक्ट में, आप भूत वाला एक गेम बनाना सीखेंगे जिसमे भूत चारो ओर दिखाई देंगे और आपको उन्हें पकड़ना हैं। आप एक टाइमर ओर एक स्कोर आपके गेम में कैसे जोड़ना हैं वो भी सीखेंगे, ताकि आप देख सकें की आप कितने भूतो को पकड़ पाए। + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![शोकेस](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/hr-HR/images/banner.png b/hr-HR/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/hr-HR/images/banner.png differ diff --git a/hr-HR/images/ghostbusters-static.png b/hr-HR/images/ghostbusters-static.png new file mode 100644 index 000000000..6a359442d Binary files /dev/null and b/hr-HR/images/ghostbusters-static.png differ diff --git a/hr-HR/images/lost-in-space.png b/hr-HR/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/hr-HR/images/lost-in-space.png differ diff --git a/hr-HR/images/make-white.png b/hr-HR/images/make-white.png new file mode 100644 index 000000000..f170b1f51 Binary files /dev/null and b/hr-HR/images/make-white.png differ diff --git a/hr-HR/images/montage-1.png b/hr-HR/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/hr-HR/images/montage-1.png differ diff --git a/hr-HR/images/montage-2.png b/hr-HR/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/hr-HR/images/montage-2.png differ diff --git a/hr-HR/images/montage-3.png b/hr-HR/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/hr-HR/images/montage-3.png differ diff --git a/hr-HR/images/showcase_static.png b/hr-HR/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/hr-HR/images/showcase_static.png differ diff --git a/hr-HR/images/space-animate-stage.png b/hr-HR/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/hr-HR/images/space-animate-stage.png differ diff --git a/hr-HR/images/space-animate.png b/hr-HR/images/space-animate.png new file mode 100644 index 000000000..46a5038ab Binary files /dev/null and b/hr-HR/images/space-animate.png differ diff --git a/hr-HR/images/space-backdrop.png b/hr-HR/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/hr-HR/images/space-backdrop.png differ diff --git a/hr-HR/images/space-bounce-blocks.png b/hr-HR/images/space-bounce-blocks.png new file mode 100644 index 000000000..9294bb7f7 Binary files /dev/null and b/hr-HR/images/space-bounce-blocks.png differ diff --git a/hr-HR/images/space-bounce-code.png b/hr-HR/images/space-bounce-code.png new file mode 100644 index 000000000..e8791d62f Binary files /dev/null and b/hr-HR/images/space-bounce-code.png differ diff --git a/hr-HR/images/space-bounce-test.png b/hr-HR/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/hr-HR/images/space-bounce-test.png differ diff --git a/hr-HR/images/space-colour-blocks.png b/hr-HR/images/space-colour-blocks.png new file mode 100644 index 000000000..54461788b Binary files /dev/null and b/hr-HR/images/space-colour-blocks.png differ diff --git a/hr-HR/images/space-colour-code.png b/hr-HR/images/space-colour-code.png new file mode 100644 index 000000000..8afbd513d Binary files /dev/null and b/hr-HR/images/space-colour-code.png differ diff --git a/hr-HR/images/space-colour-test.png b/hr-HR/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/hr-HR/images/space-colour-test.png differ diff --git a/hr-HR/images/space-costume.png b/hr-HR/images/space-costume.png new file mode 100644 index 000000000..b4456ee25 Binary files /dev/null and b/hr-HR/images/space-costume.png differ diff --git a/hr-HR/images/space-delete-glide.png b/hr-HR/images/space-delete-glide.png new file mode 100644 index 000000000..1d6fe71a9 Binary files /dev/null and b/hr-HR/images/space-delete-glide.png differ diff --git a/hr-HR/images/space-egs.png b/hr-HR/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/hr-HR/images/space-egs.png differ diff --git a/hr-HR/images/space-glide.png b/hr-HR/images/space-glide.png new file mode 100644 index 000000000..c04d7bfa9 Binary files /dev/null and b/hr-HR/images/space-glide.png differ diff --git a/hr-HR/images/space-initial-position.png b/hr-HR/images/space-initial-position.png new file mode 100644 index 000000000..260fa4f54 Binary files /dev/null and b/hr-HR/images/space-initial-position.png differ diff --git a/hr-HR/images/space-monkey-edit.png b/hr-HR/images/space-monkey-edit.png new file mode 100644 index 000000000..69d3340ec Binary files /dev/null and b/hr-HR/images/space-monkey-edit.png differ diff --git a/hr-HR/images/space-monkey-sprite.png b/hr-HR/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/hr-HR/images/space-monkey-sprite.png differ diff --git a/hr-HR/images/space-repeat-blocks.png b/hr-HR/images/space-repeat-blocks.png new file mode 100644 index 000000000..287663af6 Binary files /dev/null and b/hr-HR/images/space-repeat-blocks.png differ diff --git a/hr-HR/images/space-repeat-code.png b/hr-HR/images/space-repeat-code.png new file mode 100644 index 000000000..9800ca99d Binary files /dev/null and b/hr-HR/images/space-repeat-code.png differ diff --git a/hr-HR/images/space-rock-sprite.png b/hr-HR/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/hr-HR/images/space-rock-sprite.png differ diff --git a/hr-HR/images/space-rotate.png b/hr-HR/images/space-rotate.png new file mode 100644 index 000000000..0fde001c4 Binary files /dev/null and b/hr-HR/images/space-rotate.png differ diff --git a/hr-HR/images/space-size-blocks.png b/hr-HR/images/space-size-blocks.png new file mode 100644 index 000000000..1124075a4 Binary files /dev/null and b/hr-HR/images/space-size-blocks.png differ diff --git a/hr-HR/images/space-size-code.png b/hr-HR/images/space-size-code.png new file mode 100644 index 000000000..14c5d7bcc Binary files /dev/null and b/hr-HR/images/space-size-code.png differ diff --git a/hr-HR/images/space-size-test.png b/hr-HR/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/hr-HR/images/space-size-test.png differ diff --git a/hr-HR/images/space-spin-blocks.png b/hr-HR/images/space-spin-blocks.png new file mode 100644 index 000000000..ca9fd52ee Binary files /dev/null and b/hr-HR/images/space-spin-blocks.png differ diff --git a/hr-HR/images/space-spin-code.png b/hr-HR/images/space-spin-code.png new file mode 100644 index 000000000..8b3b016f9 Binary files /dev/null and b/hr-HR/images/space-spin-code.png differ diff --git a/hr-HR/images/space-spin-test.png b/hr-HR/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/hr-HR/images/space-spin-test.png differ diff --git a/hr-HR/images/space-sprites.png b/hr-HR/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/hr-HR/images/space-sprites.png differ diff --git a/hr-HR/images/space-star-blocks.png b/hr-HR/images/space-star-blocks.png new file mode 100644 index 000000000..f3b9f1e81 Binary files /dev/null and b/hr-HR/images/space-star-blocks.png differ diff --git a/hr-HR/images/space-star-code.png b/hr-HR/images/space-star-code.png new file mode 100644 index 000000000..7097d2e12 Binary files /dev/null and b/hr-HR/images/space-star-code.png differ diff --git a/hr-HR/images/space-star-sprite.png b/hr-HR/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/hr-HR/images/space-star-sprite.png differ diff --git a/hr-HR/images/space-star-test.png b/hr-HR/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/hr-HR/images/space-star-test.png differ diff --git a/hr-HR/images/sprite-earth.png b/hr-HR/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/hr-HR/images/sprite-earth.png differ diff --git a/hr-HR/images/sprite-monkey.png b/hr-HR/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/hr-HR/images/sprite-monkey.png differ diff --git a/hr-HR/images/sprite-rock.png b/hr-HR/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/hr-HR/images/sprite-rock.png differ diff --git a/hr-HR/images/sprite-spaceship.png b/hr-HR/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/hr-HR/images/sprite-spaceship.png differ diff --git a/hr-HR/images/sprite-star.png b/hr-HR/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/hr-HR/images/sprite-star.png differ diff --git a/hr-HR/images/trim_and_tile.sh b/hr-HR/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/hr-HR/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/hr-HR/meta.yml b/hr-HR/meta.yml new file mode 100644 index 000000000..bcc67e3fb --- /dev/null +++ b/hr-HR/meta.yml @@ -0,0 +1,35 @@ +--- +title: Izgubljeni u svemiru +hero_image: images/lost-in-space.png +description: U ovom projektu naučit ćeš programirati svoje animacije! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Uvod + - + title: Animacija svemirskog broda + - + title: 'Izazov: poboljšaj svoju animaciju' + challenge: true + - + title: Animacija pomoću petlje + completion: + - engaged + - + title: Majmun koji lebdi + - + title: Asteroid koji odskakuje + - + title: Sjajna zvijezda + completion: + - internal + - + title: 'Izazov: napravi vlastitu animaciju' + challenge: true + - + title: Što dalje? diff --git a/hr-HR/resources/LostinSpace-Finished.sb2 b/hr-HR/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..89753817a Binary files /dev/null and b/hr-HR/resources/LostinSpace-Finished.sb2 differ diff --git a/hr-HR/scratch-translatable.txt b/hr-HR/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/hr-HR/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/hr-HR/solutions/lost-in-space-solution.sb3 b/hr-HR/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..d7cae1945 Binary files /dev/null and b/hr-HR/solutions/lost-in-space-solution.sb3 differ diff --git a/hr-HR/step_1.md b/hr-HR/step_1.md new file mode 100644 index 000000000..05197bc92 --- /dev/null +++ b/hr-HR/step_1.md @@ -0,0 +1,60 @@ +## Uvod + +You are going to learn how to program your own animation! + +### Napravit ćeš + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: Trebat ćeš + +### Hardver + +- Računalo koje može pokrenuti Scratch 3 + +### Softver + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Preuzimanja + +- Ništa + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Naučit ćeš + +- Koristiti petlju za ponavljanje za animaciju lika u programu Scratch +- Koristiti beskonačnu petlju za ponavljanje animacije u nedogled +- Razumijeti da se petlje mogu ugnijezditi jedna unutar druge + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Dodatne informacije za edukatore + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/hr-HR/step_10.md b/hr-HR/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/hr-HR/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/hr-HR/step_2.md b/hr-HR/step_2.md new file mode 100644 index 000000000..9c57d6601 --- /dev/null +++ b/hr-HR/step_2.md @@ -0,0 +1,72 @@ +## Animacija svemirskog broda + +Tvoj prvi korak biti će stvaranje svemirskog broda koji leti prema Zemlji! + +\--- task \--- + +Otvori novi Scratch projekt. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** otvori novi projekt u offline uređivaču. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Dodaj likove „ rocketship” (raketa) i „ Earth” (Zemlja) na svoju Pozornicu. + +![Likovi rakete i Zemlje](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Dodaj pozadinu „ Stars” (Zvijezde) na Pozornicu. + +![Svemirska pozadina](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Klikni na lika svemirskog broda, a zatim na karticu **Kostimi**. + +![Kostim lika](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Upotrijebi alat u obliku **strelice** i klikni na svemirski brod, a zatim napravi okvir oko slike cijelog svemirskog broda. Zatim klikni na okrugli alat za **rotiranje** u obliku dvostruke strelice i okreni sliku bočno. + +![Rotiranje kostima](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Dodaj ovaj kôd liku svemirskog broda: + +![Lik svemirskog broda](images/sprite-spaceship.png) + +```blocks3 +kada je zelena zastava kliknut +okreni se u smjeru (0) +idi na x: (-150) y: (-150) +govori [Kreni] (2) sekundi +okreni se prema (Earth v) +klizi (1) sekundi do x: (0) y: (0) +``` + +Promijeni brojeve u blokovima kôda tako da kôd bude potpuno isti kao kôd iznad. + +\--- /task \--- + +Kada klikneš na zelenu zastavicu, svemirski brod trebao bi govoriti, okretatu se i klizati prema sredini pozornice. + +![Testiranje animacije svemirskog broda](images/space-animate-stage.png) \ No newline at end of file diff --git a/hr-HR/step_3.md b/hr-HR/step_3.md new file mode 100644 index 000000000..538fd0c59 --- /dev/null +++ b/hr-HR/step_3.md @@ -0,0 +1,16 @@ +## Izazov: poboljšaj svoju animaciju + +Možeš li promijeniti brojeve u kôdu animacije tako da se: + ++ Svemirski brod kreće dok ne dotakne Zemlju? ++ Svemirski brod polako kreće prema Zemlji? + +Morat ćeš promijeniti brojeve u ovom bloku: + +![Lik rakete](images/sprite-spaceship.png) + +```blocks3 +klizi (1) sekundi do x: (0) y: (0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/hr-HR/step_4.md b/hr-HR/step_4.md new file mode 100644 index 000000000..c8f90e818 --- /dev/null +++ b/hr-HR/step_4.md @@ -0,0 +1,123 @@ +## Animacija pomoću petlje + +Drugi način na koji možeš animirati svemirski brod je tako da mu kažeš da se puno puta malo pomakne + +\--- task \--- + +Izbriši blok `klizi`{:class="block3motion"} iz svog kôda. To možeš učiniti tako da povučeš blok s prostora za Skripte i ispustiš ga tamo gdje su ostali blokovi pojedinačnih kôdova. + +![Lik svemirskog broda](images/sprite-spaceship.png) + +```blocks3 +kada je zelena zastava kliknut +okreni se u smjeru (0) +idi na x: (-150) y: (-150) +govori [Kreni] (2) sekundi +okreni se prema (Earth v) +- klizi (1) sekundi do x: (0) y: (0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testiranje animacije svemirskog broda](images/space-animate-stage.png) + +![Lik svemirskog broda](images/sprite-spaceship.png) + +```blocks3 +kada je zelena zastava kliknut +okreni se u smjeru (0) +idi na x: (-150) y: (-150) +govori [Kreni] (2) sekundi +okreni se prema (Earth v) ++ ponovi (200) +idi (2) koraka +``` + +Testiraj i spremi svoj kôd. Tvoj bi se svemirski brod trebao kretati prema Zemlji točno kao i prije, ali ovaj put koristi blok `ponavljaj`{:class="block3control"}. + +\--- /task \--- + +\--- task \--- + +Sada dodaj kôd liku svemirskog broda tako da brod mijenja boju dok se kreće prema Zemlji. + +Upotrijebi ovaj blok: + +![Lik svemirskog broda](images/sprite-spaceship.png) + +```blocks3 +kada je zelena zastava kliknut +okreni se u smjeru (0) +idi na x: (-150) y: (-150) +govori [Kreni] (2) sekundi +okreni se prema (Earth v) +ponovi (200) +idi (2) koraka ++ promijeni efekt [boja v] za (25) +``` + +Testiraj i spremi svoj kôd. + +![Testiranje svemirskog broda koji mijenja boju](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Možeš li smanjiti svoj svemirski brod dok se kreće prema Zemlji? + +\--- hints \--- + +\--- hint \--- + +Veličina tvog svemirskog broda treba biti postavljena na `100%`{:class="blocklooks"}, a zatim bi se trebala `promijeniti za`{:class="blocklooks"} jedan mali iznos svaki put kad se svemirski brod pomakne. + +\--- /hint \--- + +\--- hint \--- + +Moraš dodati ove blokove u svoj kôd: + +![Lik svemirskog broda](images/sprite-spaceship.png) + +```blocks3 +promijeni veličinu za (10) + +postavi veličinu na (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Tvoj kôd bi trebao izgledati ovako: + +![Lik svemirskog broda](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Testiraj i spremi svoj kôd. Tvoj bi se svemirski brod sada trebao smanjivati dok se kreće. Testiraj svoj svemirski brod **po drugi put**. Je li prave veličine kad se pokrene? + +![Testiranje svemirskog broda koji se smanjuje](images/space-size-test.png) \ No newline at end of file diff --git a/hr-HR/step_5.md b/hr-HR/step_5.md new file mode 100644 index 000000000..610203a6b --- /dev/null +++ b/hr-HR/step_5.md @@ -0,0 +1,71 @@ +## Majmun koji lebdi + +Sada ćeš svojoj animaciji dodati majmuna koji se izgubio u svemiru! + +\--- task \--- + +Započni dodavanjem lika majmuna („ Monkey”) iz biblioteke. + +![Dodavanje lika majmuna](images/space-monkey-sprite.png) + +\--- /task \--- + +Klikni na svog novog lika majmuna, a zatim na **Kostimi** dan urediš izgled majmuna. + +\--- task \--- + +Postavi ispunu da bude transparentna tako što ćeš odabrati crvenu liniju. Obrubu daj bijelu boju pomicanjem klizača Saturacija na `0`. + +![Napravi bijelu boju](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Kliknite na alat **kružnica**, a zatim pomoću njega nacrtaj bijelu svemirsku kacigu oko majmunove glave. + +![Svemirska kaciga za majmuna](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Možeš li dodati kôd svom liku majmuna kako bi se majmun neprestano polako vrtio u krug? + +\--- hints \--- \--- hint \--- + +Kada je zelena **zastavica kliknuta**, tvoj lik majmuna trebao bi se **vrtiti** u krug **zauvijek**. + +\--- /hint \--- \--- hint \--- + +Trebat će ti ovi blokovi kôda: + +```blocks3 +ponavljaj +end + +skreni desno (15) stupnjeva + +kada je zelena zastava kliknut +``` + +\--- /hint \--- \--- hint \--- + +Ovo je kôd kojim ćeš napraviti da se tvoj majmun vrti: + +![Lik majmuna](images/sprite-monkey.png) + +```blocks3 +kada je zelena zastava kliknut +ponavljaj +skreni desno (1) stupnjeva +end +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Testiraj i spremi svoj projekt. Animacija će se vrtiti bez prestanka - morat ćeš kliknuti na crveni **stop** gumb da je prekineš! + +![Testiraj majmuna koji se vrti](images/space-spin-test.png) \ No newline at end of file diff --git a/hr-HR/step_6.md b/hr-HR/step_6.md new file mode 100644 index 000000000..cbf2ac337 --- /dev/null +++ b/hr-HR/step_6.md @@ -0,0 +1,61 @@ +## Asteroid koji odskakuje + +Now you will add a floating space rock to your animation. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Dodavanje lika kamena](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testiranje kamena koji odskakuje](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Trebat će ti ovi blokovi kôda: + +```blocks3 +idi (10) koraka + +ako si na rubu, okreni se + +kada je zelena zastava kliknut + +ponavljaj +end +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +skreni desno (15) stupnjeva + +okreni se prema (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Lik kamena](images/sprite-rock.png) + +```blocks3 +kada je zelena zastava kliknut +okreni se prema (Earth v) +ponavljaj +idi (2) koraka +ako si na rubu, okreni se +end +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/hr-HR/step_7.md b/hr-HR/step_7.md new file mode 100644 index 000000000..44be81b8d --- /dev/null +++ b/hr-HR/step_7.md @@ -0,0 +1,62 @@ +## Sjajna zvijezda + +Now you will combine loops to make a shining star. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Dodavanje lika zvjezde](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testiranje zvijezde koja sjaji](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Trebat će ti ovi blokovi kôda: + +```blocks3 +ponovi (10) +end + +kada je zelena zastava kliknut + +ponovi (10) +end + +promijeni veličinu za (10) + +promijeni veličinu za (10) + +ponavljaj +end +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Lik zvijezde](images/sprite-star.png) + +```blocks3 +kada je zelena zastava kliknut +ponavljaj +ponovi (20) +promijeni veličinu za (2) +end +ponovi (20) +promijeni veličinu za (-2) +end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/hr-HR/step_8.md b/hr-HR/step_8.md new file mode 100644 index 000000000..8433a3386 --- /dev/null +++ b/hr-HR/step_8.md @@ -0,0 +1,7 @@ +## Izazov: napravi vlastitu animaciju + +Zaustavi svoju svemirsku animaciju, spremi je i otvori novi Scratch projekt. + +Primijeni naučeno da napraviš svoju vlastitu animaciju. Ona može biti što god želiš, ali pokušaj je prilagoditi pozadini koju odabereš. Evo nekoliko primjera: + +![snimka zaslona](images/space-egs.png) \ No newline at end of file diff --git a/hr-HR/step_9.md b/hr-HR/step_9.md new file mode 100644 index 000000000..f6f9da6c8 --- /dev/null +++ b/hr-HR/step_9.md @@ -0,0 +1,18 @@ +## Što dalje? + +Isprobaj projekt [Istjerivači duhova](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects)! U tom ćeš projektu naučiti kako napraviti igru sa duhovima koji se pojavljuju posvuda i koje je potrebno uhvatiti. Također ćeš naučiti kako dodati u igru mjerač vremena i rezultat, tako da možeš vidjeti koliko duhova možeš uhvatiti. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![izložba](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/hu-HU/images/banner.png b/hu-HU/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/hu-HU/images/banner.png differ diff --git a/hu-HU/images/ghostbusters-static.png b/hu-HU/images/ghostbusters-static.png new file mode 100644 index 000000000..c4d3b4d1e Binary files /dev/null and b/hu-HU/images/ghostbusters-static.png differ diff --git a/hu-HU/images/lost-in-space.png b/hu-HU/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/hu-HU/images/lost-in-space.png differ diff --git a/hu-HU/images/make-white.png b/hu-HU/images/make-white.png new file mode 100644 index 000000000..71873babd Binary files /dev/null and b/hu-HU/images/make-white.png differ diff --git a/hu-HU/images/montage-1.png b/hu-HU/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/hu-HU/images/montage-1.png differ diff --git a/hu-HU/images/montage-2.png b/hu-HU/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/hu-HU/images/montage-2.png differ diff --git a/hu-HU/images/montage-3.png b/hu-HU/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/hu-HU/images/montage-3.png differ diff --git a/hu-HU/images/showcase_static.png b/hu-HU/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/hu-HU/images/showcase_static.png differ diff --git a/hu-HU/images/space-animate-stage.png b/hu-HU/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/hu-HU/images/space-animate-stage.png differ diff --git a/hu-HU/images/space-animate.png b/hu-HU/images/space-animate.png new file mode 100644 index 000000000..46a5038ab Binary files /dev/null and b/hu-HU/images/space-animate.png differ diff --git a/hu-HU/images/space-backdrop.png b/hu-HU/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/hu-HU/images/space-backdrop.png differ diff --git a/hu-HU/images/space-bounce-blocks.png b/hu-HU/images/space-bounce-blocks.png new file mode 100644 index 000000000..9294bb7f7 Binary files /dev/null and b/hu-HU/images/space-bounce-blocks.png differ diff --git a/hu-HU/images/space-bounce-code.png b/hu-HU/images/space-bounce-code.png new file mode 100644 index 000000000..e8791d62f Binary files /dev/null and b/hu-HU/images/space-bounce-code.png differ diff --git a/hu-HU/images/space-bounce-test.png b/hu-HU/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/hu-HU/images/space-bounce-test.png differ diff --git a/hu-HU/images/space-colour-blocks.png b/hu-HU/images/space-colour-blocks.png new file mode 100644 index 000000000..54461788b Binary files /dev/null and b/hu-HU/images/space-colour-blocks.png differ diff --git a/hu-HU/images/space-colour-code.png b/hu-HU/images/space-colour-code.png new file mode 100644 index 000000000..8afbd513d Binary files /dev/null and b/hu-HU/images/space-colour-code.png differ diff --git a/hu-HU/images/space-colour-test.png b/hu-HU/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/hu-HU/images/space-colour-test.png differ diff --git a/hu-HU/images/space-costume.png b/hu-HU/images/space-costume.png new file mode 100644 index 000000000..f2745bfcb Binary files /dev/null and b/hu-HU/images/space-costume.png differ diff --git a/hu-HU/images/space-delete-glide.png b/hu-HU/images/space-delete-glide.png new file mode 100644 index 000000000..1d6fe71a9 Binary files /dev/null and b/hu-HU/images/space-delete-glide.png differ diff --git a/hu-HU/images/space-egs.png b/hu-HU/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/hu-HU/images/space-egs.png differ diff --git a/hu-HU/images/space-glide.png b/hu-HU/images/space-glide.png new file mode 100644 index 000000000..c04d7bfa9 Binary files /dev/null and b/hu-HU/images/space-glide.png differ diff --git a/hu-HU/images/space-initial-position.png b/hu-HU/images/space-initial-position.png new file mode 100644 index 000000000..260fa4f54 Binary files /dev/null and b/hu-HU/images/space-initial-position.png differ diff --git a/hu-HU/images/space-monkey-edit.png b/hu-HU/images/space-monkey-edit.png new file mode 100644 index 000000000..e3a5cebdf Binary files /dev/null and b/hu-HU/images/space-monkey-edit.png differ diff --git a/hu-HU/images/space-monkey-sprite.png b/hu-HU/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/hu-HU/images/space-monkey-sprite.png differ diff --git a/hu-HU/images/space-repeat-blocks.png b/hu-HU/images/space-repeat-blocks.png new file mode 100644 index 000000000..287663af6 Binary files /dev/null and b/hu-HU/images/space-repeat-blocks.png differ diff --git a/hu-HU/images/space-repeat-code.png b/hu-HU/images/space-repeat-code.png new file mode 100644 index 000000000..9800ca99d Binary files /dev/null and b/hu-HU/images/space-repeat-code.png differ diff --git a/hu-HU/images/space-rock-sprite.png b/hu-HU/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/hu-HU/images/space-rock-sprite.png differ diff --git a/hu-HU/images/space-rotate.png b/hu-HU/images/space-rotate.png new file mode 100644 index 000000000..068a3fc84 Binary files /dev/null and b/hu-HU/images/space-rotate.png differ diff --git a/hu-HU/images/space-size-blocks.png b/hu-HU/images/space-size-blocks.png new file mode 100644 index 000000000..1124075a4 Binary files /dev/null and b/hu-HU/images/space-size-blocks.png differ diff --git a/hu-HU/images/space-size-code.png b/hu-HU/images/space-size-code.png new file mode 100644 index 000000000..14c5d7bcc Binary files /dev/null and b/hu-HU/images/space-size-code.png differ diff --git a/hu-HU/images/space-size-test.png b/hu-HU/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/hu-HU/images/space-size-test.png differ diff --git a/hu-HU/images/space-spin-blocks.png b/hu-HU/images/space-spin-blocks.png new file mode 100644 index 000000000..ca9fd52ee Binary files /dev/null and b/hu-HU/images/space-spin-blocks.png differ diff --git a/hu-HU/images/space-spin-code.png b/hu-HU/images/space-spin-code.png new file mode 100644 index 000000000..8b3b016f9 Binary files /dev/null and b/hu-HU/images/space-spin-code.png differ diff --git a/hu-HU/images/space-spin-test.png b/hu-HU/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/hu-HU/images/space-spin-test.png differ diff --git a/hu-HU/images/space-sprites.png b/hu-HU/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/hu-HU/images/space-sprites.png differ diff --git a/hu-HU/images/space-star-blocks.png b/hu-HU/images/space-star-blocks.png new file mode 100644 index 000000000..f3b9f1e81 Binary files /dev/null and b/hu-HU/images/space-star-blocks.png differ diff --git a/hu-HU/images/space-star-code.png b/hu-HU/images/space-star-code.png new file mode 100644 index 000000000..7097d2e12 Binary files /dev/null and b/hu-HU/images/space-star-code.png differ diff --git a/hu-HU/images/space-star-sprite.png b/hu-HU/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/hu-HU/images/space-star-sprite.png differ diff --git a/hu-HU/images/space-star-test.png b/hu-HU/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/hu-HU/images/space-star-test.png differ diff --git a/hu-HU/images/sprite-earth.png b/hu-HU/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/hu-HU/images/sprite-earth.png differ diff --git a/hu-HU/images/sprite-monkey.png b/hu-HU/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/hu-HU/images/sprite-monkey.png differ diff --git a/hu-HU/images/sprite-rock.png b/hu-HU/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/hu-HU/images/sprite-rock.png differ diff --git a/hu-HU/images/sprite-spaceship.png b/hu-HU/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/hu-HU/images/sprite-spaceship.png differ diff --git a/hu-HU/images/sprite-star.png b/hu-HU/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/hu-HU/images/sprite-star.png differ diff --git a/hu-HU/images/trim_and_tile.sh b/hu-HU/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/hu-HU/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/hu-HU/meta.yml b/hu-HU/meta.yml new file mode 100644 index 000000000..029e7590c --- /dev/null +++ b/hu-HU/meta.yml @@ -0,0 +1,35 @@ +--- +title: Elveszve az űrben +hero_image: images/lost-in-space.png +description: Tanuld meg, hogyan programozhatsz saját animációt! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Bevezetés + - + title: Űrhajó animálása + - + title: 'Kihívás: fejleszd az animációdat' + challenge: true + - + title: Animáció ismétlések használatával + completion: + - engaged + - + title: Lebegő majom + - + title: Pattogó aszteroida + - + title: Ragyogó csillag + completion: + - internal + - + title: 'Kihívás: készíts saját animációt' + challenge: true + - + title: What next? diff --git a/hu-HU/resources/LostinSpace-Finished.sb2 b/hu-HU/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..89753817a Binary files /dev/null and b/hu-HU/resources/LostinSpace-Finished.sb2 differ diff --git a/hu-HU/scratch-translatable.txt b/hu-HU/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/hu-HU/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/hu-HU/solutions/lost-in-space-solution.sb3 b/hu-HU/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/hu-HU/solutions/lost-in-space-solution.sb3 differ diff --git a/hu-HU/step_1.md b/hu-HU/step_1.md new file mode 100644 index 000000000..fe0967166 --- /dev/null +++ b/hu-HU/step_1.md @@ -0,0 +1,60 @@ +## Bevezetés + +You are going to learn how to program your own animation! + +### Ezt fogod elkészíteni + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: Mire lesz szükséged? + +### Hardver + +- Egy, a Scratch 3 futtatására alkalmas számítógép + +### Szoftver + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Letöltések + +- Nincs + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Ezt fogod megtanulni + +- Használj ismétlődést egy szereplő animálásához a Scratch-ben +- Use a forever loop to repeat an animation indefinitely +- Megértheted, hogyan ágyazhatóak egymásba az ismétlődések + +\--- /collapse \--- + +## \--- collapse \--- + +## title: További információk oktatóknak + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/hu-HU/step_10.md b/hu-HU/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/hu-HU/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/hu-HU/step_2.md b/hu-HU/step_2.md new file mode 100644 index 000000000..e7a0aa1ee --- /dev/null +++ b/hu-HU/step_2.md @@ -0,0 +1,72 @@ +## Űrhajó animálása + +Első lépésként hozz létre egy űrhajót, ami a Föld felé repül! + +\--- task \--- + +Nyiss meg egy új Scratch projektet. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** nyiss egy új projektet az offline szerkesztőben. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +⚑-ra kattintáskor +nézz (0) fokos irányba +ugorj ide: x: (-150) y: (-150) +mondd: [Indulás] (2) másodpercig +nézz (Earth) felé +csússz (1) mp-ig ide x: (0) y: (0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/hu-HU/step_3.md b/hu-HU/step_3.md new file mode 100644 index 000000000..86dfc0484 --- /dev/null +++ b/hu-HU/step_3.md @@ -0,0 +1,16 @@ +## Kihívás: fejleszd az animációdat + +Meg tudod változtatni a számokat az animáció kódjában úgy, hogy: + ++ az űrhajó addig mozogjon, amíg megérinti a Földet? ++ az űrhajó lassabban mozogjon a Föld felé? + +Meg kell változtatnod a számokat ebben a blokkban: + +![Űrhajó szereplő](images/sprite-spaceship.png) + +```blocks3 +csússz (1) mp-ig ide x: (0) y: (0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/hu-HU/step_4.md b/hu-HU/step_4.md new file mode 100644 index 000000000..20a496bc6 --- /dev/null +++ b/hu-HU/step_4.md @@ -0,0 +1,126 @@ +## Animáció ismétlések használatával + +Úgy is animálhatod az űrhajót, hogy megadod, hogy sokszor, de kicsi távolságot mozogjon + +\--- task \--- + +Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +⚑-ra kattintáskor +nézz (0) fokos irányba +ugorj ide: x: (-150) y: (-150) +mondd: [Indulás] (2) másodpercig +nézz (Earth) felé + +- csússz (1) mp-ig ide x: (0) y: (0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testing a spaceship animation](images/space-animate-stage.png) + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +⚑-ra kattintáskor +nézz (0) fokos irányba +ugorj ide: x: (-150) y: (-150) +mondd: [Indulás] (2) másodpercig +nézz (Earth v) felé + ++ ismételd (200) + menj (2) lépést +``` + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +⚑-ra kattintáskor +nézz (0) fokos irányba +ugorj ide: x: (-150) y: (-150) +mondd: [Indulás] (2) másodpercig +nézz (Earth v) felé +ismételd (200) + menj (2) lépést + ++ [szín v] hatás változzon (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Your spaceship should start at `100% size`{:class="blocklooks"}, and then `change size`{:class="blocklooks"} by a small amount each time it moves. + +\--- /hint \--- + +\--- hint \--- + +You will need to add these blocks to your code: + +![Űrhajó szereplő](images/sprite-spaceship.png) + +```blocks3 +méret változzon (10) + +méret legyen (100)% +``` + +\--- /hint \--- + +\--- hint \--- + +Your code should look like this: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/hu-HU/step_5.md b/hu-HU/step_5.md new file mode 100644 index 000000000..505526786 --- /dev/null +++ b/hu-HU/step_5.md @@ -0,0 +1,71 @@ +## Lebegő majom + +Most hozzá fogsz adni az animációdhoz egy majomot, aki elveszett az űrben! + +\--- task \--- + +Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +mindig +end + +fordulj ↻ (15) fokot + +⚑ -ra kattintáskor +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +⚑ -ra kattintáskor +mindig + fordulj ↻ (1) fokot +end +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/hu-HU/step_6.md b/hu-HU/step_6.md new file mode 100644 index 000000000..59b932d4a --- /dev/null +++ b/hu-HU/step_6.md @@ -0,0 +1,60 @@ +## Pattogó aszteroida + +Következő lépésként adj hozzá egy lebegő aszteroidát az animációdhoz. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +menj (10) lépést + +ha szélén vagy, pattanj vissza + +⚑ -ra kattintáskor + +mindig +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +fordulj ↻ (15) fokot + +nézz (Earth v) felé +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +⚑ -ra kattintáskor +nézz (Earth v) felé +mindig + menj (2) lépést + ha szélen vagy, pattanj vissza +end +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/hu-HU/step_7.md b/hu-HU/step_7.md new file mode 100644 index 000000000..203333a0f --- /dev/null +++ b/hu-HU/step_7.md @@ -0,0 +1,61 @@ +## Ragyogó csillag + +Most ismétlődéseket fogsz kombinálni, hogy egy ragyogó csillagot készíts. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +ismételd (10) +end + +⚑ -ra kattintáskor + +ismételd (10) +end + +méret változzon (10) + +méret változzon (10) + +mindig +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Star sprite](images/sprite-star.png) + +```blocks3 +⚑ -ra kattintáskor +mindig + ismételd (20) + méret változzon (2) + end + ismételd (20) + méret változoon (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/hu-HU/step_8.md b/hu-HU/step_8.md new file mode 100644 index 000000000..9f2833ede --- /dev/null +++ b/hu-HU/step_8.md @@ -0,0 +1,7 @@ +## Kihívás: készíts saját animációt + +Állítsd le az űr animációdat, ments el és kezd el egy új Scratch projektet. + +Használd a projektben tanultakat, hogy saját animációt készíts. Ez bármi lehet, amit szeretnél, de próbáld meg az animációt a választott háttérnek megfelelően elkészíteni. Íme néhány példa: + +![képernyőkép](images/space-egs.png) \ No newline at end of file diff --git a/hu-HU/step_9.md b/hu-HU/step_9.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/hu-HU/step_9.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/id-ID/images/banner.png b/id-ID/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/id-ID/images/banner.png differ diff --git a/id-ID/images/ghostbusters-static.png b/id-ID/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/id-ID/images/ghostbusters-static.png differ diff --git a/id-ID/images/lost-in-space.png b/id-ID/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/id-ID/images/lost-in-space.png differ diff --git a/id-ID/images/make-white.png b/id-ID/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/id-ID/images/make-white.png differ diff --git a/id-ID/images/montage-1.png b/id-ID/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/id-ID/images/montage-1.png differ diff --git a/id-ID/images/montage-2.png b/id-ID/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/id-ID/images/montage-2.png differ diff --git a/id-ID/images/montage-3.png b/id-ID/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/id-ID/images/montage-3.png differ diff --git a/id-ID/images/showcase_static.png b/id-ID/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/id-ID/images/showcase_static.png differ diff --git a/id-ID/images/space-animate-stage.png b/id-ID/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/id-ID/images/space-animate-stage.png differ diff --git a/id-ID/images/space-animate.png b/id-ID/images/space-animate.png new file mode 100644 index 000000000..46a5038ab Binary files /dev/null and b/id-ID/images/space-animate.png differ diff --git a/id-ID/images/space-backdrop.png b/id-ID/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/id-ID/images/space-backdrop.png differ diff --git a/id-ID/images/space-bounce-blocks.png b/id-ID/images/space-bounce-blocks.png new file mode 100644 index 000000000..9294bb7f7 Binary files /dev/null and b/id-ID/images/space-bounce-blocks.png differ diff --git a/id-ID/images/space-bounce-code.png b/id-ID/images/space-bounce-code.png new file mode 100644 index 000000000..e8791d62f Binary files /dev/null and b/id-ID/images/space-bounce-code.png differ diff --git a/id-ID/images/space-bounce-test.png b/id-ID/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/id-ID/images/space-bounce-test.png differ diff --git a/id-ID/images/space-colour-blocks.png b/id-ID/images/space-colour-blocks.png new file mode 100644 index 000000000..54461788b Binary files /dev/null and b/id-ID/images/space-colour-blocks.png differ diff --git a/id-ID/images/space-colour-code.png b/id-ID/images/space-colour-code.png new file mode 100644 index 000000000..8afbd513d Binary files /dev/null and b/id-ID/images/space-colour-code.png differ diff --git a/id-ID/images/space-colour-test.png b/id-ID/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/id-ID/images/space-colour-test.png differ diff --git a/id-ID/images/space-costume.png b/id-ID/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/id-ID/images/space-costume.png differ diff --git a/id-ID/images/space-delete-glide.png b/id-ID/images/space-delete-glide.png new file mode 100644 index 000000000..1d6fe71a9 Binary files /dev/null and b/id-ID/images/space-delete-glide.png differ diff --git a/id-ID/images/space-egs.png b/id-ID/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/id-ID/images/space-egs.png differ diff --git a/id-ID/images/space-glide.png b/id-ID/images/space-glide.png new file mode 100644 index 000000000..c04d7bfa9 Binary files /dev/null and b/id-ID/images/space-glide.png differ diff --git a/id-ID/images/space-initial-position.png b/id-ID/images/space-initial-position.png new file mode 100644 index 000000000..260fa4f54 Binary files /dev/null and b/id-ID/images/space-initial-position.png differ diff --git a/id-ID/images/space-monkey-edit.png b/id-ID/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/id-ID/images/space-monkey-edit.png differ diff --git a/id-ID/images/space-monkey-sprite.png b/id-ID/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/id-ID/images/space-monkey-sprite.png differ diff --git a/id-ID/images/space-repeat-blocks.png b/id-ID/images/space-repeat-blocks.png new file mode 100644 index 000000000..287663af6 Binary files /dev/null and b/id-ID/images/space-repeat-blocks.png differ diff --git a/id-ID/images/space-repeat-code.png b/id-ID/images/space-repeat-code.png new file mode 100644 index 000000000..9800ca99d Binary files /dev/null and b/id-ID/images/space-repeat-code.png differ diff --git a/id-ID/images/space-rock-sprite.png b/id-ID/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/id-ID/images/space-rock-sprite.png differ diff --git a/id-ID/images/space-rotate.png b/id-ID/images/space-rotate.png new file mode 100644 index 000000000..916fb08f0 Binary files /dev/null and b/id-ID/images/space-rotate.png differ diff --git a/id-ID/images/space-size-blocks.png b/id-ID/images/space-size-blocks.png new file mode 100644 index 000000000..1124075a4 Binary files /dev/null and b/id-ID/images/space-size-blocks.png differ diff --git a/id-ID/images/space-size-code.png b/id-ID/images/space-size-code.png new file mode 100644 index 000000000..14c5d7bcc Binary files /dev/null and b/id-ID/images/space-size-code.png differ diff --git a/id-ID/images/space-size-test.png b/id-ID/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/id-ID/images/space-size-test.png differ diff --git a/id-ID/images/space-spin-blocks.png b/id-ID/images/space-spin-blocks.png new file mode 100644 index 000000000..ca9fd52ee Binary files /dev/null and b/id-ID/images/space-spin-blocks.png differ diff --git a/id-ID/images/space-spin-code.png b/id-ID/images/space-spin-code.png new file mode 100644 index 000000000..8b3b016f9 Binary files /dev/null and b/id-ID/images/space-spin-code.png differ diff --git a/id-ID/images/space-spin-test.png b/id-ID/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/id-ID/images/space-spin-test.png differ diff --git a/id-ID/images/space-sprites.png b/id-ID/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/id-ID/images/space-sprites.png differ diff --git a/id-ID/images/space-star-blocks.png b/id-ID/images/space-star-blocks.png new file mode 100644 index 000000000..f3b9f1e81 Binary files /dev/null and b/id-ID/images/space-star-blocks.png differ diff --git a/id-ID/images/space-star-code.png b/id-ID/images/space-star-code.png new file mode 100644 index 000000000..7097d2e12 Binary files /dev/null and b/id-ID/images/space-star-code.png differ diff --git a/id-ID/images/space-star-sprite.png b/id-ID/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/id-ID/images/space-star-sprite.png differ diff --git a/id-ID/images/space-star-test.png b/id-ID/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/id-ID/images/space-star-test.png differ diff --git a/id-ID/images/sprite-earth.png b/id-ID/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/id-ID/images/sprite-earth.png differ diff --git a/id-ID/images/sprite-monkey.png b/id-ID/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/id-ID/images/sprite-monkey.png differ diff --git a/id-ID/images/sprite-rock.png b/id-ID/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/id-ID/images/sprite-rock.png differ diff --git a/id-ID/images/sprite-spaceship.png b/id-ID/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/id-ID/images/sprite-spaceship.png differ diff --git a/id-ID/images/sprite-star.png b/id-ID/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/id-ID/images/sprite-star.png differ diff --git a/id-ID/images/trim_and_tile.sh b/id-ID/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/id-ID/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/id-ID/meta.yml b/id-ID/meta.yml new file mode 100644 index 000000000..4ba8afc44 --- /dev/null +++ b/id-ID/meta.yml @@ -0,0 +1,35 @@ +--- +title: Lost in space +hero_image: images/lost-in-space.png +description: Learn how to program your own animation! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introduction + - + title: Animating a spaceship + - + title: 'Challenge: improve your animation' + challenge: true + - + title: Animasi menggunakan loop + completion: + - engaged + - + title: Floating monkey + - + title: Bouncing asteroid + - + title: Shining star + completion: + - internal + - + title: 'Challenge: make your own animation' + challenge: true + - + title: Apa selanjutnya? diff --git a/id-ID/resources/LostinSpace-Finished.sb2 b/id-ID/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..89753817a Binary files /dev/null and b/id-ID/resources/LostinSpace-Finished.sb2 differ diff --git a/id-ID/scratch-translatable.txt b/id-ID/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/id-ID/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/id-ID/solutions/lost-in-space-solution.sb3 b/id-ID/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/id-ID/solutions/lost-in-space-solution.sb3 differ diff --git a/id-ID/step_1.md b/id-ID/step_1.md new file mode 100644 index 000000000..b77dff1e2 --- /dev/null +++ b/id-ID/step_1.md @@ -0,0 +1,60 @@ +## Pengantar + +You are going to learn how to program your own animation! + +### What you will make + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: Apa yang kamu butuhkan + +### Perangkat Keras + +- Komputer yang mampu menjalankan Scratch 3 + +### Perangkat Lunak + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + +- Tidak ada + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Apa yang akan kamu pelajari + +- Use a repeat loop to animate a sprite in Scratch +- Use a forever loop to repeat an animation indefinitely +- Understand that loops can be nested within each other + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Additional information for educators + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/id-ID/step_10.md b/id-ID/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/id-ID/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/id-ID/step_2.md b/id-ID/step_2.md new file mode 100644 index 000000000..badd2805b --- /dev/null +++ b/id-ID/step_2.md @@ -0,0 +1,72 @@ +## Animating a spaceship + +Your first step will be to create a spaceship that flies towards the Earth! + +\--- task \--- + +Buka proyek Scratch baru. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** open a new project in the offline editor. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Add 'rocketship' and 'Earth' sprites to your Stage. + +![Sprite Pesawat luar angkasa dan Bumi](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Add the 'Stars' backdrop to your Stage. + +![Latar belakang luar angkasa](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Menguji animasi pesawat luar angkasa](images/space-animate-stage.png) \ No newline at end of file diff --git a/id-ID/step_3.md b/id-ID/step_3.md new file mode 100644 index 000000000..3283a0919 --- /dev/null +++ b/id-ID/step_3.md @@ -0,0 +1,16 @@ +## Challenge: improve your animation + +Can you change the numbers in your animation code so that: + ++ Pesawat luar angkasa bergerak sampai menyentuh Bumi? ++ The spaceship moves more slowly towards the Earth? + +You'll need to change the numbers in this block: + +![Rocketship sprite](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/id-ID/step_4.md b/id-ID/step_4.md new file mode 100644 index 000000000..0e1397c55 --- /dev/null +++ b/id-ID/step_4.md @@ -0,0 +1,126 @@ +## Animation using loops + +Another way to animate the spaceship is to tell it to move a small amount many times + +\--- task \--- + +Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testing a spaceship animation](images/space-animate-stage.png) + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Your spaceship should start at `100% size`{:class="blocklooks"}, and then `change size`{:class="blocklooks"} by a small amount each time it moves. + +\--- /hint \--- + +\--- hint \--- + +You will need to add these blocks to your code: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Your code should look like this: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/id-ID/step_5.md b/id-ID/step_5.md new file mode 100644 index 000000000..ab4c451b7 --- /dev/null +++ b/id-ID/step_5.md @@ -0,0 +1,70 @@ +## Floating monkey + +Now you will add a monkey who's lost in space to your animation! + +\--- task \--- + +Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/id-ID/step_6.md b/id-ID/step_6.md new file mode 100644 index 000000000..729b6d975 --- /dev/null +++ b/id-ID/step_6.md @@ -0,0 +1,59 @@ +## Bouncing asteroid + +Now you will add a floating space rock to your animation. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/id-ID/step_7.md b/id-ID/step_7.md new file mode 100644 index 000000000..e53504c76 --- /dev/null +++ b/id-ID/step_7.md @@ -0,0 +1,61 @@ +## Shining star + +Now you will combine loops to make a shining star. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Star sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/id-ID/step_8.md b/id-ID/step_8.md new file mode 100644 index 000000000..841b139ec --- /dev/null +++ b/id-ID/step_8.md @@ -0,0 +1,7 @@ +## Challenge: make your own animation + +Stop your space animation, save it, and start a new Scratch project. + +Use what you've learned in this project to make your own animation. It can be anything you like, but try to make your animation match the background you choose. Here are some examples: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/id-ID/step_9.md b/id-ID/step_9.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/id-ID/step_9.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/ig-NG/images/banner.png b/ig-NG/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/ig-NG/images/banner.png differ diff --git a/ig-NG/images/ghostbusters-static.png b/ig-NG/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/ig-NG/images/ghostbusters-static.png differ diff --git a/ig-NG/images/lost-in-space.png b/ig-NG/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/ig-NG/images/lost-in-space.png differ diff --git a/ig-NG/images/make-white.png b/ig-NG/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/ig-NG/images/make-white.png differ diff --git a/ig-NG/images/montage-1.png b/ig-NG/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/ig-NG/images/montage-1.png differ diff --git a/ig-NG/images/montage-2.png b/ig-NG/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/ig-NG/images/montage-2.png differ diff --git a/ig-NG/images/montage-3.png b/ig-NG/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/ig-NG/images/montage-3.png differ diff --git a/ig-NG/images/showcase_static.png b/ig-NG/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/ig-NG/images/showcase_static.png differ diff --git a/ig-NG/images/space-animate-stage.png b/ig-NG/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/ig-NG/images/space-animate-stage.png differ diff --git a/ig-NG/images/space-backdrop.png b/ig-NG/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/ig-NG/images/space-backdrop.png differ diff --git a/ig-NG/images/space-bounce-test.png b/ig-NG/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/ig-NG/images/space-bounce-test.png differ diff --git a/ig-NG/images/space-colour-test.png b/ig-NG/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/ig-NG/images/space-colour-test.png differ diff --git a/ig-NG/images/space-costume.png b/ig-NG/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/ig-NG/images/space-costume.png differ diff --git a/ig-NG/images/space-egs.png b/ig-NG/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/ig-NG/images/space-egs.png differ diff --git a/ig-NG/images/space-monkey-edit.png b/ig-NG/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/ig-NG/images/space-monkey-edit.png differ diff --git a/ig-NG/images/space-monkey-sprite.png b/ig-NG/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/ig-NG/images/space-monkey-sprite.png differ diff --git a/ig-NG/images/space-rock-sprite.png b/ig-NG/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/ig-NG/images/space-rock-sprite.png differ diff --git a/ig-NG/images/space-rotate.png b/ig-NG/images/space-rotate.png new file mode 100644 index 000000000..916fb08f0 Binary files /dev/null and b/ig-NG/images/space-rotate.png differ diff --git a/ig-NG/images/space-size-test.png b/ig-NG/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/ig-NG/images/space-size-test.png differ diff --git a/ig-NG/images/space-spin-test.png b/ig-NG/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/ig-NG/images/space-spin-test.png differ diff --git a/ig-NG/images/space-sprites.png b/ig-NG/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/ig-NG/images/space-sprites.png differ diff --git a/ig-NG/images/space-star-sprite.png b/ig-NG/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/ig-NG/images/space-star-sprite.png differ diff --git a/ig-NG/images/sprite-earth.png b/ig-NG/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/ig-NG/images/sprite-earth.png differ diff --git a/ig-NG/images/sprite-monkey.png b/ig-NG/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/ig-NG/images/sprite-monkey.png differ diff --git a/ig-NG/images/sprite-rock.png b/ig-NG/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/ig-NG/images/sprite-rock.png differ diff --git a/ig-NG/images/sprite-spaceship.png b/ig-NG/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/ig-NG/images/sprite-spaceship.png differ diff --git a/ig-NG/images/sprite-star.png b/ig-NG/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/ig-NG/images/sprite-star.png differ diff --git a/ig-NG/images/trim_and_tile.sh b/ig-NG/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/ig-NG/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/ig-NG/meta.yml b/ig-NG/meta.yml new file mode 100644 index 000000000..b207a1b45 --- /dev/null +++ b/ig-NG/meta.yml @@ -0,0 +1,35 @@ +--- +title: Lost in space +hero_image: images/lost-in-space.png +description: Learn how to program your own animation! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introduction + - + title: Animating a spaceship + - + title: 'Challenge: improve your animation' + challenge: true + - + title: Animation using loops + completion: + - engaged + - + title: Floating monkey + - + title: Bouncing asteroid + - + title: Shining star + completion: + - internal + - + title: 'Challenge: make your own animation' + challenge: true + - + title: What next? diff --git a/ig-NG/scratch-translatable.txt b/ig-NG/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/ig-NG/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/ig-NG/solutions/lost-in-space-solution.sb3 b/ig-NG/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/ig-NG/solutions/lost-in-space-solution.sb3 differ diff --git a/ig-NG/step_1.md b/ig-NG/step_1.md new file mode 100644 index 000000000..bc43f86cd --- /dev/null +++ b/ig-NG/step_1.md @@ -0,0 +1,60 @@ +## Introduction + +You are going to learn how to program your own animation! + +### What you will make + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: What you will need + +### Hardware + +- A computer capable of running Scratch 3 + +### Software + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + +- None + +\--- /collapse \--- + +## \--- collapse \--- + +## title: What you will learn + +- Use a repeat loop to animate a sprite in Scratch +- Use a forever loop to repeat an animation indefinitely +- Understand that loops can be nested within each other + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Additional information for educators + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/ig-NG/step_10.md b/ig-NG/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/ig-NG/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/ig-NG/step_2.md b/ig-NG/step_2.md new file mode 100644 index 000000000..cbcdff0c6 --- /dev/null +++ b/ig-NG/step_2.md @@ -0,0 +1,72 @@ +## Animating a spaceship + +Your first step will be to create a spaceship that flies towards the Earth! + +\--- task \--- + +Open a new Scratch project. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** open a new project in the offline editor. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/ig-NG/step_3.md b/ig-NG/step_3.md new file mode 100644 index 000000000..4af9cb400 --- /dev/null +++ b/ig-NG/step_3.md @@ -0,0 +1,16 @@ +## Challenge: improve your animation + +Can you change the numbers in your animation code so that: + ++ The spaceship moves until it touches the Earth? ++ The spaceship moves more slowly towards the Earth? + +You'll need to change the numbers in this block: + +![Rocketship sprite](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/ig-NG/step_4.md b/ig-NG/step_4.md new file mode 100644 index 000000000..0e1397c55 --- /dev/null +++ b/ig-NG/step_4.md @@ -0,0 +1,126 @@ +## Animation using loops + +Another way to animate the spaceship is to tell it to move a small amount many times + +\--- task \--- + +Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testing a spaceship animation](images/space-animate-stage.png) + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Your spaceship should start at `100% size`{:class="blocklooks"}, and then `change size`{:class="blocklooks"} by a small amount each time it moves. + +\--- /hint \--- + +\--- hint \--- + +You will need to add these blocks to your code: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Your code should look like this: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/ig-NG/step_5.md b/ig-NG/step_5.md new file mode 100644 index 000000000..ab4c451b7 --- /dev/null +++ b/ig-NG/step_5.md @@ -0,0 +1,70 @@ +## Floating monkey + +Now you will add a monkey who's lost in space to your animation! + +\--- task \--- + +Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/ig-NG/step_6.md b/ig-NG/step_6.md new file mode 100644 index 000000000..729b6d975 --- /dev/null +++ b/ig-NG/step_6.md @@ -0,0 +1,59 @@ +## Bouncing asteroid + +Now you will add a floating space rock to your animation. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/ig-NG/step_7.md b/ig-NG/step_7.md new file mode 100644 index 000000000..e53504c76 --- /dev/null +++ b/ig-NG/step_7.md @@ -0,0 +1,61 @@ +## Shining star + +Now you will combine loops to make a shining star. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Star sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/ig-NG/step_8.md b/ig-NG/step_8.md new file mode 100644 index 000000000..841b139ec --- /dev/null +++ b/ig-NG/step_8.md @@ -0,0 +1,7 @@ +## Challenge: make your own animation + +Stop your space animation, save it, and start a new Scratch project. + +Use what you've learned in this project to make your own animation. It can be anything you like, but try to make your animation match the background you choose. Here are some examples: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/ig-NG/step_9.md b/ig-NG/step_9.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/ig-NG/step_9.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/it-IT/images/banner.png b/it-IT/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/it-IT/images/banner.png differ diff --git a/it-IT/images/ghostbusters-static.png b/it-IT/images/ghostbusters-static.png new file mode 100644 index 000000000..4e94cf814 Binary files /dev/null and b/it-IT/images/ghostbusters-static.png differ diff --git a/it-IT/images/lost-in-space.png b/it-IT/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/it-IT/images/lost-in-space.png differ diff --git a/it-IT/images/make-white.png b/it-IT/images/make-white.png new file mode 100644 index 000000000..0852fb602 Binary files /dev/null and b/it-IT/images/make-white.png differ diff --git a/it-IT/images/montage-1.png b/it-IT/images/montage-1.png new file mode 100644 index 000000000..deb8b06e7 Binary files /dev/null and b/it-IT/images/montage-1.png differ diff --git a/it-IT/images/montage-2.png b/it-IT/images/montage-2.png new file mode 100644 index 000000000..712c9068d Binary files /dev/null and b/it-IT/images/montage-2.png differ diff --git a/it-IT/images/montage-3.png b/it-IT/images/montage-3.png new file mode 100644 index 000000000..0e3351e82 Binary files /dev/null and b/it-IT/images/montage-3.png differ diff --git a/it-IT/images/showcase_static.png b/it-IT/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/it-IT/images/showcase_static.png differ diff --git a/it-IT/images/space-animate-stage.png b/it-IT/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/it-IT/images/space-animate-stage.png differ diff --git a/it-IT/images/space-animate.png b/it-IT/images/space-animate.png new file mode 100644 index 000000000..440c13a3b Binary files /dev/null and b/it-IT/images/space-animate.png differ diff --git a/it-IT/images/space-backdrop.png b/it-IT/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/it-IT/images/space-backdrop.png differ diff --git a/it-IT/images/space-bounce-blocks.png b/it-IT/images/space-bounce-blocks.png new file mode 100644 index 000000000..730c11554 Binary files /dev/null and b/it-IT/images/space-bounce-blocks.png differ diff --git a/it-IT/images/space-bounce-code.png b/it-IT/images/space-bounce-code.png new file mode 100644 index 000000000..5298be627 Binary files /dev/null and b/it-IT/images/space-bounce-code.png differ diff --git a/it-IT/images/space-bounce-test.png b/it-IT/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/it-IT/images/space-bounce-test.png differ diff --git a/it-IT/images/space-colour-blocks.png b/it-IT/images/space-colour-blocks.png new file mode 100644 index 000000000..7acf446f0 Binary files /dev/null and b/it-IT/images/space-colour-blocks.png differ diff --git a/it-IT/images/space-colour-code.png b/it-IT/images/space-colour-code.png new file mode 100644 index 000000000..fed567516 Binary files /dev/null and b/it-IT/images/space-colour-code.png differ diff --git a/it-IT/images/space-colour-test.png b/it-IT/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/it-IT/images/space-colour-test.png differ diff --git a/it-IT/images/space-costume.png b/it-IT/images/space-costume.png new file mode 100644 index 000000000..731c9ebe3 Binary files /dev/null and b/it-IT/images/space-costume.png differ diff --git a/it-IT/images/space-delete-glide.png b/it-IT/images/space-delete-glide.png new file mode 100644 index 000000000..82ba33c33 Binary files /dev/null and b/it-IT/images/space-delete-glide.png differ diff --git a/it-IT/images/space-egs.png b/it-IT/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/it-IT/images/space-egs.png differ diff --git a/it-IT/images/space-glide.png b/it-IT/images/space-glide.png new file mode 100644 index 000000000..e140a21ca Binary files /dev/null and b/it-IT/images/space-glide.png differ diff --git a/it-IT/images/space-initial-position.png b/it-IT/images/space-initial-position.png new file mode 100644 index 000000000..e816915cc Binary files /dev/null and b/it-IT/images/space-initial-position.png differ diff --git a/it-IT/images/space-monkey-edit.png b/it-IT/images/space-monkey-edit.png new file mode 100644 index 000000000..76a0d7fff Binary files /dev/null and b/it-IT/images/space-monkey-edit.png differ diff --git a/it-IT/images/space-monkey-sprite.png b/it-IT/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/it-IT/images/space-monkey-sprite.png differ diff --git a/it-IT/images/space-repeat-blocks.png b/it-IT/images/space-repeat-blocks.png new file mode 100644 index 000000000..90f7824b0 Binary files /dev/null and b/it-IT/images/space-repeat-blocks.png differ diff --git a/it-IT/images/space-repeat-code.png b/it-IT/images/space-repeat-code.png new file mode 100644 index 000000000..fbf45a0d1 Binary files /dev/null and b/it-IT/images/space-repeat-code.png differ diff --git a/it-IT/images/space-rock-sprite.png b/it-IT/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/it-IT/images/space-rock-sprite.png differ diff --git a/it-IT/images/space-rotate.png b/it-IT/images/space-rotate.png new file mode 100644 index 000000000..12ceaa274 Binary files /dev/null and b/it-IT/images/space-rotate.png differ diff --git a/it-IT/images/space-size-blocks.png b/it-IT/images/space-size-blocks.png new file mode 100644 index 000000000..08e2fa999 Binary files /dev/null and b/it-IT/images/space-size-blocks.png differ diff --git a/it-IT/images/space-size-code.png b/it-IT/images/space-size-code.png new file mode 100644 index 000000000..6df52e484 Binary files /dev/null and b/it-IT/images/space-size-code.png differ diff --git a/it-IT/images/space-size-test.png b/it-IT/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/it-IT/images/space-size-test.png differ diff --git a/it-IT/images/space-spin-blocks.png b/it-IT/images/space-spin-blocks.png new file mode 100644 index 000000000..65613c174 Binary files /dev/null and b/it-IT/images/space-spin-blocks.png differ diff --git a/it-IT/images/space-spin-code.png b/it-IT/images/space-spin-code.png new file mode 100644 index 000000000..82f6c2b29 Binary files /dev/null and b/it-IT/images/space-spin-code.png differ diff --git a/it-IT/images/space-spin-test.png b/it-IT/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/it-IT/images/space-spin-test.png differ diff --git a/it-IT/images/space-sprites.png b/it-IT/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/it-IT/images/space-sprites.png differ diff --git a/it-IT/images/space-star-blocks.png b/it-IT/images/space-star-blocks.png new file mode 100644 index 000000000..6006f1e7d Binary files /dev/null and b/it-IT/images/space-star-blocks.png differ diff --git a/it-IT/images/space-star-code.png b/it-IT/images/space-star-code.png new file mode 100644 index 000000000..3421e8bea Binary files /dev/null and b/it-IT/images/space-star-code.png differ diff --git a/it-IT/images/space-star-sprite.png b/it-IT/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/it-IT/images/space-star-sprite.png differ diff --git a/it-IT/images/space-star-test.png b/it-IT/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/it-IT/images/space-star-test.png differ diff --git a/it-IT/images/sprite-earth.png b/it-IT/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/it-IT/images/sprite-earth.png differ diff --git a/it-IT/images/sprite-monkey.png b/it-IT/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/it-IT/images/sprite-monkey.png differ diff --git a/it-IT/images/sprite-rock.png b/it-IT/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/it-IT/images/sprite-rock.png differ diff --git a/it-IT/images/sprite-spaceship.png b/it-IT/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/it-IT/images/sprite-spaceship.png differ diff --git a/it-IT/images/sprite-star.png b/it-IT/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/it-IT/images/sprite-star.png differ diff --git a/it-IT/images/trim_and_tile.sh b/it-IT/images/trim_and_tile.sh new file mode 100644 index 000000000..95386b30e --- /dev/null +++ b/it-IT/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text = $ (echo "$file" | head -c 2 | tail -c 1) #get 2a carattere dal nome del file + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/it-IT/meta.yml b/it-IT/meta.yml new file mode 100644 index 000000000..ff459607d --- /dev/null +++ b/it-IT/meta.yml @@ -0,0 +1,35 @@ +--- +title: Perduto nello Spazio +hero_image: images/lost-in-space.png +description: Impara a programmare la tua animazione! +original_url: https://projects.raspberrypi.org/en/projects/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introduzione + - + title: Animare un'astronave + - + title: 'Sfida: migliora la tua animazione' + challenge: true + - + title: Animazioni usando i cicli + completion: + - engaged + - + title: Scimmietta fluttuante + - + title: Asteroide che rimbalza + - + title: Stella splendente + completion: + - internal + - + title: 'Sfida: crea la tua animazione' + challenge: true + - + title: E adesso? diff --git a/it-IT/resources/LostinSpace-Finished.sb2 b/it-IT/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..be685bcac Binary files /dev/null and b/it-IT/resources/LostinSpace-Finished.sb2 differ diff --git a/it-IT/scratch-translatable.txt b/it-IT/scratch-translatable.txt new file mode 100644 index 000000000..733a7dd1f --- /dev/null +++ b/it-IT/scratch-translatable.txt @@ -0,0 +1 @@ +Iniziamo diff --git a/it-IT/solutions/lost-in-space-solution.sb3 b/it-IT/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..82039c487 Binary files /dev/null and b/it-IT/solutions/lost-in-space-solution.sb3 differ diff --git a/it-IT/step_1.md b/it-IT/step_1.md new file mode 100644 index 000000000..290c036e5 --- /dev/null +++ b/it-IT/step_1.md @@ -0,0 +1,60 @@ +## Introduzione + +You are going to learn how to program your own animation! + +### Cosa creerai + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: Di cosa avrai bisogno + +### Hardware + +- Un computer in grado di eseguire Scratch 3 + +### Software + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Download + +- Nessuno + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Cosa imparerai + +- Come usare un ciclo per animare uno sprite in Scratch +- Usa un ciclo per sempre per ripetere un'animazione all'infinito +- Capire che i cicli possono essere nidificati tra loro + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Informazioni aggiuntive per gli educatori + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/it-IT/step_10.md b/it-IT/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/it-IT/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/it-IT/step_2.md b/it-IT/step_2.md new file mode 100644 index 000000000..2611c6984 --- /dev/null +++ b/it-IT/step_2.md @@ -0,0 +1,72 @@ +## Animare un'astronave + +Il tuo primo passo sarà quello di creare una astronave che si dirige verso la Terra! + +\--- task \--- + +Inizia un nuovo progetto Scratch. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** apri un nuovo progetto nell'editor offline. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Aggiungi gli sprite 'Astronave' e 'Terra' al tuo stage. + +![Sprite 'Rocketship' e 'Earth'](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Aggiungi lo sfondo 'Stelle' al tuo stage. + +![Sfondo spaziale](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Fai clic sullo sprite 'Astronave' e poi clicca sulla scheda **Costumi**. + +![Costume dello sprite](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Usa lo strumento **freccia** per cliccare e trascinare una casella intorno all'intera immagine dell'astronave. Quindi clicca sulla maniglia circolare **ruota** e ruota l'immagine fino a quando non appoggia sul lato. + +![Ruotare un costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Aggiungi questo codice allo sprite della tua astronave: + +![Sprite 'Spaceship'](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +Cambia i numeri nei blocchi di codice, che hai aggiunto, in modo che sia esattamente lo stesso di cui sopra. + +\--- /task \--- + +Facendo click sulla bandierina verde, dovresti vedere l'astronave parlare, girare e planare verso il centro dello stage. + +![Testare l'animazione dell'astronave](images/space-animate-stage.png) \ No newline at end of file diff --git a/it-IT/step_3.md b/it-IT/step_3.md new file mode 100644 index 000000000..eaa55dd0d --- /dev/null +++ b/it-IT/step_3.md @@ -0,0 +1,16 @@ +## Sfida: migliora la tua animazione + +Puoi modificare i numeri nel tuo codice di animazione in modo che: + ++ L'astronave si muova fino a toccare la Terra? ++ L'astronave si muova lentamente verso la Terra? + +Dovrai modificare i numeri in questo blocco: + +![Sprite 'Rocketship'](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/it-IT/step_4.md b/it-IT/step_4.md new file mode 100644 index 000000000..6dc5b747a --- /dev/null +++ b/it-IT/step_4.md @@ -0,0 +1,126 @@ +## Animazioni usando i cicli + +Un altro modo per animare l'astronave è di dirle di muoversi di una piccola quantità per molte volte + +\--- task \--- + +Elimina il blocco `glide`{:class="block3motion"} dal tuo codice. Per farlo, trascina il blocco dall'area del codice e rilascialo dove ci sono gli altri blocchi di codice. + +![Sprite 'Spaceship'](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testare l'animazione dell'astronave](images/space-animate-stage.png) + +![Sprite 'Spaceship'](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +Prova e salva il tuo codice. La tua astronave dovrebbe andare verso la Terra esattamente come prima, ma questa volta utilizza un blocco `ripeti`{:class="block3control"}. + +\--- /task \--- + +\--- task \--- + +Adesso aggiungi il codice alla tua astronave sprite in modo che l'astronave cambi colore mentre si muove verso la Terra? + +Usa questo blocco: + +![Sprite 'Spaceship'](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +Prova e salva il tuo codice. + +![Testare un'astronave che cambia colore](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Puoi rendere la tua astronave più piccola man mano che si avvicina alla Terra? + +\--- hints \--- + +\--- hint \--- + +La tua astronave dovrebbe iniziare con una dimensione ` 100% ` {: class = "blocklooks"}, quindi ` cambia dimensione ` {: class = "blocklooks"} di una piccola quantità ogni volta che si sposta. + +\--- /hint \--- + +\--- hint \--- + +Dovrai aggiungere questi blocchi al tuo codice: + +![Sprite 'Spaceship'](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Il tuo codice dovrebbe assomigliare a questo: + +![Sprite 'Spaceship'](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Prova e salva il tuo codice. La tua astronave ora dovrebbe ridursi man mano che si muove. Metti alla prova la tua astronave una ** seconda volta **. È della taglia giusta quando inizia? + +![Testare un'astronave che si rimpicciolisce](images/space-size-test.png) \ No newline at end of file diff --git a/it-IT/step_5.md b/it-IT/step_5.md new file mode 100644 index 000000000..331b7c809 --- /dev/null +++ b/it-IT/step_5.md @@ -0,0 +1,70 @@ +## Scimmietta fluttuante + +Aggiungiamo alla tua animazione una scimmietta che si è persa nello spazio! + +\--- task \--- + +Inizia aggiungendo lo sprite 'Monkey' dalla libreria. + +![Aggiungere lo sprite di una scimmia](images/space-monkey-sprite.png) + +\--- /task \--- + +Facendo click sullo sprite 'Monkey' e poi sulla scheda **Costumi**, puoi modificare l'aspetto della scimmietta. + +\--- task \--- + +Imposta il riempimento affinché sia trasparente selezionando la linea diagonale rossa. Per il contorno, imposta un colore bianco spostando il cursore Saturazione a `0`. + +![Rendi il colore bianco](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Fare clic sullo strumento **cerchio ** e poi usalo per disegnare un casco spaziale bianco intorno alla testa della scimmia. + +![Casco della scimmia](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Puoi aggiungere del codice allo sprite della tua scimmietta per far sì che giri continuamente su stessa? + +\--- hints \--- \--- hint \--- + +Quando si clicca **la bandiera verde**, il tuo sprite scimmia dovrebbe **girare** in cerchio **per sempre**. + +\--- /hint \--- \--- hint \--- + +Ecco i blocchi di codice che ti serviranno: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +Ecco il codice per far girare la tua scimmia: + +![Sprite scimmia](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Prova e salva il tuo progetto. Dovrai cliccare sul pulsante rosso **stop** per terminare questa animazione, perché è in esecuzione per sempre! + +![Prova la scimmia rotante](images/space-spin-test.png) \ No newline at end of file diff --git a/it-IT/step_6.md b/it-IT/step_6.md new file mode 100644 index 000000000..17068b793 --- /dev/null +++ b/it-IT/step_6.md @@ -0,0 +1,59 @@ +## Asteroide che rimbalza + +Ora aggiungerai una roccia spaziale galleggiante alla tua animazione. + +\--- task \--- + +Aggiungi lo sprite 'roccia' alla tua animazione. + +![Aggiungere la sprite di una roccia](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Puoi aggiungere il codice per lo sprite della roccia in modo che rimbalzi tutto attorno? + +![Testare una roccia che rimbalza](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +Dopo aver **cliccato su bandiera verde**, la tua roccia dovrebbe **muoversi** e **rimbalzare** nello spazio **per sempre**. + +\--- /hint \--- \--- hint \--- + +Ecco i blocchi di codice che ti serviranno: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +Puoi anche impostare una direzione di partenza più interessante per lo sprite roccia con uno di questi blocchi: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Ecco il codice per fare sì che la tua roccia rimbalzi tutto attorno: + +![Sprite roccia](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/it-IT/step_7.md b/it-IT/step_7.md new file mode 100644 index 000000000..cbbb87fda --- /dev/null +++ b/it-IT/step_7.md @@ -0,0 +1,61 @@ +## Stella splendente + +Ora combinerai i cicli per fare brillare una stella. + +\--- task \--- + +Aggiungi uno sprite 'Stella' al tuo progetto. + +![Aggiungere la sprite di una stella](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Puoi aggiungere il codice allo sprite stella per far in modo che aumenti e diminuisca la propria dimensione ripetutamente? + +![Testare una stella splendente](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +Dopo aver **cliccato su bandiera verde**, la tua stella dovrebbe **cambiare dimensione** per un po', diventando più grande, e poi dovrebbe **cambiare di nuovo dimensione** per un po', diventando più piccola. Dovrebbe farlo in modo che, diventando più grande e poi più piccola **per sempre**, sembri brillare. + +\--- /hint \--- \--- hint \--- + +Ecco i blocchi di codice che ti serviranno: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +Ecco il codice per far crescere e ridurre la stella: + +![Stella sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/it-IT/step_8.md b/it-IT/step_8.md new file mode 100644 index 000000000..3db4ebfe2 --- /dev/null +++ b/it-IT/step_8.md @@ -0,0 +1,7 @@ +## Sfida: Crea la tua animazione + +Interrompi l'animazione dello spazio, salvala e avvia un nuovo progetto Scratch. + +Usa quello che hai imparato in questo progetto per creare la tua animazione. Può essere qualsiasi cosa tu voglia, ma fai in modo che l'animazione segua lo sfondo che hai scelto. Ecco alcuni esempi: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/it-IT/step_9.md b/it-IT/step_9.md new file mode 100644 index 000000000..a01deec71 --- /dev/null +++ b/it-IT/step_9.md @@ -0,0 +1,18 @@ +## E adesso? + +Prova il progetto [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects)! In questo progetto, imparerai come creare un gioco con fantasmi che appaiono dappertutto e che devi catturare. Imparerai anche come aggiungere un timer e un punteggio al gioco, in modo da poter vedere quanti fantasmi riesci a catturare. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/ja-JP/images/banner.png b/ja-JP/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/ja-JP/images/banner.png differ diff --git a/ja-JP/images/ghostbusters-static.png b/ja-JP/images/ghostbusters-static.png new file mode 100644 index 000000000..bf3516ebe Binary files /dev/null and b/ja-JP/images/ghostbusters-static.png differ diff --git a/ja-JP/images/lost-in-space.png b/ja-JP/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/ja-JP/images/lost-in-space.png differ diff --git a/ja-JP/images/make-white.png b/ja-JP/images/make-white.png new file mode 100644 index 000000000..12c041440 Binary files /dev/null and b/ja-JP/images/make-white.png differ diff --git a/ja-JP/images/montage-1.png b/ja-JP/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/ja-JP/images/montage-1.png differ diff --git a/ja-JP/images/montage-2.png b/ja-JP/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/ja-JP/images/montage-2.png differ diff --git a/ja-JP/images/montage-3.png b/ja-JP/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/ja-JP/images/montage-3.png differ diff --git a/ja-JP/images/showcase_static.png b/ja-JP/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/ja-JP/images/showcase_static.png differ diff --git a/ja-JP/images/space-animate-stage.png b/ja-JP/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/ja-JP/images/space-animate-stage.png differ diff --git a/ja-JP/images/space-animate.png b/ja-JP/images/space-animate.png new file mode 100644 index 000000000..ae00c62e1 Binary files /dev/null and b/ja-JP/images/space-animate.png differ diff --git a/ja-JP/images/space-backdrop.png b/ja-JP/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/ja-JP/images/space-backdrop.png differ diff --git a/ja-JP/images/space-bounce-blocks.png b/ja-JP/images/space-bounce-blocks.png new file mode 100644 index 000000000..6792682ef Binary files /dev/null and b/ja-JP/images/space-bounce-blocks.png differ diff --git a/ja-JP/images/space-bounce-code.png b/ja-JP/images/space-bounce-code.png new file mode 100644 index 000000000..642f2f38b Binary files /dev/null and b/ja-JP/images/space-bounce-code.png differ diff --git a/ja-JP/images/space-bounce-test.png b/ja-JP/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/ja-JP/images/space-bounce-test.png differ diff --git a/ja-JP/images/space-colour-blocks.png b/ja-JP/images/space-colour-blocks.png new file mode 100644 index 000000000..f262b6629 Binary files /dev/null and b/ja-JP/images/space-colour-blocks.png differ diff --git a/ja-JP/images/space-colour-code.png b/ja-JP/images/space-colour-code.png new file mode 100644 index 000000000..e7848c064 Binary files /dev/null and b/ja-JP/images/space-colour-code.png differ diff --git a/ja-JP/images/space-colour-test.png b/ja-JP/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/ja-JP/images/space-colour-test.png differ diff --git a/ja-JP/images/space-costume.png b/ja-JP/images/space-costume.png new file mode 100644 index 000000000..d7483f3c2 Binary files /dev/null and b/ja-JP/images/space-costume.png differ diff --git a/ja-JP/images/space-delete-glide.png b/ja-JP/images/space-delete-glide.png new file mode 100644 index 000000000..4632b5ee0 Binary files /dev/null and b/ja-JP/images/space-delete-glide.png differ diff --git a/ja-JP/images/space-egs.png b/ja-JP/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/ja-JP/images/space-egs.png differ diff --git a/ja-JP/images/space-glide.png b/ja-JP/images/space-glide.png new file mode 100644 index 000000000..f9af3b2b2 Binary files /dev/null and b/ja-JP/images/space-glide.png differ diff --git a/ja-JP/images/space-initial-position.png b/ja-JP/images/space-initial-position.png new file mode 100644 index 000000000..090205039 Binary files /dev/null and b/ja-JP/images/space-initial-position.png differ diff --git a/ja-JP/images/space-monkey-edit.png b/ja-JP/images/space-monkey-edit.png new file mode 100644 index 000000000..145bf5cfe Binary files /dev/null and b/ja-JP/images/space-monkey-edit.png differ diff --git a/ja-JP/images/space-monkey-sprite.png b/ja-JP/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/ja-JP/images/space-monkey-sprite.png differ diff --git a/ja-JP/images/space-repeat-blocks.png b/ja-JP/images/space-repeat-blocks.png new file mode 100644 index 000000000..3b7b2c69d Binary files /dev/null and b/ja-JP/images/space-repeat-blocks.png differ diff --git a/ja-JP/images/space-repeat-code.png b/ja-JP/images/space-repeat-code.png new file mode 100644 index 000000000..0700f95ed Binary files /dev/null and b/ja-JP/images/space-repeat-code.png differ diff --git a/ja-JP/images/space-rock-sprite.png b/ja-JP/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/ja-JP/images/space-rock-sprite.png differ diff --git a/ja-JP/images/space-rotate.png b/ja-JP/images/space-rotate.png new file mode 100644 index 000000000..19c6c11d0 Binary files /dev/null and b/ja-JP/images/space-rotate.png differ diff --git a/ja-JP/images/space-size-blocks.png b/ja-JP/images/space-size-blocks.png new file mode 100644 index 000000000..45f1f71fc Binary files /dev/null and b/ja-JP/images/space-size-blocks.png differ diff --git a/ja-JP/images/space-size-code.png b/ja-JP/images/space-size-code.png new file mode 100644 index 000000000..5dbc4f738 Binary files /dev/null and b/ja-JP/images/space-size-code.png differ diff --git a/ja-JP/images/space-size-test.png b/ja-JP/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/ja-JP/images/space-size-test.png differ diff --git a/ja-JP/images/space-spin-blocks.png b/ja-JP/images/space-spin-blocks.png new file mode 100644 index 000000000..d30c9411c Binary files /dev/null and b/ja-JP/images/space-spin-blocks.png differ diff --git a/ja-JP/images/space-spin-code.png b/ja-JP/images/space-spin-code.png new file mode 100644 index 000000000..188542d9e Binary files /dev/null and b/ja-JP/images/space-spin-code.png differ diff --git a/ja-JP/images/space-spin-test.png b/ja-JP/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/ja-JP/images/space-spin-test.png differ diff --git a/ja-JP/images/space-sprites.png b/ja-JP/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/ja-JP/images/space-sprites.png differ diff --git a/ja-JP/images/space-star-blocks.png b/ja-JP/images/space-star-blocks.png new file mode 100644 index 000000000..221defa29 Binary files /dev/null and b/ja-JP/images/space-star-blocks.png differ diff --git a/ja-JP/images/space-star-code.png b/ja-JP/images/space-star-code.png new file mode 100644 index 000000000..32a459706 Binary files /dev/null and b/ja-JP/images/space-star-code.png differ diff --git a/ja-JP/images/space-star-sprite.png b/ja-JP/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/ja-JP/images/space-star-sprite.png differ diff --git a/ja-JP/images/space-star-test.png b/ja-JP/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/ja-JP/images/space-star-test.png differ diff --git a/ja-JP/images/sprite-earth.png b/ja-JP/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/ja-JP/images/sprite-earth.png differ diff --git a/ja-JP/images/sprite-monkey.png b/ja-JP/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/ja-JP/images/sprite-monkey.png differ diff --git a/ja-JP/images/sprite-rock.png b/ja-JP/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/ja-JP/images/sprite-rock.png differ diff --git a/ja-JP/images/sprite-spaceship.png b/ja-JP/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/ja-JP/images/sprite-spaceship.png differ diff --git a/ja-JP/images/sprite-star.png b/ja-JP/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/ja-JP/images/sprite-star.png differ diff --git a/ja-JP/images/trim_and_tile.sh b/ja-JP/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/ja-JP/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/ja-JP/meta.yml b/ja-JP/meta.yml new file mode 100644 index 000000000..30d7d0736 --- /dev/null +++ b/ja-JP/meta.yml @@ -0,0 +1,35 @@ +--- +title: ロスト・イン・スペース / 宇宙 (うちゅう) で迷子 (まいご) +hero_image: images/lost-in-space.png +description: アニメーションをプログラムしてみましょう! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: はじめに + - + title: 宇宙船 (うちゅうせん) のアニメーション + - + title: 'Challenge: アニメーションの改良(かいりょう)' + challenge: true + - + title: 繰り返し (くりかえし) を使ったアニメーション + completion: + - engaged + - + title: ういているサル + - + title: はずむ小惑星 (しょうわくせい) + - + title: 光る星 + completion: + - internal + - + title: 'チャレンジ: 自分のアニメーションを作ろう' + challenge: true + - + title: 次は何をしますか? diff --git a/ja-JP/resources/LostinSpace-Finished.sb2 b/ja-JP/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..6be9a3f14 Binary files /dev/null and b/ja-JP/resources/LostinSpace-Finished.sb2 differ diff --git a/ja-JP/scratch-translatable.txt b/ja-JP/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/ja-JP/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/ja-JP/solutions/lost-in-space-solution.sb3 b/ja-JP/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..9bcbd6936 Binary files /dev/null and b/ja-JP/solutions/lost-in-space-solution.sb3 differ diff --git a/ja-JP/step_1.md b/ja-JP/step_1.md new file mode 100644 index 000000000..1606a9ffd --- /dev/null +++ b/ja-JP/step_1.md @@ -0,0 +1,60 @@ +## はじめに + +You are going to learn how to program your own animation! + +### あなたが作るもの + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: 必要なもの + +### ハードウェア + +- Scratch 3を実行できるコンピュータ + +### ソフトウェア + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### ダウンロード + +- 無し + +\--- /collapse \--- + +## \--- collapse \--- + +## title: 学習すること + +- Scratchで繰り返しループを使用して、スプライトをアニメーションにする +- 無限ループを使用して、アニメーションを無期限に繰り返す +- ループを相互にネストできることを理解する + +\--- /collapse \--- + +## \--- collapse \--- + +## title:教育者向けの追加情報 + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/ja-JP/step_10.md b/ja-JP/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/ja-JP/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/ja-JP/step_2.md b/ja-JP/step_2.md new file mode 100644 index 000000000..d5a70d4ab --- /dev/null +++ b/ja-JP/step_2.md @@ -0,0 +1,72 @@ +## 宇宙船 (うちゅうせん) のアニメーション + +最初のステップは、地球に向かって飛ぶ宇宙船を作成することです! + +\--- task \--- + +新しいScratchプロジェクトを開きます。 + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**オフライン:**オフラインエディターで新しいプロジェクトを開きます。 + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +宇宙船('rocketship') と地球('Earth') のスプライトをステージに追加してください。 + +![宇宙船と地球のスプライト](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +背景 (はいけい) には「stars (星)」を追加してください。 + +![宇宙の背景](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +宇宙船をクリックして、**コスチューム**のタブをクリックしてください。 + +![スプライトコスチューム](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +選択するには**矢印 **ツールを使います。丸で示した**回転**ハンドルをクリックして、横になるまで回転させます。 + +![スプライトの回転](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +宇宙船のスプライトにこのコードを追加しましょう。 + +![宇宙船のスプライト](images/sprite-spaceship.png) + +```blocks3 +⚑ が押されたとき +(0) 度に向ける +x座標を (-150) 、y座標を (-150) にする +[レッツゴー!] と (2) 秒言う +(地球 v) へ向ける +(1) 秒でx座標を (0) に、y座標を (0) に変える +``` + +追加したコードブロックの数字を変更して、コードが上記とまったく同じになるようにします。 + +\--- /task \--- + +緑のフラグをクリックすると、宇宙船がしゃべり、回転し、ステージの中央に向かって進んでいきます。 + +![宇宙船アニメーションのテスト](images/space-animate-stage.png) \ No newline at end of file diff --git a/ja-JP/step_3.md b/ja-JP/step_3.md new file mode 100644 index 000000000..c242aaa0b --- /dev/null +++ b/ja-JP/step_3.md @@ -0,0 +1,16 @@ +## チャレンジ:アニメーションの改良(かいりょう) + +次のようにアニメーションコードの数値を変更できますか: + ++ 宇宙船が地球にタッチするまで動かす ++ 宇宙船を地球に向かって、もっとゆっくり動かす + +このブロックの値を変える必要があります。 + +![宇宙船のスプライト](images/sprite-spaceship.png) + +```blocks3 +(1) 秒でx座標を (0) に、y座標を (0) に変える +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/ja-JP/step_4.md b/ja-JP/step_4.md new file mode 100644 index 000000000..e817db35d --- /dev/null +++ b/ja-JP/step_4.md @@ -0,0 +1,126 @@ +## 繰り返し (くりかえし) を使ったアニメーション + +宇宙船をアニメーション化するもう1つの方法は、少量の移動を何回も繰り返すことです。 + +\--- task \--- + +`変える` {:class="block3motion"}ブロックをコードから削除します。これを行うには、コード領域からブロックをドラッグしてはずし、他の単一コードブロックがある場所にドロップします。 + +![宇宙船のスプライト](images/sprite-spaceship.png) + +```blocks3 +⚑ が押されたとき +(0) 度に向ける +x座標を (-150) 、y座標を (-150) にする +[レッツゴー] と (2) 秒言う +(地球 v) へ向ける + +- (1) 秒でx座標を (0) に、y座標を (0) に変える +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![宇宙船アニメーションのテスト](images/space-animate-stage.png) + +![宇宙船のスプライト](images/sprite-spaceship.png) + +```blocks3 +⚑ が押されたとき +(0) 度に向ける +x座標を (-150) 、y座標を (-150) にする +[レッツゴー] と (2) 秒言う +(地球 v) へ向ける + ++ (200) 回繰り返す + (2) 歩動かす +``` + +コードをテストして保存します。宇宙船は以前とまったく同じように地球に向かって移動するはずですが、今回は`繰り返す` {:class="block3control"}ブロックを使用します。 + +\--- /task \--- + +\--- task \--- + +次に、宇宙船のスプライトにコードを追加して、宇宙船が地球に向かって移動すると色が変わるようにしますか? + +このブロックを使用します: + +![宇宙船のスプライト](images/sprite-spaceship.png) + +```blocks3 +⚑ が押されたとき +(0) 度に向ける +x座標を (-150) 、y座標を (-150) にする +[レッツゴー] と (2) 秒言う +(地球 v) へ向ける +(200) 回繰り返す + (2) 歩動かす + ++ [色 v] の効果を (25) ずつ変える +``` + +コードをテストして保存します。 + +![色の変わる宇宙船のテスト](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +地球に近づくにつれて宇宙船を小さくしていくことができますか? + +\--- hints \--- + +\--- hint \--- + +宇宙船は` 大きさ100%` {:class="blocklooks"}で開始し、`大きさを変える`{:class="blocklooks"}を使って、少しずつ移動するたびに行います。 + +\--- /hint \--- + +\--- hint \--- + +これらのブロックをコードに追加する必要があります。 + +![宇宙船のスプライト](images/sprite-spaceship.png) + +```blocks3 +大きさを (10) ずつ変える + +大きさを (100) %にする +``` + +\--- /hint \--- + +\--- hint \--- + +コードは以下のようになります: + +![宇宙船のスプライト](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +コードをテストして保存します。宇宙船は移動すると小さくなります。宇宙船を**2回目のテスト**します 。開始時、宇宙船は適切なサイズですか? + +![縮小する宇宙船のテスト](images/space-size-test.png) \ No newline at end of file diff --git a/ja-JP/step_5.md b/ja-JP/step_5.md new file mode 100644 index 000000000..1c019829d --- /dev/null +++ b/ja-JP/step_5.md @@ -0,0 +1,71 @@ +## 浮遊(ふゆう)しているサル + +宇宙で迷子(まいご)になっているサルをアニメーションに追加しましょう! + +\--- task \--- + +ライブラリーからサルのスプライトを追加します。 + +![サルのスプライトを追加する](images/space-monkey-sprite.png) + +\--- /task \--- + +新しいサルのスプライトをクリックし、**コスチューム**をクリックすると、サルの外観を編集できます。 + +\--- task \--- + +赤い線を選択して、塗りつぶしを透明に設定します。枠線は、鮮やかさスライダーを`0`に動かして白色に設定します 。 + +![白い色にする](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +**円**ツールをクリックして、サルの頭の周りに白い宇宙ヘルメットを描きます。 + +![サルの宇宙ヘルメット](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +コードを入れて、サルがゆっくりと回転し続けるようにできますか? + +\--- hints \--- \--- hint \--- + +緑の**フラグがクリックされた**とき 、サルのスプライトは**ずっと**円を描くように**回転する**はずです 。 + +\--- /hint \--- \--- hint \--- + +必要なコードブロックは次のとおりです。 + +```blocks3 +ずっと +end + +↻ (15) 度回す + +⚑ が押されたとき +``` + +\--- /hint \--- \--- hint \--- + +サルを回転させるコードは次のとおりです: + +![サルのスプライト](images/sprite-monkey.png) + +```blocks3 +⚑ が押されたとき +ずっと + ↻ (1) 度回す +end +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +プロジェクトをテストして保存します。ずっと実行されるので、このアニメーションを終了させるために赤い**止める**ボタンをクリックする必要があります。 + +![回転するサルをテストする](images/space-spin-test.png) \ No newline at end of file diff --git a/ja-JP/step_6.md b/ja-JP/step_6.md new file mode 100644 index 000000000..1be4c3a6c --- /dev/null +++ b/ja-JP/step_6.md @@ -0,0 +1,61 @@ +## はずむ小惑星 (しょうわくせい) + +次に、アニメーションに、浮かぶ宇宙の岩を追加します。 + +\--- task \--- + +アニメーションに岩('rock') のスプライトを追加してください。 + +![岩のスプライトを追加する](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +岩のスプライトのコードを追加して、ステージ上で岩がバウンドするようにできますか? + +![バウンドする岩をテストする](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +緑の**フラグがクリックされた**とき、 岩のスプライトは**ずっと**ステージ中を**動いて**、**はずみます**。 + +\--- /hint \--- \--- hint \--- + +必要なコードブロックは次のとおりです。 + +```blocks3 +(10) 歩動かす + +もし端に着いたら、跳ね返る + +⚑ が押されたとき + +ずっと +end +``` + +いずれかのブロックを使用して、岩のスプライトにもっと面白い開始方向を設定することもできます。 + +```blocks3 +↻ (15) 度回す + +(地球 v) へ向ける +``` + +\--- /hint \--- \--- hint \--- + +ステージ上で岩をバウンドさせるためのコードは次のとおりです。 + +![岩のスプライト](images/sprite-rock.png) + +```blocks3 +⚑ が押されたとき +(地球 v) へ向ける +ずっと + (2) 歩動かす + もし端に着いたら、跳ね返る +end +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/ja-JP/step_7.md b/ja-JP/step_7.md new file mode 100644 index 000000000..dfce3514f --- /dev/null +++ b/ja-JP/step_7.md @@ -0,0 +1,63 @@ +## 光る星 + +次に、ループを組み合わせて光る星を作成します。 + +\--- task \--- + +星('star') のスプライトをステージに追加します。 + +![星のスプライトを追加する](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +星のスプライトにコードを追加して、星が大きくなったり小さくなったりを繰り返すようにできますか? + +![光る星をテストする](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +緑の**フラグがクリックされた**とき、星のスプライトは**大きさを変えて**何度か大きくなり、また**大きさを変えて**何度か小さくなります。 これを行うと、**ずっと**大きくなり、小さくなり、そして光が輝いているように見えます。 + +\--- /hint \--- \--- hint \--- + +必要なコードブロックは次のとおりです。 + +```blocks3 +(10) 回繰り返す +end + +⚑ が押されたとき + +(10) 回繰り返す +end + +大きさを (10) ずつ変える + +大きさを (10) ずつ変える + +ずっと +end +``` + +\--- /hint \--- \--- hint \--- + +星を大きくしたり小さくしたりするためのコードは次になります: + +![星のスプライト](images/sprite-star.png) + +```blocks3 +⚑ が押されたとき +ずっと + (20) 回繰り返す + 大きさを (2) ずつ変える + end + (20) 回繰り返す + 大きさを (-2) ずつ変える + end +end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/ja-JP/step_8.md b/ja-JP/step_8.md new file mode 100644 index 000000000..1a9d493ca --- /dev/null +++ b/ja-JP/step_8.md @@ -0,0 +1,7 @@ +## チャレンジ: 自分のアニメーションを作ろう + +宇宙のアニメーションを止めます。保存し、新しいScratchプロジェクトを始めてください。 + +このプロジェクトで学んだことを使用して、独自のアニメーションを作成します。好きなものを使用できますが、選んだ背景に合わせてアニメーションを作成してください。ここではいくつかの例を示します: + +![スクリーンショット](images/space-egs.png) \ No newline at end of file diff --git a/ja-JP/step_9.md b/ja-JP/step_9.md new file mode 100644 index 000000000..08c9caec5 --- /dev/null +++ b/ja-JP/step_9.md @@ -0,0 +1,18 @@ +## 次は何? + +[ゴーストバスターズ](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects)プロジェクトをお試しください! このプロジェクトでは、ゴーストがあちこちに出現し、捕まえるゲームを作成する方法を学びます。 ゲームにタイマーとスコアを追加する方法も学習します。これにより、捕まえられるゴーストの数を確認できます。 + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![ショーケース](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/kn-IN/images/banner.png b/kn-IN/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/kn-IN/images/banner.png differ diff --git a/kn-IN/images/ghostbusters-static.png b/kn-IN/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/kn-IN/images/ghostbusters-static.png differ diff --git a/kn-IN/images/lost-in-space.png b/kn-IN/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/kn-IN/images/lost-in-space.png differ diff --git a/kn-IN/images/make-white.png b/kn-IN/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/kn-IN/images/make-white.png differ diff --git a/kn-IN/images/montage-1.png b/kn-IN/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/kn-IN/images/montage-1.png differ diff --git a/kn-IN/images/montage-2.png b/kn-IN/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/kn-IN/images/montage-2.png differ diff --git a/kn-IN/images/montage-3.png b/kn-IN/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/kn-IN/images/montage-3.png differ diff --git a/kn-IN/images/showcase_static.png b/kn-IN/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/kn-IN/images/showcase_static.png differ diff --git a/kn-IN/images/space-animate-stage.png b/kn-IN/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/kn-IN/images/space-animate-stage.png differ diff --git a/kn-IN/images/space-backdrop.png b/kn-IN/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/kn-IN/images/space-backdrop.png differ diff --git a/kn-IN/images/space-bounce-test.png b/kn-IN/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/kn-IN/images/space-bounce-test.png differ diff --git a/kn-IN/images/space-colour-test.png b/kn-IN/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/kn-IN/images/space-colour-test.png differ diff --git a/kn-IN/images/space-costume.png b/kn-IN/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/kn-IN/images/space-costume.png differ diff --git a/kn-IN/images/space-egs.png b/kn-IN/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/kn-IN/images/space-egs.png differ diff --git a/kn-IN/images/space-monkey-edit.png b/kn-IN/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/kn-IN/images/space-monkey-edit.png differ diff --git a/kn-IN/images/space-monkey-sprite.png b/kn-IN/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/kn-IN/images/space-monkey-sprite.png differ diff --git a/kn-IN/images/space-rock-sprite.png b/kn-IN/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/kn-IN/images/space-rock-sprite.png differ diff --git a/kn-IN/images/space-rotate.png b/kn-IN/images/space-rotate.png new file mode 100644 index 000000000..916fb08f0 Binary files /dev/null and b/kn-IN/images/space-rotate.png differ diff --git a/kn-IN/images/space-size-test.png b/kn-IN/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/kn-IN/images/space-size-test.png differ diff --git a/kn-IN/images/space-spin-test.png b/kn-IN/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/kn-IN/images/space-spin-test.png differ diff --git a/kn-IN/images/space-sprites.png b/kn-IN/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/kn-IN/images/space-sprites.png differ diff --git a/kn-IN/images/space-star-sprite.png b/kn-IN/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/kn-IN/images/space-star-sprite.png differ diff --git a/kn-IN/images/sprite-earth.png b/kn-IN/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/kn-IN/images/sprite-earth.png differ diff --git a/kn-IN/images/sprite-monkey.png b/kn-IN/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/kn-IN/images/sprite-monkey.png differ diff --git a/kn-IN/images/sprite-rock.png b/kn-IN/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/kn-IN/images/sprite-rock.png differ diff --git a/kn-IN/images/sprite-spaceship.png b/kn-IN/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/kn-IN/images/sprite-spaceship.png differ diff --git a/kn-IN/images/sprite-star.png b/kn-IN/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/kn-IN/images/sprite-star.png differ diff --git a/kn-IN/images/trim_and_tile.sh b/kn-IN/images/trim_and_tile.sh new file mode 100644 index 000000000..809dcc71f --- /dev/null +++ b/kn-IN/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) # ಫೈಲ್ ಹೆಸರಿನಿಂದ 2 ನೇ ಅಕ್ಷರವನ್ನು ಪಡೆಯಿರಿ + convert $file -trim +repage $file; # ಚಿತ್ರವನ್ನು ಟ್ರಿಮ್ ಮಾಡಿ + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; # ಪಠ್ಯದೊಂದಿಗೆ ಟಿಪ್ಪಣಿ ಮಾಡಿ +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/kn-IN/meta.yml b/kn-IN/meta.yml new file mode 100644 index 000000000..21d77f618 --- /dev/null +++ b/kn-IN/meta.yml @@ -0,0 +1,35 @@ +--- +title: ಬಾಹ್ಯಾಕಾಶದಲ್ಲಿ ಕಳೆದುಹೋದೆ +hero_image: images/lost-in-space.png +description: ನಿಮ್ಮ ಸ್ವಂತ ಅನಿಮೇಷನ್ ಅನ್ನು ಹೇಗೆ ಪ್ರೋಗ್ರಾಂ ಮಾಡುವುದು ಎಂದು ತಿಳಿಯಿರಿ! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: ಪರಿಚಯ + - + title: ಆಕಾಶನೌಕೆ ಅನಿಮೇಷನ್ ಮಾಡುವುದು + - + title: 'ಸವಾಲು: ನಿಮ್ಮ ಅನಿಮೇಷನ್ ಮೇಲ್ಪಡಿಸಿ' + challenge: true + - + title: ಲೂಪ್ಗಳನ್ನು ಬಳಸಿ ಅನಿಮೇಷನ್ + completion: + - engaged + - + title: ತೇಲುವ ಕೋತಿ + - + title: ಪುಟಿಯುವ ಕ್ಷುದ್ರಗ್ರಹ + - + title: ಹೊಳೆಯುವ ನಕ್ಷತ್ರ + completion: + - internal + - + title: 'ಸವಾಲು: ನಿಮ್ಮ ಸ್ವಂತ ಅನಿಮೇಷನ್ ಮಾಡಿ' + challenge: true + - + title: ಮುಂದೆ ಏನು? diff --git a/kn-IN/scratch-translatable.txt b/kn-IN/scratch-translatable.txt new file mode 100644 index 000000000..33046045f --- /dev/null +++ b/kn-IN/scratch-translatable.txt @@ -0,0 +1 @@ +ಲೆಟ್ಸ್ ಗೋ diff --git a/kn-IN/solutions/lost-in-space-solution.sb3 b/kn-IN/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/kn-IN/solutions/lost-in-space-solution.sb3 differ diff --git a/kn-IN/step_1.md b/kn-IN/step_1.md new file mode 100644 index 000000000..cf4ae0c85 --- /dev/null +++ b/kn-IN/step_1.md @@ -0,0 +1,60 @@ +## ಪರಿಚಯ + +You are going to learn how to program your own animation! + +### ನೀವು ಇದನ್ನು ಮಾಡುತ್ತೀರಿ + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: ನಿಮಗೆ ಬೇಕಾದುದು + +### ಹಾರ್ಡ್ವೇರ್ + +- Scracth 3 ಅನ್ನು ಚಲಾಯಿಸುವ ಸಾಮರ್ಥ್ಯವಿರುವ ಕಂಪ್ಯೂಟರ್ + +### ಸಾಫ್ಟ್ವೇರ್ + +- Scratch 3 (ಎರಡೂ [online](https://rpf.io/scratchon){:target="_blank"} ಅಥವಾ [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### ಡೌನ್‌ಲೋಡ್‌ಗಳು + +- ಯಾವುದೂ ಇಲ್ಲ + +\--- /collapse \--- + +## \--- collapse \--- + +## title: ನೀವು ಇದನ್ನು ಕಲಿಯುವಿರಿ + +- ಸ್ಕ್ರ್ಯಾಚ್‌ನಲ್ಲಿ ಸ್ಪ್ರೈಟ್ ಅನ್ನು ಅನಿಮೇಟ್ ಮಾಡಲು ಪುನರಾವರ್ತಿತ ಲೂಪ್ ಬಳಸಿ +- ಅನಿಮೇಷನ್ ಅನ್ನು ಅನಿರ್ದಿಷ್ಟವಾಗಿ ಪುನರಾವರ್ತಿಸಲು ಶಾಶ್ವತವಾದ ಲೂಪ್ ಬಳಸಿ +- ಒಂದರ ಒಳಗೆ ಇನ್ನೊಂದು ಲೂಪ್ನನ್ನು ಹಾಕಬಹುದು ಎಂದು ಅರ್ಥಮಾಡಿಕೊಳ್ಳಿ + +\--- /collapse \--- + +## \--- collapse \--- + +## title: ಶಿಕ್ಷಣತಜ್ಞರಿಗೆ ಹೆಚ್ಚುವರಿ ಮಾಹಿತಿ + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/kn-IN/step_2.md b/kn-IN/step_2.md new file mode 100644 index 000000000..18a8b807d --- /dev/null +++ b/kn-IN/step_2.md @@ -0,0 +1,72 @@ +## ಆಕಾಶನೌಕೆ ಅನಿಮೇಷನ್ ಮಾಡುವುದು + +ನಿಮ್ಮ ಮೊದಲ ಹೆಜ್ಜೆ ಭೂಮಿಯ ಕಡೆಗೆ ಹಾರುವ ಆಕಾಶನೌಕೆ ರಚಿಸುವುದು! + +\--- task \--- + +ಹೊಸದನ್ನು ತೆರೆಯಿರಿ Scratch ಯೋಜನೆ. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** ಆಫ್‌ಲೈನ್ ಸಂಪಾದಕದಲ್ಲಿ ಹೊಸ ಯೋಜನೆಯನ್ನು ತೆರೆಯಿರಿ. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +ನಿಮ್ಮ ಹಂತಕ್ಕೆ 'rocketship' (ರಾಕೆಟ್‌ಶಿಪ್) ಮತ್ತು 'Earth' (ಭೂಮಿ) ಸ್ಪ್ರೈಟ್‌ಗಳನ್ನು ಸೇರಿಸಿ. + +![ಆಕಾಶನೌಕೆ ಮತ್ತು ಭೂಮಿಯ ಸ್ಪ್ರೈಟ್‌ಗಳು](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +ನಿಮ್ಮ ಹಂತಕ್ಕೆ 'Stars' (ನಕ್ಷತ್ರಗಳು) ಬ್ಯಾಕ್‌ಡ್ರಾಪ್ ಸೇರಿಸಿ. + +![ಬಾಹ್ಯಾಕಾಶ ಹಿನ್ನೆಲೆ](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +ನಿಮ್ಮ ಆಕಾಶನೌಕೆ ಸ್ಪ್ರೈಟ್ ಮೇಲೆ ಕ್ಲಿಕ್ ಮಾಡಿ, ಮತ್ತು **Costumes** ಟ್ಯಾಬ್ ಮೇಲೆ ಕ್ಲಿಕ್ ಮಾಡಿ. + +![ಸ್ಪ್ರೈಟ್ ವೇಷಭೂಷಣ](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +ಇಡೀ ಆಕಾಶನೌಕೆ ಚಿತ್ರದ ಸುತ್ತಲೂ ಪೆಟ್ಟಿಗೆಯನ್ನು ಬರೆಯಲು **arrow**ವನ್ನು ಕ್ಲಿಕ್ ಮಾಡಿ ಮತ್ತು ಎಳೆಯಿರಿ. ನಂತರ **rotate** ಮೇಲೆ ಕ್ಲಿಕ್ ಮಾಡಿ ಮತ್ತು ಚಿತ್ರವನ್ನು ತಿರುಗಿಸಿ. + +![ವೇಷಭೂಷಣವನ್ನು ತಿರುಗಿಸುವುದು](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +ನಿಮ್ಮ ಆಕಾಶನೌಕೆ ಸ್ಪ್ರೈಟ್‌ಗೆ ಈ ಕೋಡ್ ಸೇರಿಸಿ: + +![ಆಕಾಶನೌಕೆ ಸ್ಪ್ರೈಟ್](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +ನೀವು ಸೇರಿಸಿದ ಕೋಡ್ ಬ್ಲಾಕ್‌ಗಳಲ್ಲಿನ ಸಂಖ್ಯೆಗಳನ್ನು ಬದಲಾಯಿಸಿ. ಕೋಡನ್ನು ಮೇಲಿನಂತೆ ಮಾಡಿ. + +\--- /task \--- + +ನೀವು ಹಸಿರು ಧ್ವಜವನ್ನು ಕ್ಲಿಕ್ ಮಾಡಿದರೆ, ಆಕಾಶನೌಕೆ ಮಾತನಾಡುವುದು, ತಿರುಗುವುದು ಮತ್ತು ವೇದಿಕೆಯ ಮಧ್ಯಭಾಗಕ್ಕೆ ತಿರುಗುವುದು ನೀವು ನೋಡಬಹುದು. + +![ಆಕಾಶನೌಕೆ ಅನಿಮೇಷನ್ ಪರೀಕ್ಷಿಸಲಾಗುತ್ತಿದೆ](images/space-animate-stage.png) \ No newline at end of file diff --git a/kn-IN/step_3.md b/kn-IN/step_3.md new file mode 100644 index 000000000..1e4aa81cd --- /dev/null +++ b/kn-IN/step_3.md @@ -0,0 +1,16 @@ +## ಸವಾಲು: ನಿಮ್ಮ ಅನಿಮೇಷನ್ ಮೇಲ್ಪಡಿಸಿ + +ನಿಮ್ಮ ಅನಿಮೇಷನ್ ಕೋಡ್‌ನಲ್ಲಿನ ಸಂಖ್ಯೆಗಳನ್ನು ನೀವು ಹೀಗೆ ಬದಲಾಯಿಸಬಹುದೇ? + ++ ಆಕಾಶನೌಕೆ ಭೂಮಿಯನ್ನು ಮುಟ್ಟುವವರೆಗೂ ಚಲಿಸುವಂತೆ? ++ ಆಕಾಶನೌಕೆ ನಿಧಾನವಾಗಿ ಭೂಮಿಯನ್ನು ಮುಟ್ಟುವವರೆಗೂ ಚಲಿಸುವಂತೆ? + +ಈ ಬ್ಲಾಕ್‌ನಲ್ಲಿ ನೀವು ಸಂಖ್ಯೆಗಳನ್ನು ಬದಲಾಯಿಸಬೇಕಾಗಿದೆ: + +![ರಾಕೆಟ್‌ಶಿಪ್ ಸ್ಪ್ರೈಟ್](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/kn-IN/step_4.md b/kn-IN/step_4.md new file mode 100644 index 000000000..69ec67b04 --- /dev/null +++ b/kn-IN/step_4.md @@ -0,0 +1,126 @@ +## ಲೂಪ್ಗಳನ್ನು ಬಳಸಿ ಅನಿಮೇಷನ್ + +ಆಕಾಶನೌಕೆಯನ್ನು ಅನಿಮೇಟ್ ಮಾಡುವ ಇನ್ನೊಂದು ವಿಧಾನವೆಂದರೆ, ಹಲವು ಬಾರಿ ಒಂದು ಸಣ್ಣ ಮೊತ್ತವನ್ನು ಸರಿಯಲು ಹೇಳುವುದು + +\--- task \--- + +` glide`{: class = "block3motion"} ಅನ್ನು ನಿಮ್ಮ ಕೋಡ್‌ನಿಂದ ಅಳಿಸಿ. ಇದನ್ನು ಮಾಡಲು, ಕೋಡ್ ಪ್ರದೇಶವನ್ನು ಎಳೆಯಿರಿ ಮತ್ತು ಇತರ ಸಿಂಗಲ್ ಕೋಡ್ ಬ್ಲಾಕ್‌ಗಳು ಇರುವಲ್ಲಿ ಅದನ್ನು ಬಿಡಿ. + +![ಆಕಾಶನೌಕೆ ಸ್ಪ್ರೈಟ್](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +ಈಗ `repeat`{:class="block3control"} ಬ್ಲಾಕ್ ಬಳಸಿ ನಿಮ್ಮ ಆಕಾಶನೌಕೆಯನ್ನು ಭೂಮಿಯ ಕಡೆಗೆ ಸರಿಸಲು. + +![ಆಕಾಶನೌಕೆ ಅನಿಮೇಷನ್ ಪರೀಕ್ಷೀಸುವುದು](images/space-animate-stage.png) + +![ಆಕಾಶನೌಕೆ ಸ್ಪ್ರೈಟ್](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +ನಿಮ್ಮ ಕೋಡ್ ಅನ್ನು ಪರೀಕ್ಷಿಸಿ ಮತ್ತು ಉಳಿಸಿ. ನಿಮ್ಮ ಆಕಾಶನೌಕೆ ಮೊದಲಿನಂತೆಯೇ ಭೂಮಿಯ ಕಡೆಗೆ ಚಲಿಸಬೇಕು, ಆದರೆ ಈ ಬಾರಿ ಅದು `repeat`{:class="block3control"}. + +\--- /task \--- + +\--- task \--- + +ಮುಂದೆ ನಿಮ್ಮ ಆಕಾಶನೌಕೆ ಸ್ಪ್ರೈಟ್‌ಗೆ ಕೋಡ್ ಸೇರಿಸಿ ಇದರಿಂದ ಆಕಾಶನೌಕೆ ಭೂಮಿಯ ಕಡೆಗೆ ಚಲಿಸುವಾಗ ಬಣ್ಣವನ್ನು ಬದಲಾಯಿಸುತ್ತದೆ? + +ಈ ಬ್ಲಾಕ್ ಬಳಸಿ: + +![ಆಕಾಶನೌಕೆ ಸ್ಪ್ರೈಟ್](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +ನಿಮ್ಮ ಕೋಡ್ ಅನ್ನು ಪರೀಕ್ಷಿಸಿ ಮತ್ತು ಉಳಿಸಿ. + +![ಬಣ್ಣ ಬದಲಾಯಿಸುವ ಆಕಾಶನೌಕೆ ಪರೀಕ್ಷಿಸಲಾಗುತ್ತಿದೆ](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +ನಿಮ್ಮ ಆಕಾಶನೌಕೆ ಭೂಮಿಯ ಕಡೆಗೆ ಚಲಿಸುವಾಗ ಅದನ್ನು ಚಿಕ್ಕದಾಗಿಸುವಂತೆ ನೀವು ಮಾಡಬಹುದೇ? + +\--- hints \--- + +\--- hint \--- + +ನಿಮ್ಮಆಕಾಶನೌಕೆ ಪ್ರಾರಂಭಿಸಬೇಕು`100% size`{:class="blocklooks"}, ತದನಂತರ `change size`{:class="blocklooks"} ನಂತರ ಪ್ರತಿ ಸಲ ಮುಂದೆ ಹೋಗುತ್ತದೆ. + +\--- /hint \--- + +\--- hint \--- + +ನಿಮ್ಮ ಕೋಡ್‌ಗೆ ನೀವು ಈ ಬ್ಲಾಕ್‌ಗಳನ್ನು ಸೇರಿಸುವ ಅಗತ್ಯವಿದೆ: + +![ಆಕಾಶನೌಕೆ ಸ್ಪ್ರೈಟ್](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +ನಿಮ್ಮ ಕೋಡ್ ಈ ರೀತಿ ಇರಬೇಕು: + +![ಆಕಾಶನೌಕೆ ಸ್ಪ್ರೈಟ್](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +ನಿಮ್ಮ ಕೋಡ್ ಅನ್ನು ಪರೀಕ್ಷಿಸಿ ಮತ್ತು ಉಳಿಸಿ. ಈಗ, ನಿಮ್ಮ ಆಕಾಶನೌಕೆ ಚಲಿಸುವಾಗ ಚಿಕ್ಕದಾಗಬೇಕು. ನಿಮ್ಮ ಆಕಾಶನೌಕೆಯನ್ನು ** ಎರಡನೇ ಬಾರಿಗೆ ಪರೀಕ್ಷಿಸಿ **. ಅದು ಪ್ರಾರಂಭವಾದಾಗ ಅದು ಸರಿಯಾದ ಗಾತ್ರ ಇದೆಯೇ? + +![ಕುಗ್ಗುತ್ತಿರುವ ಆಕಾಶನೌಕೆಯನ್ನು ಪರೀಕ್ಷೀಸುವುದು](images/space-size-test.png) \ No newline at end of file diff --git a/kn-IN/step_5.md b/kn-IN/step_5.md new file mode 100644 index 000000000..d27d9e03e --- /dev/null +++ b/kn-IN/step_5.md @@ -0,0 +1,70 @@ +## ತೇಲುವ ಕೋತಿ + +ನಿಮ್ಮ ಅನಿಮೇಷನ್‌ಗೆ ಆಕಾಶದಲ್ಲಿ ಕಳೆದುಹೋದ ಮಂಗವನ್ನು ಈಗ ನೀವು ಸೇರಿಸುತ್ತೀರಿ! + +\--- task \--- + +ಲೈಬ್ರರಿಯಿಂದ 'monkey (ಮಂಗ)' ಸ್ಪ್ರೈಟ್ ಅನ್ನು ಸೇರಿಸುವ ಮೂಲಕ ಪ್ರಾರಂಭಿಸಿ. + +![ಮ೦ಗ ಸ್ಪ್ರೈಟ್ ಅನ್ನು ಸೇರಿಸುವುದು](images/space-monkey-sprite.png) + +\--- /task \--- + +ನಿಮ್ಮ ಹೊಸ ಮಂಗ ಸ್ಪ್ರೈಟ್ ಮೇಲೆ ಕ್ಲಿಕ್ ಮಾಡಿ ಮತ್ತು ನಂತರ **Costumes** ಮೇಲೆ ಕ್ಲಿಕ್ ಮಾಡಿ. ಇದರಿಂದಾಗಿ ಕೋತಿ ಹೇಗೆ ಕಾಣುತ್ತದೆ ಎಂಬುದನ್ನು ನೀವು ಸಂಪಾದಿಸಬಹುದು. + +\--- task \--- + +ಕೆಂಪು ರೇಖೆಯನ್ನು ಆರಿಸುವ ಮೂಲಕ ಫಿಲ್ ಅನ್ನು ಪಾರದರ್ಶಕವಾಗಿರಲು ಹೊಂದಿಸಿ. ಬಾಹ್ಯರೇಖೆಗಾಗಿ, ಸ್ಯಾಚುರೇಶನ್ ಸ್ಲೈಡರ್ ಅನ್ನು ` 0` ಗೆ ಸರಿಸುವ ಮೂಲಕ ಬಿಳಿ ಬಣ್ಣವನ್ನು ಹೊಂದಿಸಿ. + +![ಬಿಳಿ ಬಣ್ಣದ್ದಾಗಿ ಮಾಡಿ](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +**circle** ಉಪಕರಣದ ಮೇಲೆ ಕ್ಲಿಕ್ ಮಾಡಿ ಮತ್ತು ನಂತರ ಅದನ್ನು ಕೋತಿಯ ತಲೆಯ ಸುತ್ತ ಬಿಳಿ ಆಕಾಶ ಹೆಲ್ಮೆಟ್ ಅನ್ನು ಬರೆಯಲು ಬಳಸಿ. + +![ಮಂಕಿ ಸ್ಪೇಸ್ ಹೆಲ್ಮೆಟ್](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +ನಿಮ್ಮ ಮಂಕಿ ಸ್ಪ್ರೈಟ್‌ಗೆ ಕೋಡ್ ಅನ್ನು ಸೇರಿಸಬಹುದೇ ಇದರಿಂದ ಅದು ವೃತ್ತದಲ್ಲಿ ನಿಧಾನವಾಗಿ ಶಾಶ್ವತವಾಗಿ ತಿರುಗುತ್ತದೆ? + +\--- hints \--- \--- hint \--- + +ಹಸಿರು ** ಧ್ವಜವನ್ನು ಕ್ಲಿಕ್ ಮಾಡಿದಾಗ **, ನಿಮ್ಮ ಮಂಕಿ ಸ್ಪ್ರೈಟ್ ** ಶಾಶ್ವತವಾಗಿ ವಲಯದಲ್ಲಿ ** ** ತಿರುಗಬೇಕು **. + +\--- /hint \--- \--- hint \--- + +ನಿಮಗೆ ಅಗತ್ಯವಿರುವ ಕೋಡ್ ಬ್ಲಾಕ್‌ಗಳು ಇಲ್ಲಿವೆ: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +ನಿಮ್ಮ ಮ೦ಗ ಸ್ಪಿನ್ ಮಾಡಲು ಕೋಡ್ ಇಲ್ಲಿದೆ: + +![ಮಂಕಿ ಸ್ಪ್ರೈಟ್](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +ನಿಮ್ಮ ಯೋಜನೆಯನ್ನು ಪರೀಕ್ಷಿಸಿ ಮತ್ತು ಉಳಿಸಿ. ಅದು ಶಾಶ್ವತವಾಗಿ ಚಲಿಸುತ್ತದೆ! ಈ ಅನಿಮೇಷನ್ ಅನ್ನು ಕೊನೆಗೊಳಿಸಲ, ನೀವು ಕೆಂಪು ** stop ** ಬಟನ್ ಅನ್ನು ಕ್ಲಿಕ್ ಮಾಡಬೇಕಾಗುತ್ತದೆ. + +![ತಿರುಗುವ ಕೋತಿಯನ್ನು ಪರೀಕ್ಷಿಸಿ](images/space-spin-test.png) \ No newline at end of file diff --git a/kn-IN/step_6.md b/kn-IN/step_6.md new file mode 100644 index 000000000..f6eefe63d --- /dev/null +++ b/kn-IN/step_6.md @@ -0,0 +1,59 @@ +## ಪುಟಿಯುವ ಕ್ಷುದ್ರಗ್ರಹ + +ಈಗ ನೀವು ನಿಮ್ಮ ಅನಿಮೇಷನ್‌ಗೆ ಫ್ಲೋಟಿಂಗ್ ಸ್ಪೇಸ್ ರಾಕ್ ಅನ್ನು ಸೇರಿಸುತ್ತೀರಿ. + +\--- task \--- + +ನಿಮ್ಮ ಅನಿಮೇಷನ್‌ಗೆ 'rock' (ಬಂಡೆ) ಸ್ಪ್ರೈಟ್ ಸೇರಿಸಿ. + +![ಬಂಡೆ ಸ್ಪ್ರೈಟ್ ಅನ್ನು ಸೇರಿಸುವುದು](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +ನಿಮ್ಮ ಬಂಡೆ ಸ್ಪ್ರೈಟ್‌ಗಾಗಿ ಕೋಡ್ ಅನ್ನು ಸೇರಿಸಬಹುದೇ ನೋಡಿ ಇದರಿಂದ ರಾಕ್ ವೇದಿಕೆಯ ಸುತ್ತಲೂ ಪುಟಿಯುತ್ತದೆ. + +![ಪುಟಿಯುವ ಬಂಡೆಯನ್ನು ಪರೀಕ್ಷಿಸುವುದು](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +ಹಸಿರು ** ಧ್ವಜವನ್ನು ಕ್ಲಿಕ್ ಮಾಡಿದಾಗ **, ನಿಮ್ಮ ಮಂಕಿ ಸ್ಪ್ರೈಟ್ ** ಶಾಶ್ವತವಾಗಿ ವಲಯದಲ್ಲಿ ** ** ತಿರುಗಬೇಕು **. + +\--- /hint \--- \--- hint \--- + +ನಿಮಗೆ ಅಗತ್ಯವಿರುವ ಕೋಡ್ ಬ್ಲಾಕ್‌ಗಳು ಇಲ್ಲಿವೆ: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +ಈ ಬ್ಲಾಕ್‌ಗಳಲ್ಲಿ ಒಂದನ್ನು ಹೊಂದಿಸಿ ನಿಮ್ಮ ಬಂಡೆ ಸ್ಪ್ರೈಟ್‌ಗಾಗಿ ನೀವು ಹೆಚ್ಚು ಆಸಕ್ತಿದಾಯಕ ಆರಂಭಿಕ ದಿಕ್ಕನ್ನು ಸಹ ಹೊಂದಿಸಬಹುದು: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +ನಿಮ್ಮ ಬಂಡೆಯನ್ನು ವೇದಿಕೆಯ ಸುತ್ತಲೂ ಪುಟಿಯುವಂತೆ ಮಾಡುವ ಕೋಡ್ ಇಲ್ಲಿದೆ: + +![ಬಂಡೆ ಸ್ಪ್ರೈಟ್](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/kn-IN/step_7.md b/kn-IN/step_7.md new file mode 100644 index 000000000..5e5493cf8 --- /dev/null +++ b/kn-IN/step_7.md @@ -0,0 +1,61 @@ +## ಹೊಳೆಯುವ ನಕ್ಷತ್ರ + +ಈಗ ನೀವು ಹೊಳೆಯುವ ನಕ್ಷತ್ರವನ್ನು ಮಾಡಲು ಲೂಪ್ಗಳನ್ನು ಸಂಯೋಜಿಸುತ್ತೀರಿ. + +\--- task \--- + +ನಿಮ್ಮ ಹಂತಕ್ಕೆ 'star' (ನಕ್ಷತ್ರ) ಸ್ಪ್ರೈಟ್ ಸೇರಿಸಿ. + +![ಸ್ಟಾರ್ ಸ್ಪ್ರೈಟ್ ಅನ್ನು ಸೇರಿಸಲು](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +ನಕ್ಷತ್ರವು ಪದೇ ಪದೇ ಬೆಳೆಯಲು ಮತ್ತು ಕುಗ್ಗುವಂತೆ ಮಾಡಲು ನಿಮ್ಮ ನಕ್ಷತ್ರ ಸ್ಪ್ರೈಟ್‌ಗೆ ನೀವು ಕೋಡ್ ಸೇರಿಸಬಹುದೇ? + +![ಹೊಳೆಯುವ ನಕ್ಷತ್ರವನ್ನು ಪರೀಕ್ಷಿಸುವುದು](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +ಹಸಿರು **flag is clicked**, ನಿಮ್ಮ ಸ್ಟಾರ್ ಸ್ಪ್ರೈಟ್ ** change size** ಕೆಲವು ಬಾರಿ ದೊಡ್ಡದಾಗಬೇಕು, ತದನಂತರ **change size**ಕೆಲವು ಬಾರಿ ಚಿಕ್ಕದಾಗಬೇಕು. ಇದು ** forever ** ದೊಡ್ಡ ಮತ್ತು ಸಣ್ಣ ಆಗಬೇಕು. ಇದರ ಸಲುವಾಗಿ ಅದು ಬೆಳಕು ಚೆಲ್ಲುವಂತೆ ತೋರುತ್ತಿದೆ. + +\--- /hint \--- \--- hint \--- + +ನಿಮಗೆ ಅಗತ್ಯವಿರುವ ಕೋಡ್ ಬ್ಲಾಕ್‌ಗಳು ಇಲ್ಲಿವೆ: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +ನಿಮ್ಮ ನಕ್ಷತ್ರವು ಬೆಳೆಯಲು ಮತ್ತು ಕುಗ್ಗುವಂತೆ ಮಾಡಲು ಕೋಡ್ ಇಲ್ಲಿದೆ: + +![ಸ್ಟಾರ್ ಸ್ಪ್ರೈಟ್](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/kn-IN/step_8.md b/kn-IN/step_8.md new file mode 100644 index 000000000..ba6966de0 --- /dev/null +++ b/kn-IN/step_8.md @@ -0,0 +1,7 @@ +## ಸವಾಲು: ನಿಮ್ಮ ಸ್ವಂತ ಅನಿಮೇಷನ್ ಮಾಡಿ + +ನಿಮ್ಮ ಸ್ಪೇಸ್ ಆನಿಮೇಷನ್ ನಿಲ್ಲಿಸಿ, ಅದನ್ನು ಉಳಿಸಿ ಮತ್ತು ಹೊಸ Scratch ಯೋಜನೆಯನ್ನು ಪ್ರಾರಂಭಿಸಿ. + +ನಿಮ್ಮ ಸ್ವಂತ ಅನಿಮೇಷನ್ ಮಾಡಲು ಈ ಯೋಜನೆಯಲ್ಲಿ ನೀವು ಕಲಿತದ್ದನ್ನು ಬಳಸಿ. ಇದು ನೀವು ಇಷ್ಟಪಡುವ ಯಾವುದಾದರೂ ಆಗಿರಬಹುದು, ಆದರೆ ನಿಮ್ಮ ಅನಿಮೇಷನ್ ನೀವು ಆಯ್ಕೆ ಮಾಡಿದ ಹಿನ್ನೆಲೆಗೆ ಸರಿಹೊಂದುವಂತೆ ಮಾಡಲು ಪ್ರಯತ್ನಿಸಿ. ಕೆಲವು ಉದಾಹರಣೆಗಳು ಇಲ್ಲಿವೆ: + +![ಸ್ಕ್ರೀನ್‍ಶಾಟ್(screenshot)](images/space-egs.png) \ No newline at end of file diff --git a/kn-IN/step_9.md b/kn-IN/step_9.md new file mode 100644 index 000000000..20445acbb --- /dev/null +++ b/kn-IN/step_9.md @@ -0,0 +1,18 @@ +## ಮುಂದೆ ಏನು? + +[ ಘೋಸ್ಟ್‌ಬಸ್ಟರ್‌ ](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) ಯೋಜನೆ ಪ್ರಯತ್ನಿಸಿ! ಆ ಯೋಜನೆಯಲ್ಲಿ, ದೆವ್ವಗಳೊಂದಿಗೆ ಆಟವನ್ನು ಹೇಗೆ ರಚಿಸುವುದು ಎಂದು ನೀವು ಕಲಿಯುವಿರಿ. ಅವು ಎಲ್ಲೆಡೆ ಗೋಚರಿಸುತ್ತದೆ ಮತ್ತು ನೀವು ಹಿಡಿಯಬೇಕು. ಆಟಕ್ಕೆ ಟೈಮರ್ ಮತ್ತು ಸ್ಕೋರ್ ಅನ್ನು ಹೇಗೆ ಸೇರಿಸುವುದು ಎಂಬುದನ್ನು ಸಹ ನೀವು ಕಲಿಯುವಿರಿ, ಇದರಿಂದ ನೀವು ಎಷ್ಟು ದೆವ್ವಗಳನ್ನು ಹಿಡಿಯಲು ಸಾಧ್ಯವಾಗುತ್ತದೆ ಎಂಬುದನ್ನು ನೋಡಬಹುದು. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![ಪ್ರದರ್ಶನ](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/ko-KR/images/banner.png b/ko-KR/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/ko-KR/images/banner.png differ diff --git a/ko-KR/images/ghostbusters-static.png b/ko-KR/images/ghostbusters-static.png new file mode 100644 index 000000000..0cf0d52a4 Binary files /dev/null and b/ko-KR/images/ghostbusters-static.png differ diff --git a/ko-KR/images/lost-in-space.png b/ko-KR/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/ko-KR/images/lost-in-space.png differ diff --git a/ko-KR/images/make-white.png b/ko-KR/images/make-white.png new file mode 100644 index 000000000..532f3d3ec Binary files /dev/null and b/ko-KR/images/make-white.png differ diff --git a/ko-KR/images/montage-1.png b/ko-KR/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/ko-KR/images/montage-1.png differ diff --git a/ko-KR/images/montage-2.png b/ko-KR/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/ko-KR/images/montage-2.png differ diff --git a/ko-KR/images/montage-3.png b/ko-KR/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/ko-KR/images/montage-3.png differ diff --git a/ko-KR/images/showcase_static.png b/ko-KR/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/ko-KR/images/showcase_static.png differ diff --git a/ko-KR/images/space-animate-stage.png b/ko-KR/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/ko-KR/images/space-animate-stage.png differ diff --git a/ko-KR/images/space-animate.png b/ko-KR/images/space-animate.png new file mode 100644 index 000000000..3ac395a81 Binary files /dev/null and b/ko-KR/images/space-animate.png differ diff --git a/ko-KR/images/space-backdrop.png b/ko-KR/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/ko-KR/images/space-backdrop.png differ diff --git a/ko-KR/images/space-bounce-blocks.png b/ko-KR/images/space-bounce-blocks.png new file mode 100644 index 000000000..cd54027b4 Binary files /dev/null and b/ko-KR/images/space-bounce-blocks.png differ diff --git a/ko-KR/images/space-bounce-code.png b/ko-KR/images/space-bounce-code.png new file mode 100644 index 000000000..98ef68061 Binary files /dev/null and b/ko-KR/images/space-bounce-code.png differ diff --git a/ko-KR/images/space-bounce-test.png b/ko-KR/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/ko-KR/images/space-bounce-test.png differ diff --git a/ko-KR/images/space-colour-blocks.png b/ko-KR/images/space-colour-blocks.png new file mode 100644 index 000000000..81dca07cb Binary files /dev/null and b/ko-KR/images/space-colour-blocks.png differ diff --git a/ko-KR/images/space-colour-code.png b/ko-KR/images/space-colour-code.png new file mode 100644 index 000000000..92dd419e8 Binary files /dev/null and b/ko-KR/images/space-colour-code.png differ diff --git a/ko-KR/images/space-colour-test.png b/ko-KR/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/ko-KR/images/space-colour-test.png differ diff --git a/ko-KR/images/space-costume.png b/ko-KR/images/space-costume.png new file mode 100644 index 000000000..71b60f320 Binary files /dev/null and b/ko-KR/images/space-costume.png differ diff --git a/ko-KR/images/space-delete-glide.png b/ko-KR/images/space-delete-glide.png new file mode 100644 index 000000000..d08a83049 Binary files /dev/null and b/ko-KR/images/space-delete-glide.png differ diff --git a/ko-KR/images/space-egs.png b/ko-KR/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/ko-KR/images/space-egs.png differ diff --git a/ko-KR/images/space-glide.png b/ko-KR/images/space-glide.png new file mode 100644 index 000000000..ed7b60e71 Binary files /dev/null and b/ko-KR/images/space-glide.png differ diff --git a/ko-KR/images/space-initial-position.png b/ko-KR/images/space-initial-position.png new file mode 100644 index 000000000..c0c72fb7c Binary files /dev/null and b/ko-KR/images/space-initial-position.png differ diff --git a/ko-KR/images/space-monkey-edit.png b/ko-KR/images/space-monkey-edit.png new file mode 100644 index 000000000..9f02abc38 Binary files /dev/null and b/ko-KR/images/space-monkey-edit.png differ diff --git a/ko-KR/images/space-monkey-sprite.png b/ko-KR/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/ko-KR/images/space-monkey-sprite.png differ diff --git a/ko-KR/images/space-repeat-blocks.png b/ko-KR/images/space-repeat-blocks.png new file mode 100644 index 000000000..88caa10d9 Binary files /dev/null and b/ko-KR/images/space-repeat-blocks.png differ diff --git a/ko-KR/images/space-repeat-code.png b/ko-KR/images/space-repeat-code.png new file mode 100644 index 000000000..1b224e486 Binary files /dev/null and b/ko-KR/images/space-repeat-code.png differ diff --git a/ko-KR/images/space-rock-sprite.png b/ko-KR/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/ko-KR/images/space-rock-sprite.png differ diff --git a/ko-KR/images/space-rotate.png b/ko-KR/images/space-rotate.png new file mode 100644 index 000000000..6c8c1a596 Binary files /dev/null and b/ko-KR/images/space-rotate.png differ diff --git a/ko-KR/images/space-size-blocks.png b/ko-KR/images/space-size-blocks.png new file mode 100644 index 000000000..23cf14ed7 Binary files /dev/null and b/ko-KR/images/space-size-blocks.png differ diff --git a/ko-KR/images/space-size-code.png b/ko-KR/images/space-size-code.png new file mode 100644 index 000000000..529870952 Binary files /dev/null and b/ko-KR/images/space-size-code.png differ diff --git a/ko-KR/images/space-size-test.png b/ko-KR/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/ko-KR/images/space-size-test.png differ diff --git a/ko-KR/images/space-spin-blocks.png b/ko-KR/images/space-spin-blocks.png new file mode 100644 index 000000000..3eb095c7f Binary files /dev/null and b/ko-KR/images/space-spin-blocks.png differ diff --git a/ko-KR/images/space-spin-code.png b/ko-KR/images/space-spin-code.png new file mode 100644 index 000000000..6e2cac8ec Binary files /dev/null and b/ko-KR/images/space-spin-code.png differ diff --git a/ko-KR/images/space-spin-test.png b/ko-KR/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/ko-KR/images/space-spin-test.png differ diff --git a/ko-KR/images/space-sprites.png b/ko-KR/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/ko-KR/images/space-sprites.png differ diff --git a/ko-KR/images/space-star-blocks.png b/ko-KR/images/space-star-blocks.png new file mode 100644 index 000000000..744f04e59 Binary files /dev/null and b/ko-KR/images/space-star-blocks.png differ diff --git a/ko-KR/images/space-star-code.png b/ko-KR/images/space-star-code.png new file mode 100644 index 000000000..867714dc6 Binary files /dev/null and b/ko-KR/images/space-star-code.png differ diff --git a/ko-KR/images/space-star-sprite.png b/ko-KR/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/ko-KR/images/space-star-sprite.png differ diff --git a/ko-KR/images/space-star-test.png b/ko-KR/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/ko-KR/images/space-star-test.png differ diff --git a/ko-KR/images/sprite-earth.png b/ko-KR/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/ko-KR/images/sprite-earth.png differ diff --git a/ko-KR/images/sprite-monkey.png b/ko-KR/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/ko-KR/images/sprite-monkey.png differ diff --git a/ko-KR/images/sprite-rock.png b/ko-KR/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/ko-KR/images/sprite-rock.png differ diff --git a/ko-KR/images/sprite-spaceship.png b/ko-KR/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/ko-KR/images/sprite-spaceship.png differ diff --git a/ko-KR/images/sprite-star.png b/ko-KR/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/ko-KR/images/sprite-star.png differ diff --git a/ko-KR/images/trim_and_tile.sh b/ko-KR/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/ko-KR/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/ko-KR/meta.yml b/ko-KR/meta.yml new file mode 100644 index 000000000..3f21d3d5d --- /dev/null +++ b/ko-KR/meta.yml @@ -0,0 +1,35 @@ +--- +title: 우주에서 길을 잃다 +hero_image: images/lost-in-space.png +description: 나만의 애니메이션을 만드는 법을 배워봅시다! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: 스크래치 +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: 들어가며 + - + title: 우주선 움직이기 + - + title: '도전: 자연스러운 움직임 만들기' + challenge: true + - + title: 반복하기를 활용해 움직이기 + completion: + - engaged + - + title: 떠다니는 원숭이 + - + title: 튀어다니는 소행성 + - + title: 빛나는 별 + completion: + - internal + - + title: '도전: 나만의 애니메이션을 만들어요' + challenge: true + - + title: 더 나아가기 diff --git a/ko-KR/resources/LostinSpace-Finished.sb2 b/ko-KR/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..249a7c950 Binary files /dev/null and b/ko-KR/resources/LostinSpace-Finished.sb2 differ diff --git a/ko-KR/scratch-translatable.txt b/ko-KR/scratch-translatable.txt new file mode 100644 index 000000000..cf8fc1595 --- /dev/null +++ b/ko-KR/scratch-translatable.txt @@ -0,0 +1 @@ +출발! diff --git a/ko-KR/solutions/lost-in-space-solution.sb3 b/ko-KR/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..facc15e0a Binary files /dev/null and b/ko-KR/solutions/lost-in-space-solution.sb3 differ diff --git a/ko-KR/step_1.md b/ko-KR/step_1.md new file mode 100644 index 000000000..ea5f256a5 --- /dev/null +++ b/ko-KR/step_1.md @@ -0,0 +1,60 @@ +## 들어가며 + +You are going to learn how to program your own animation! + +### 만들게 될 것 + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: 준비물 + +### 하드웨어 + +- 스크래치 3을 실행할 수 있는 컴퓨터 + +### 소프트웨어 + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### 다운로드 + +- 없음 + +\--- /collapse \--- + +## \--- collapse \--- + +## title: 배우게 될 것 + +- 반복 루프를 사용하여 스크래치에서 스프라이트 움직이기 +- 무한 반복하기를 사용하여 애니메이션을 계속 반복하기 +- 반복하기가 중첩될 수 있음을 이해하기 + +\--- /collapse \--- + +## \--- collapse \--- + +## title: 교육자를 위한 추가 정보 + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/ko-KR/step_10.md b/ko-KR/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/ko-KR/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/ko-KR/step_2.md b/ko-KR/step_2.md new file mode 100644 index 000000000..64aaf7442 --- /dev/null +++ b/ko-KR/step_2.md @@ -0,0 +1,72 @@ +## 우주선 움직이기 + +첫째, 지구 쪽으로 날아가는 우주선을 만들어 봐! + +\--- task \--- + +새 스크래치 프로젝트를 만드세요. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**오프라인:** 오프라인 편집기에서 새 프로젝트를 만들기 + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +스테이지에 'Rocketship(우주선)'과 'Earth(지구)' 스프라이트를 추가하세요. + +![우주선과 지구 스프라이트](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- /task \--- + +스테이지에 'Stars(별)' 배경을 추가하세요. + +![우주 배경](images/space-backdrop.png) + +\--- /task \--- + +\--- /task \--- + +우주선 스프라이트를 클릭한 뒤, **모양** 탭을 클릭하세요. + +![스프라이트 모양](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +**마우스 화살표**로 우주선 그림 주위를 클릭하여 전체를 드래그하세요. 그런 다음, 원형 **회전** 조절기를 클릭해 그림이 뒤집어지도록 회전시키세요. + +![모양 회전](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +우주선 스프라이트에 이 코드를 더해주세요: + +![우주선 스프라이트](images/sprite-spaceship.png) + +```blocks3 +⚑ 클릭했을 때 +(0) 도 방향 보기 +x: (-150) y: (-150) (으)로 이동하기 +[출발!] 을(를) (2) 초 동안 말하기 +(Earth) 쪽 보기 +(1) 초 동안 x: (0) y: (0) (으)로 이동하기 +``` + +위 그림과 같게 코드블록의 숫자들을 바꿔주세요. + +\--- /task \--- + +초록색 깃발을 누르면, 우주선이 '출발!'이라고 말한 후 돌아서 무대 중간으로 움직이는 것을 볼 수 있어요. + +![우주선 움직임 테스트](images/space-animate-stage.png) \ No newline at end of file diff --git a/ko-KR/step_3.md b/ko-KR/step_3.md new file mode 100644 index 000000000..e5cf63e58 --- /dev/null +++ b/ko-KR/step_3.md @@ -0,0 +1,16 @@ +## 도전 과제: 움직임을 더 자연스럽게 만들어요 + +다음과 같이 되도록 동작 코드에 있는 숫자를 바꿔보세요: + ++ 우주선이 지구에 닿을 때까지 움직이나요? ++ 우주선이 지구에 가까워질수록 천천히 움직이나요? + +이 블록에 있는 숫자를 바꿔야 합니다: + +![우주선 스프라이트](images/sprite-spaceship.png) + +```blocks3 +(1) 초 동안 x:(0) y:(0)으로 이동하기 +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/ko-KR/step_4.md b/ko-KR/step_4.md new file mode 100644 index 000000000..f1c20a574 --- /dev/null +++ b/ko-KR/step_4.md @@ -0,0 +1,126 @@ +## 반복하기를 사용한 움직임 + +우주선을 움직이게 하는 또 다른 방법은 우주선을 조금씩 여러 번 움직이는 것입니다 + +\--- task \--- + +`이동하기`{:class="block3motion"}블록을 코드에서 제거하세요. 코드 영역에서 블록을 드래그한 뒤 다른 단일 코드 블록들이 있는 곳에 놓으면 됩니다. + +![우주선 스프라이트](images/sprite-spaceship.png) + +```blocks3 +⚑ 클릭했을 때 +(0) 도 방향 보기 +x: (-150) y: (-150) (으)로 이동하기 +[출발!] 을(를) (2) 초 동안 말하기 +(지구) 쪽 보기 + +(1) 초 동안 x: (0) y: (0) (으)로 이동하기 +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![우주선 움직임 테스트](images/space-animate-stage.png) + +![우주선 스프라이트](images/sprite-spaceship.png) + +```blocks3 +⚑ 클릭했을 때 +(0) 도 방향 보기 +x: (-150) y: (-150) (으)로 이동하기 +[출발!] 을(를) (2) 초 동안 말하기 +(Earth) 쪽 보기 + ++ (200) 번 반복하기 + (2) 만큼 움직이기 +``` + +코드를 테스트하고 저장하세요. 우주선은 이전과 같이 지구를 향해 움직여야 합니다. 이번에는 `반복하기`{:class="block3control"} 블록을 활용했습니다. + +\--- /task \--- + +\--- task \--- + +다음으로 우주선 스프라이트에 코드를 추가하여 우주선이 지구를 향해 움직일 때 색깔을 바꾸도록 해 볼까요? + +아래의 코드 블록을 사용하세요: + +![우주선 스프라이트](images/sprite-spaceship.png) + +```blocks3 +⚑ 클릭했을 때 +(0) 도 방향 보기 +x: (-150) y: (-150) (으)로 이동하기 +[출발!] 을(를) (2) 초 동안 말하기 +(Earth) 쪽 보기 +(200) 번 반복하기 + (2) 만큼 움직이기 + ++ [색깔] 효과를 (25) 만큼 바꾸기 +``` + +프로젝트를 테스트해 보고 저장하세요. + +![우주석 색바꾸기 테스트](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +우주선이 지구에 다가갈수록 작아지게 만들 수 있나요? + +\--- hints \--- + +\--- hint \--- + +우주선은 `100%의 크기`{:class="blocklooks"}로 시작할 것입니다. 우주선이 움직일 때마다 `크기 바꾸기`{:class="blocklooks"}를 사용해 조금씩 작아지도록 만들어보세요. + +\--- /hint \--- + +\--- hint \--- + +코드에 이 블록들을 추가해야할 거예요: + +![우주선 스프라이트](images/sprite-spaceship.png) + +```blocks3 +크기를 (10) 만큼 바꾸기 + +크기를 (100) %로 정하기 +``` + +\--- /hint \--- + +\--- hint \--- + +다음과 같은 코드가 될 것입니다. + +![우주선 스프라이트](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +테스트하고 저장하세요. 우주선은 움직이는 동안 작아집니다. **두 번**째로 테스트해보세요. 테스트 시작시 우주선의 크기는 원래 크기로 시작하나요? + +![우주선 작아지기 테스트](images/space-size-test.png) \ No newline at end of file diff --git a/ko-KR/step_5.md b/ko-KR/step_5.md new file mode 100644 index 000000000..c3785e3b1 --- /dev/null +++ b/ko-KR/step_5.md @@ -0,0 +1,69 @@ +## 떠다니는 원숭이 + +우주에서 길을 잃은 원숭이를 추가해봅시다! + +\--- task \--- + +저장소에서 'Monkey(원숭이)' 스프라이트를 추가합니다. + +![원숭이 스프라이트 추가](images/space-monkey-sprite.png) + +\--- /task \--- + +추가된 원숭이 스프라이트를 누르고, **모양**을 클릭하여 원숭이의 모습을 편집해보아요. + +\--- task \--- + +빨간색 선을 선택하여 채우기 색을 투명하게 설정하세요. 윤곽선의 경우엔, 채도 슬라이더를 `0`으로 이동시켜 하얗게 설정해봅시다. + +![흰색 만들기](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +**원** 도구를 클릭하고, 이것을 이용해 원숭이의 머리에 헬멧을 그려주세요. + +![원숭이 우주 헬멧](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +원숭이 스프라이트가 계속 천천히 둥글게 회전하는 코드를 추가할 수 있나요? + +\--- hints \--- \--- hint \--- + +초록색 **깃발을 누르면**, 원숭이 스프라이트는 **계속** 빙글빙글 **돕니다**. + +\--- /hint \--- \--- hint \--- + +필요한 코드 블록은 다음과 같습니다. + +```blocks3 +무한 반복하기 + +↻ 방향으로 (15) 도 회전하기 + +⚑ 클릭했을 때 +``` + +\--- /hint \--- \--- hint \--- + +원숭이를 돌리는 코드는 다음과 같습니다. + +![원숭이 스프라이트](images/sprite-monkey.png) + +```blocks3 +⚑ 클릭했을 때 +무한 반복하기 + ↻ 방향으로 (1) 도 회전하기 +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +프로젝트를 테스트하고 저장하세요. 빨간 **정지** 버튼을 눌러야할 거예요. 아니면 계속 돌아가요! + +![회전하는 원숭이 테스트하기](images/space-spin-test.png) \ No newline at end of file diff --git a/ko-KR/step_6.md b/ko-KR/step_6.md new file mode 100644 index 000000000..c50f67d7d --- /dev/null +++ b/ko-KR/step_6.md @@ -0,0 +1,59 @@ +## 튀어다니는 소행성 + +우주에 떠다니는 암석을 추가해봅시다. + +\--- task \--- + +애니매이션에 '돌(rock)' 스프라이트를 추가해주세요. + +![돌 스프라이트 추가하기](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +돌이 스테이지를 튀어다니게 하는 코드를 돌 스프라이트에 추가할 수 있나요? + +![튀어다니는 돌 테스트하기](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +초록색 **깃발을 클릭했을 때**, 돌 스프라이트는 스테이지에서 **움직이기**와 **튕기기**를 **무한 반복하기**할 것입니다. + +\--- /hint \--- \--- hint \--- + +필요한 코드 블록은 다음과 같습니다. + +```blocks3 +(10) 만큼 움직이기 + +벽에 닿으면 튕기기 + +⚑ 클릭했을 때 + +무한 반복하기 +``` + +다음 블록 중 하나를 사용하여 바위 스프라이트의 시작 방향을 더 흥미롭게 설정할 수도 있어요. + +```blocks3 +↻ 방향으로 (15) 도 회전하기 + +(Earth) 쪽 보기 +``` + +\--- /hint \--- \--- hint \--- + +다음은 돌이 스테이지에서 튀어다니게 하는 코드입니다. + +![돌 스프라이트](images/sprite-rock.png) + +```blocks3 +⚑ 클릭했을 때 +(Earth) 쪽 보기 +무한 반복하기 + (2) 만큼 움직이기 + 벽에 닿으면 튕기기 +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/ko-KR/step_7.md b/ko-KR/step_7.md new file mode 100644 index 000000000..29b1e3ae2 --- /dev/null +++ b/ko-KR/step_7.md @@ -0,0 +1,60 @@ +## 빛나는 별 + +빛나는 별을 만들기 위해 반복하기를 합쳐볼 것입니다. + +\--- task \--- + +무대에 'star(별)' 스프라이트를 추가하세요. + +![별 스프라이트 추가하기](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +별 스프라이트가 커졌다 작아졌다를 반복하도록 코드를 만들 수 있나요? + +![빛나는 별 테스트하기](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +초록색 **깃발을 클릭했을 때**, 별 스프라이트는 잠깐동안 커지기 위해 **크기를 바꾸기**하고, 잠깐동안 작아지기 위해 **크기를 바꾸기**합니다. 별이 더 커지고 작아지길 **무한 반복**하도록 해보세요. 그럼 반짝이는 빛처럼 보여요. + +\--- /hint \--- \--- hint \--- + +필요한 코드 블록은 다음과 같습니다. + +```blocks3 +(10) 번 반복하기 + +⚑ 클릭했을 때 + +(10) 번 반복하기 + +크기를 (10) 만큼 바꾸기 + +크기를 (10) 만큼 바꾸기 + +무한 반복하기 +``` + +\--- /hint \--- \--- hint \--- + +다음은 별이 커졌다 작아졌다 하도록 만드는 코드입니다. + +![별 스프라이트](images/sprite-star.png) + +```blocks3 +⚑ 클릭했을 때 +무한 반복하기 + (20) 번 반복하기 + 크기를 (2) 만큼 바꾸기 + 끝 + (20) 번 반복하기 + 크기를 (-2) 만큼 바꾸기 + 끝 +끝 + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/ko-KR/step_8.md b/ko-KR/step_8.md new file mode 100644 index 000000000..8be737b5a --- /dev/null +++ b/ko-KR/step_8.md @@ -0,0 +1,7 @@ +## 도전: 나만의 애니메이션을 만들어요 + +우주 애니매이션을 멈추고, 저장한 다음, 새로운 스크래치 프로젝트를 만드세요. + +나만의 애니메이션을 만들기 위해 여태 배운 것들을 사용해보자. 네가 무엇을 원하든 상관없지만, 배경과 어울리는 애니메이션을 만들어봐. 여기 몇 가지 예시가 있어요. + +![스크린샷](images/space-egs.png) \ No newline at end of file diff --git a/ko-KR/step_9.md b/ko-KR/step_9.md new file mode 100644 index 000000000..30dd4982f --- /dev/null +++ b/ko-KR/step_9.md @@ -0,0 +1,18 @@ +## 더 나아가기 + +[유령잡기](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) 프로젝트를 시도해보자! 이 프로젝트에선, 신출귀몰하게 나타나는 유령을 잡는 게임을 만들게 될 거야. 그리고 타이머를 추가하는 방법과 게임의 점수를 내는 방법을 배워서, 네가 얼마나 많은 유령을 잡을 수 있는지 볼 수 있을 거야. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![쇼케이스](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/me-ME/images/banner.png b/me-ME/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/me-ME/images/banner.png differ diff --git a/me-ME/images/ghostbusters-static.png b/me-ME/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/me-ME/images/ghostbusters-static.png differ diff --git a/me-ME/images/lost-in-space.png b/me-ME/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/me-ME/images/lost-in-space.png differ diff --git a/me-ME/images/make-white.png b/me-ME/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/me-ME/images/make-white.png differ diff --git a/me-ME/images/montage-1.png b/me-ME/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/me-ME/images/montage-1.png differ diff --git a/me-ME/images/montage-2.png b/me-ME/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/me-ME/images/montage-2.png differ diff --git a/me-ME/images/montage-3.png b/me-ME/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/me-ME/images/montage-3.png differ diff --git a/me-ME/images/showcase_static.png b/me-ME/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/me-ME/images/showcase_static.png differ diff --git a/me-ME/images/space-animate-stage.png b/me-ME/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/me-ME/images/space-animate-stage.png differ diff --git a/me-ME/images/space-animate.png b/me-ME/images/space-animate.png new file mode 100644 index 000000000..1cbcbf5d3 Binary files /dev/null and b/me-ME/images/space-animate.png differ diff --git a/me-ME/images/space-backdrop.png b/me-ME/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/me-ME/images/space-backdrop.png differ diff --git a/me-ME/images/space-bounce-blocks.png b/me-ME/images/space-bounce-blocks.png new file mode 100644 index 000000000..9294bb7f7 Binary files /dev/null and b/me-ME/images/space-bounce-blocks.png differ diff --git a/me-ME/images/space-bounce-code.png b/me-ME/images/space-bounce-code.png new file mode 100644 index 000000000..bab43ef0d Binary files /dev/null and b/me-ME/images/space-bounce-code.png differ diff --git a/me-ME/images/space-bounce-test.png b/me-ME/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/me-ME/images/space-bounce-test.png differ diff --git a/me-ME/images/space-colour-blocks.png b/me-ME/images/space-colour-blocks.png new file mode 100644 index 000000000..54461788b Binary files /dev/null and b/me-ME/images/space-colour-blocks.png differ diff --git a/me-ME/images/space-colour-code.png b/me-ME/images/space-colour-code.png new file mode 100644 index 000000000..271457677 Binary files /dev/null and b/me-ME/images/space-colour-code.png differ diff --git a/me-ME/images/space-colour-test.png b/me-ME/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/me-ME/images/space-colour-test.png differ diff --git a/me-ME/images/space-costume.png b/me-ME/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/me-ME/images/space-costume.png differ diff --git a/me-ME/images/space-delete-glide.png b/me-ME/images/space-delete-glide.png new file mode 100644 index 000000000..ff00f77e4 Binary files /dev/null and b/me-ME/images/space-delete-glide.png differ diff --git a/me-ME/images/space-egs.png b/me-ME/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/me-ME/images/space-egs.png differ diff --git a/me-ME/images/space-glide.png b/me-ME/images/space-glide.png new file mode 100644 index 000000000..c04d7bfa9 Binary files /dev/null and b/me-ME/images/space-glide.png differ diff --git a/me-ME/images/space-initial-position.png b/me-ME/images/space-initial-position.png new file mode 100644 index 000000000..29e0ce5c5 Binary files /dev/null and b/me-ME/images/space-initial-position.png differ diff --git a/me-ME/images/space-monkey-edit.png b/me-ME/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/me-ME/images/space-monkey-edit.png differ diff --git a/me-ME/images/space-monkey-sprite.png b/me-ME/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/me-ME/images/space-monkey-sprite.png differ diff --git a/me-ME/images/space-repeat-blocks.png b/me-ME/images/space-repeat-blocks.png new file mode 100644 index 000000000..287663af6 Binary files /dev/null and b/me-ME/images/space-repeat-blocks.png differ diff --git a/me-ME/images/space-repeat-code.png b/me-ME/images/space-repeat-code.png new file mode 100644 index 000000000..fcc10c858 Binary files /dev/null and b/me-ME/images/space-repeat-code.png differ diff --git a/me-ME/images/space-rock-sprite.png b/me-ME/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/me-ME/images/space-rock-sprite.png differ diff --git a/me-ME/images/space-rotate.png b/me-ME/images/space-rotate.png new file mode 100644 index 000000000..916fb08f0 Binary files /dev/null and b/me-ME/images/space-rotate.png differ diff --git a/me-ME/images/space-size-blocks.png b/me-ME/images/space-size-blocks.png new file mode 100644 index 000000000..1124075a4 Binary files /dev/null and b/me-ME/images/space-size-blocks.png differ diff --git a/me-ME/images/space-size-code.png b/me-ME/images/space-size-code.png new file mode 100644 index 000000000..97cee1616 Binary files /dev/null and b/me-ME/images/space-size-code.png differ diff --git a/me-ME/images/space-size-test.png b/me-ME/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/me-ME/images/space-size-test.png differ diff --git a/me-ME/images/space-spin-blocks.png b/me-ME/images/space-spin-blocks.png new file mode 100644 index 000000000..ca9fd52ee Binary files /dev/null and b/me-ME/images/space-spin-blocks.png differ diff --git a/me-ME/images/space-spin-code.png b/me-ME/images/space-spin-code.png new file mode 100644 index 000000000..8b3b016f9 Binary files /dev/null and b/me-ME/images/space-spin-code.png differ diff --git a/me-ME/images/space-spin-test.png b/me-ME/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/me-ME/images/space-spin-test.png differ diff --git a/me-ME/images/space-sprites.png b/me-ME/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/me-ME/images/space-sprites.png differ diff --git a/me-ME/images/space-star-blocks.png b/me-ME/images/space-star-blocks.png new file mode 100644 index 000000000..f3b9f1e81 Binary files /dev/null and b/me-ME/images/space-star-blocks.png differ diff --git a/me-ME/images/space-star-code.png b/me-ME/images/space-star-code.png new file mode 100644 index 000000000..7097d2e12 Binary files /dev/null and b/me-ME/images/space-star-code.png differ diff --git a/me-ME/images/space-star-sprite.png b/me-ME/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/me-ME/images/space-star-sprite.png differ diff --git a/me-ME/images/space-star-test.png b/me-ME/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/me-ME/images/space-star-test.png differ diff --git a/me-ME/images/sprite-earth.png b/me-ME/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/me-ME/images/sprite-earth.png differ diff --git a/me-ME/images/sprite-monkey.png b/me-ME/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/me-ME/images/sprite-monkey.png differ diff --git a/me-ME/images/sprite-rock.png b/me-ME/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/me-ME/images/sprite-rock.png differ diff --git a/me-ME/images/sprite-spaceship.png b/me-ME/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/me-ME/images/sprite-spaceship.png differ diff --git a/me-ME/images/sprite-star.png b/me-ME/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/me-ME/images/sprite-star.png differ diff --git a/me-ME/images/trim_and_tile.sh b/me-ME/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/me-ME/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/me-ME/meta.yml b/me-ME/meta.yml new file mode 100644 index 000000000..b207a1b45 --- /dev/null +++ b/me-ME/meta.yml @@ -0,0 +1,35 @@ +--- +title: Lost in space +hero_image: images/lost-in-space.png +description: Learn how to program your own animation! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introduction + - + title: Animating a spaceship + - + title: 'Challenge: improve your animation' + challenge: true + - + title: Animation using loops + completion: + - engaged + - + title: Floating monkey + - + title: Bouncing asteroid + - + title: Shining star + completion: + - internal + - + title: 'Challenge: make your own animation' + challenge: true + - + title: What next? diff --git a/me-ME/resources/LostinSpace-Finished.sb2 b/me-ME/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..c843bcadf Binary files /dev/null and b/me-ME/resources/LostinSpace-Finished.sb2 differ diff --git a/me-ME/scratch-translatable.txt b/me-ME/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/me-ME/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/me-ME/solutions/lost-in-space-solution.sb3 b/me-ME/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/me-ME/solutions/lost-in-space-solution.sb3 differ diff --git a/me-ME/step_1.md b/me-ME/step_1.md new file mode 100644 index 000000000..bc43f86cd --- /dev/null +++ b/me-ME/step_1.md @@ -0,0 +1,60 @@ +## Introduction + +You are going to learn how to program your own animation! + +### What you will make + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: What you will need + +### Hardware + +- A computer capable of running Scratch 3 + +### Software + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + +- None + +\--- /collapse \--- + +## \--- collapse \--- + +## title: What you will learn + +- Use a repeat loop to animate a sprite in Scratch +- Use a forever loop to repeat an animation indefinitely +- Understand that loops can be nested within each other + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Additional information for educators + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/me-ME/step_10.md b/me-ME/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/me-ME/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/me-ME/step_2.md b/me-ME/step_2.md new file mode 100644 index 000000000..cbcdff0c6 --- /dev/null +++ b/me-ME/step_2.md @@ -0,0 +1,72 @@ +## Animating a spaceship + +Your first step will be to create a spaceship that flies towards the Earth! + +\--- task \--- + +Open a new Scratch project. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** open a new project in the offline editor. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/me-ME/step_3.md b/me-ME/step_3.md new file mode 100644 index 000000000..4af9cb400 --- /dev/null +++ b/me-ME/step_3.md @@ -0,0 +1,16 @@ +## Challenge: improve your animation + +Can you change the numbers in your animation code so that: + ++ The spaceship moves until it touches the Earth? ++ The spaceship moves more slowly towards the Earth? + +You'll need to change the numbers in this block: + +![Rocketship sprite](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/me-ME/step_4.md b/me-ME/step_4.md new file mode 100644 index 000000000..0e1397c55 --- /dev/null +++ b/me-ME/step_4.md @@ -0,0 +1,126 @@ +## Animation using loops + +Another way to animate the spaceship is to tell it to move a small amount many times + +\--- task \--- + +Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testing a spaceship animation](images/space-animate-stage.png) + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Your spaceship should start at `100% size`{:class="blocklooks"}, and then `change size`{:class="blocklooks"} by a small amount each time it moves. + +\--- /hint \--- + +\--- hint \--- + +You will need to add these blocks to your code: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Your code should look like this: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/me-ME/step_5.md b/me-ME/step_5.md new file mode 100644 index 000000000..ab4c451b7 --- /dev/null +++ b/me-ME/step_5.md @@ -0,0 +1,70 @@ +## Floating monkey + +Now you will add a monkey who's lost in space to your animation! + +\--- task \--- + +Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/me-ME/step_6.md b/me-ME/step_6.md new file mode 100644 index 000000000..729b6d975 --- /dev/null +++ b/me-ME/step_6.md @@ -0,0 +1,59 @@ +## Bouncing asteroid + +Now you will add a floating space rock to your animation. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/me-ME/step_7.md b/me-ME/step_7.md new file mode 100644 index 000000000..e53504c76 --- /dev/null +++ b/me-ME/step_7.md @@ -0,0 +1,61 @@ +## Shining star + +Now you will combine loops to make a shining star. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Star sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/me-ME/step_8.md b/me-ME/step_8.md new file mode 100644 index 000000000..841b139ec --- /dev/null +++ b/me-ME/step_8.md @@ -0,0 +1,7 @@ +## Challenge: make your own animation + +Stop your space animation, save it, and start a new Scratch project. + +Use what you've learned in this project to make your own animation. It can be anything you like, but try to make your animation match the background you choose. Here are some examples: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/me-ME/step_9.md b/me-ME/step_9.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/me-ME/step_9.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/ml-IN/images/banner.png b/ml-IN/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/ml-IN/images/banner.png differ diff --git a/ml-IN/images/ghostbusters-static.png b/ml-IN/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/ml-IN/images/ghostbusters-static.png differ diff --git a/ml-IN/images/lost-in-space.png b/ml-IN/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/ml-IN/images/lost-in-space.png differ diff --git a/ml-IN/images/make-white.png b/ml-IN/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/ml-IN/images/make-white.png differ diff --git a/ml-IN/images/montage-1.png b/ml-IN/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/ml-IN/images/montage-1.png differ diff --git a/ml-IN/images/montage-2.png b/ml-IN/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/ml-IN/images/montage-2.png differ diff --git a/ml-IN/images/montage-3.png b/ml-IN/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/ml-IN/images/montage-3.png differ diff --git a/ml-IN/images/showcase_static.png b/ml-IN/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/ml-IN/images/showcase_static.png differ diff --git a/ml-IN/images/space-animate-stage.png b/ml-IN/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/ml-IN/images/space-animate-stage.png differ diff --git a/ml-IN/images/space-animate.png b/ml-IN/images/space-animate.png new file mode 100644 index 000000000..46a5038ab Binary files /dev/null and b/ml-IN/images/space-animate.png differ diff --git a/ml-IN/images/space-backdrop.png b/ml-IN/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/ml-IN/images/space-backdrop.png differ diff --git a/ml-IN/images/space-bounce-blocks.png b/ml-IN/images/space-bounce-blocks.png new file mode 100644 index 000000000..9294bb7f7 Binary files /dev/null and b/ml-IN/images/space-bounce-blocks.png differ diff --git a/ml-IN/images/space-bounce-code.png b/ml-IN/images/space-bounce-code.png new file mode 100644 index 000000000..e8791d62f Binary files /dev/null and b/ml-IN/images/space-bounce-code.png differ diff --git a/ml-IN/images/space-bounce-test.png b/ml-IN/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/ml-IN/images/space-bounce-test.png differ diff --git a/ml-IN/images/space-colour-blocks.png b/ml-IN/images/space-colour-blocks.png new file mode 100644 index 000000000..54461788b Binary files /dev/null and b/ml-IN/images/space-colour-blocks.png differ diff --git a/ml-IN/images/space-colour-code.png b/ml-IN/images/space-colour-code.png new file mode 100644 index 000000000..8afbd513d Binary files /dev/null and b/ml-IN/images/space-colour-code.png differ diff --git a/ml-IN/images/space-colour-test.png b/ml-IN/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/ml-IN/images/space-colour-test.png differ diff --git a/ml-IN/images/space-costume.png b/ml-IN/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/ml-IN/images/space-costume.png differ diff --git a/ml-IN/images/space-delete-glide.png b/ml-IN/images/space-delete-glide.png new file mode 100644 index 000000000..1d6fe71a9 Binary files /dev/null and b/ml-IN/images/space-delete-glide.png differ diff --git a/ml-IN/images/space-egs.png b/ml-IN/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/ml-IN/images/space-egs.png differ diff --git a/ml-IN/images/space-glide.png b/ml-IN/images/space-glide.png new file mode 100644 index 000000000..c04d7bfa9 Binary files /dev/null and b/ml-IN/images/space-glide.png differ diff --git a/ml-IN/images/space-initial-position.png b/ml-IN/images/space-initial-position.png new file mode 100644 index 000000000..260fa4f54 Binary files /dev/null and b/ml-IN/images/space-initial-position.png differ diff --git a/ml-IN/images/space-monkey-edit.png b/ml-IN/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/ml-IN/images/space-monkey-edit.png differ diff --git a/ml-IN/images/space-monkey-sprite.png b/ml-IN/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/ml-IN/images/space-monkey-sprite.png differ diff --git a/ml-IN/images/space-repeat-blocks.png b/ml-IN/images/space-repeat-blocks.png new file mode 100644 index 000000000..287663af6 Binary files /dev/null and b/ml-IN/images/space-repeat-blocks.png differ diff --git a/ml-IN/images/space-repeat-code.png b/ml-IN/images/space-repeat-code.png new file mode 100644 index 000000000..9800ca99d Binary files /dev/null and b/ml-IN/images/space-repeat-code.png differ diff --git a/ml-IN/images/space-rock-sprite.png b/ml-IN/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/ml-IN/images/space-rock-sprite.png differ diff --git a/ml-IN/images/space-rotate.png b/ml-IN/images/space-rotate.png new file mode 100644 index 000000000..916fb08f0 Binary files /dev/null and b/ml-IN/images/space-rotate.png differ diff --git a/ml-IN/images/space-size-blocks.png b/ml-IN/images/space-size-blocks.png new file mode 100644 index 000000000..1124075a4 Binary files /dev/null and b/ml-IN/images/space-size-blocks.png differ diff --git a/ml-IN/images/space-size-code.png b/ml-IN/images/space-size-code.png new file mode 100644 index 000000000..14c5d7bcc Binary files /dev/null and b/ml-IN/images/space-size-code.png differ diff --git a/ml-IN/images/space-size-test.png b/ml-IN/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/ml-IN/images/space-size-test.png differ diff --git a/ml-IN/images/space-spin-blocks.png b/ml-IN/images/space-spin-blocks.png new file mode 100644 index 000000000..ca9fd52ee Binary files /dev/null and b/ml-IN/images/space-spin-blocks.png differ diff --git a/ml-IN/images/space-spin-code.png b/ml-IN/images/space-spin-code.png new file mode 100644 index 000000000..8b3b016f9 Binary files /dev/null and b/ml-IN/images/space-spin-code.png differ diff --git a/ml-IN/images/space-spin-test.png b/ml-IN/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/ml-IN/images/space-spin-test.png differ diff --git a/ml-IN/images/space-sprites.png b/ml-IN/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/ml-IN/images/space-sprites.png differ diff --git a/ml-IN/images/space-star-blocks.png b/ml-IN/images/space-star-blocks.png new file mode 100644 index 000000000..f3b9f1e81 Binary files /dev/null and b/ml-IN/images/space-star-blocks.png differ diff --git a/ml-IN/images/space-star-code.png b/ml-IN/images/space-star-code.png new file mode 100644 index 000000000..7097d2e12 Binary files /dev/null and b/ml-IN/images/space-star-code.png differ diff --git a/ml-IN/images/space-star-sprite.png b/ml-IN/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/ml-IN/images/space-star-sprite.png differ diff --git a/ml-IN/images/space-star-test.png b/ml-IN/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/ml-IN/images/space-star-test.png differ diff --git a/ml-IN/images/sprite-earth.png b/ml-IN/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/ml-IN/images/sprite-earth.png differ diff --git a/ml-IN/images/sprite-monkey.png b/ml-IN/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/ml-IN/images/sprite-monkey.png differ diff --git a/ml-IN/images/sprite-rock.png b/ml-IN/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/ml-IN/images/sprite-rock.png differ diff --git a/ml-IN/images/sprite-spaceship.png b/ml-IN/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/ml-IN/images/sprite-spaceship.png differ diff --git a/ml-IN/images/sprite-star.png b/ml-IN/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/ml-IN/images/sprite-star.png differ diff --git a/ml-IN/images/trim_and_tile.sh b/ml-IN/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/ml-IN/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/ml-IN/meta.yml b/ml-IN/meta.yml new file mode 100644 index 000000000..b207a1b45 --- /dev/null +++ b/ml-IN/meta.yml @@ -0,0 +1,35 @@ +--- +title: Lost in space +hero_image: images/lost-in-space.png +description: Learn how to program your own animation! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introduction + - + title: Animating a spaceship + - + title: 'Challenge: improve your animation' + challenge: true + - + title: Animation using loops + completion: + - engaged + - + title: Floating monkey + - + title: Bouncing asteroid + - + title: Shining star + completion: + - internal + - + title: 'Challenge: make your own animation' + challenge: true + - + title: What next? diff --git a/ml-IN/resources/LostinSpace-Finished.sb2 b/ml-IN/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..89753817a Binary files /dev/null and b/ml-IN/resources/LostinSpace-Finished.sb2 differ diff --git a/ml-IN/scratch-translatable.txt b/ml-IN/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/ml-IN/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/ml-IN/solutions/lost-in-space-solution.sb3 b/ml-IN/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/ml-IN/solutions/lost-in-space-solution.sb3 differ diff --git a/ml-IN/step_1.md b/ml-IN/step_1.md new file mode 100644 index 000000000..bc43f86cd --- /dev/null +++ b/ml-IN/step_1.md @@ -0,0 +1,60 @@ +## Introduction + +You are going to learn how to program your own animation! + +### What you will make + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: What you will need + +### Hardware + +- A computer capable of running Scratch 3 + +### Software + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + +- None + +\--- /collapse \--- + +## \--- collapse \--- + +## title: What you will learn + +- Use a repeat loop to animate a sprite in Scratch +- Use a forever loop to repeat an animation indefinitely +- Understand that loops can be nested within each other + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Additional information for educators + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/ml-IN/step_10.md b/ml-IN/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/ml-IN/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/ml-IN/step_2.md b/ml-IN/step_2.md new file mode 100644 index 000000000..cbcdff0c6 --- /dev/null +++ b/ml-IN/step_2.md @@ -0,0 +1,72 @@ +## Animating a spaceship + +Your first step will be to create a spaceship that flies towards the Earth! + +\--- task \--- + +Open a new Scratch project. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** open a new project in the offline editor. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/ml-IN/step_3.md b/ml-IN/step_3.md new file mode 100644 index 000000000..4af9cb400 --- /dev/null +++ b/ml-IN/step_3.md @@ -0,0 +1,16 @@ +## Challenge: improve your animation + +Can you change the numbers in your animation code so that: + ++ The spaceship moves until it touches the Earth? ++ The spaceship moves more slowly towards the Earth? + +You'll need to change the numbers in this block: + +![Rocketship sprite](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/ml-IN/step_4.md b/ml-IN/step_4.md new file mode 100644 index 000000000..0e1397c55 --- /dev/null +++ b/ml-IN/step_4.md @@ -0,0 +1,126 @@ +## Animation using loops + +Another way to animate the spaceship is to tell it to move a small amount many times + +\--- task \--- + +Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testing a spaceship animation](images/space-animate-stage.png) + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Your spaceship should start at `100% size`{:class="blocklooks"}, and then `change size`{:class="blocklooks"} by a small amount each time it moves. + +\--- /hint \--- + +\--- hint \--- + +You will need to add these blocks to your code: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Your code should look like this: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/ml-IN/step_5.md b/ml-IN/step_5.md new file mode 100644 index 000000000..ab4c451b7 --- /dev/null +++ b/ml-IN/step_5.md @@ -0,0 +1,70 @@ +## Floating monkey + +Now you will add a monkey who's lost in space to your animation! + +\--- task \--- + +Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/ml-IN/step_6.md b/ml-IN/step_6.md new file mode 100644 index 000000000..729b6d975 --- /dev/null +++ b/ml-IN/step_6.md @@ -0,0 +1,59 @@ +## Bouncing asteroid + +Now you will add a floating space rock to your animation. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/ml-IN/step_7.md b/ml-IN/step_7.md new file mode 100644 index 000000000..e53504c76 --- /dev/null +++ b/ml-IN/step_7.md @@ -0,0 +1,61 @@ +## Shining star + +Now you will combine loops to make a shining star. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Star sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/ml-IN/step_8.md b/ml-IN/step_8.md new file mode 100644 index 000000000..841b139ec --- /dev/null +++ b/ml-IN/step_8.md @@ -0,0 +1,7 @@ +## Challenge: make your own animation + +Stop your space animation, save it, and start a new Scratch project. + +Use what you've learned in this project to make your own animation. It can be anything you like, but try to make your animation match the background you choose. Here are some examples: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/ml-IN/step_9.md b/ml-IN/step_9.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/ml-IN/step_9.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/mr-IN/images/banner.png b/mr-IN/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/mr-IN/images/banner.png differ diff --git a/mr-IN/images/ghostbusters-static.png b/mr-IN/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/mr-IN/images/ghostbusters-static.png differ diff --git a/mr-IN/images/lost-in-space.png b/mr-IN/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/mr-IN/images/lost-in-space.png differ diff --git a/mr-IN/images/make-white.png b/mr-IN/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/mr-IN/images/make-white.png differ diff --git a/mr-IN/images/montage-1.png b/mr-IN/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/mr-IN/images/montage-1.png differ diff --git a/mr-IN/images/montage-2.png b/mr-IN/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/mr-IN/images/montage-2.png differ diff --git a/mr-IN/images/montage-3.png b/mr-IN/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/mr-IN/images/montage-3.png differ diff --git a/mr-IN/images/showcase_static.png b/mr-IN/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/mr-IN/images/showcase_static.png differ diff --git a/mr-IN/images/space-animate-stage.png b/mr-IN/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/mr-IN/images/space-animate-stage.png differ diff --git a/mr-IN/images/space-animate.png b/mr-IN/images/space-animate.png new file mode 100644 index 000000000..46a5038ab Binary files /dev/null and b/mr-IN/images/space-animate.png differ diff --git a/mr-IN/images/space-backdrop.png b/mr-IN/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/mr-IN/images/space-backdrop.png differ diff --git a/mr-IN/images/space-bounce-blocks.png b/mr-IN/images/space-bounce-blocks.png new file mode 100644 index 000000000..9294bb7f7 Binary files /dev/null and b/mr-IN/images/space-bounce-blocks.png differ diff --git a/mr-IN/images/space-bounce-code.png b/mr-IN/images/space-bounce-code.png new file mode 100644 index 000000000..e8791d62f Binary files /dev/null and b/mr-IN/images/space-bounce-code.png differ diff --git a/mr-IN/images/space-bounce-test.png b/mr-IN/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/mr-IN/images/space-bounce-test.png differ diff --git a/mr-IN/images/space-colour-blocks.png b/mr-IN/images/space-colour-blocks.png new file mode 100644 index 000000000..54461788b Binary files /dev/null and b/mr-IN/images/space-colour-blocks.png differ diff --git a/mr-IN/images/space-colour-code.png b/mr-IN/images/space-colour-code.png new file mode 100644 index 000000000..8afbd513d Binary files /dev/null and b/mr-IN/images/space-colour-code.png differ diff --git a/mr-IN/images/space-colour-test.png b/mr-IN/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/mr-IN/images/space-colour-test.png differ diff --git a/mr-IN/images/space-costume.png b/mr-IN/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/mr-IN/images/space-costume.png differ diff --git a/mr-IN/images/space-delete-glide.png b/mr-IN/images/space-delete-glide.png new file mode 100644 index 000000000..1d6fe71a9 Binary files /dev/null and b/mr-IN/images/space-delete-glide.png differ diff --git a/mr-IN/images/space-egs.png b/mr-IN/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/mr-IN/images/space-egs.png differ diff --git a/mr-IN/images/space-glide.png b/mr-IN/images/space-glide.png new file mode 100644 index 000000000..c04d7bfa9 Binary files /dev/null and b/mr-IN/images/space-glide.png differ diff --git a/mr-IN/images/space-initial-position.png b/mr-IN/images/space-initial-position.png new file mode 100644 index 000000000..260fa4f54 Binary files /dev/null and b/mr-IN/images/space-initial-position.png differ diff --git a/mr-IN/images/space-monkey-edit.png b/mr-IN/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/mr-IN/images/space-monkey-edit.png differ diff --git a/mr-IN/images/space-monkey-sprite.png b/mr-IN/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/mr-IN/images/space-monkey-sprite.png differ diff --git a/mr-IN/images/space-repeat-blocks.png b/mr-IN/images/space-repeat-blocks.png new file mode 100644 index 000000000..287663af6 Binary files /dev/null and b/mr-IN/images/space-repeat-blocks.png differ diff --git a/mr-IN/images/space-repeat-code.png b/mr-IN/images/space-repeat-code.png new file mode 100644 index 000000000..9800ca99d Binary files /dev/null and b/mr-IN/images/space-repeat-code.png differ diff --git a/mr-IN/images/space-rock-sprite.png b/mr-IN/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/mr-IN/images/space-rock-sprite.png differ diff --git a/mr-IN/images/space-rotate.png b/mr-IN/images/space-rotate.png new file mode 100644 index 000000000..916fb08f0 Binary files /dev/null and b/mr-IN/images/space-rotate.png differ diff --git a/mr-IN/images/space-size-blocks.png b/mr-IN/images/space-size-blocks.png new file mode 100644 index 000000000..1124075a4 Binary files /dev/null and b/mr-IN/images/space-size-blocks.png differ diff --git a/mr-IN/images/space-size-code.png b/mr-IN/images/space-size-code.png new file mode 100644 index 000000000..14c5d7bcc Binary files /dev/null and b/mr-IN/images/space-size-code.png differ diff --git a/mr-IN/images/space-size-test.png b/mr-IN/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/mr-IN/images/space-size-test.png differ diff --git a/mr-IN/images/space-spin-blocks.png b/mr-IN/images/space-spin-blocks.png new file mode 100644 index 000000000..ca9fd52ee Binary files /dev/null and b/mr-IN/images/space-spin-blocks.png differ diff --git a/mr-IN/images/space-spin-code.png b/mr-IN/images/space-spin-code.png new file mode 100644 index 000000000..8b3b016f9 Binary files /dev/null and b/mr-IN/images/space-spin-code.png differ diff --git a/mr-IN/images/space-spin-test.png b/mr-IN/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/mr-IN/images/space-spin-test.png differ diff --git a/mr-IN/images/space-sprites.png b/mr-IN/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/mr-IN/images/space-sprites.png differ diff --git a/mr-IN/images/space-star-blocks.png b/mr-IN/images/space-star-blocks.png new file mode 100644 index 000000000..f3b9f1e81 Binary files /dev/null and b/mr-IN/images/space-star-blocks.png differ diff --git a/mr-IN/images/space-star-code.png b/mr-IN/images/space-star-code.png new file mode 100644 index 000000000..7097d2e12 Binary files /dev/null and b/mr-IN/images/space-star-code.png differ diff --git a/mr-IN/images/space-star-sprite.png b/mr-IN/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/mr-IN/images/space-star-sprite.png differ diff --git a/mr-IN/images/space-star-test.png b/mr-IN/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/mr-IN/images/space-star-test.png differ diff --git a/mr-IN/images/sprite-earth.png b/mr-IN/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/mr-IN/images/sprite-earth.png differ diff --git a/mr-IN/images/sprite-monkey.png b/mr-IN/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/mr-IN/images/sprite-monkey.png differ diff --git a/mr-IN/images/sprite-rock.png b/mr-IN/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/mr-IN/images/sprite-rock.png differ diff --git a/mr-IN/images/sprite-spaceship.png b/mr-IN/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/mr-IN/images/sprite-spaceship.png differ diff --git a/mr-IN/images/sprite-star.png b/mr-IN/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/mr-IN/images/sprite-star.png differ diff --git a/mr-IN/images/trim_and_tile.sh b/mr-IN/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/mr-IN/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/mr-IN/meta.yml b/mr-IN/meta.yml new file mode 100644 index 000000000..8d781e41a --- /dev/null +++ b/mr-IN/meta.yml @@ -0,0 +1,35 @@ +--- +title: अंतराळात हरवले +hero_image: images/lost-in-space.png +description: आपले स्वतःचे अ‍ॅनिमेशन कसे तयार करायचे ते जाणून घ्या! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: परिचय + - + title: एक अंतराळ यान अ‍ॅनिमेट करणे + - + title: 'आव्हान : आपल्या अ‍ॅनिमेशनमध्ये सुधारणा करा' + challenge: true + - + title: आवर्ती (loops) वापरून अ‍ॅनिमेशन + completion: + - engaged + - + title: तरंगणारे माकड + - + title: उसळणारा लघुग्रह + - + title: चमकणारा तारा + completion: + - internal + - + title: 'आव्हान : आपले स्वतःचे अ‍ॅनिमेशन बनवा' + challenge: true + - + title: पुढे काय? diff --git a/mr-IN/resources/LostinSpace-Finished.sb2 b/mr-IN/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..89753817a Binary files /dev/null and b/mr-IN/resources/LostinSpace-Finished.sb2 differ diff --git a/mr-IN/scratch-translatable.txt b/mr-IN/scratch-translatable.txt new file mode 100644 index 000000000..587e39258 --- /dev/null +++ b/mr-IN/scratch-translatable.txt @@ -0,0 +1 @@ +चला diff --git a/mr-IN/solutions/lost-in-space-solution.sb3 b/mr-IN/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/mr-IN/solutions/lost-in-space-solution.sb3 differ diff --git a/mr-IN/step_1.md b/mr-IN/step_1.md new file mode 100644 index 000000000..b923daa0b --- /dev/null +++ b/mr-IN/step_1.md @@ -0,0 +1,60 @@ +## परिचय + +You are going to learn how to program your own animation! + +### आपण काय बनवणार आहात + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: आपल्याला काय हवे आहे + +### हार्डवेअर + +- Scratch 3 चालवण्यास सक्षम असलेला संगणक + +### सॉफ्टवेअर + +- Scratch 3 ([ऑनलाइन](https://rpf.io/scratchon){:target="_blank"} अथवा [ऑफलाइन](https://rpf.io/scratchoff){:target="_blank"}) + +### डाउनलोड्स + +- काहीही नाही + +\--- /collapse \--- + +## \--- collapse \--- + +## title: आपण काय शिकाल + +- Scratch मध्ये sprite एनिमेट करण्यासाठी repeat लूप वापरा +- सतत एनिमेट करण्यासाठी forever लूप वापरा +- हे समजून घ्या की लूप एकमेकांमध्ये बसू शकतात + +\--- /collapse \--- + +## \--- collapse \--- + +## title: शिक्षकांसाठी अतिरिक्त माहिती + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/mr-IN/step_10.md b/mr-IN/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/mr-IN/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/mr-IN/step_2.md b/mr-IN/step_2.md new file mode 100644 index 000000000..f97c2ca22 --- /dev/null +++ b/mr-IN/step_2.md @@ -0,0 +1,72 @@ +## एक अंतराळ यान अ‍ॅनिमेट करणे + +पृथ्वीच्या दिशेने उडणारे एक अंतराळ यान तयार करणे ही आपली पहिली पायरी असेल! + +\--- task \--- + +नवीन Scratch प्रकल्प उघडा. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**ऑफलाइन:** ऑफलाइन संपादकात नवीन प्रकल्प उघडा. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +आपल्या Stage मध्ये 'rocketship' आणि 'Earth' sprites जोडा. + +![अंतराळ यान आणि पृथ्वी चे sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +आपल्या Stage वर 'Stars' backdrop जोडा. + +![अं‍तरिक्ष backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +आपल्या अंतराळ यान sprite वर क्लिक करा, मग **Costumes** टॅबवर क्लिक करा. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +**arrow** टूल वापरून संपूर्ण अंतराळ यान प्रतिमेभोवती एक चौकट क्लिक आणि ड्रॅग करा. मग वर्तृळाकार फिरविणाऱ्या **rotate** हँडलवर क्लिक करा, आणि प्रतिमा आडवी होईपर्यंत फिरवा. + +![पोशाख फिरवत आहे](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +आपल्या अंतराळ यान sprite मध्ये हा कोड जोडा: + +![अंतराळ यान sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +आपण जोडलेल्या कोड मधील संख्या बदला जेणेकरून कोड वरील प्रमाणेच असेल. + +\--- /task \--- + +आपण हिरव्या ध्वजावर क्लिक केल्यास, अंतराळ यान बोलताना, वळताना आणि stage च्या मध्यभागी सरकताना दिसेल. + +![अंतराळ यान अ‍ॅनिमेशनची ची चाचणी](images/space-animate-stage.png) \ No newline at end of file diff --git a/mr-IN/step_3.md b/mr-IN/step_3.md new file mode 100644 index 000000000..0454915aa --- /dev/null +++ b/mr-IN/step_3.md @@ -0,0 +1,16 @@ +## आव्हान: आपल्या अ‍ॅनिमेशनमध्ये सुधार करा + +आपण आपल्या अ‍ॅनिमेशन कोडमध्ये संख्या बदलू शकता जेणेकरुन: + ++ अंतराळ यान पृथ्वीला स्पर्श होईपर्यंत सरकत राहील? ++ अंतराळ यान पृथ्वीच्या दिशेने अधिक हळूहळू सरकेल? + +आपल्याला या विभागातील संख्या बदलण्याची आवश्यकता असेलः + +![Rocketship sprite](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/mr-IN/step_4.md b/mr-IN/step_4.md new file mode 100644 index 000000000..c1bfc853b --- /dev/null +++ b/mr-IN/step_4.md @@ -0,0 +1,126 @@ +## आवर्ती (loops) वापरून अ‍ॅनिमेशन + +अंतराळ यान अ‍ॅनिमेट करण्याचा आणखी एक मार्ग म्हणजे लहान अंतर अनेक वेळा सरकण्यास सांगणे + +\--- task \--- + +आपल्या कोडमधून `glide`{:class="block3motion"} block हटवा. हे करण्यासाठी glide block कोड क्षेत्राबाहेर खेचा आणि इतर कोड blocks जेथे आहेत तेथे सोडा. + +![अंतराळ यान sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +आपले अंतराळ यान पृथ्वीच्या दिशेने हलविण्यासाठी `repeat`{:class="block3control"} block वापरा. + +![अंतराळ यान अ‍ॅनिमेशन ची चाचणी](images/space-animate-stage.png) + +![अंतराळ यान sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +आपल्या कोडची चाचणी घ्या आणि save करा. आपले अंतराळ यान पूर्वीप्रमाणेच पृथ्वीच्या दिशेने सरकले पाहिजे, परंतु यावेळी हे `repeat`{:class="block3control"} block वापरते. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Your spaceship should start at `100% size`{:class="blocklooks"}, and then `change size`{:class="blocklooks"} by a small amount each time it moves. + +\--- /hint \--- + +\--- hint \--- + +You will need to add these blocks to your code: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Your code should look like this: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/mr-IN/step_5.md b/mr-IN/step_5.md new file mode 100644 index 000000000..ab4c451b7 --- /dev/null +++ b/mr-IN/step_5.md @@ -0,0 +1,70 @@ +## Floating monkey + +Now you will add a monkey who's lost in space to your animation! + +\--- task \--- + +Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/mr-IN/step_6.md b/mr-IN/step_6.md new file mode 100644 index 000000000..729b6d975 --- /dev/null +++ b/mr-IN/step_6.md @@ -0,0 +1,59 @@ +## Bouncing asteroid + +Now you will add a floating space rock to your animation. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/mr-IN/step_7.md b/mr-IN/step_7.md new file mode 100644 index 000000000..e53504c76 --- /dev/null +++ b/mr-IN/step_7.md @@ -0,0 +1,61 @@ +## Shining star + +Now you will combine loops to make a shining star. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Star sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/mr-IN/step_8.md b/mr-IN/step_8.md new file mode 100644 index 000000000..841b139ec --- /dev/null +++ b/mr-IN/step_8.md @@ -0,0 +1,7 @@ +## Challenge: make your own animation + +Stop your space animation, save it, and start a new Scratch project. + +Use what you've learned in this project to make your own animation. It can be anything you like, but try to make your animation match the background you choose. Here are some examples: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/mr-IN/step_9.md b/mr-IN/step_9.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/mr-IN/step_9.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/ms-MY/images/banner.png b/ms-MY/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/ms-MY/images/banner.png differ diff --git a/ms-MY/images/ghostbusters-static.png b/ms-MY/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/ms-MY/images/ghostbusters-static.png differ diff --git a/ms-MY/images/lost-in-space.png b/ms-MY/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/ms-MY/images/lost-in-space.png differ diff --git a/ms-MY/images/make-white.png b/ms-MY/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/ms-MY/images/make-white.png differ diff --git a/ms-MY/images/montage-1.png b/ms-MY/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/ms-MY/images/montage-1.png differ diff --git a/ms-MY/images/montage-2.png b/ms-MY/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/ms-MY/images/montage-2.png differ diff --git a/ms-MY/images/montage-3.png b/ms-MY/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/ms-MY/images/montage-3.png differ diff --git a/ms-MY/images/showcase_static.png b/ms-MY/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/ms-MY/images/showcase_static.png differ diff --git a/ms-MY/images/space-animate-stage.png b/ms-MY/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/ms-MY/images/space-animate-stage.png differ diff --git a/ms-MY/images/space-animate.png b/ms-MY/images/space-animate.png new file mode 100644 index 000000000..46a5038ab Binary files /dev/null and b/ms-MY/images/space-animate.png differ diff --git a/ms-MY/images/space-backdrop.png b/ms-MY/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/ms-MY/images/space-backdrop.png differ diff --git a/ms-MY/images/space-bounce-blocks.png b/ms-MY/images/space-bounce-blocks.png new file mode 100644 index 000000000..9294bb7f7 Binary files /dev/null and b/ms-MY/images/space-bounce-blocks.png differ diff --git a/ms-MY/images/space-bounce-code.png b/ms-MY/images/space-bounce-code.png new file mode 100644 index 000000000..e8791d62f Binary files /dev/null and b/ms-MY/images/space-bounce-code.png differ diff --git a/ms-MY/images/space-bounce-test.png b/ms-MY/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/ms-MY/images/space-bounce-test.png differ diff --git a/ms-MY/images/space-colour-blocks.png b/ms-MY/images/space-colour-blocks.png new file mode 100644 index 000000000..54461788b Binary files /dev/null and b/ms-MY/images/space-colour-blocks.png differ diff --git a/ms-MY/images/space-colour-code.png b/ms-MY/images/space-colour-code.png new file mode 100644 index 000000000..8afbd513d Binary files /dev/null and b/ms-MY/images/space-colour-code.png differ diff --git a/ms-MY/images/space-colour-test.png b/ms-MY/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/ms-MY/images/space-colour-test.png differ diff --git a/ms-MY/images/space-costume.png b/ms-MY/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/ms-MY/images/space-costume.png differ diff --git a/ms-MY/images/space-delete-glide.png b/ms-MY/images/space-delete-glide.png new file mode 100644 index 000000000..1d6fe71a9 Binary files /dev/null and b/ms-MY/images/space-delete-glide.png differ diff --git a/ms-MY/images/space-egs.png b/ms-MY/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/ms-MY/images/space-egs.png differ diff --git a/ms-MY/images/space-glide.png b/ms-MY/images/space-glide.png new file mode 100644 index 000000000..c04d7bfa9 Binary files /dev/null and b/ms-MY/images/space-glide.png differ diff --git a/ms-MY/images/space-initial-position.png b/ms-MY/images/space-initial-position.png new file mode 100644 index 000000000..260fa4f54 Binary files /dev/null and b/ms-MY/images/space-initial-position.png differ diff --git a/ms-MY/images/space-monkey-edit.png b/ms-MY/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/ms-MY/images/space-monkey-edit.png differ diff --git a/ms-MY/images/space-monkey-sprite.png b/ms-MY/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/ms-MY/images/space-monkey-sprite.png differ diff --git a/ms-MY/images/space-repeat-blocks.png b/ms-MY/images/space-repeat-blocks.png new file mode 100644 index 000000000..287663af6 Binary files /dev/null and b/ms-MY/images/space-repeat-blocks.png differ diff --git a/ms-MY/images/space-repeat-code.png b/ms-MY/images/space-repeat-code.png new file mode 100644 index 000000000..9800ca99d Binary files /dev/null and b/ms-MY/images/space-repeat-code.png differ diff --git a/ms-MY/images/space-rock-sprite.png b/ms-MY/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/ms-MY/images/space-rock-sprite.png differ diff --git a/ms-MY/images/space-rotate.png b/ms-MY/images/space-rotate.png new file mode 100644 index 000000000..916fb08f0 Binary files /dev/null and b/ms-MY/images/space-rotate.png differ diff --git a/ms-MY/images/space-size-blocks.png b/ms-MY/images/space-size-blocks.png new file mode 100644 index 000000000..1124075a4 Binary files /dev/null and b/ms-MY/images/space-size-blocks.png differ diff --git a/ms-MY/images/space-size-code.png b/ms-MY/images/space-size-code.png new file mode 100644 index 000000000..14c5d7bcc Binary files /dev/null and b/ms-MY/images/space-size-code.png differ diff --git a/ms-MY/images/space-size-test.png b/ms-MY/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/ms-MY/images/space-size-test.png differ diff --git a/ms-MY/images/space-spin-blocks.png b/ms-MY/images/space-spin-blocks.png new file mode 100644 index 000000000..ca9fd52ee Binary files /dev/null and b/ms-MY/images/space-spin-blocks.png differ diff --git a/ms-MY/images/space-spin-code.png b/ms-MY/images/space-spin-code.png new file mode 100644 index 000000000..8b3b016f9 Binary files /dev/null and b/ms-MY/images/space-spin-code.png differ diff --git a/ms-MY/images/space-spin-test.png b/ms-MY/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/ms-MY/images/space-spin-test.png differ diff --git a/ms-MY/images/space-sprites.png b/ms-MY/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/ms-MY/images/space-sprites.png differ diff --git a/ms-MY/images/space-star-blocks.png b/ms-MY/images/space-star-blocks.png new file mode 100644 index 000000000..f3b9f1e81 Binary files /dev/null and b/ms-MY/images/space-star-blocks.png differ diff --git a/ms-MY/images/space-star-code.png b/ms-MY/images/space-star-code.png new file mode 100644 index 000000000..7097d2e12 Binary files /dev/null and b/ms-MY/images/space-star-code.png differ diff --git a/ms-MY/images/space-star-sprite.png b/ms-MY/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/ms-MY/images/space-star-sprite.png differ diff --git a/ms-MY/images/space-star-test.png b/ms-MY/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/ms-MY/images/space-star-test.png differ diff --git a/ms-MY/images/sprite-earth.png b/ms-MY/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/ms-MY/images/sprite-earth.png differ diff --git a/ms-MY/images/sprite-monkey.png b/ms-MY/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/ms-MY/images/sprite-monkey.png differ diff --git a/ms-MY/images/sprite-rock.png b/ms-MY/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/ms-MY/images/sprite-rock.png differ diff --git a/ms-MY/images/sprite-spaceship.png b/ms-MY/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/ms-MY/images/sprite-spaceship.png differ diff --git a/ms-MY/images/sprite-star.png b/ms-MY/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/ms-MY/images/sprite-star.png differ diff --git a/ms-MY/images/trim_and_tile.sh b/ms-MY/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/ms-MY/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/ms-MY/meta.yml b/ms-MY/meta.yml new file mode 100644 index 000000000..b207a1b45 --- /dev/null +++ b/ms-MY/meta.yml @@ -0,0 +1,35 @@ +--- +title: Lost in space +hero_image: images/lost-in-space.png +description: Learn how to program your own animation! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introduction + - + title: Animating a spaceship + - + title: 'Challenge: improve your animation' + challenge: true + - + title: Animation using loops + completion: + - engaged + - + title: Floating monkey + - + title: Bouncing asteroid + - + title: Shining star + completion: + - internal + - + title: 'Challenge: make your own animation' + challenge: true + - + title: What next? diff --git a/ms-MY/resources/LostinSpace-Finished.sb2 b/ms-MY/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..89753817a Binary files /dev/null and b/ms-MY/resources/LostinSpace-Finished.sb2 differ diff --git a/ms-MY/scratch-translatable.txt b/ms-MY/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/ms-MY/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/ms-MY/solutions/lost-in-space-solution.sb3 b/ms-MY/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/ms-MY/solutions/lost-in-space-solution.sb3 differ diff --git a/ms-MY/step_1.md b/ms-MY/step_1.md new file mode 100644 index 000000000..bc43f86cd --- /dev/null +++ b/ms-MY/step_1.md @@ -0,0 +1,60 @@ +## Introduction + +You are going to learn how to program your own animation! + +### What you will make + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: What you will need + +### Hardware + +- A computer capable of running Scratch 3 + +### Software + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + +- None + +\--- /collapse \--- + +## \--- collapse \--- + +## title: What you will learn + +- Use a repeat loop to animate a sprite in Scratch +- Use a forever loop to repeat an animation indefinitely +- Understand that loops can be nested within each other + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Additional information for educators + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/ms-MY/step_10.md b/ms-MY/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/ms-MY/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/ms-MY/step_2.md b/ms-MY/step_2.md new file mode 100644 index 000000000..cbcdff0c6 --- /dev/null +++ b/ms-MY/step_2.md @@ -0,0 +1,72 @@ +## Animating a spaceship + +Your first step will be to create a spaceship that flies towards the Earth! + +\--- task \--- + +Open a new Scratch project. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** open a new project in the offline editor. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/ms-MY/step_3.md b/ms-MY/step_3.md new file mode 100644 index 000000000..4af9cb400 --- /dev/null +++ b/ms-MY/step_3.md @@ -0,0 +1,16 @@ +## Challenge: improve your animation + +Can you change the numbers in your animation code so that: + ++ The spaceship moves until it touches the Earth? ++ The spaceship moves more slowly towards the Earth? + +You'll need to change the numbers in this block: + +![Rocketship sprite](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/ms-MY/step_4.md b/ms-MY/step_4.md new file mode 100644 index 000000000..0e1397c55 --- /dev/null +++ b/ms-MY/step_4.md @@ -0,0 +1,126 @@ +## Animation using loops + +Another way to animate the spaceship is to tell it to move a small amount many times + +\--- task \--- + +Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testing a spaceship animation](images/space-animate-stage.png) + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Your spaceship should start at `100% size`{:class="blocklooks"}, and then `change size`{:class="blocklooks"} by a small amount each time it moves. + +\--- /hint \--- + +\--- hint \--- + +You will need to add these blocks to your code: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Your code should look like this: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/ms-MY/step_5.md b/ms-MY/step_5.md new file mode 100644 index 000000000..ab4c451b7 --- /dev/null +++ b/ms-MY/step_5.md @@ -0,0 +1,70 @@ +## Floating monkey + +Now you will add a monkey who's lost in space to your animation! + +\--- task \--- + +Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/ms-MY/step_6.md b/ms-MY/step_6.md new file mode 100644 index 000000000..729b6d975 --- /dev/null +++ b/ms-MY/step_6.md @@ -0,0 +1,59 @@ +## Bouncing asteroid + +Now you will add a floating space rock to your animation. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/ms-MY/step_7.md b/ms-MY/step_7.md new file mode 100644 index 000000000..e53504c76 --- /dev/null +++ b/ms-MY/step_7.md @@ -0,0 +1,61 @@ +## Shining star + +Now you will combine loops to make a shining star. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Star sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/ms-MY/step_8.md b/ms-MY/step_8.md new file mode 100644 index 000000000..841b139ec --- /dev/null +++ b/ms-MY/step_8.md @@ -0,0 +1,7 @@ +## Challenge: make your own animation + +Stop your space animation, save it, and start a new Scratch project. + +Use what you've learned in this project to make your own animation. It can be anything you like, but try to make your animation match the background you choose. Here are some examples: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/ms-MY/step_9.md b/ms-MY/step_9.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/ms-MY/step_9.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/nl-NL/images/banner.png b/nl-NL/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/nl-NL/images/banner.png differ diff --git a/nl-NL/images/ghostbusters-static.png b/nl-NL/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/nl-NL/images/ghostbusters-static.png differ diff --git a/nl-NL/images/lost-in-space.png b/nl-NL/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/nl-NL/images/lost-in-space.png differ diff --git a/nl-NL/images/make-white.png b/nl-NL/images/make-white.png new file mode 100644 index 000000000..761f3e707 Binary files /dev/null and b/nl-NL/images/make-white.png differ diff --git a/nl-NL/images/montage-1.png b/nl-NL/images/montage-1.png new file mode 100644 index 000000000..00883ebe0 Binary files /dev/null and b/nl-NL/images/montage-1.png differ diff --git a/nl-NL/images/montage-2.png b/nl-NL/images/montage-2.png new file mode 100644 index 000000000..9b70162a1 Binary files /dev/null and b/nl-NL/images/montage-2.png differ diff --git a/nl-NL/images/montage-3.png b/nl-NL/images/montage-3.png new file mode 100644 index 000000000..3bdf5b4dd Binary files /dev/null and b/nl-NL/images/montage-3.png differ diff --git a/nl-NL/images/showcase_static.png b/nl-NL/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/nl-NL/images/showcase_static.png differ diff --git a/nl-NL/images/space-animate-stage.png b/nl-NL/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/nl-NL/images/space-animate-stage.png differ diff --git a/nl-NL/images/space-animate.png b/nl-NL/images/space-animate.png new file mode 100644 index 000000000..426c3bf91 Binary files /dev/null and b/nl-NL/images/space-animate.png differ diff --git a/nl-NL/images/space-backdrop.png b/nl-NL/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/nl-NL/images/space-backdrop.png differ diff --git a/nl-NL/images/space-bounce-blocks.png b/nl-NL/images/space-bounce-blocks.png new file mode 100644 index 000000000..9084e769a Binary files /dev/null and b/nl-NL/images/space-bounce-blocks.png differ diff --git a/nl-NL/images/space-bounce-code.png b/nl-NL/images/space-bounce-code.png new file mode 100644 index 000000000..1b1107601 Binary files /dev/null and b/nl-NL/images/space-bounce-code.png differ diff --git a/nl-NL/images/space-bounce-test.png b/nl-NL/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/nl-NL/images/space-bounce-test.png differ diff --git a/nl-NL/images/space-colour-blocks.png b/nl-NL/images/space-colour-blocks.png new file mode 100644 index 000000000..29252e421 Binary files /dev/null and b/nl-NL/images/space-colour-blocks.png differ diff --git a/nl-NL/images/space-colour-code.png b/nl-NL/images/space-colour-code.png new file mode 100644 index 000000000..3614cec04 Binary files /dev/null and b/nl-NL/images/space-colour-code.png differ diff --git a/nl-NL/images/space-colour-test.png b/nl-NL/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/nl-NL/images/space-colour-test.png differ diff --git a/nl-NL/images/space-costume.png b/nl-NL/images/space-costume.png new file mode 100644 index 000000000..2d3d5658a Binary files /dev/null and b/nl-NL/images/space-costume.png differ diff --git a/nl-NL/images/space-delete-glide.png b/nl-NL/images/space-delete-glide.png new file mode 100644 index 000000000..c8fa61a0a Binary files /dev/null and b/nl-NL/images/space-delete-glide.png differ diff --git a/nl-NL/images/space-egs.png b/nl-NL/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/nl-NL/images/space-egs.png differ diff --git a/nl-NL/images/space-glide.png b/nl-NL/images/space-glide.png new file mode 100644 index 000000000..b0cd72f1e Binary files /dev/null and b/nl-NL/images/space-glide.png differ diff --git a/nl-NL/images/space-initial-position.png b/nl-NL/images/space-initial-position.png new file mode 100644 index 000000000..0241f6412 Binary files /dev/null and b/nl-NL/images/space-initial-position.png differ diff --git a/nl-NL/images/space-monkey-edit.png b/nl-NL/images/space-monkey-edit.png new file mode 100644 index 000000000..50ec0ae91 Binary files /dev/null and b/nl-NL/images/space-monkey-edit.png differ diff --git a/nl-NL/images/space-monkey-sprite.png b/nl-NL/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/nl-NL/images/space-monkey-sprite.png differ diff --git a/nl-NL/images/space-repeat-blocks.png b/nl-NL/images/space-repeat-blocks.png new file mode 100644 index 000000000..686d0e630 Binary files /dev/null and b/nl-NL/images/space-repeat-blocks.png differ diff --git a/nl-NL/images/space-repeat-code.png b/nl-NL/images/space-repeat-code.png new file mode 100644 index 000000000..27439cce8 Binary files /dev/null and b/nl-NL/images/space-repeat-code.png differ diff --git a/nl-NL/images/space-rock-sprite.png b/nl-NL/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/nl-NL/images/space-rock-sprite.png differ diff --git a/nl-NL/images/space-rotate.png b/nl-NL/images/space-rotate.png new file mode 100644 index 000000000..741545e36 Binary files /dev/null and b/nl-NL/images/space-rotate.png differ diff --git a/nl-NL/images/space-size-blocks.png b/nl-NL/images/space-size-blocks.png new file mode 100644 index 000000000..a8ad60691 Binary files /dev/null and b/nl-NL/images/space-size-blocks.png differ diff --git a/nl-NL/images/space-size-code.png b/nl-NL/images/space-size-code.png new file mode 100644 index 000000000..268ce96c7 Binary files /dev/null and b/nl-NL/images/space-size-code.png differ diff --git a/nl-NL/images/space-size-test.png b/nl-NL/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/nl-NL/images/space-size-test.png differ diff --git a/nl-NL/images/space-spin-blocks.png b/nl-NL/images/space-spin-blocks.png new file mode 100644 index 000000000..5d632e244 Binary files /dev/null and b/nl-NL/images/space-spin-blocks.png differ diff --git a/nl-NL/images/space-spin-code.png b/nl-NL/images/space-spin-code.png new file mode 100644 index 000000000..203cf32be Binary files /dev/null and b/nl-NL/images/space-spin-code.png differ diff --git a/nl-NL/images/space-spin-test.png b/nl-NL/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/nl-NL/images/space-spin-test.png differ diff --git a/nl-NL/images/space-sprites.png b/nl-NL/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/nl-NL/images/space-sprites.png differ diff --git a/nl-NL/images/space-star-blocks.png b/nl-NL/images/space-star-blocks.png new file mode 100644 index 000000000..03ad4ea9c Binary files /dev/null and b/nl-NL/images/space-star-blocks.png differ diff --git a/nl-NL/images/space-star-code.png b/nl-NL/images/space-star-code.png new file mode 100644 index 000000000..ee8f74cd9 Binary files /dev/null and b/nl-NL/images/space-star-code.png differ diff --git a/nl-NL/images/space-star-sprite.png b/nl-NL/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/nl-NL/images/space-star-sprite.png differ diff --git a/nl-NL/images/space-star-test.png b/nl-NL/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/nl-NL/images/space-star-test.png differ diff --git a/nl-NL/images/sprite-earth.png b/nl-NL/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/nl-NL/images/sprite-earth.png differ diff --git a/nl-NL/images/sprite-monkey.png b/nl-NL/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/nl-NL/images/sprite-monkey.png differ diff --git a/nl-NL/images/sprite-rock.png b/nl-NL/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/nl-NL/images/sprite-rock.png differ diff --git a/nl-NL/images/sprite-spaceship.png b/nl-NL/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/nl-NL/images/sprite-spaceship.png differ diff --git a/nl-NL/images/sprite-star.png b/nl-NL/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/nl-NL/images/sprite-star.png differ diff --git a/nl-NL/images/trim_and_tile.sh b/nl-NL/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/nl-NL/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/nl-NL/meta.yml b/nl-NL/meta.yml new file mode 100644 index 000000000..2737f8f49 --- /dev/null +++ b/nl-NL/meta.yml @@ -0,0 +1,35 @@ +--- +title: Verdwaald in de ruimte +hero_image: images/lost-in-space.png +description: Leer hoe je jouw eigen animatie kunt programmeren! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 26-09-2018 +steps: + - + title: Inleiding + - + title: Een ruimteschip maken + - + title: 'Uitdaging: je animatie verbeteren' + challenge: true + - + title: Animatie die zich steeds herhaalt + completion: + - engaged + - + title: Zwevende aap + - + title: Stuiterende asteroïde + - + title: Flonkerende ster + completion: + - internal + - + title: 'Uitdaging: maak je eigen animatie' + challenge: true + - + title: Wat nu? diff --git a/nl-NL/resources/LostinSpace-Finished.sb2 b/nl-NL/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..a1b29ed9e Binary files /dev/null and b/nl-NL/resources/LostinSpace-Finished.sb2 differ diff --git a/nl-NL/scratch-translatable.txt b/nl-NL/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/nl-NL/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/nl-NL/solutions/lost-in-space-solution.sb3 b/nl-NL/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..11c9ff2a0 Binary files /dev/null and b/nl-NL/solutions/lost-in-space-solution.sb3 differ diff --git a/nl-NL/step_1.md b/nl-NL/step_1.md new file mode 100644 index 000000000..af92e8524 --- /dev/null +++ b/nl-NL/step_1.md @@ -0,0 +1,60 @@ +## Inleiding + +You are going to learn how to program your own animation! + +### Wat je gaat maken + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: Wat heb je nodig + +### Hardware + +- Een computer die Scratch 3 kan uitvoeren + +### Software + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + +- Geen + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Wat ga je leren + +- Gebruik een herhaal-lus om een sprite in Scratch te laten bewegen +- Gebruik een herhaal-lus om een animatie oneindig te herhalen +- Begrijp dat een nieuwe lus in een voorgaande lus kan staan + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Aanvullende informatie voor docenten + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/nl-NL/step_10.md b/nl-NL/step_10.md new file mode 100644 index 000000000..07a2e3f4f --- /dev/null +++ b/nl-NL/step_10.md @@ -0,0 +1,18 @@ +## Wat nu? + +Probeer het [Spokenjagers](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In dat project leer je hoe je een spel maakt met spoken die overal verschijnen en die je moet vangen. Je leert ook hoe je een tijdklok en een score toevoegt aan het spel, zodat je kan zien hoeveel spoken je kan vangen. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/nl-NL/step_2.md b/nl-NL/step_2.md new file mode 100644 index 000000000..00aba539e --- /dev/null +++ b/nl-NL/step_2.md @@ -0,0 +1,72 @@ +## Een ruimteschip maken + +Laten we beginnen met het maken van een ruimteschip dat naar de aarde vliegt! + +\--- task \--- + +Open een nieuw Scratch project. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** open een nieuw project in de offline editor. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Voeg de 'Rocketship' en 'Earth' sprites toe aan je speelveld. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Voeg de achtergrond 'Stars' toe aan je werkgebied. + +![De ruimte als achtergrond](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Klik eerst op de sprite van je ruimteschip en klik vervolgens op de tab **Uiterlijken**. + +![Sprite uiterlijk](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Gebruik het **pijl**-gereedschap om te klikken en een rechthoek om de hele ruimteschipafbeelding te slepen. Klik dan op het **draai**-hendeltje, en draai de afbeelding tot die op zijn kant ligt. + +![Een uiterlijk draaien](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Voeg deze code toe aan de sprite van je ruimteschip: + +![Ruimteschip sprite](images/sprite-spaceship.png) + +```blocks3 +wanneer groene vlag wordt aangeklikt +richt naar (0) graden +ga naar x: (-150) y: (-150) +zeg [We gaan!] (2) sec. +richt naar (Earth v) +schuif in (1) sec. naar x: (0) y: (0) +``` + +Wijzig de getallen in de codeblokken die je hebt toevoegd, zodat de code precies hetzelfde is als hierboven. + +\--- /task \--- + +Als je op de groene vlag klikt zie je het ruimteschip praten, draaien en naar het midden van het speelveld zweven. + +![Een ruimteschip-animatie testen](images/space-animate-stage.png) \ No newline at end of file diff --git a/nl-NL/step_3.md b/nl-NL/step_3.md new file mode 100644 index 000000000..6f3ef304b --- /dev/null +++ b/nl-NL/step_3.md @@ -0,0 +1,16 @@ +## Een ruimteschip animeren + +Kun je de getallen in je animatiecode wijzigen, zodat: + ++ Het ruimteschip beweegt totdat het de aarde raakt? ++ Het ruimteschip zich langzamer naar de aarde beweegt? + +Je zult de getallen in dit blok moeten wijzigen: + +![Ruimteschip sprite](images/sprite-spaceship.png) + +```blocks3 +schuif in (1) sec. naar x: (0) y: (0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/nl-NL/step_4.md b/nl-NL/step_4.md new file mode 100644 index 000000000..57454f238 --- /dev/null +++ b/nl-NL/step_4.md @@ -0,0 +1,125 @@ +## Animatie met lussen + +Een andere manier om het ruimteschip te laten bewegen is door te vertellen dat het vele kleine stapjes moet zetten + +\--- task \--- + +Verwijder het `schuif`{:class="block3motion"} blok uit je code. Dit kun je doen door het blok uit het codegebied te slepen, om het vervolgens neer te zetten in het gebied met de losse codeblokken. + +![Ruimteschip sprite](images/sprite-spaceship.png) + +```blocks3 +wanneer groene vlag wordt aangeklikt +richt naar (0) graden +ga naar x: (-150) y: (-150) +zeg [We gaan!] (2) sec. +richt naar (Earth v) + +- schuif in (1) sec. naar x: (0) y: (0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Een ruimteschip-animatie testen](images/space-animate-stage.png) + +![Ruimteschip sprite](images/sprite-spaceship.png) + +```blocks3 +wanneer groene vlag wordt aangeklikt +richt naar (0) graden +ga naar x: (-150) y: (-150) +zeg [We gaan!] (2) sec. +richt naar (Aarde v) + ++ herhaal (200) + maak (2) stappen +``` + +Test en bewaar je code. Je ruimteschip zou nog steeds naar de aarde moeten bewegen, maar nu met een `herhaal`{:class="block3control"}-blok. + +\--- /task \--- + +\--- task \--- + +Voeg vervolgens code toe aan je ruimteschip sprite, zodat het ruimteschip van kleur verandert terwijl het naar de aarde beweegt? + +Gebruik dit blok: + +![Ruimteschip sprite](images/sprite-spaceship.png) + +```blocks3 +wanneer groene vlag wordt aangeklikt +richt naar (0) graden +ga naar x: (-150) y: (-150) +zeg [We gaan!] (2) sec. +richt naar (Aarde v) +herhaal (200) + maak (2) stappen ++ verander [kleur v] -effect met (25) +``` + +Test en sla je code op. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Kan je je ruimteschip kleiner maken naarmate het dichter naar de aarde toe beweegt? + +\--- hints \--- + +\--- hint \--- + +Je ruimteschip moet starten op `100% grootte`{:class="block3looks"}, en vervolgens `verander grootte`{:class="block3looks"} met een klein beetje veranderen, telkens wanneer het beweegt. + +\--- /hint \--- + +\--- hint \--- + +Je moet deze blokken toevoegen aan je code: + +![Ruimteschip sprite](images/sprite-spaceship.png) + +```blocks3 +verander grootte met (10) + +maak grootte (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Je code zou er als volgt uit moeten zien: + +![Ruimteschip sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test en bewaar je code. Je ruimteschip zou nu kleiner moeten worden als het beweegt. Test je ruimteschip een **tweede keer**. Heeft het de juiste grootte bij het begin? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/nl-NL/step_5.md b/nl-NL/step_5.md new file mode 100644 index 000000000..5caab8e4e --- /dev/null +++ b/nl-NL/step_5.md @@ -0,0 +1,70 @@ +## Zwevende aap + +Nu voeg je aan je animatie een aap toe, die verdwaald is in de ruimte! + +\--- task \--- + +Begin met het toevoegen van de 'monkey'-sprite uit de bibliotheek. + +![Een aap-sprite toevoegen](images/space-monkey-sprite.png) + +\--- /task \--- + +Klik op de nieuwe aap-sprite en daarna op **Uiterlijken** om het uiterlijk van de aap aan te passen. + +\--- task \--- + +Stel een doorzichtige opvulling in door de rode lijn te selecteren. Stel een witte rand in door de Verzadiging naar `0` te schuiven. + +![Witte kleur instellen](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Klik op het **Cirkel** gereedschap en gebruik dit om een witte ruimtehelm rond het hoofd van de aap te tekenen. + +![Ruimtehelm voor de aap](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Kun je code aan je monkey-sprite toevoegen, zodat die de hele tijd langzaam in een cirkel ronddraait? + +\--- hints \--- \--- hint \--- + +Wanneer de **groene vlag wordt aangeklikt** zou je aap-sprite steeds weer **herhaal**de rondjes moeten blijven **draai**en. + +\--- /hint \--- \--- hint \--- + +Dit zijn de codeblokken die je nodig hebt: + +```blocks3 +herhaal +einde + +draai rechtsom (15) graden + +wanneer op groene vlag wordt geklikt +``` + +\--- /hint \--- \--- hint \--- + +Dit is de code om je aap te laten ronddraaien: + +![Aap-sprite](images/sprite-monkey.png) + +```blocks3 +wanneer groene vlag wordt aangeklikt +herhaal +draai (1) graad rechtsom +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test en bewaar je project. Druk op de rode **stop**-knop om de animatie te stoppen, anders blijft hij maar doorgaan! + +![Test de ronddraaiende aap](images/space-spin-test.png) \ No newline at end of file diff --git a/nl-NL/step_6.md b/nl-NL/step_6.md new file mode 100644 index 000000000..4ae0810bd --- /dev/null +++ b/nl-NL/step_6.md @@ -0,0 +1,59 @@ +## Stuiterende asteroïde + +Nu ga je een zwevende ruimtesteen toevoegen aan je animatie. + +\--- task \--- + +Voeg een 'rock'-sprite toe aan je animatie. + +![Een steen-sprite toevoegen](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Kun je aan je steen-sprite code toevoegen, zodanig dat hij rondstuitert door het speelveld? + +![Een stuiterende steen testen](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +Als je op de **groene vlag klikt** zou de rots-sprite **stappen moeten zetten** en **herhaal**delijk moeten **omkeren aan de rand** van het speelveld. + +\--- /hint \--- \--- hint \--- + +Dit zijn de codeblokken die je nodig hebt: + +```blocks3 +maak (10) stappen + +keer om aan de rand + +wanneer groene vlag wordt aangeklikt + +herhaal +``` + +Je kunt een nog boeiender startrichting van de steen-sprite instellen met één van deze blokken: + +```blocks3 +draai (15) graden rechtsom + +richt naar (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Met deze code laat je de steen rondstuiteren over het speelveld: + +![Steen-sprite](images/sprite-rock.png) + +```blocks3 +wanneer groene vlag wordt aangeklikt +richt naar (Earth v) +herhaal +maak (2) stappen +keer om aan de rand +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/nl-NL/step_7.md b/nl-NL/step_7.md new file mode 100644 index 000000000..25b991a0c --- /dev/null +++ b/nl-NL/step_7.md @@ -0,0 +1,61 @@ +## Flonkerende ster + +Nu ga je verschillende lussen combineren om een fonkelende ster te maken. + +\--- task \--- + +Voeg de 'Star' sprite toe aan je speelveld. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Kun je aan je ster-sprite code toevoegen om de ster afwisselend groter en kleiner te laten worden? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +Als de **groene vlag wordt aangeklikt** kun je een paar keer met **verander grootte met** de ster groter maken en met **verander grootte met** die ook weer kleiner maken. De ster zou **herhaal**delijk groter en dan kleiner moeten worden, zodat het eruit ziet als een flonkerende ster. + +\--- /hint \--- \--- hint \--- + +Dit zijn de codeblokken die je nodig hebt: + +```blocks3 +herhaal (10) keer +end + +wanneer groene vlag wordt aangeklikt + +herhaal (10) keer +end + +verander grootte met (10) + +verander grootte met (10) + +herhaal +``` + +\--- /hint \--- \--- hint \--- + +Dit is de code die je nodig hebt om de ster groter en kleiner te maken: + +![Ster-sprite](images/sprite-star.png) + +```blocks3 +wanneer groene vlag wordt aangeklikt +herhaal +herhaal (20) keer +verander grootte met (2) +einde +herhaal (20) keer +verander grootte met (-2) +einde + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/nl-NL/step_8.md b/nl-NL/step_8.md new file mode 100644 index 000000000..f7d32d4e3 --- /dev/null +++ b/nl-NL/step_8.md @@ -0,0 +1,7 @@ +## Uitdaging: maak je eigen animatie + +Stop je ruimte-animatie, sla hem op en start een nieuw Scratch-project. + +Gebruik wat je in dit project hebt geleerd om je eigen animatie te maken. Het kan alles zijn wat je wilt, maar probeer er voor te zorgen dat de animatie past bij de achtergrond die je kiest. Hier zijn enkele voorbeelden: + +![schermafdruk](images/space-egs.png) \ No newline at end of file diff --git a/nl-NL/step_9.md b/nl-NL/step_9.md new file mode 100644 index 000000000..a603d72ed --- /dev/null +++ b/nl-NL/step_9.md @@ -0,0 +1,18 @@ +## Wat kun je verder nog doen? + +Probeer het [Spokenjagers](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In dat project leer je hoe je een spel maakt waarin de spoken overal opduiken. Vervolgens kun je de spoken gaan vangen. Je leert ook hoe je een tijdklok en een score toevoegt aan het spel, zodat je kunt zien hoeveel spoken je kan vangen en hoelang het duurde. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/no-NO/images/banner.png b/no-NO/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/no-NO/images/banner.png differ diff --git a/no-NO/images/ghostbusters-static.png b/no-NO/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/no-NO/images/ghostbusters-static.png differ diff --git a/no-NO/images/lost-in-space.png b/no-NO/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/no-NO/images/lost-in-space.png differ diff --git a/no-NO/images/make-white.png b/no-NO/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/no-NO/images/make-white.png differ diff --git a/no-NO/images/montage-1.png b/no-NO/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/no-NO/images/montage-1.png differ diff --git a/no-NO/images/montage-2.png b/no-NO/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/no-NO/images/montage-2.png differ diff --git a/no-NO/images/montage-3.png b/no-NO/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/no-NO/images/montage-3.png differ diff --git a/no-NO/images/showcase_static.png b/no-NO/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/no-NO/images/showcase_static.png differ diff --git a/no-NO/images/space-animate-stage.png b/no-NO/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/no-NO/images/space-animate-stage.png differ diff --git a/no-NO/images/space-backdrop.png b/no-NO/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/no-NO/images/space-backdrop.png differ diff --git a/no-NO/images/space-bounce-test.png b/no-NO/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/no-NO/images/space-bounce-test.png differ diff --git a/no-NO/images/space-colour-test.png b/no-NO/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/no-NO/images/space-colour-test.png differ diff --git a/no-NO/images/space-costume.png b/no-NO/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/no-NO/images/space-costume.png differ diff --git a/no-NO/images/space-egs.png b/no-NO/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/no-NO/images/space-egs.png differ diff --git a/no-NO/images/space-monkey-edit.png b/no-NO/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/no-NO/images/space-monkey-edit.png differ diff --git a/no-NO/images/space-monkey-sprite.png b/no-NO/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/no-NO/images/space-monkey-sprite.png differ diff --git a/no-NO/images/space-rock-sprite.png b/no-NO/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/no-NO/images/space-rock-sprite.png differ diff --git a/no-NO/images/space-rotate.png b/no-NO/images/space-rotate.png new file mode 100644 index 000000000..916fb08f0 Binary files /dev/null and b/no-NO/images/space-rotate.png differ diff --git a/no-NO/images/space-size-test.png b/no-NO/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/no-NO/images/space-size-test.png differ diff --git a/no-NO/images/space-spin-test.png b/no-NO/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/no-NO/images/space-spin-test.png differ diff --git a/no-NO/images/space-sprites.png b/no-NO/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/no-NO/images/space-sprites.png differ diff --git a/no-NO/images/space-star-sprite.png b/no-NO/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/no-NO/images/space-star-sprite.png differ diff --git a/no-NO/images/sprite-earth.png b/no-NO/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/no-NO/images/sprite-earth.png differ diff --git a/no-NO/images/sprite-monkey.png b/no-NO/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/no-NO/images/sprite-monkey.png differ diff --git a/no-NO/images/sprite-rock.png b/no-NO/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/no-NO/images/sprite-rock.png differ diff --git a/no-NO/images/sprite-spaceship.png b/no-NO/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/no-NO/images/sprite-spaceship.png differ diff --git a/no-NO/images/sprite-star.png b/no-NO/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/no-NO/images/sprite-star.png differ diff --git a/no-NO/images/trim_and_tile.sh b/no-NO/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/no-NO/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/no-NO/meta.yml b/no-NO/meta.yml new file mode 100644 index 000000000..b207a1b45 --- /dev/null +++ b/no-NO/meta.yml @@ -0,0 +1,35 @@ +--- +title: Lost in space +hero_image: images/lost-in-space.png +description: Learn how to program your own animation! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introduction + - + title: Animating a spaceship + - + title: 'Challenge: improve your animation' + challenge: true + - + title: Animation using loops + completion: + - engaged + - + title: Floating monkey + - + title: Bouncing asteroid + - + title: Shining star + completion: + - internal + - + title: 'Challenge: make your own animation' + challenge: true + - + title: What next? diff --git a/no-NO/scratch-translatable.txt b/no-NO/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/no-NO/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/no-NO/solutions/lost-in-space-solution.sb3 b/no-NO/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/no-NO/solutions/lost-in-space-solution.sb3 differ diff --git a/no-NO/step_1.md b/no-NO/step_1.md new file mode 100644 index 000000000..bc43f86cd --- /dev/null +++ b/no-NO/step_1.md @@ -0,0 +1,60 @@ +## Introduction + +You are going to learn how to program your own animation! + +### What you will make + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: What you will need + +### Hardware + +- A computer capable of running Scratch 3 + +### Software + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + +- None + +\--- /collapse \--- + +## \--- collapse \--- + +## title: What you will learn + +- Use a repeat loop to animate a sprite in Scratch +- Use a forever loop to repeat an animation indefinitely +- Understand that loops can be nested within each other + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Additional information for educators + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/no-NO/step_10.md b/no-NO/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/no-NO/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/no-NO/step_2.md b/no-NO/step_2.md new file mode 100644 index 000000000..cbcdff0c6 --- /dev/null +++ b/no-NO/step_2.md @@ -0,0 +1,72 @@ +## Animating a spaceship + +Your first step will be to create a spaceship that flies towards the Earth! + +\--- task \--- + +Open a new Scratch project. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** open a new project in the offline editor. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/no-NO/step_3.md b/no-NO/step_3.md new file mode 100644 index 000000000..4af9cb400 --- /dev/null +++ b/no-NO/step_3.md @@ -0,0 +1,16 @@ +## Challenge: improve your animation + +Can you change the numbers in your animation code so that: + ++ The spaceship moves until it touches the Earth? ++ The spaceship moves more slowly towards the Earth? + +You'll need to change the numbers in this block: + +![Rocketship sprite](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/no-NO/step_4.md b/no-NO/step_4.md new file mode 100644 index 000000000..0e1397c55 --- /dev/null +++ b/no-NO/step_4.md @@ -0,0 +1,126 @@ +## Animation using loops + +Another way to animate the spaceship is to tell it to move a small amount many times + +\--- task \--- + +Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testing a spaceship animation](images/space-animate-stage.png) + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Your spaceship should start at `100% size`{:class="blocklooks"}, and then `change size`{:class="blocklooks"} by a small amount each time it moves. + +\--- /hint \--- + +\--- hint \--- + +You will need to add these blocks to your code: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Your code should look like this: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/no-NO/step_5.md b/no-NO/step_5.md new file mode 100644 index 000000000..ab4c451b7 --- /dev/null +++ b/no-NO/step_5.md @@ -0,0 +1,70 @@ +## Floating monkey + +Now you will add a monkey who's lost in space to your animation! + +\--- task \--- + +Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/no-NO/step_6.md b/no-NO/step_6.md new file mode 100644 index 000000000..729b6d975 --- /dev/null +++ b/no-NO/step_6.md @@ -0,0 +1,59 @@ +## Bouncing asteroid + +Now you will add a floating space rock to your animation. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/no-NO/step_7.md b/no-NO/step_7.md new file mode 100644 index 000000000..e53504c76 --- /dev/null +++ b/no-NO/step_7.md @@ -0,0 +1,61 @@ +## Shining star + +Now you will combine loops to make a shining star. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Star sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/no-NO/step_8.md b/no-NO/step_8.md new file mode 100644 index 000000000..841b139ec --- /dev/null +++ b/no-NO/step_8.md @@ -0,0 +1,7 @@ +## Challenge: make your own animation + +Stop your space animation, save it, and start a new Scratch project. + +Use what you've learned in this project to make your own animation. It can be anything you like, but try to make your animation match the background you choose. Here are some examples: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/no-NO/step_9.md b/no-NO/step_9.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/no-NO/step_9.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/pl-PL/images/banner.png b/pl-PL/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/pl-PL/images/banner.png differ diff --git a/pl-PL/images/ghostbusters-static.png b/pl-PL/images/ghostbusters-static.png new file mode 100644 index 000000000..1acf8c601 Binary files /dev/null and b/pl-PL/images/ghostbusters-static.png differ diff --git a/pl-PL/images/lost-in-space.png b/pl-PL/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/pl-PL/images/lost-in-space.png differ diff --git a/pl-PL/images/make-white.png b/pl-PL/images/make-white.png new file mode 100644 index 000000000..6f1f91633 Binary files /dev/null and b/pl-PL/images/make-white.png differ diff --git a/pl-PL/images/montage-1.png b/pl-PL/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/pl-PL/images/montage-1.png differ diff --git a/pl-PL/images/montage-2.png b/pl-PL/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/pl-PL/images/montage-2.png differ diff --git a/pl-PL/images/montage-3.png b/pl-PL/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/pl-PL/images/montage-3.png differ diff --git a/pl-PL/images/showcase_static.png b/pl-PL/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/pl-PL/images/showcase_static.png differ diff --git a/pl-PL/images/space-animate-stage.png b/pl-PL/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/pl-PL/images/space-animate-stage.png differ diff --git a/pl-PL/images/space-animate.png b/pl-PL/images/space-animate.png new file mode 100644 index 000000000..46a5038ab Binary files /dev/null and b/pl-PL/images/space-animate.png differ diff --git a/pl-PL/images/space-backdrop.png b/pl-PL/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/pl-PL/images/space-backdrop.png differ diff --git a/pl-PL/images/space-bounce-blocks.png b/pl-PL/images/space-bounce-blocks.png new file mode 100644 index 000000000..9294bb7f7 Binary files /dev/null and b/pl-PL/images/space-bounce-blocks.png differ diff --git a/pl-PL/images/space-bounce-code.png b/pl-PL/images/space-bounce-code.png new file mode 100644 index 000000000..e8791d62f Binary files /dev/null and b/pl-PL/images/space-bounce-code.png differ diff --git a/pl-PL/images/space-bounce-test.png b/pl-PL/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/pl-PL/images/space-bounce-test.png differ diff --git a/pl-PL/images/space-colour-blocks.png b/pl-PL/images/space-colour-blocks.png new file mode 100644 index 000000000..54461788b Binary files /dev/null and b/pl-PL/images/space-colour-blocks.png differ diff --git a/pl-PL/images/space-colour-code.png b/pl-PL/images/space-colour-code.png new file mode 100644 index 000000000..8afbd513d Binary files /dev/null and b/pl-PL/images/space-colour-code.png differ diff --git a/pl-PL/images/space-colour-test.png b/pl-PL/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/pl-PL/images/space-colour-test.png differ diff --git a/pl-PL/images/space-costume.png b/pl-PL/images/space-costume.png new file mode 100644 index 000000000..b67748ce3 Binary files /dev/null and b/pl-PL/images/space-costume.png differ diff --git a/pl-PL/images/space-delete-glide.png b/pl-PL/images/space-delete-glide.png new file mode 100644 index 000000000..1d6fe71a9 Binary files /dev/null and b/pl-PL/images/space-delete-glide.png differ diff --git a/pl-PL/images/space-egs.png b/pl-PL/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/pl-PL/images/space-egs.png differ diff --git a/pl-PL/images/space-glide.png b/pl-PL/images/space-glide.png new file mode 100644 index 000000000..c04d7bfa9 Binary files /dev/null and b/pl-PL/images/space-glide.png differ diff --git a/pl-PL/images/space-initial-position.png b/pl-PL/images/space-initial-position.png new file mode 100644 index 000000000..260fa4f54 Binary files /dev/null and b/pl-PL/images/space-initial-position.png differ diff --git a/pl-PL/images/space-monkey-edit.png b/pl-PL/images/space-monkey-edit.png new file mode 100644 index 000000000..dec1f27c8 Binary files /dev/null and b/pl-PL/images/space-monkey-edit.png differ diff --git a/pl-PL/images/space-monkey-sprite.png b/pl-PL/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/pl-PL/images/space-monkey-sprite.png differ diff --git a/pl-PL/images/space-repeat-blocks.png b/pl-PL/images/space-repeat-blocks.png new file mode 100644 index 000000000..287663af6 Binary files /dev/null and b/pl-PL/images/space-repeat-blocks.png differ diff --git a/pl-PL/images/space-repeat-code.png b/pl-PL/images/space-repeat-code.png new file mode 100644 index 000000000..9800ca99d Binary files /dev/null and b/pl-PL/images/space-repeat-code.png differ diff --git a/pl-PL/images/space-rock-sprite.png b/pl-PL/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/pl-PL/images/space-rock-sprite.png differ diff --git a/pl-PL/images/space-rotate.png b/pl-PL/images/space-rotate.png new file mode 100644 index 000000000..2e97f6baf Binary files /dev/null and b/pl-PL/images/space-rotate.png differ diff --git a/pl-PL/images/space-size-blocks.png b/pl-PL/images/space-size-blocks.png new file mode 100644 index 000000000..1124075a4 Binary files /dev/null and b/pl-PL/images/space-size-blocks.png differ diff --git a/pl-PL/images/space-size-code.png b/pl-PL/images/space-size-code.png new file mode 100644 index 000000000..14c5d7bcc Binary files /dev/null and b/pl-PL/images/space-size-code.png differ diff --git a/pl-PL/images/space-size-test.png b/pl-PL/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/pl-PL/images/space-size-test.png differ diff --git a/pl-PL/images/space-spin-blocks.png b/pl-PL/images/space-spin-blocks.png new file mode 100644 index 000000000..ca9fd52ee Binary files /dev/null and b/pl-PL/images/space-spin-blocks.png differ diff --git a/pl-PL/images/space-spin-code.png b/pl-PL/images/space-spin-code.png new file mode 100644 index 000000000..8b3b016f9 Binary files /dev/null and b/pl-PL/images/space-spin-code.png differ diff --git a/pl-PL/images/space-spin-test.png b/pl-PL/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/pl-PL/images/space-spin-test.png differ diff --git a/pl-PL/images/space-sprites.png b/pl-PL/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/pl-PL/images/space-sprites.png differ diff --git a/pl-PL/images/space-star-blocks.png b/pl-PL/images/space-star-blocks.png new file mode 100644 index 000000000..f3b9f1e81 Binary files /dev/null and b/pl-PL/images/space-star-blocks.png differ diff --git a/pl-PL/images/space-star-code.png b/pl-PL/images/space-star-code.png new file mode 100644 index 000000000..7097d2e12 Binary files /dev/null and b/pl-PL/images/space-star-code.png differ diff --git a/pl-PL/images/space-star-sprite.png b/pl-PL/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/pl-PL/images/space-star-sprite.png differ diff --git a/pl-PL/images/space-star-test.png b/pl-PL/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/pl-PL/images/space-star-test.png differ diff --git a/pl-PL/images/sprite-earth.png b/pl-PL/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/pl-PL/images/sprite-earth.png differ diff --git a/pl-PL/images/sprite-monkey.png b/pl-PL/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/pl-PL/images/sprite-monkey.png differ diff --git a/pl-PL/images/sprite-rock.png b/pl-PL/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/pl-PL/images/sprite-rock.png differ diff --git a/pl-PL/images/sprite-spaceship.png b/pl-PL/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/pl-PL/images/sprite-spaceship.png differ diff --git a/pl-PL/images/sprite-star.png b/pl-PL/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/pl-PL/images/sprite-star.png differ diff --git a/pl-PL/images/trim_and_tile.sh b/pl-PL/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/pl-PL/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/pl-PL/meta.yml b/pl-PL/meta.yml new file mode 100644 index 000000000..d58c3e6f1 --- /dev/null +++ b/pl-PL/meta.yml @@ -0,0 +1,35 @@ +--- +title: Zagubiona w kosmosie +hero_image: images/lost-in-space.png +description: Naucz się, jak zaprogramować swoją własną animację! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Wprowadzenie + - + title: Animowanie statku kosmicznego + - + title: 'Wyzwanie: popraw swoją animację' + challenge: true + - + title: Animacja za pomocą pętli + completion: + - engaged + - + title: Pływająca małpa + - + title: Odbijająca się asteroida + - + title: Błyszcząca gwiazda + completion: + - internal + - + title: 'Wyzwanie: zrób własną animację' + challenge: true + - + title: Co dalej? diff --git a/pl-PL/resources/LostinSpace-Finished.sb2 b/pl-PL/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..89753817a Binary files /dev/null and b/pl-PL/resources/LostinSpace-Finished.sb2 differ diff --git a/pl-PL/scratch-translatable.txt b/pl-PL/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/pl-PL/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/pl-PL/solutions/lost-in-space-solution.sb3 b/pl-PL/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..75a067cf5 Binary files /dev/null and b/pl-PL/solutions/lost-in-space-solution.sb3 differ diff --git a/pl-PL/step_1.md b/pl-PL/step_1.md new file mode 100644 index 000000000..0d21aafbc --- /dev/null +++ b/pl-PL/step_1.md @@ -0,0 +1,60 @@ +## Wprowadzenie + +You are going to learn how to program your own animation! + +### Co będziesz robił + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: Czego będziesz potrzebować + +### Sprzęt + +- Komputer, na którym można uruchomić Scratch 3 + +### Oprogramowanie + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Pliki do pobrania + +- Żadne + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Czego się nauczysz + +- Używać pętli powtarzaj żeby animować duszka w Scratchu +- Używać nieskończonej pętli aby powtarzać animację w nieskończoność +- Zrozumiesz, że pętle mogą być zagnieżdżone w sobie + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Dodatkowe informacje dla nauczycieli + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/pl-PL/step_10.md b/pl-PL/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/pl-PL/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/pl-PL/step_2.md b/pl-PL/step_2.md new file mode 100644 index 000000000..8bcc7ef56 --- /dev/null +++ b/pl-PL/step_2.md @@ -0,0 +1,72 @@ +## Animowanie statku kosmicznego + +Pierwszym krokiem będzie stworzenie statku kosmicznego lecącego w kierunku Ziemi! + +\--- task \--- + +Otwórz nowy projekt Scratch. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** otwórz nowy projekt w edytorze offline. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +kiedy flaga kliknięta +ustaw kierunek na (0) +idź do x: (- 150) y: (- 150) +powiedz [Chodźmy] przez (2) sekundy +ustaw w kierunku duszka (Ziemia v) +leć przez (1) sekund do x: (0) y: (0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/pl-PL/step_3.md b/pl-PL/step_3.md new file mode 100644 index 000000000..e98ffda74 --- /dev/null +++ b/pl-PL/step_3.md @@ -0,0 +1,16 @@ +## Wyzwanie: popraw swoją animację + +Czy możesz zmienić liczby w kodzie animacji, aby: + ++ Statek poruszał się, dopóki nie dotknie Ziemi? ++ Statek kosmiczny poruszał się wolniej w kierunku Ziemi? + +Będziesz musiał zmienić liczby w tym bloku: + +![Duszek Rakiety](images/sprite-spaceship.png) + +```blocks3 +leć przez (1) sekund do x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/pl-PL/step_4.md b/pl-PL/step_4.md new file mode 100644 index 000000000..d26b51f44 --- /dev/null +++ b/pl-PL/step_4.md @@ -0,0 +1,126 @@ +## Animacja za pomocą pętli + +Innym sposobem na ożywienie statku kosmicznego jest powiedzenie mu, aby przemieścił się kilkukrotnie o małą odległość + +\--- task \--- + +Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +kiedy flaga kliknięta +ustaw kierunek na (0) +idź do x: (- 150) y: (- 150) +powiedz [Chodźmy] przez (2) sekundy +ustaw duszka w kierunku (Ziemia v) + +- leć przez (1) sekund do x: (0) y: (0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testing a spaceship animation](images/space-animate-stage.png) + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +kiedy flaga kliknięta +ustaw kierunek na (0) +idź do x: (-150) y: (-150) +powiedz [Chodźmy] przez (2) sekundy +ustaw w kierunku duszka (Ziemia v) + ++ powtarzaj (200) + przesuń o (2) kroki +``` + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +kiedy flaga kliknięta +ustaw kierunek na (0) +idź do x: (-150) y: (-150) +powiedz [Chodźmy] przez (2) sekundy +ustaw w kierunku duszka (Ziemia v) ++ powtarzaj (200) + przesuń o (2) kroki + ++ zmień efekt [kolor v] o (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Your spaceship should start at `100% size`{:class="blocklooks"}, and then `change size`{:class="blocklooks"} by a small amount each time it moves. + +\--- /hint \--- + +\--- hint \--- + +You will need to add these blocks to your code: + +![Duszek Statku kosmicznego](images/sprite-spaceship.png) + +```blocks3 +zmień rozmiar o (10) + +ustaw rozmiar na (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Your code should look like this: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/pl-PL/step_5.md b/pl-PL/step_5.md new file mode 100644 index 000000000..cac8c3002 --- /dev/null +++ b/pl-PL/step_5.md @@ -0,0 +1,70 @@ +## Pływająca małpa + +Teraz dodamy małpę, która zaginęła w kosmosie do twojej animacji! + +\--- task \--- + +Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +zawsze +koniec + +obróć cw o (15) stopni + +kiedy flaga kliknięta +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +kiedy flaga kliknęta +zawsze + obróć cw o (1) stopni +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/pl-PL/step_6.md b/pl-PL/step_6.md new file mode 100644 index 000000000..e9d46e007 --- /dev/null +++ b/pl-PL/step_6.md @@ -0,0 +1,59 @@ +## Odbijająca się asteroida + +Teraz dodasz latającą asteroidę do swojej animacji. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +przesuń o (10) kroków + +jeżeli na brzegu, odbij się + +kiedy flaga kliknięta + +zawsze +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +obróć cw o (15) stopni + +ustaw w kierunku duszka (Ziemia v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +kiedy flaga kliknięta +ustaw w kierunku duszka (Ziemia v) +zawsze + przesuń o (2) kroki + jeśli na brzegu, odbij się +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/pl-PL/step_7.md b/pl-PL/step_7.md new file mode 100644 index 000000000..25e3ffe05 --- /dev/null +++ b/pl-PL/step_7.md @@ -0,0 +1,61 @@ +## Świecąca gwiazda + +Teraz wykorzystasz połączenie różnych pętli, żeby stworzyć świecącą gwiazdę. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +powtarzaj (10) +koniec + +kiedy flaga kliknięta + +powtarzaj (10) +koniec + +zmień rozmiar o (10) + +zmień rozmiar o (10) + +zawsze +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Star sprite](images/sprite-star.png) + +```blocks3 +kiedy flaga kliknięta +zawsze + powtarzaj (20) + zmień rozmiar o (2) + koniec + powtarzaj (20) + zmień rozmiar o (-2) + koniec + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/pl-PL/step_8.md b/pl-PL/step_8.md new file mode 100644 index 000000000..cf7f73d4d --- /dev/null +++ b/pl-PL/step_8.md @@ -0,0 +1,7 @@ +## Wyzwanie: zrób własną animację + +Zatrzymaj Twoją animację kosmosu, zapisz ją i uruchom nowy projekt Scratch. + +Wykorzystaj to, czego nauczyłeś się w tym projekcie, aby stworzyć własną animację. Może to być wszystko, co chcesz, ale spróbuj zrobić animację pasującą do wybranego tła. Oto kilka przykładów: + +![zrzut ekranu](images/space-egs.png) \ No newline at end of file diff --git a/pl-PL/step_9.md b/pl-PL/step_9.md new file mode 100644 index 000000000..d40fc8d78 --- /dev/null +++ b/pl-PL/step_9.md @@ -0,0 +1,18 @@ +## Co dalej? + +Wypróbuj projekt [Pogromcy duchów](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects)! W tym projekcie nauczysz się tworzyć grę z duchami, które pojawiają się w różnych miejscach i które musisz złapać. Dowiesz się również, jak dodać licznik i wynik do gry, abyś mogła zobaczyć, ile duchów jesteś w stanie złapać. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![prezentacja](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/pt-BR/images/banner.png b/pt-BR/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/pt-BR/images/banner.png differ diff --git a/pt-BR/images/ghostbusters-static.png b/pt-BR/images/ghostbusters-static.png new file mode 100644 index 000000000..d2da0647b Binary files /dev/null and b/pt-BR/images/ghostbusters-static.png differ diff --git a/pt-BR/images/lost-in-space.png b/pt-BR/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/pt-BR/images/lost-in-space.png differ diff --git a/pt-BR/images/make-white.png b/pt-BR/images/make-white.png new file mode 100644 index 000000000..1ee768227 Binary files /dev/null and b/pt-BR/images/make-white.png differ diff --git a/pt-BR/images/montage-1.png b/pt-BR/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/pt-BR/images/montage-1.png differ diff --git a/pt-BR/images/montage-2.png b/pt-BR/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/pt-BR/images/montage-2.png differ diff --git a/pt-BR/images/montage-3.png b/pt-BR/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/pt-BR/images/montage-3.png differ diff --git a/pt-BR/images/showcase_static.png b/pt-BR/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/pt-BR/images/showcase_static.png differ diff --git a/pt-BR/images/space-animate-stage.png b/pt-BR/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/pt-BR/images/space-animate-stage.png differ diff --git a/pt-BR/images/space-animate.png b/pt-BR/images/space-animate.png new file mode 100644 index 000000000..0cba095d5 Binary files /dev/null and b/pt-BR/images/space-animate.png differ diff --git a/pt-BR/images/space-backdrop.png b/pt-BR/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/pt-BR/images/space-backdrop.png differ diff --git a/pt-BR/images/space-bounce-blocks.png b/pt-BR/images/space-bounce-blocks.png new file mode 100644 index 000000000..8c23e247d Binary files /dev/null and b/pt-BR/images/space-bounce-blocks.png differ diff --git a/pt-BR/images/space-bounce-code.png b/pt-BR/images/space-bounce-code.png new file mode 100644 index 000000000..d192b2eff Binary files /dev/null and b/pt-BR/images/space-bounce-code.png differ diff --git a/pt-BR/images/space-bounce-test.png b/pt-BR/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/pt-BR/images/space-bounce-test.png differ diff --git a/pt-BR/images/space-colour-blocks.png b/pt-BR/images/space-colour-blocks.png new file mode 100644 index 000000000..09de39fec Binary files /dev/null and b/pt-BR/images/space-colour-blocks.png differ diff --git a/pt-BR/images/space-colour-code.png b/pt-BR/images/space-colour-code.png new file mode 100644 index 000000000..583bc3211 Binary files /dev/null and b/pt-BR/images/space-colour-code.png differ diff --git a/pt-BR/images/space-colour-test.png b/pt-BR/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/pt-BR/images/space-colour-test.png differ diff --git a/pt-BR/images/space-costume.png b/pt-BR/images/space-costume.png new file mode 100644 index 000000000..c862c7bdc Binary files /dev/null and b/pt-BR/images/space-costume.png differ diff --git a/pt-BR/images/space-delete-glide.png b/pt-BR/images/space-delete-glide.png new file mode 100644 index 000000000..60d813c40 Binary files /dev/null and b/pt-BR/images/space-delete-glide.png differ diff --git a/pt-BR/images/space-egs.png b/pt-BR/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/pt-BR/images/space-egs.png differ diff --git a/pt-BR/images/space-glide.png b/pt-BR/images/space-glide.png new file mode 100644 index 000000000..8ef7bdcd7 Binary files /dev/null and b/pt-BR/images/space-glide.png differ diff --git a/pt-BR/images/space-initial-position.png b/pt-BR/images/space-initial-position.png new file mode 100644 index 000000000..e5569acfb Binary files /dev/null and b/pt-BR/images/space-initial-position.png differ diff --git a/pt-BR/images/space-monkey-edit.png b/pt-BR/images/space-monkey-edit.png new file mode 100644 index 000000000..7dc666ee3 Binary files /dev/null and b/pt-BR/images/space-monkey-edit.png differ diff --git a/pt-BR/images/space-monkey-sprite.png b/pt-BR/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/pt-BR/images/space-monkey-sprite.png differ diff --git a/pt-BR/images/space-repeat-blocks.png b/pt-BR/images/space-repeat-blocks.png new file mode 100644 index 000000000..7a0bd9134 Binary files /dev/null and b/pt-BR/images/space-repeat-blocks.png differ diff --git a/pt-BR/images/space-repeat-code.png b/pt-BR/images/space-repeat-code.png new file mode 100644 index 000000000..f9801036f Binary files /dev/null and b/pt-BR/images/space-repeat-code.png differ diff --git a/pt-BR/images/space-rock-sprite.png b/pt-BR/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/pt-BR/images/space-rock-sprite.png differ diff --git a/pt-BR/images/space-rotate.png b/pt-BR/images/space-rotate.png new file mode 100644 index 000000000..4611bfef1 Binary files /dev/null and b/pt-BR/images/space-rotate.png differ diff --git a/pt-BR/images/space-size-blocks.png b/pt-BR/images/space-size-blocks.png new file mode 100644 index 000000000..6fe9e6814 Binary files /dev/null and b/pt-BR/images/space-size-blocks.png differ diff --git a/pt-BR/images/space-size-code.png b/pt-BR/images/space-size-code.png new file mode 100644 index 000000000..1917fb201 Binary files /dev/null and b/pt-BR/images/space-size-code.png differ diff --git a/pt-BR/images/space-size-test.png b/pt-BR/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/pt-BR/images/space-size-test.png differ diff --git a/pt-BR/images/space-spin-blocks.png b/pt-BR/images/space-spin-blocks.png new file mode 100644 index 000000000..c6d9843c5 Binary files /dev/null and b/pt-BR/images/space-spin-blocks.png differ diff --git a/pt-BR/images/space-spin-code.png b/pt-BR/images/space-spin-code.png new file mode 100644 index 000000000..b9f742cb8 Binary files /dev/null and b/pt-BR/images/space-spin-code.png differ diff --git a/pt-BR/images/space-spin-test.png b/pt-BR/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/pt-BR/images/space-spin-test.png differ diff --git a/pt-BR/images/space-sprites.png b/pt-BR/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/pt-BR/images/space-sprites.png differ diff --git a/pt-BR/images/space-star-blocks.png b/pt-BR/images/space-star-blocks.png new file mode 100644 index 000000000..8e679d1d8 Binary files /dev/null and b/pt-BR/images/space-star-blocks.png differ diff --git a/pt-BR/images/space-star-code.png b/pt-BR/images/space-star-code.png new file mode 100644 index 000000000..cf9225518 Binary files /dev/null and b/pt-BR/images/space-star-code.png differ diff --git a/pt-BR/images/space-star-sprite.png b/pt-BR/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/pt-BR/images/space-star-sprite.png differ diff --git a/pt-BR/images/space-star-test.png b/pt-BR/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/pt-BR/images/space-star-test.png differ diff --git a/pt-BR/images/sprite-earth.png b/pt-BR/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/pt-BR/images/sprite-earth.png differ diff --git a/pt-BR/images/sprite-monkey.png b/pt-BR/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/pt-BR/images/sprite-monkey.png differ diff --git a/pt-BR/images/sprite-rock.png b/pt-BR/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/pt-BR/images/sprite-rock.png differ diff --git a/pt-BR/images/sprite-spaceship.png b/pt-BR/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/pt-BR/images/sprite-spaceship.png differ diff --git a/pt-BR/images/sprite-star.png b/pt-BR/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/pt-BR/images/sprite-star.png differ diff --git a/pt-BR/images/trim_and_tile.sh b/pt-BR/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/pt-BR/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/pt-BR/meta.yml b/pt-BR/meta.yml new file mode 100644 index 000000000..42ddc2935 --- /dev/null +++ b/pt-BR/meta.yml @@ -0,0 +1,35 @@ +--- +title: Perdido no espaço +hero_image: images/lost-in-space.png +description: Aprenda a programar sua própria animação! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introdução + - + title: Animando uma nave espacial + - + title: 'Desafio: Melhore a sua animação' + challenge: true + - + title: Animação usando repetições + completion: + - engaged + - + title: Macaco flutuante + - + title: Asteroide viajante + - + title: Estrela brilhante + completion: + - internal + - + title: 'Desafio: Faça a sua própria animação' + challenge: true + - + title: E agora? diff --git a/pt-BR/resources/LostinSpace-Finished.sb2 b/pt-BR/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..ced801e41 Binary files /dev/null and b/pt-BR/resources/LostinSpace-Finished.sb2 differ diff --git a/pt-BR/scratch-translatable.txt b/pt-BR/scratch-translatable.txt new file mode 100644 index 000000000..1092c14bb --- /dev/null +++ b/pt-BR/scratch-translatable.txt @@ -0,0 +1 @@ +Vamos lá diff --git a/pt-BR/solutions/lost-in-space-solution.sb3 b/pt-BR/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..881731f4f Binary files /dev/null and b/pt-BR/solutions/lost-in-space-solution.sb3 differ diff --git a/pt-BR/step_1.md b/pt-BR/step_1.md new file mode 100644 index 000000000..de8781a9b --- /dev/null +++ b/pt-BR/step_1.md @@ -0,0 +1,60 @@ +## Introdução + +You are going to learn how to program your own animation! + +### O que você vai fazer + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: O que você vai precisar + +### Hardware + +- Um computador capaz de executar o Scratch 3 + +### Software + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + +- Nada + +\--- /collapse \--- + +## \--- collapse \--- + +## title: O que você vai aprender + +- Como usar um loop de repetição para animar um sprite no Scratch +- Como usar um loop infinito para repetir uma animação indefinidamente +- Entender que os loops podem ser encaixados um dentro do outro + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Informações adicionais para educadores + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/pt-BR/step_10.md b/pt-BR/step_10.md new file mode 100644 index 000000000..74d795343 --- /dev/null +++ b/pt-BR/step_10.md @@ -0,0 +1,18 @@ +## E agora? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/pt-BR/step_2.md b/pt-BR/step_2.md new file mode 100644 index 000000000..c521629e5 --- /dev/null +++ b/pt-BR/step_2.md @@ -0,0 +1,72 @@ +## Animando uma nave espacial + +Seu primeiro passo será criar uma nave espacial que voa em direção à Terra! + +\--- task \--- + +Abra um novo projeto Scratch. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** abra um novo projeto no editor offline. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Adicione os atores 'nave espacial' e 'Terra' para o seu Palco. + +![Atores Nave espacial e Terra](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Adicione o pano de fundo 'Estrelas' ao seu Palco. + +![Um cenário de espaço](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Clique no seu ator da nave espacial e clique na aba **Fantasias**. + +![Fantasia do ator](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use a ferramenta **seta** para clicar e arrastar a caixa ao redor de toda a imagem da nave espacial. Em seguida, clique na **alça de rotação**, e gire a imagem até que ela fique de lado. + +![Girando uma fantasia](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Adicione este código ao seu ator 'Nave espacial': + +![Ator da nave espacial](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Vamos lá] for (2) seconds +point towards (Terra v) +glide (1) secs to x:(0) y:(0) +``` + +Altere os números nos blocos de código que você adicionou para que o código seja exatamente o mesmo que acima. + +\--- /task \--- + +Se você clicar na bandeira verde, você deve ver a nave espacial falar, virar e deslizar em direção ao centro do cenário. + +![Testando a animação da nave espacial](images/space-animate-stage.png) \ No newline at end of file diff --git a/pt-BR/step_3.md b/pt-BR/step_3.md new file mode 100644 index 000000000..1721d1b8a --- /dev/null +++ b/pt-BR/step_3.md @@ -0,0 +1,16 @@ +## Desafio: Melhore a sua animação + +Você consegue alterar os números no seu código de animação para que: + ++ A nave espacial se mova até tocar a Terra? ++ A nave espacial se mova mais devagar em direção à Terra? + +Você precisará alterar os números neste bloco: + +![Ator da nave espacial](images/sprite-spaceship.png) + +```blocks3 +desliza em (1) s para a posição x: (0) y: (0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/pt-BR/step_4.md b/pt-BR/step_4.md new file mode 100644 index 000000000..9ac600b0d --- /dev/null +++ b/pt-BR/step_4.md @@ -0,0 +1,125 @@ +## Animando usando repetições + +Outra maneira de animar a nave espacial é dizer para ela se mover uma pequena distância várias vezes + +\--- task \--- + +Elimine o bloco `planar` {: class = "block3motion"} do seu código. Para fazer isso, arraste o bloco para fora da área Código e solte-o novamente onde estão os outros blocos de código. + +![Ator da nave espacial](images/sprite-spaceship.png) + +```blocks3 +quando bandeira for clicado +aponte para a direção (0) +vá para x: (-150) y: (-150) +diga [Vamos lá] por (2) segundos +aponte para (Terra v) + +deslize por (1) segs. até x: (0) y: (0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testando a animação da nave espacial](images/space-animate-stage.png) + +![Ator da nave espacial](images/sprite-spaceship.png) + +```blocks3 +quando bandeira for clicado +aponte para a direção (0) +vá para x: (-150) y: (-150) +diga [Vamos lá] por (2) segundos +aponte para (Terra v) + +repita (200) vezes + mova (2) passos +``` + +Teste e salve o seu código. A sua nave espacial deve mover-se em direção à Terra exatamente como antes, mas desta vez ela utiliza um bloco de `repetição`{:class="block3control"}. + +\--- /task \--- + +\--- task \--- + +Em seguida, adicione o código ao seu ator da nave espacial para que a nave mude de cor à medida que se move em direção à Terra? + +Use este bloco: + +![Ator da nave espacial](images/sprite-spaceship.png) + +```blocks3 +quando bandeira for clicado +aponte para a direção (0) +vá para x: (-150) y: (-150) +diga [Vamos lá] por (2) segundos +aponte para (Terra v) +repita (200) vezes + mova (2) passos + + mude (25) no efeito [cor v] +``` + +Teste e salve seu código. + +![Testando uma nave espacial que muda de cor](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Você consegue reduzir a sua nave espacial ao se aproximar da Terra? + +\--- hints \--- + +\--- hint \--- + +A sua nave espacial deve começar com ` tamanho 100% ` {: class = "blocklooks"} e depois ` deve alterar um pouco o seu tamanho ` {: class = "blocklooks"} cada vez que se move. + +\--- /hint \--- + +\--- hint \--- + +Você precisará adicionar esses blocos ao seu código: + +![Ator da nave espacial](images/sprite-spaceship.png) + +```blocks3 +mude (10) no tamanho + +defina o tamanho como (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Seu código deve ficar assim: + +![Ator da nave espacial](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Teste e salve seu código. Sua nave espacial agora deve ficar menor à medida que se move. Teste sua nave espacial pela ** segunda vez **. É do tamanho certo quando começa? + +![Testando uma nave espacial que encolhe](images/space-size-test.png) \ No newline at end of file diff --git a/pt-BR/step_5.md b/pt-BR/step_5.md new file mode 100644 index 000000000..472b38869 --- /dev/null +++ b/pt-BR/step_5.md @@ -0,0 +1,71 @@ +## Macaco flutuante + +Agora você vai adicionar um macaco perdido no espaço na sua animação! + +\--- task \--- + +Comece adicionando o ator 'macaco' da biblioteca. + +![Adicionando um ator de macaco](images/space-monkey-sprite.png) + +\--- /task \--- + +Clique no seu novo ator de macaco e depois clique em **Fantasias** para que você possa editar a aparência do macaco. + +\--- task \--- + +Defina o preenchimento para transparente, selecionando a linha vermelha. Para o contorno, defina uma cor branca movendo o controle deslizante de saturação para `0`. + +![Fazer cor branca](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Clique na ferramenta **círculo** e use-a para desenhar um capacete de espaço branco em torno da cabeça do macaco. + +![Capacete espacial de macaco](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Você consegue adicionar blocos de código ao seu ator macaco para que ele gire lentamente em círculos para sempre? + +\--- hints \--- \--- hint \--- + +Quando a **bandeira verde é clicada**, o seu ator de macaco deve **girar** em círculo **para sempre**. + +\--- /hint \--- \--- hint \--- + +Aqui estão os blocos de código que você precisa: + +```blocks3 +sempre +end + +gire ↻ (15) graus + +quando ⚑ for clicado +``` + +\--- /hint \--- \--- hint \--- + +Aqui está o código para fazer seu macaco girar: + +![Ator de macaco](images/sprite-monkey.png) + +```blocks3 +quando ⚑ for clicado +sempre + gire ↻ (1) graus +end +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Teste e salve seu projeto. Você terá que clicar no botão vermelho de **parar** para parar esta animação, pois ela é executada para sempre! + +![Teste o macaco girando](images/space-spin-test.png) \ No newline at end of file diff --git a/pt-BR/step_6.md b/pt-BR/step_6.md new file mode 100644 index 000000000..1ceebf337 --- /dev/null +++ b/pt-BR/step_6.md @@ -0,0 +1,59 @@ +## Asteróide viajante + +Agora você vai adicionar uma rocha no espaço flutuante à sua animação. + +\--- task \--- + +Adicione um ator 'Rocha' à sua animação. + +![Adicionando um ator de rocha](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Você consegue acrescentar código ao seu ator rocha para que a rocha bata pelo palco? + +![Testando uma rocha flutuante](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +Quando a **bandeira verde é clicada**, o asteroide deve se **mover** e **viajar** em seu palco **para sempre**. + +\--- /hint \--- \--- hint \--- + +Aqui estão os blocos de código que você precisa: + +```blocks3 +mova (10) passos + +se tocar na borda, volte + +quando ⚑ for clicado + +sempre +``` + +Você também pode definir uma direção inicial mais interessante para o ator da rocha com um destes blocos: + +```blocks3 +gire ↻ (15) graus + +aponte para (Terra v) +``` + +\--- /hint \--- \--- hint \--- + +Aqui está o código para fazer a sua rocha bater pelo palco: + +![Ator de rocha](images/sprite-rock.png) + +```blocks3 +quando ⚑ for clicado +aponte para (Terra v) +sempre + mova (2) passos + se tocar na borda, volte +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/pt-BR/step_7.md b/pt-BR/step_7.md new file mode 100644 index 000000000..e761207a1 --- /dev/null +++ b/pt-BR/step_7.md @@ -0,0 +1,62 @@ +## Estrela brilhante + +Agora você combinará repetições para fazer uma estrela brilhante. + +\--- task \--- + +Acrescente um ator 'estrela' à sua animação. + +![Acrescentando um ator estrela](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Você consegue adicionar o código ao seu ator de estrela para fazer com que a estrela cresça e encolha repetidamente? + +![Testando uma estrela brilhante](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +Quando a **bandeira verde é clicada**, sua estrela deve **mudar de tamanho** aumentando algumas vezes e em seguida, **alterar o tamanho** novamente, ficando menor. Isso deve ser feito para que fique maior e então menor **para sempre** e pareça que está brilhando. + +\--- /hint \--- \--- hint \--- + +Aqui estão os blocos de código que você precisa: + +```blocks3 +repita (10) vezes +end + +quando ⚑ for clicado + +repita (10) vezes +end + +mude (10) no tamanho + +mude (10) no tamanho + +sempre +``` + +\--- /hint \--- \--- hint \--- + +Aqui está o código para fazer a sua estrela crescer e encolher: + +![Ator de estrela](images/sprite-star.png) + +```blocks3 +quando ⚑ for clicado +sempre + repita (20) vezes + mude (2) no tamanho + end + repita (20) vezes + mude (-2) no tamanho + end +end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/pt-BR/step_8.md b/pt-BR/step_8.md new file mode 100644 index 000000000..71c90d6bb --- /dev/null +++ b/pt-BR/step_8.md @@ -0,0 +1,7 @@ +## Desafio: Faça a sua própria animação + +Pare a sua animação espacial, salve-a e inicie um novo projeto do Scratch. + +Use o que você aprendeu neste projeto para fazer sua própria animação. Pode ser qualquer coisa que você quiser, mas tente fazer a sua animação usando os recursos que você aprendeu. Aqui estão alguns exemplos: + +![captura de tela](images/space-egs.png) \ No newline at end of file diff --git a/pt-BR/step_9.md b/pt-BR/step_9.md new file mode 100644 index 000000000..00c1f918f --- /dev/null +++ b/pt-BR/step_9.md @@ -0,0 +1,18 @@ +## E agora? + +Experimente o projeto [Caça-fantasmas](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects)! Nesse projeto, você aprenderá como criar um jogo com fantasmas que aparecem por toda parte e que você precisa capturar. Você também aprenderá como adicionar um cronômetro e uma pontuação ao jogo para poder ver quantos fantasmas você conseguiu capturar. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![galeria](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/pt-PT/images/banner.png b/pt-PT/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/pt-PT/images/banner.png differ diff --git a/pt-PT/images/ghostbusters-static.png b/pt-PT/images/ghostbusters-static.png new file mode 100644 index 000000000..08903506a Binary files /dev/null and b/pt-PT/images/ghostbusters-static.png differ diff --git a/pt-PT/images/lost-in-space.png b/pt-PT/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/pt-PT/images/lost-in-space.png differ diff --git a/pt-PT/images/make-white.png b/pt-PT/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/pt-PT/images/make-white.png differ diff --git a/pt-PT/images/montage-1.png b/pt-PT/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/pt-PT/images/montage-1.png differ diff --git a/pt-PT/images/montage-2.png b/pt-PT/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/pt-PT/images/montage-2.png differ diff --git a/pt-PT/images/montage-3.png b/pt-PT/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/pt-PT/images/montage-3.png differ diff --git a/pt-PT/images/showcase_static.png b/pt-PT/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/pt-PT/images/showcase_static.png differ diff --git a/pt-PT/images/space-animate-stage.png b/pt-PT/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/pt-PT/images/space-animate-stage.png differ diff --git a/pt-PT/images/space-backdrop.png b/pt-PT/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/pt-PT/images/space-backdrop.png differ diff --git a/pt-PT/images/space-bounce-test.png b/pt-PT/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/pt-PT/images/space-bounce-test.png differ diff --git a/pt-PT/images/space-colour-test.png b/pt-PT/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/pt-PT/images/space-colour-test.png differ diff --git a/pt-PT/images/space-costume.png b/pt-PT/images/space-costume.png new file mode 100644 index 000000000..fee846f35 Binary files /dev/null and b/pt-PT/images/space-costume.png differ diff --git a/pt-PT/images/space-egs.png b/pt-PT/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/pt-PT/images/space-egs.png differ diff --git a/pt-PT/images/space-monkey-edit.png b/pt-PT/images/space-monkey-edit.png new file mode 100644 index 000000000..45b4b24bf Binary files /dev/null and b/pt-PT/images/space-monkey-edit.png differ diff --git a/pt-PT/images/space-monkey-sprite.png b/pt-PT/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/pt-PT/images/space-monkey-sprite.png differ diff --git a/pt-PT/images/space-rock-sprite.png b/pt-PT/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/pt-PT/images/space-rock-sprite.png differ diff --git a/pt-PT/images/space-rotate.png b/pt-PT/images/space-rotate.png new file mode 100644 index 000000000..048c1c986 Binary files /dev/null and b/pt-PT/images/space-rotate.png differ diff --git a/pt-PT/images/space-size-test.png b/pt-PT/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/pt-PT/images/space-size-test.png differ diff --git a/pt-PT/images/space-spin-test.png b/pt-PT/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/pt-PT/images/space-spin-test.png differ diff --git a/pt-PT/images/space-sprites.png b/pt-PT/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/pt-PT/images/space-sprites.png differ diff --git a/pt-PT/images/space-star-sprite.png b/pt-PT/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/pt-PT/images/space-star-sprite.png differ diff --git a/pt-PT/images/sprite-earth.png b/pt-PT/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/pt-PT/images/sprite-earth.png differ diff --git a/pt-PT/images/sprite-monkey.png b/pt-PT/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/pt-PT/images/sprite-monkey.png differ diff --git a/pt-PT/images/sprite-rock.png b/pt-PT/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/pt-PT/images/sprite-rock.png differ diff --git a/pt-PT/images/sprite-spaceship.png b/pt-PT/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/pt-PT/images/sprite-spaceship.png differ diff --git a/pt-PT/images/sprite-star.png b/pt-PT/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/pt-PT/images/sprite-star.png differ diff --git a/pt-PT/images/trim_and_tile.sh b/pt-PT/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/pt-PT/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/pt-PT/meta.yml b/pt-PT/meta.yml new file mode 100644 index 000000000..6b205ad9d --- /dev/null +++ b/pt-PT/meta.yml @@ -0,0 +1,35 @@ +--- +title: Perdido no espaço +hero_image: images/lost-in-space.png +description: Aprende a programar a tua própria animação! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introdução + - + title: Animando uma nave espacial + - + title: 'Desafio: melhorar a animação' + challenge: true + - + title: Animação utilizando ciclos + completion: + - engaged + - + title: Macaco flutuante + - + title: Asteróide saltitante + - + title: Estrela brilhante + completion: + - internal + - + title: 'Desafio: faz a tua própria animação' + challenge: true + - + title: O que se segue? diff --git a/pt-PT/scratch-translatable.txt b/pt-PT/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/pt-PT/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/pt-PT/solutions/lost-in-space-solution.sb3 b/pt-PT/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/pt-PT/solutions/lost-in-space-solution.sb3 differ diff --git a/pt-PT/step_1.md b/pt-PT/step_1.md new file mode 100644 index 000000000..cf3c614a5 --- /dev/null +++ b/pt-PT/step_1.md @@ -0,0 +1,60 @@ +## Introdução + +You are going to learn how to program your own animation! + +### O que vais fazer + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: O que vais precisar + +### Hardware + +- Um computador com capacidade para executar o Scratch 3 + +### Software + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + +- Nenhum + +\--- /collapse \--- + +## \--- collapse \--- + +## title: O que vais aprender + +- Usa um ciclo de repetição para animar um actor no Scratch +- Usa um ciclo para sempre para repetir uma animação indefinidamente +- Entende que os ciclos podem ser encaixados uns nos outros + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Informações adicionais para educadores + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/pt-PT/step_10.md b/pt-PT/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/pt-PT/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/pt-PT/step_2.md b/pt-PT/step_2.md new file mode 100644 index 000000000..4ca40e0f1 --- /dev/null +++ b/pt-PT/step_2.md @@ -0,0 +1,72 @@ +## Animando uma nave espacial + +O teu primeiro passo será criar uma nave espacial que voa em direção à Terra! + +\--- task \--- + +Abre um projeto Scratch novo. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** abre um novo projeto no editor offline. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/pt-PT/step_3.md b/pt-PT/step_3.md new file mode 100644 index 000000000..4af9cb400 --- /dev/null +++ b/pt-PT/step_3.md @@ -0,0 +1,16 @@ +## Challenge: improve your animation + +Can you change the numbers in your animation code so that: + ++ The spaceship moves until it touches the Earth? ++ The spaceship moves more slowly towards the Earth? + +You'll need to change the numbers in this block: + +![Rocketship sprite](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/pt-PT/step_4.md b/pt-PT/step_4.md new file mode 100644 index 000000000..0e1397c55 --- /dev/null +++ b/pt-PT/step_4.md @@ -0,0 +1,126 @@ +## Animation using loops + +Another way to animate the spaceship is to tell it to move a small amount many times + +\--- task \--- + +Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testing a spaceship animation](images/space-animate-stage.png) + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Your spaceship should start at `100% size`{:class="blocklooks"}, and then `change size`{:class="blocklooks"} by a small amount each time it moves. + +\--- /hint \--- + +\--- hint \--- + +You will need to add these blocks to your code: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Your code should look like this: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/pt-PT/step_5.md b/pt-PT/step_5.md new file mode 100644 index 000000000..ab4c451b7 --- /dev/null +++ b/pt-PT/step_5.md @@ -0,0 +1,70 @@ +## Floating monkey + +Now you will add a monkey who's lost in space to your animation! + +\--- task \--- + +Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/pt-PT/step_6.md b/pt-PT/step_6.md new file mode 100644 index 000000000..818d7b395 --- /dev/null +++ b/pt-PT/step_6.md @@ -0,0 +1,59 @@ +## Bouncing asteroid + +Agora poderás acrescentar uma rocha espacial flutuante à tua animação. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/pt-PT/step_7.md b/pt-PT/step_7.md new file mode 100644 index 000000000..e53504c76 --- /dev/null +++ b/pt-PT/step_7.md @@ -0,0 +1,61 @@ +## Shining star + +Now you will combine loops to make a shining star. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Star sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/pt-PT/step_8.md b/pt-PT/step_8.md new file mode 100644 index 000000000..7f20f297b --- /dev/null +++ b/pt-PT/step_8.md @@ -0,0 +1,7 @@ +## Challenge: make your own animation + +Stop your space animation, save it, and start a new Scratch project. + +Usa o que aprendes-te neste projeto para criar a tua própria animação. Pode ser o que quiseres mas tenta fazer com a tua animação corresponda ao plano de fundo que vais escolher. aqui estão alguns exemplos: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/pt-PT/step_9.md b/pt-PT/step_9.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/pt-PT/step_9.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/ro-RO/images/banner.png b/ro-RO/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/ro-RO/images/banner.png differ diff --git a/ro-RO/images/ghostbusters-static.png b/ro-RO/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/ro-RO/images/ghostbusters-static.png differ diff --git a/ro-RO/images/lost-in-space.png b/ro-RO/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/ro-RO/images/lost-in-space.png differ diff --git a/ro-RO/images/make-white.png b/ro-RO/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/ro-RO/images/make-white.png differ diff --git a/ro-RO/images/montage-1.png b/ro-RO/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/ro-RO/images/montage-1.png differ diff --git a/ro-RO/images/montage-2.png b/ro-RO/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/ro-RO/images/montage-2.png differ diff --git a/ro-RO/images/montage-3.png b/ro-RO/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/ro-RO/images/montage-3.png differ diff --git a/ro-RO/images/showcase_static.png b/ro-RO/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/ro-RO/images/showcase_static.png differ diff --git a/ro-RO/images/space-animate-stage.png b/ro-RO/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/ro-RO/images/space-animate-stage.png differ diff --git a/ro-RO/images/space-animate.png b/ro-RO/images/space-animate.png new file mode 100644 index 000000000..46a5038ab Binary files /dev/null and b/ro-RO/images/space-animate.png differ diff --git a/ro-RO/images/space-backdrop.png b/ro-RO/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/ro-RO/images/space-backdrop.png differ diff --git a/ro-RO/images/space-bounce-blocks.png b/ro-RO/images/space-bounce-blocks.png new file mode 100644 index 000000000..9294bb7f7 Binary files /dev/null and b/ro-RO/images/space-bounce-blocks.png differ diff --git a/ro-RO/images/space-bounce-code.png b/ro-RO/images/space-bounce-code.png new file mode 100644 index 000000000..e8791d62f Binary files /dev/null and b/ro-RO/images/space-bounce-code.png differ diff --git a/ro-RO/images/space-bounce-test.png b/ro-RO/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/ro-RO/images/space-bounce-test.png differ diff --git a/ro-RO/images/space-colour-blocks.png b/ro-RO/images/space-colour-blocks.png new file mode 100644 index 000000000..54461788b Binary files /dev/null and b/ro-RO/images/space-colour-blocks.png differ diff --git a/ro-RO/images/space-colour-code.png b/ro-RO/images/space-colour-code.png new file mode 100644 index 000000000..8afbd513d Binary files /dev/null and b/ro-RO/images/space-colour-code.png differ diff --git a/ro-RO/images/space-colour-test.png b/ro-RO/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/ro-RO/images/space-colour-test.png differ diff --git a/ro-RO/images/space-costume.png b/ro-RO/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/ro-RO/images/space-costume.png differ diff --git a/ro-RO/images/space-delete-glide.png b/ro-RO/images/space-delete-glide.png new file mode 100644 index 000000000..1d6fe71a9 Binary files /dev/null and b/ro-RO/images/space-delete-glide.png differ diff --git a/ro-RO/images/space-egs.png b/ro-RO/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/ro-RO/images/space-egs.png differ diff --git a/ro-RO/images/space-glide.png b/ro-RO/images/space-glide.png new file mode 100644 index 000000000..c04d7bfa9 Binary files /dev/null and b/ro-RO/images/space-glide.png differ diff --git a/ro-RO/images/space-initial-position.png b/ro-RO/images/space-initial-position.png new file mode 100644 index 000000000..260fa4f54 Binary files /dev/null and b/ro-RO/images/space-initial-position.png differ diff --git a/ro-RO/images/space-monkey-edit.png b/ro-RO/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/ro-RO/images/space-monkey-edit.png differ diff --git a/ro-RO/images/space-monkey-sprite.png b/ro-RO/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/ro-RO/images/space-monkey-sprite.png differ diff --git a/ro-RO/images/space-repeat-blocks.png b/ro-RO/images/space-repeat-blocks.png new file mode 100644 index 000000000..287663af6 Binary files /dev/null and b/ro-RO/images/space-repeat-blocks.png differ diff --git a/ro-RO/images/space-repeat-code.png b/ro-RO/images/space-repeat-code.png new file mode 100644 index 000000000..9800ca99d Binary files /dev/null and b/ro-RO/images/space-repeat-code.png differ diff --git a/ro-RO/images/space-rock-sprite.png b/ro-RO/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/ro-RO/images/space-rock-sprite.png differ diff --git a/ro-RO/images/space-rotate.png b/ro-RO/images/space-rotate.png new file mode 100644 index 000000000..916fb08f0 Binary files /dev/null and b/ro-RO/images/space-rotate.png differ diff --git a/ro-RO/images/space-size-blocks.png b/ro-RO/images/space-size-blocks.png new file mode 100644 index 000000000..1124075a4 Binary files /dev/null and b/ro-RO/images/space-size-blocks.png differ diff --git a/ro-RO/images/space-size-code.png b/ro-RO/images/space-size-code.png new file mode 100644 index 000000000..14c5d7bcc Binary files /dev/null and b/ro-RO/images/space-size-code.png differ diff --git a/ro-RO/images/space-size-test.png b/ro-RO/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/ro-RO/images/space-size-test.png differ diff --git a/ro-RO/images/space-spin-blocks.png b/ro-RO/images/space-spin-blocks.png new file mode 100644 index 000000000..ca9fd52ee Binary files /dev/null and b/ro-RO/images/space-spin-blocks.png differ diff --git a/ro-RO/images/space-spin-code.png b/ro-RO/images/space-spin-code.png new file mode 100644 index 000000000..8b3b016f9 Binary files /dev/null and b/ro-RO/images/space-spin-code.png differ diff --git a/ro-RO/images/space-spin-test.png b/ro-RO/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/ro-RO/images/space-spin-test.png differ diff --git a/ro-RO/images/space-sprites.png b/ro-RO/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/ro-RO/images/space-sprites.png differ diff --git a/ro-RO/images/space-star-blocks.png b/ro-RO/images/space-star-blocks.png new file mode 100644 index 000000000..f3b9f1e81 Binary files /dev/null and b/ro-RO/images/space-star-blocks.png differ diff --git a/ro-RO/images/space-star-code.png b/ro-RO/images/space-star-code.png new file mode 100644 index 000000000..7097d2e12 Binary files /dev/null and b/ro-RO/images/space-star-code.png differ diff --git a/ro-RO/images/space-star-sprite.png b/ro-RO/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/ro-RO/images/space-star-sprite.png differ diff --git a/ro-RO/images/space-star-test.png b/ro-RO/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/ro-RO/images/space-star-test.png differ diff --git a/ro-RO/images/sprite-earth.png b/ro-RO/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/ro-RO/images/sprite-earth.png differ diff --git a/ro-RO/images/sprite-monkey.png b/ro-RO/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/ro-RO/images/sprite-monkey.png differ diff --git a/ro-RO/images/sprite-rock.png b/ro-RO/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/ro-RO/images/sprite-rock.png differ diff --git a/ro-RO/images/sprite-spaceship.png b/ro-RO/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/ro-RO/images/sprite-spaceship.png differ diff --git a/ro-RO/images/sprite-star.png b/ro-RO/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/ro-RO/images/sprite-star.png differ diff --git a/ro-RO/images/trim_and_tile.sh b/ro-RO/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/ro-RO/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/ro-RO/meta.yml b/ro-RO/meta.yml new file mode 100644 index 000000000..b207a1b45 --- /dev/null +++ b/ro-RO/meta.yml @@ -0,0 +1,35 @@ +--- +title: Lost in space +hero_image: images/lost-in-space.png +description: Learn how to program your own animation! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introduction + - + title: Animating a spaceship + - + title: 'Challenge: improve your animation' + challenge: true + - + title: Animation using loops + completion: + - engaged + - + title: Floating monkey + - + title: Bouncing asteroid + - + title: Shining star + completion: + - internal + - + title: 'Challenge: make your own animation' + challenge: true + - + title: What next? diff --git a/ro-RO/resources/LostinSpace-Finished.sb2 b/ro-RO/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..3521aeed0 Binary files /dev/null and b/ro-RO/resources/LostinSpace-Finished.sb2 differ diff --git a/ro-RO/scratch-translatable.txt b/ro-RO/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/ro-RO/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/ro-RO/solutions/lost-in-space-solution.sb3 b/ro-RO/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/ro-RO/solutions/lost-in-space-solution.sb3 differ diff --git a/ro-RO/step_1.md b/ro-RO/step_1.md new file mode 100644 index 000000000..bc43f86cd --- /dev/null +++ b/ro-RO/step_1.md @@ -0,0 +1,60 @@ +## Introduction + +You are going to learn how to program your own animation! + +### What you will make + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: What you will need + +### Hardware + +- A computer capable of running Scratch 3 + +### Software + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + +- None + +\--- /collapse \--- + +## \--- collapse \--- + +## title: What you will learn + +- Use a repeat loop to animate a sprite in Scratch +- Use a forever loop to repeat an animation indefinitely +- Understand that loops can be nested within each other + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Additional information for educators + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/ro-RO/step_10.md b/ro-RO/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/ro-RO/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/ro-RO/step_2.md b/ro-RO/step_2.md new file mode 100644 index 000000000..cbcdff0c6 --- /dev/null +++ b/ro-RO/step_2.md @@ -0,0 +1,72 @@ +## Animating a spaceship + +Your first step will be to create a spaceship that flies towards the Earth! + +\--- task \--- + +Open a new Scratch project. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** open a new project in the offline editor. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/ro-RO/step_3.md b/ro-RO/step_3.md new file mode 100644 index 000000000..4af9cb400 --- /dev/null +++ b/ro-RO/step_3.md @@ -0,0 +1,16 @@ +## Challenge: improve your animation + +Can you change the numbers in your animation code so that: + ++ The spaceship moves until it touches the Earth? ++ The spaceship moves more slowly towards the Earth? + +You'll need to change the numbers in this block: + +![Rocketship sprite](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/ro-RO/step_4.md b/ro-RO/step_4.md new file mode 100644 index 000000000..0e1397c55 --- /dev/null +++ b/ro-RO/step_4.md @@ -0,0 +1,126 @@ +## Animation using loops + +Another way to animate the spaceship is to tell it to move a small amount many times + +\--- task \--- + +Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testing a spaceship animation](images/space-animate-stage.png) + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Your spaceship should start at `100% size`{:class="blocklooks"}, and then `change size`{:class="blocklooks"} by a small amount each time it moves. + +\--- /hint \--- + +\--- hint \--- + +You will need to add these blocks to your code: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Your code should look like this: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/ro-RO/step_5.md b/ro-RO/step_5.md new file mode 100644 index 000000000..ab4c451b7 --- /dev/null +++ b/ro-RO/step_5.md @@ -0,0 +1,70 @@ +## Floating monkey + +Now you will add a monkey who's lost in space to your animation! + +\--- task \--- + +Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/ro-RO/step_6.md b/ro-RO/step_6.md new file mode 100644 index 000000000..729b6d975 --- /dev/null +++ b/ro-RO/step_6.md @@ -0,0 +1,59 @@ +## Bouncing asteroid + +Now you will add a floating space rock to your animation. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/ro-RO/step_7.md b/ro-RO/step_7.md new file mode 100644 index 000000000..e53504c76 --- /dev/null +++ b/ro-RO/step_7.md @@ -0,0 +1,61 @@ +## Shining star + +Now you will combine loops to make a shining star. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Star sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/ro-RO/step_8.md b/ro-RO/step_8.md new file mode 100644 index 000000000..841b139ec --- /dev/null +++ b/ro-RO/step_8.md @@ -0,0 +1,7 @@ +## Challenge: make your own animation + +Stop your space animation, save it, and start a new Scratch project. + +Use what you've learned in this project to make your own animation. It can be anything you like, but try to make your animation match the background you choose. Here are some examples: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/ro-RO/step_9.md b/ro-RO/step_9.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/ro-RO/step_9.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/ru-RU/images/banner.png b/ru-RU/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/ru-RU/images/banner.png differ diff --git a/ru-RU/images/ghostbusters-static.png b/ru-RU/images/ghostbusters-static.png new file mode 100644 index 000000000..684600fb0 Binary files /dev/null and b/ru-RU/images/ghostbusters-static.png differ diff --git a/ru-RU/images/lost-in-space.png b/ru-RU/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/ru-RU/images/lost-in-space.png differ diff --git a/ru-RU/images/make-white.png b/ru-RU/images/make-white.png new file mode 100644 index 000000000..48757ac32 Binary files /dev/null and b/ru-RU/images/make-white.png differ diff --git a/ru-RU/images/montage-1.png b/ru-RU/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/ru-RU/images/montage-1.png differ diff --git a/ru-RU/images/montage-2.png b/ru-RU/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/ru-RU/images/montage-2.png differ diff --git a/ru-RU/images/montage-3.png b/ru-RU/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/ru-RU/images/montage-3.png differ diff --git a/ru-RU/images/showcase_static.png b/ru-RU/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/ru-RU/images/showcase_static.png differ diff --git a/ru-RU/images/space-animate-stage.png b/ru-RU/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/ru-RU/images/space-animate-stage.png differ diff --git a/ru-RU/images/space-animate.png b/ru-RU/images/space-animate.png new file mode 100644 index 000000000..46a5038ab Binary files /dev/null and b/ru-RU/images/space-animate.png differ diff --git a/ru-RU/images/space-backdrop.png b/ru-RU/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/ru-RU/images/space-backdrop.png differ diff --git a/ru-RU/images/space-bounce-blocks.png b/ru-RU/images/space-bounce-blocks.png new file mode 100644 index 000000000..9294bb7f7 Binary files /dev/null and b/ru-RU/images/space-bounce-blocks.png differ diff --git a/ru-RU/images/space-bounce-code.png b/ru-RU/images/space-bounce-code.png new file mode 100644 index 000000000..e8791d62f Binary files /dev/null and b/ru-RU/images/space-bounce-code.png differ diff --git a/ru-RU/images/space-bounce-test.png b/ru-RU/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/ru-RU/images/space-bounce-test.png differ diff --git a/ru-RU/images/space-colour-blocks.png b/ru-RU/images/space-colour-blocks.png new file mode 100644 index 000000000..54461788b Binary files /dev/null and b/ru-RU/images/space-colour-blocks.png differ diff --git a/ru-RU/images/space-colour-code.png b/ru-RU/images/space-colour-code.png new file mode 100644 index 000000000..8afbd513d Binary files /dev/null and b/ru-RU/images/space-colour-code.png differ diff --git a/ru-RU/images/space-colour-test.png b/ru-RU/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/ru-RU/images/space-colour-test.png differ diff --git a/ru-RU/images/space-costume.png b/ru-RU/images/space-costume.png new file mode 100644 index 000000000..d898d9082 Binary files /dev/null and b/ru-RU/images/space-costume.png differ diff --git a/ru-RU/images/space-delete-glide.png b/ru-RU/images/space-delete-glide.png new file mode 100644 index 000000000..1d6fe71a9 Binary files /dev/null and b/ru-RU/images/space-delete-glide.png differ diff --git a/ru-RU/images/space-egs.png b/ru-RU/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/ru-RU/images/space-egs.png differ diff --git a/ru-RU/images/space-glide.png b/ru-RU/images/space-glide.png new file mode 100644 index 000000000..c04d7bfa9 Binary files /dev/null and b/ru-RU/images/space-glide.png differ diff --git a/ru-RU/images/space-initial-position.png b/ru-RU/images/space-initial-position.png new file mode 100644 index 000000000..260fa4f54 Binary files /dev/null and b/ru-RU/images/space-initial-position.png differ diff --git a/ru-RU/images/space-monkey-edit.png b/ru-RU/images/space-monkey-edit.png new file mode 100644 index 000000000..7477b0160 Binary files /dev/null and b/ru-RU/images/space-monkey-edit.png differ diff --git a/ru-RU/images/space-monkey-sprite.png b/ru-RU/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/ru-RU/images/space-monkey-sprite.png differ diff --git a/ru-RU/images/space-repeat-blocks.png b/ru-RU/images/space-repeat-blocks.png new file mode 100644 index 000000000..287663af6 Binary files /dev/null and b/ru-RU/images/space-repeat-blocks.png differ diff --git a/ru-RU/images/space-repeat-code.png b/ru-RU/images/space-repeat-code.png new file mode 100644 index 000000000..9800ca99d Binary files /dev/null and b/ru-RU/images/space-repeat-code.png differ diff --git a/ru-RU/images/space-rock-sprite.png b/ru-RU/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/ru-RU/images/space-rock-sprite.png differ diff --git a/ru-RU/images/space-rotate.png b/ru-RU/images/space-rotate.png new file mode 100644 index 000000000..fc0e74cde Binary files /dev/null and b/ru-RU/images/space-rotate.png differ diff --git a/ru-RU/images/space-size-blocks.png b/ru-RU/images/space-size-blocks.png new file mode 100644 index 000000000..1124075a4 Binary files /dev/null and b/ru-RU/images/space-size-blocks.png differ diff --git a/ru-RU/images/space-size-code.png b/ru-RU/images/space-size-code.png new file mode 100644 index 000000000..14c5d7bcc Binary files /dev/null and b/ru-RU/images/space-size-code.png differ diff --git a/ru-RU/images/space-size-test.png b/ru-RU/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/ru-RU/images/space-size-test.png differ diff --git a/ru-RU/images/space-spin-blocks.png b/ru-RU/images/space-spin-blocks.png new file mode 100644 index 000000000..ca9fd52ee Binary files /dev/null and b/ru-RU/images/space-spin-blocks.png differ diff --git a/ru-RU/images/space-spin-code.png b/ru-RU/images/space-spin-code.png new file mode 100644 index 000000000..8b3b016f9 Binary files /dev/null and b/ru-RU/images/space-spin-code.png differ diff --git a/ru-RU/images/space-spin-test.png b/ru-RU/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/ru-RU/images/space-spin-test.png differ diff --git a/ru-RU/images/space-sprites.png b/ru-RU/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/ru-RU/images/space-sprites.png differ diff --git a/ru-RU/images/space-star-blocks.png b/ru-RU/images/space-star-blocks.png new file mode 100644 index 000000000..f3b9f1e81 Binary files /dev/null and b/ru-RU/images/space-star-blocks.png differ diff --git a/ru-RU/images/space-star-code.png b/ru-RU/images/space-star-code.png new file mode 100644 index 000000000..7097d2e12 Binary files /dev/null and b/ru-RU/images/space-star-code.png differ diff --git a/ru-RU/images/space-star-sprite.png b/ru-RU/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/ru-RU/images/space-star-sprite.png differ diff --git a/ru-RU/images/space-star-test.png b/ru-RU/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/ru-RU/images/space-star-test.png differ diff --git a/ru-RU/images/sprite-earth.png b/ru-RU/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/ru-RU/images/sprite-earth.png differ diff --git a/ru-RU/images/sprite-monkey.png b/ru-RU/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/ru-RU/images/sprite-monkey.png differ diff --git a/ru-RU/images/sprite-rock.png b/ru-RU/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/ru-RU/images/sprite-rock.png differ diff --git a/ru-RU/images/sprite-spaceship.png b/ru-RU/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/ru-RU/images/sprite-spaceship.png differ diff --git a/ru-RU/images/sprite-star.png b/ru-RU/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/ru-RU/images/sprite-star.png differ diff --git a/ru-RU/images/trim_and_tile.sh b/ru-RU/images/trim_and_tile.sh new file mode 100644 index 000000000..c26c38cf0 --- /dev/null +++ b/ru-RU/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/ru-RU/meta.yml b/ru-RU/meta.yml new file mode 100644 index 000000000..658603346 --- /dev/null +++ b/ru-RU/meta.yml @@ -0,0 +1,35 @@ +--- +title: Потерянный в космосе +hero_image: images/lost-in-space.png +description: Узнай, как запрограммировать свою собственную анимацию! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Введение + - + title: Анимация космического корабля + - + title: 'Задание: улучши свою анимацию' + challenge: true + - + title: Анимация с использованием циклов + completion: + - engaged + - + title: Плавающая обезьяна + - + title: Отскок астероида + - + title: Сияющая звезда + completion: + - internal + - + title: 'Задание: сделай свою собственную анимацию' + challenge: true + - + title: Что дальше? diff --git a/ru-RU/resources/LostinSpace-Finished.sb2 b/ru-RU/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..89753817a Binary files /dev/null and b/ru-RU/resources/LostinSpace-Finished.sb2 differ diff --git a/ru-RU/scratch-translatable.txt b/ru-RU/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/ru-RU/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/ru-RU/solutions/lost-in-space-solution.sb3 b/ru-RU/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..99f9892a3 Binary files /dev/null and b/ru-RU/solutions/lost-in-space-solution.sb3 differ diff --git a/ru-RU/step_1.md b/ru-RU/step_1.md new file mode 100644 index 000000000..00a41391e --- /dev/null +++ b/ru-RU/step_1.md @@ -0,0 +1,60 @@ +## Введение + +You are going to learn how to program your own animation! + +### Что ты сделаешь + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: Что тебе понадобится + +### Оборудование + +- Компьютер с поддержкой Scratch 3 + +### Программное обеспечение + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Загрузки + +- Отсутствуют + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Чему ты научишься + +- Использование повторяющегося цикла для анимации спрайта в Scratch +- Используй цикл повторять всегда, чтобы анимация длилась бесконечно +- Понимание того, что циклы могут быть вложены друг в друга + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Дополнительная информация для педагогов + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/ru-RU/step_10.md b/ru-RU/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/ru-RU/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/ru-RU/step_2.md b/ru-RU/step_2.md new file mode 100644 index 000000000..5c35b08cf --- /dev/null +++ b/ru-RU/step_2.md @@ -0,0 +1,72 @@ +## Анимация космического корабля + +Твоим первым шагом будет создание космического корабля, который летит к Земле! + +\--- task \--- + +Открой новый проект Scratch. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Оффлайн:** открой новый проект в автономном редакторе. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +когда щёлкнут по зелёному флагу +повернуться в направлении (0) +перейти в x: (-150) y: (-150) +говорить [Поехали] (2) секунд +повернуться к (Земля v) +плыть (1) секунд в точку x: (0) y: (0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/ru-RU/step_3.md b/ru-RU/step_3.md new file mode 100644 index 000000000..c1963e9d1 --- /dev/null +++ b/ru-RU/step_3.md @@ -0,0 +1,16 @@ +## Задача: улучшить свою анимацию + +Можешь ли ты изменить числа в своём коде анимации так, чтобы: + ++ Космический корабль движется, пока не коснется Земли? ++ Космический корабль движется медленнее к Земле? + +Тебе нужно изменить числа в этом блоке: + +![Спрайт Космический корабль](images/sprite-spaceship.png) + +```blocks3 +плыть (1) секунд в точку x: (0) y: (0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/ru-RU/step_4.md b/ru-RU/step_4.md new file mode 100644 index 000000000..ef5babe0f --- /dev/null +++ b/ru-RU/step_4.md @@ -0,0 +1,126 @@ +## Анимация с помощью циклов + +Еще один способ сделать так, чтобы космический корабль полетел - сказать ему, чтобы он перемещался малыми шагами много раз + +\--- task \--- + +Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +когда щёлкнут по зелёному флагу +повернуться в направлении (0) +перейти в x: (-150) y: (-150) +говорить [Let's go] (2) секунд +повернуться к (Earth v) +- плыть (1) секунд в точку x: (0) y: (0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testing a spaceship animation](images/space-animate-stage.png) + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +когда щёлкнут по зелёному флагу +повернуться в направлении (0) +перейти в x: (-150) y: (-150) +говорить [Поехали] (2) секунд +повернуться к (Земля v) + ++ повторить (200) раз + идти (2) шагов +end +``` + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +когда щёлкнут по зелёному флагу +повернуться в направлении (0) +перейти в x: (-150) y: (-150) +говорить [Поехали] (2) секунд +повернуться к (Земля v) +повторить (200) раз + идти (2) шагов + + изменить [цвет v] эффект на (25) +end +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Your spaceship should start at `100% size`{:class="blocklooks"}, and then `change size`{:class="blocklooks"} by a small amount each time it moves. + +\--- /hint \--- + +\--- hint \--- + +You will need to add these blocks to your code: + +![Спрайт Космический корабль](images/sprite-spaceship.png) + +```blocks3 +изменить размер на (10) % + +установить размер (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Your code should look like this: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/ru-RU/step_5.md b/ru-RU/step_5.md new file mode 100644 index 000000000..1af6825c6 --- /dev/null +++ b/ru-RU/step_5.md @@ -0,0 +1,71 @@ +## Плавающая обезьяна + +Теперь ты добавишь к своей анимации обезьяну, которая потерялась в космосе! + +\--- task \--- + +Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +повторять всегда +end + +повернуть вправо на (15) градусов + +когда щёлкнут по зелёному флагу +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +когда щёлкнут по зелёному флагу +повторять всегда + повернуть вправо на (1) градусов +end +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/ru-RU/step_6.md b/ru-RU/step_6.md new file mode 100644 index 000000000..fe3d5ac95 --- /dev/null +++ b/ru-RU/step_6.md @@ -0,0 +1,61 @@ +## Отскок астероида + +Теперь ты сможешь добавить плавающий космический камень в свою анимацию. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +идти (10) шагов + +если касается края, оттолкнуться + +когда щёлкнут по зелёному флагу + +повторять всегда +end +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +повернуть вправо на (15) градусов + +повернуться к (Земля v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +когда щёлкнут по зелёному флагу +повернуться к (Земля v) +повторять всегда + идти (2) шагов + если касается края, оттолкнуться +end +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/ru-RU/step_7.md b/ru-RU/step_7.md new file mode 100644 index 000000000..18dbeb1d2 --- /dev/null +++ b/ru-RU/step_7.md @@ -0,0 +1,63 @@ +## Сияющая звезда + +Теперь ты будешь объединять циклы, чтобы сделать сияющую звезду. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +повторить (10) раз +end + +когда щёлкнут по зелёному флагу + +повторить (10) раз +end + +изменить размер на (10) % + +изменить размер на (10) % + +повторять всегда +end +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Star sprite](images/sprite-star.png) + +```blocks3 +когда щёлкнут по зелёному флагу +повторять всегда + повторить (20) раз + изменить размер на (2) % + end + повторить (20) раз + изменить размер на (-2) % + end +end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/ru-RU/step_8.md b/ru-RU/step_8.md new file mode 100644 index 000000000..2212e4b16 --- /dev/null +++ b/ru-RU/step_8.md @@ -0,0 +1,7 @@ +## Задание: создать собственную анимацию + +Останови свою космическую анимацию, сохрани её и начни новый проект Scratch. + +Используй то, что ты узнал в этом проекте для создания собственной анимации. Это может быть что угодно, но постарайся, чтобы анимация соответствовала выбранному тобой фону. Вот некоторые примеры: + +![снимок экрана](images/space-egs.png) \ No newline at end of file diff --git a/ru-RU/step_9.md b/ru-RU/step_9.md new file mode 100644 index 000000000..6043aa32c --- /dev/null +++ b/ru-RU/step_9.md @@ -0,0 +1,18 @@ +## Что дальше? + +Попробуй проект [Охотники за приведениями](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects)! В этом проекте ты узнаешь, как создать игру с призраками, которые появляются повсюду и которые тебе нужно поймать. Ты также узнаешь, как добавить в игру таймер и счёт, чтобы увидеть, сколько призраков ты сможешь поймать. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![пример](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/si-LK/images/banner.png b/si-LK/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/si-LK/images/banner.png differ diff --git a/si-LK/images/ghostbusters-static.png b/si-LK/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/si-LK/images/ghostbusters-static.png differ diff --git a/si-LK/images/lost-in-space.png b/si-LK/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/si-LK/images/lost-in-space.png differ diff --git a/si-LK/images/make-white.png b/si-LK/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/si-LK/images/make-white.png differ diff --git a/si-LK/images/montage-1.png b/si-LK/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/si-LK/images/montage-1.png differ diff --git a/si-LK/images/montage-2.png b/si-LK/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/si-LK/images/montage-2.png differ diff --git a/si-LK/images/montage-3.png b/si-LK/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/si-LK/images/montage-3.png differ diff --git a/si-LK/images/showcase_static.png b/si-LK/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/si-LK/images/showcase_static.png differ diff --git a/si-LK/images/space-animate-stage.png b/si-LK/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/si-LK/images/space-animate-stage.png differ diff --git a/si-LK/images/space-backdrop.png b/si-LK/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/si-LK/images/space-backdrop.png differ diff --git a/si-LK/images/space-bounce-test.png b/si-LK/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/si-LK/images/space-bounce-test.png differ diff --git a/si-LK/images/space-colour-test.png b/si-LK/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/si-LK/images/space-colour-test.png differ diff --git a/si-LK/images/space-costume.png b/si-LK/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/si-LK/images/space-costume.png differ diff --git a/si-LK/images/space-egs.png b/si-LK/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/si-LK/images/space-egs.png differ diff --git a/si-LK/images/space-monkey-edit.png b/si-LK/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/si-LK/images/space-monkey-edit.png differ diff --git a/si-LK/images/space-monkey-sprite.png b/si-LK/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/si-LK/images/space-monkey-sprite.png differ diff --git a/si-LK/images/space-rock-sprite.png b/si-LK/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/si-LK/images/space-rock-sprite.png differ diff --git a/si-LK/images/space-rotate.png b/si-LK/images/space-rotate.png new file mode 100644 index 000000000..916fb08f0 Binary files /dev/null and b/si-LK/images/space-rotate.png differ diff --git a/si-LK/images/space-size-test.png b/si-LK/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/si-LK/images/space-size-test.png differ diff --git a/si-LK/images/space-spin-test.png b/si-LK/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/si-LK/images/space-spin-test.png differ diff --git a/si-LK/images/space-sprites.png b/si-LK/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/si-LK/images/space-sprites.png differ diff --git a/si-LK/images/space-star-sprite.png b/si-LK/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/si-LK/images/space-star-sprite.png differ diff --git a/si-LK/images/sprite-earth.png b/si-LK/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/si-LK/images/sprite-earth.png differ diff --git a/si-LK/images/sprite-monkey.png b/si-LK/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/si-LK/images/sprite-monkey.png differ diff --git a/si-LK/images/sprite-rock.png b/si-LK/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/si-LK/images/sprite-rock.png differ diff --git a/si-LK/images/sprite-spaceship.png b/si-LK/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/si-LK/images/sprite-spaceship.png differ diff --git a/si-LK/images/sprite-star.png b/si-LK/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/si-LK/images/sprite-star.png differ diff --git a/si-LK/images/trim_and_tile.sh b/si-LK/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/si-LK/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/si-LK/meta.yml b/si-LK/meta.yml new file mode 100644 index 000000000..b207a1b45 --- /dev/null +++ b/si-LK/meta.yml @@ -0,0 +1,35 @@ +--- +title: Lost in space +hero_image: images/lost-in-space.png +description: Learn how to program your own animation! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introduction + - + title: Animating a spaceship + - + title: 'Challenge: improve your animation' + challenge: true + - + title: Animation using loops + completion: + - engaged + - + title: Floating monkey + - + title: Bouncing asteroid + - + title: Shining star + completion: + - internal + - + title: 'Challenge: make your own animation' + challenge: true + - + title: What next? diff --git a/si-LK/scratch-translatable.txt b/si-LK/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/si-LK/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/si-LK/solutions/lost-in-space-solution.sb3 b/si-LK/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/si-LK/solutions/lost-in-space-solution.sb3 differ diff --git a/si-LK/step_1.md b/si-LK/step_1.md new file mode 100644 index 000000000..bc43f86cd --- /dev/null +++ b/si-LK/step_1.md @@ -0,0 +1,60 @@ +## Introduction + +You are going to learn how to program your own animation! + +### What you will make + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: What you will need + +### Hardware + +- A computer capable of running Scratch 3 + +### Software + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + +- None + +\--- /collapse \--- + +## \--- collapse \--- + +## title: What you will learn + +- Use a repeat loop to animate a sprite in Scratch +- Use a forever loop to repeat an animation indefinitely +- Understand that loops can be nested within each other + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Additional information for educators + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/si-LK/step_2.md b/si-LK/step_2.md new file mode 100644 index 000000000..cbcdff0c6 --- /dev/null +++ b/si-LK/step_2.md @@ -0,0 +1,72 @@ +## Animating a spaceship + +Your first step will be to create a spaceship that flies towards the Earth! + +\--- task \--- + +Open a new Scratch project. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** open a new project in the offline editor. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/si-LK/step_3.md b/si-LK/step_3.md new file mode 100644 index 000000000..4af9cb400 --- /dev/null +++ b/si-LK/step_3.md @@ -0,0 +1,16 @@ +## Challenge: improve your animation + +Can you change the numbers in your animation code so that: + ++ The spaceship moves until it touches the Earth? ++ The spaceship moves more slowly towards the Earth? + +You'll need to change the numbers in this block: + +![Rocketship sprite](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/si-LK/step_4.md b/si-LK/step_4.md new file mode 100644 index 000000000..0e1397c55 --- /dev/null +++ b/si-LK/step_4.md @@ -0,0 +1,126 @@ +## Animation using loops + +Another way to animate the spaceship is to tell it to move a small amount many times + +\--- task \--- + +Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testing a spaceship animation](images/space-animate-stage.png) + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Your spaceship should start at `100% size`{:class="blocklooks"}, and then `change size`{:class="blocklooks"} by a small amount each time it moves. + +\--- /hint \--- + +\--- hint \--- + +You will need to add these blocks to your code: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Your code should look like this: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/si-LK/step_5.md b/si-LK/step_5.md new file mode 100644 index 000000000..ab4c451b7 --- /dev/null +++ b/si-LK/step_5.md @@ -0,0 +1,70 @@ +## Floating monkey + +Now you will add a monkey who's lost in space to your animation! + +\--- task \--- + +Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/si-LK/step_6.md b/si-LK/step_6.md new file mode 100644 index 000000000..729b6d975 --- /dev/null +++ b/si-LK/step_6.md @@ -0,0 +1,59 @@ +## Bouncing asteroid + +Now you will add a floating space rock to your animation. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/si-LK/step_7.md b/si-LK/step_7.md new file mode 100644 index 000000000..e53504c76 --- /dev/null +++ b/si-LK/step_7.md @@ -0,0 +1,61 @@ +## Shining star + +Now you will combine loops to make a shining star. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Star sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/si-LK/step_8.md b/si-LK/step_8.md new file mode 100644 index 000000000..841b139ec --- /dev/null +++ b/si-LK/step_8.md @@ -0,0 +1,7 @@ +## Challenge: make your own animation + +Stop your space animation, save it, and start a new Scratch project. + +Use what you've learned in this project to make your own animation. It can be anything you like, but try to make your animation match the background you choose. Here are some examples: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/si-LK/step_9.md b/si-LK/step_9.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/si-LK/step_9.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/sk-SK/images/banner.png b/sk-SK/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/sk-SK/images/banner.png differ diff --git a/sk-SK/images/ghostbusters-static.png b/sk-SK/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/sk-SK/images/ghostbusters-static.png differ diff --git a/sk-SK/images/lost-in-space.png b/sk-SK/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/sk-SK/images/lost-in-space.png differ diff --git a/sk-SK/images/make-white.png b/sk-SK/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/sk-SK/images/make-white.png differ diff --git a/sk-SK/images/montage-1.png b/sk-SK/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/sk-SK/images/montage-1.png differ diff --git a/sk-SK/images/montage-2.png b/sk-SK/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/sk-SK/images/montage-2.png differ diff --git a/sk-SK/images/montage-3.png b/sk-SK/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/sk-SK/images/montage-3.png differ diff --git a/sk-SK/images/showcase_static.png b/sk-SK/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/sk-SK/images/showcase_static.png differ diff --git a/sk-SK/images/space-animate-stage.png b/sk-SK/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/sk-SK/images/space-animate-stage.png differ diff --git a/sk-SK/images/space-backdrop.png b/sk-SK/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/sk-SK/images/space-backdrop.png differ diff --git a/sk-SK/images/space-bounce-test.png b/sk-SK/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/sk-SK/images/space-bounce-test.png differ diff --git a/sk-SK/images/space-colour-test.png b/sk-SK/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/sk-SK/images/space-colour-test.png differ diff --git a/sk-SK/images/space-costume.png b/sk-SK/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/sk-SK/images/space-costume.png differ diff --git a/sk-SK/images/space-egs.png b/sk-SK/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/sk-SK/images/space-egs.png differ diff --git a/sk-SK/images/space-monkey-edit.png b/sk-SK/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/sk-SK/images/space-monkey-edit.png differ diff --git a/sk-SK/images/space-monkey-sprite.png b/sk-SK/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/sk-SK/images/space-monkey-sprite.png differ diff --git a/sk-SK/images/space-rock-sprite.png b/sk-SK/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/sk-SK/images/space-rock-sprite.png differ diff --git a/sk-SK/images/space-rotate.png b/sk-SK/images/space-rotate.png new file mode 100644 index 000000000..916fb08f0 Binary files /dev/null and b/sk-SK/images/space-rotate.png differ diff --git a/sk-SK/images/space-size-test.png b/sk-SK/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/sk-SK/images/space-size-test.png differ diff --git a/sk-SK/images/space-spin-test.png b/sk-SK/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/sk-SK/images/space-spin-test.png differ diff --git a/sk-SK/images/space-sprites.png b/sk-SK/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/sk-SK/images/space-sprites.png differ diff --git a/sk-SK/images/space-star-sprite.png b/sk-SK/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/sk-SK/images/space-star-sprite.png differ diff --git a/sk-SK/images/sprite-earth.png b/sk-SK/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/sk-SK/images/sprite-earth.png differ diff --git a/sk-SK/images/sprite-monkey.png b/sk-SK/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/sk-SK/images/sprite-monkey.png differ diff --git a/sk-SK/images/sprite-rock.png b/sk-SK/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/sk-SK/images/sprite-rock.png differ diff --git a/sk-SK/images/sprite-spaceship.png b/sk-SK/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/sk-SK/images/sprite-spaceship.png differ diff --git a/sk-SK/images/sprite-star.png b/sk-SK/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/sk-SK/images/sprite-star.png differ diff --git a/sk-SK/images/trim_and_tile.sh b/sk-SK/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/sk-SK/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/sk-SK/meta.yml b/sk-SK/meta.yml new file mode 100644 index 000000000..b207a1b45 --- /dev/null +++ b/sk-SK/meta.yml @@ -0,0 +1,35 @@ +--- +title: Lost in space +hero_image: images/lost-in-space.png +description: Learn how to program your own animation! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introduction + - + title: Animating a spaceship + - + title: 'Challenge: improve your animation' + challenge: true + - + title: Animation using loops + completion: + - engaged + - + title: Floating monkey + - + title: Bouncing asteroid + - + title: Shining star + completion: + - internal + - + title: 'Challenge: make your own animation' + challenge: true + - + title: What next? diff --git a/sk-SK/scratch-translatable.txt b/sk-SK/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/sk-SK/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/sk-SK/solutions/lost-in-space-solution.sb3 b/sk-SK/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/sk-SK/solutions/lost-in-space-solution.sb3 differ diff --git a/sk-SK/step_1.md b/sk-SK/step_1.md new file mode 100644 index 000000000..bc43f86cd --- /dev/null +++ b/sk-SK/step_1.md @@ -0,0 +1,60 @@ +## Introduction + +You are going to learn how to program your own animation! + +### What you will make + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: What you will need + +### Hardware + +- A computer capable of running Scratch 3 + +### Software + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + +- None + +\--- /collapse \--- + +## \--- collapse \--- + +## title: What you will learn + +- Use a repeat loop to animate a sprite in Scratch +- Use a forever loop to repeat an animation indefinitely +- Understand that loops can be nested within each other + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Additional information for educators + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/sk-SK/step_10.md b/sk-SK/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/sk-SK/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/sk-SK/step_2.md b/sk-SK/step_2.md new file mode 100644 index 000000000..cbcdff0c6 --- /dev/null +++ b/sk-SK/step_2.md @@ -0,0 +1,72 @@ +## Animating a spaceship + +Your first step will be to create a spaceship that flies towards the Earth! + +\--- task \--- + +Open a new Scratch project. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** open a new project in the offline editor. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/sk-SK/step_3.md b/sk-SK/step_3.md new file mode 100644 index 000000000..4af9cb400 --- /dev/null +++ b/sk-SK/step_3.md @@ -0,0 +1,16 @@ +## Challenge: improve your animation + +Can you change the numbers in your animation code so that: + ++ The spaceship moves until it touches the Earth? ++ The spaceship moves more slowly towards the Earth? + +You'll need to change the numbers in this block: + +![Rocketship sprite](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/sk-SK/step_4.md b/sk-SK/step_4.md new file mode 100644 index 000000000..0e1397c55 --- /dev/null +++ b/sk-SK/step_4.md @@ -0,0 +1,126 @@ +## Animation using loops + +Another way to animate the spaceship is to tell it to move a small amount many times + +\--- task \--- + +Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testing a spaceship animation](images/space-animate-stage.png) + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Your spaceship should start at `100% size`{:class="blocklooks"}, and then `change size`{:class="blocklooks"} by a small amount each time it moves. + +\--- /hint \--- + +\--- hint \--- + +You will need to add these blocks to your code: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Your code should look like this: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/sk-SK/step_5.md b/sk-SK/step_5.md new file mode 100644 index 000000000..ab4c451b7 --- /dev/null +++ b/sk-SK/step_5.md @@ -0,0 +1,70 @@ +## Floating monkey + +Now you will add a monkey who's lost in space to your animation! + +\--- task \--- + +Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/sk-SK/step_6.md b/sk-SK/step_6.md new file mode 100644 index 000000000..729b6d975 --- /dev/null +++ b/sk-SK/step_6.md @@ -0,0 +1,59 @@ +## Bouncing asteroid + +Now you will add a floating space rock to your animation. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/sk-SK/step_7.md b/sk-SK/step_7.md new file mode 100644 index 000000000..e53504c76 --- /dev/null +++ b/sk-SK/step_7.md @@ -0,0 +1,61 @@ +## Shining star + +Now you will combine loops to make a shining star. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Star sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/sk-SK/step_8.md b/sk-SK/step_8.md new file mode 100644 index 000000000..841b139ec --- /dev/null +++ b/sk-SK/step_8.md @@ -0,0 +1,7 @@ +## Challenge: make your own animation + +Stop your space animation, save it, and start a new Scratch project. + +Use what you've learned in this project to make your own animation. It can be anything you like, but try to make your animation match the background you choose. Here are some examples: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/sk-SK/step_9.md b/sk-SK/step_9.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/sk-SK/step_9.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/sl-SI/images/banner.png b/sl-SI/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/sl-SI/images/banner.png differ diff --git a/sl-SI/images/ghostbusters-static.png b/sl-SI/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/sl-SI/images/ghostbusters-static.png differ diff --git a/sl-SI/images/lost-in-space.png b/sl-SI/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/sl-SI/images/lost-in-space.png differ diff --git a/sl-SI/images/make-white.png b/sl-SI/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/sl-SI/images/make-white.png differ diff --git a/sl-SI/images/montage-1.png b/sl-SI/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/sl-SI/images/montage-1.png differ diff --git a/sl-SI/images/montage-2.png b/sl-SI/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/sl-SI/images/montage-2.png differ diff --git a/sl-SI/images/montage-3.png b/sl-SI/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/sl-SI/images/montage-3.png differ diff --git a/sl-SI/images/showcase_static.png b/sl-SI/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/sl-SI/images/showcase_static.png differ diff --git a/sl-SI/images/space-animate-stage.png b/sl-SI/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/sl-SI/images/space-animate-stage.png differ diff --git a/sl-SI/images/space-animate.png b/sl-SI/images/space-animate.png new file mode 100644 index 000000000..13746203c Binary files /dev/null and b/sl-SI/images/space-animate.png differ diff --git a/sl-SI/images/space-backdrop.png b/sl-SI/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/sl-SI/images/space-backdrop.png differ diff --git a/sl-SI/images/space-bounce-blocks.png b/sl-SI/images/space-bounce-blocks.png new file mode 100644 index 000000000..d0775658f Binary files /dev/null and b/sl-SI/images/space-bounce-blocks.png differ diff --git a/sl-SI/images/space-bounce-code.png b/sl-SI/images/space-bounce-code.png new file mode 100644 index 000000000..37d440942 Binary files /dev/null and b/sl-SI/images/space-bounce-code.png differ diff --git a/sl-SI/images/space-bounce-test.png b/sl-SI/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/sl-SI/images/space-bounce-test.png differ diff --git a/sl-SI/images/space-colour-blocks.png b/sl-SI/images/space-colour-blocks.png new file mode 100644 index 000000000..edb894953 Binary files /dev/null and b/sl-SI/images/space-colour-blocks.png differ diff --git a/sl-SI/images/space-colour-code.png b/sl-SI/images/space-colour-code.png new file mode 100644 index 000000000..ca140c158 Binary files /dev/null and b/sl-SI/images/space-colour-code.png differ diff --git a/sl-SI/images/space-colour-test.png b/sl-SI/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/sl-SI/images/space-colour-test.png differ diff --git a/sl-SI/images/space-costume.png b/sl-SI/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/sl-SI/images/space-costume.png differ diff --git a/sl-SI/images/space-delete-glide.png b/sl-SI/images/space-delete-glide.png new file mode 100644 index 000000000..2447e07f3 Binary files /dev/null and b/sl-SI/images/space-delete-glide.png differ diff --git a/sl-SI/images/space-egs.png b/sl-SI/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/sl-SI/images/space-egs.png differ diff --git a/sl-SI/images/space-glide.png b/sl-SI/images/space-glide.png new file mode 100644 index 000000000..384e1a5e7 Binary files /dev/null and b/sl-SI/images/space-glide.png differ diff --git a/sl-SI/images/space-initial-position.png b/sl-SI/images/space-initial-position.png new file mode 100644 index 000000000..9c596dfec Binary files /dev/null and b/sl-SI/images/space-initial-position.png differ diff --git a/sl-SI/images/space-monkey-edit.png b/sl-SI/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/sl-SI/images/space-monkey-edit.png differ diff --git a/sl-SI/images/space-monkey-sprite.png b/sl-SI/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/sl-SI/images/space-monkey-sprite.png differ diff --git a/sl-SI/images/space-repeat-blocks.png b/sl-SI/images/space-repeat-blocks.png new file mode 100644 index 000000000..98ea7d04b Binary files /dev/null and b/sl-SI/images/space-repeat-blocks.png differ diff --git a/sl-SI/images/space-repeat-code.png b/sl-SI/images/space-repeat-code.png new file mode 100644 index 000000000..57fb6387b Binary files /dev/null and b/sl-SI/images/space-repeat-code.png differ diff --git a/sl-SI/images/space-rock-sprite.png b/sl-SI/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/sl-SI/images/space-rock-sprite.png differ diff --git a/sl-SI/images/space-rotate.png b/sl-SI/images/space-rotate.png new file mode 100644 index 000000000..916fb08f0 Binary files /dev/null and b/sl-SI/images/space-rotate.png differ diff --git a/sl-SI/images/space-size-blocks.png b/sl-SI/images/space-size-blocks.png new file mode 100644 index 000000000..fe2b9f9fd Binary files /dev/null and b/sl-SI/images/space-size-blocks.png differ diff --git a/sl-SI/images/space-size-code.png b/sl-SI/images/space-size-code.png new file mode 100644 index 000000000..2db43f72f Binary files /dev/null and b/sl-SI/images/space-size-code.png differ diff --git a/sl-SI/images/space-size-test.png b/sl-SI/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/sl-SI/images/space-size-test.png differ diff --git a/sl-SI/images/space-spin-blocks.png b/sl-SI/images/space-spin-blocks.png new file mode 100644 index 000000000..749c89c49 Binary files /dev/null and b/sl-SI/images/space-spin-blocks.png differ diff --git a/sl-SI/images/space-spin-code.png b/sl-SI/images/space-spin-code.png new file mode 100644 index 000000000..3ec776df9 Binary files /dev/null and b/sl-SI/images/space-spin-code.png differ diff --git a/sl-SI/images/space-spin-test.png b/sl-SI/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/sl-SI/images/space-spin-test.png differ diff --git a/sl-SI/images/space-sprites.png b/sl-SI/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/sl-SI/images/space-sprites.png differ diff --git a/sl-SI/images/space-star-blocks.png b/sl-SI/images/space-star-blocks.png new file mode 100644 index 000000000..c5671b464 Binary files /dev/null and b/sl-SI/images/space-star-blocks.png differ diff --git a/sl-SI/images/space-star-code.png b/sl-SI/images/space-star-code.png new file mode 100644 index 000000000..dbf1bfd1f Binary files /dev/null and b/sl-SI/images/space-star-code.png differ diff --git a/sl-SI/images/space-star-sprite.png b/sl-SI/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/sl-SI/images/space-star-sprite.png differ diff --git a/sl-SI/images/space-star-test.png b/sl-SI/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/sl-SI/images/space-star-test.png differ diff --git a/sl-SI/images/sprite-earth.png b/sl-SI/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/sl-SI/images/sprite-earth.png differ diff --git a/sl-SI/images/sprite-monkey.png b/sl-SI/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/sl-SI/images/sprite-monkey.png differ diff --git a/sl-SI/images/sprite-rock.png b/sl-SI/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/sl-SI/images/sprite-rock.png differ diff --git a/sl-SI/images/sprite-spaceship.png b/sl-SI/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/sl-SI/images/sprite-spaceship.png differ diff --git a/sl-SI/images/sprite-star.png b/sl-SI/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/sl-SI/images/sprite-star.png differ diff --git a/sl-SI/images/trim_and_tile.sh b/sl-SI/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/sl-SI/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/sl-SI/meta.yml b/sl-SI/meta.yml new file mode 100644 index 000000000..b207a1b45 --- /dev/null +++ b/sl-SI/meta.yml @@ -0,0 +1,35 @@ +--- +title: Lost in space +hero_image: images/lost-in-space.png +description: Learn how to program your own animation! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introduction + - + title: Animating a spaceship + - + title: 'Challenge: improve your animation' + challenge: true + - + title: Animation using loops + completion: + - engaged + - + title: Floating monkey + - + title: Bouncing asteroid + - + title: Shining star + completion: + - internal + - + title: 'Challenge: make your own animation' + challenge: true + - + title: What next? diff --git a/sl-SI/resources/LostinSpace-Finished.sb2 b/sl-SI/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..50c05bb4c Binary files /dev/null and b/sl-SI/resources/LostinSpace-Finished.sb2 differ diff --git a/sl-SI/scratch-translatable.txt b/sl-SI/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/sl-SI/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/sl-SI/solutions/lost-in-space-solution.sb3 b/sl-SI/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/sl-SI/solutions/lost-in-space-solution.sb3 differ diff --git a/sl-SI/step_1.md b/sl-SI/step_1.md new file mode 100644 index 000000000..bc43f86cd --- /dev/null +++ b/sl-SI/step_1.md @@ -0,0 +1,60 @@ +## Introduction + +You are going to learn how to program your own animation! + +### What you will make + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: What you will need + +### Hardware + +- A computer capable of running Scratch 3 + +### Software + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + +- None + +\--- /collapse \--- + +## \--- collapse \--- + +## title: What you will learn + +- Use a repeat loop to animate a sprite in Scratch +- Use a forever loop to repeat an animation indefinitely +- Understand that loops can be nested within each other + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Additional information for educators + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/sl-SI/step_10.md b/sl-SI/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/sl-SI/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/sl-SI/step_2.md b/sl-SI/step_2.md new file mode 100644 index 000000000..cbcdff0c6 --- /dev/null +++ b/sl-SI/step_2.md @@ -0,0 +1,72 @@ +## Animating a spaceship + +Your first step will be to create a spaceship that flies towards the Earth! + +\--- task \--- + +Open a new Scratch project. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** open a new project in the offline editor. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/sl-SI/step_3.md b/sl-SI/step_3.md new file mode 100644 index 000000000..4af9cb400 --- /dev/null +++ b/sl-SI/step_3.md @@ -0,0 +1,16 @@ +## Challenge: improve your animation + +Can you change the numbers in your animation code so that: + ++ The spaceship moves until it touches the Earth? ++ The spaceship moves more slowly towards the Earth? + +You'll need to change the numbers in this block: + +![Rocketship sprite](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/sl-SI/step_4.md b/sl-SI/step_4.md new file mode 100644 index 000000000..0e1397c55 --- /dev/null +++ b/sl-SI/step_4.md @@ -0,0 +1,126 @@ +## Animation using loops + +Another way to animate the spaceship is to tell it to move a small amount many times + +\--- task \--- + +Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testing a spaceship animation](images/space-animate-stage.png) + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Your spaceship should start at `100% size`{:class="blocklooks"}, and then `change size`{:class="blocklooks"} by a small amount each time it moves. + +\--- /hint \--- + +\--- hint \--- + +You will need to add these blocks to your code: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Your code should look like this: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/sl-SI/step_5.md b/sl-SI/step_5.md new file mode 100644 index 000000000..ab4c451b7 --- /dev/null +++ b/sl-SI/step_5.md @@ -0,0 +1,70 @@ +## Floating monkey + +Now you will add a monkey who's lost in space to your animation! + +\--- task \--- + +Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/sl-SI/step_6.md b/sl-SI/step_6.md new file mode 100644 index 000000000..729b6d975 --- /dev/null +++ b/sl-SI/step_6.md @@ -0,0 +1,59 @@ +## Bouncing asteroid + +Now you will add a floating space rock to your animation. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/sl-SI/step_7.md b/sl-SI/step_7.md new file mode 100644 index 000000000..e53504c76 --- /dev/null +++ b/sl-SI/step_7.md @@ -0,0 +1,61 @@ +## Shining star + +Now you will combine loops to make a shining star. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Star sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/sl-SI/step_8.md b/sl-SI/step_8.md new file mode 100644 index 000000000..841b139ec --- /dev/null +++ b/sl-SI/step_8.md @@ -0,0 +1,7 @@ +## Challenge: make your own animation + +Stop your space animation, save it, and start a new Scratch project. + +Use what you've learned in this project to make your own animation. It can be anything you like, but try to make your animation match the background you choose. Here are some examples: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/sl-SI/step_9.md b/sl-SI/step_9.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/sl-SI/step_9.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/sr-SP/images/banner.png b/sr-SP/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/sr-SP/images/banner.png differ diff --git a/sr-SP/images/ghostbusters-static.png b/sr-SP/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/sr-SP/images/ghostbusters-static.png differ diff --git a/sr-SP/images/lost-in-space.png b/sr-SP/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/sr-SP/images/lost-in-space.png differ diff --git a/sr-SP/images/make-white.png b/sr-SP/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/sr-SP/images/make-white.png differ diff --git a/sr-SP/images/montage-1.png b/sr-SP/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/sr-SP/images/montage-1.png differ diff --git a/sr-SP/images/montage-2.png b/sr-SP/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/sr-SP/images/montage-2.png differ diff --git a/sr-SP/images/montage-3.png b/sr-SP/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/sr-SP/images/montage-3.png differ diff --git a/sr-SP/images/showcase_static.png b/sr-SP/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/sr-SP/images/showcase_static.png differ diff --git a/sr-SP/images/space-animate-stage.png b/sr-SP/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/sr-SP/images/space-animate-stage.png differ diff --git a/sr-SP/images/space-animate.png b/sr-SP/images/space-animate.png new file mode 100644 index 000000000..46a5038ab Binary files /dev/null and b/sr-SP/images/space-animate.png differ diff --git a/sr-SP/images/space-backdrop.png b/sr-SP/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/sr-SP/images/space-backdrop.png differ diff --git a/sr-SP/images/space-bounce-blocks.png b/sr-SP/images/space-bounce-blocks.png new file mode 100644 index 000000000..9294bb7f7 Binary files /dev/null and b/sr-SP/images/space-bounce-blocks.png differ diff --git a/sr-SP/images/space-bounce-code.png b/sr-SP/images/space-bounce-code.png new file mode 100644 index 000000000..e8791d62f Binary files /dev/null and b/sr-SP/images/space-bounce-code.png differ diff --git a/sr-SP/images/space-bounce-test.png b/sr-SP/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/sr-SP/images/space-bounce-test.png differ diff --git a/sr-SP/images/space-colour-blocks.png b/sr-SP/images/space-colour-blocks.png new file mode 100644 index 000000000..54461788b Binary files /dev/null and b/sr-SP/images/space-colour-blocks.png differ diff --git a/sr-SP/images/space-colour-code.png b/sr-SP/images/space-colour-code.png new file mode 100644 index 000000000..8afbd513d Binary files /dev/null and b/sr-SP/images/space-colour-code.png differ diff --git a/sr-SP/images/space-colour-test.png b/sr-SP/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/sr-SP/images/space-colour-test.png differ diff --git a/sr-SP/images/space-costume.png b/sr-SP/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/sr-SP/images/space-costume.png differ diff --git a/sr-SP/images/space-delete-glide.png b/sr-SP/images/space-delete-glide.png new file mode 100644 index 000000000..1d6fe71a9 Binary files /dev/null and b/sr-SP/images/space-delete-glide.png differ diff --git a/sr-SP/images/space-egs.png b/sr-SP/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/sr-SP/images/space-egs.png differ diff --git a/sr-SP/images/space-glide.png b/sr-SP/images/space-glide.png new file mode 100644 index 000000000..c04d7bfa9 Binary files /dev/null and b/sr-SP/images/space-glide.png differ diff --git a/sr-SP/images/space-initial-position.png b/sr-SP/images/space-initial-position.png new file mode 100644 index 000000000..260fa4f54 Binary files /dev/null and b/sr-SP/images/space-initial-position.png differ diff --git a/sr-SP/images/space-monkey-edit.png b/sr-SP/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/sr-SP/images/space-monkey-edit.png differ diff --git a/sr-SP/images/space-monkey-sprite.png b/sr-SP/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/sr-SP/images/space-monkey-sprite.png differ diff --git a/sr-SP/images/space-repeat-blocks.png b/sr-SP/images/space-repeat-blocks.png new file mode 100644 index 000000000..287663af6 Binary files /dev/null and b/sr-SP/images/space-repeat-blocks.png differ diff --git a/sr-SP/images/space-repeat-code.png b/sr-SP/images/space-repeat-code.png new file mode 100644 index 000000000..9800ca99d Binary files /dev/null and b/sr-SP/images/space-repeat-code.png differ diff --git a/sr-SP/images/space-rock-sprite.png b/sr-SP/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/sr-SP/images/space-rock-sprite.png differ diff --git a/sr-SP/images/space-rotate.png b/sr-SP/images/space-rotate.png new file mode 100644 index 000000000..916fb08f0 Binary files /dev/null and b/sr-SP/images/space-rotate.png differ diff --git a/sr-SP/images/space-size-blocks.png b/sr-SP/images/space-size-blocks.png new file mode 100644 index 000000000..1124075a4 Binary files /dev/null and b/sr-SP/images/space-size-blocks.png differ diff --git a/sr-SP/images/space-size-code.png b/sr-SP/images/space-size-code.png new file mode 100644 index 000000000..14c5d7bcc Binary files /dev/null and b/sr-SP/images/space-size-code.png differ diff --git a/sr-SP/images/space-size-test.png b/sr-SP/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/sr-SP/images/space-size-test.png differ diff --git a/sr-SP/images/space-spin-blocks.png b/sr-SP/images/space-spin-blocks.png new file mode 100644 index 000000000..ca9fd52ee Binary files /dev/null and b/sr-SP/images/space-spin-blocks.png differ diff --git a/sr-SP/images/space-spin-code.png b/sr-SP/images/space-spin-code.png new file mode 100644 index 000000000..8b3b016f9 Binary files /dev/null and b/sr-SP/images/space-spin-code.png differ diff --git a/sr-SP/images/space-spin-test.png b/sr-SP/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/sr-SP/images/space-spin-test.png differ diff --git a/sr-SP/images/space-sprites.png b/sr-SP/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/sr-SP/images/space-sprites.png differ diff --git a/sr-SP/images/space-star-blocks.png b/sr-SP/images/space-star-blocks.png new file mode 100644 index 000000000..f3b9f1e81 Binary files /dev/null and b/sr-SP/images/space-star-blocks.png differ diff --git a/sr-SP/images/space-star-code.png b/sr-SP/images/space-star-code.png new file mode 100644 index 000000000..7097d2e12 Binary files /dev/null and b/sr-SP/images/space-star-code.png differ diff --git a/sr-SP/images/space-star-sprite.png b/sr-SP/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/sr-SP/images/space-star-sprite.png differ diff --git a/sr-SP/images/space-star-test.png b/sr-SP/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/sr-SP/images/space-star-test.png differ diff --git a/sr-SP/images/sprite-earth.png b/sr-SP/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/sr-SP/images/sprite-earth.png differ diff --git a/sr-SP/images/sprite-monkey.png b/sr-SP/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/sr-SP/images/sprite-monkey.png differ diff --git a/sr-SP/images/sprite-rock.png b/sr-SP/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/sr-SP/images/sprite-rock.png differ diff --git a/sr-SP/images/sprite-spaceship.png b/sr-SP/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/sr-SP/images/sprite-spaceship.png differ diff --git a/sr-SP/images/sprite-star.png b/sr-SP/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/sr-SP/images/sprite-star.png differ diff --git a/sr-SP/images/trim_and_tile.sh b/sr-SP/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/sr-SP/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/sr-SP/meta.yml b/sr-SP/meta.yml new file mode 100644 index 000000000..b207a1b45 --- /dev/null +++ b/sr-SP/meta.yml @@ -0,0 +1,35 @@ +--- +title: Lost in space +hero_image: images/lost-in-space.png +description: Learn how to program your own animation! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introduction + - + title: Animating a spaceship + - + title: 'Challenge: improve your animation' + challenge: true + - + title: Animation using loops + completion: + - engaged + - + title: Floating monkey + - + title: Bouncing asteroid + - + title: Shining star + completion: + - internal + - + title: 'Challenge: make your own animation' + challenge: true + - + title: What next? diff --git a/sr-SP/resources/LostinSpace-Finished.sb2 b/sr-SP/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..89753817a Binary files /dev/null and b/sr-SP/resources/LostinSpace-Finished.sb2 differ diff --git a/sr-SP/scratch-translatable.txt b/sr-SP/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/sr-SP/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/sr-SP/solutions/lost-in-space-solution.sb3 b/sr-SP/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/sr-SP/solutions/lost-in-space-solution.sb3 differ diff --git a/sr-SP/step_1.md b/sr-SP/step_1.md new file mode 100644 index 000000000..bc43f86cd --- /dev/null +++ b/sr-SP/step_1.md @@ -0,0 +1,60 @@ +## Introduction + +You are going to learn how to program your own animation! + +### What you will make + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: What you will need + +### Hardware + +- A computer capable of running Scratch 3 + +### Software + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + +- None + +\--- /collapse \--- + +## \--- collapse \--- + +## title: What you will learn + +- Use a repeat loop to animate a sprite in Scratch +- Use a forever loop to repeat an animation indefinitely +- Understand that loops can be nested within each other + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Additional information for educators + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/sr-SP/step_10.md b/sr-SP/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/sr-SP/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/sr-SP/step_2.md b/sr-SP/step_2.md new file mode 100644 index 000000000..cbcdff0c6 --- /dev/null +++ b/sr-SP/step_2.md @@ -0,0 +1,72 @@ +## Animating a spaceship + +Your first step will be to create a spaceship that flies towards the Earth! + +\--- task \--- + +Open a new Scratch project. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** open a new project in the offline editor. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/sr-SP/step_3.md b/sr-SP/step_3.md new file mode 100644 index 000000000..4af9cb400 --- /dev/null +++ b/sr-SP/step_3.md @@ -0,0 +1,16 @@ +## Challenge: improve your animation + +Can you change the numbers in your animation code so that: + ++ The spaceship moves until it touches the Earth? ++ The spaceship moves more slowly towards the Earth? + +You'll need to change the numbers in this block: + +![Rocketship sprite](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/sr-SP/step_4.md b/sr-SP/step_4.md new file mode 100644 index 000000000..0e1397c55 --- /dev/null +++ b/sr-SP/step_4.md @@ -0,0 +1,126 @@ +## Animation using loops + +Another way to animate the spaceship is to tell it to move a small amount many times + +\--- task \--- + +Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testing a spaceship animation](images/space-animate-stage.png) + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Your spaceship should start at `100% size`{:class="blocklooks"}, and then `change size`{:class="blocklooks"} by a small amount each time it moves. + +\--- /hint \--- + +\--- hint \--- + +You will need to add these blocks to your code: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Your code should look like this: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/sr-SP/step_5.md b/sr-SP/step_5.md new file mode 100644 index 000000000..ab4c451b7 --- /dev/null +++ b/sr-SP/step_5.md @@ -0,0 +1,70 @@ +## Floating monkey + +Now you will add a monkey who's lost in space to your animation! + +\--- task \--- + +Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/sr-SP/step_6.md b/sr-SP/step_6.md new file mode 100644 index 000000000..729b6d975 --- /dev/null +++ b/sr-SP/step_6.md @@ -0,0 +1,59 @@ +## Bouncing asteroid + +Now you will add a floating space rock to your animation. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/sr-SP/step_7.md b/sr-SP/step_7.md new file mode 100644 index 000000000..e53504c76 --- /dev/null +++ b/sr-SP/step_7.md @@ -0,0 +1,61 @@ +## Shining star + +Now you will combine loops to make a shining star. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Star sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/sr-SP/step_8.md b/sr-SP/step_8.md new file mode 100644 index 000000000..841b139ec --- /dev/null +++ b/sr-SP/step_8.md @@ -0,0 +1,7 @@ +## Challenge: make your own animation + +Stop your space animation, save it, and start a new Scratch project. + +Use what you've learned in this project to make your own animation. It can be anything you like, but try to make your animation match the background you choose. Here are some examples: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/sr-SP/step_9.md b/sr-SP/step_9.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/sr-SP/step_9.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/sv-SE/images/banner.png b/sv-SE/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/sv-SE/images/banner.png differ diff --git a/sv-SE/images/ghostbusters-static.png b/sv-SE/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/sv-SE/images/ghostbusters-static.png differ diff --git a/sv-SE/images/lost-in-space.png b/sv-SE/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/sv-SE/images/lost-in-space.png differ diff --git a/sv-SE/images/make-white.png b/sv-SE/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/sv-SE/images/make-white.png differ diff --git a/sv-SE/images/montage-1.png b/sv-SE/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/sv-SE/images/montage-1.png differ diff --git a/sv-SE/images/montage-2.png b/sv-SE/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/sv-SE/images/montage-2.png differ diff --git a/sv-SE/images/montage-3.png b/sv-SE/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/sv-SE/images/montage-3.png differ diff --git a/sv-SE/images/showcase_static.png b/sv-SE/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/sv-SE/images/showcase_static.png differ diff --git a/sv-SE/images/space-animate-stage.png b/sv-SE/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/sv-SE/images/space-animate-stage.png differ diff --git a/sv-SE/images/space-backdrop.png b/sv-SE/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/sv-SE/images/space-backdrop.png differ diff --git a/sv-SE/images/space-bounce-test.png b/sv-SE/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/sv-SE/images/space-bounce-test.png differ diff --git a/sv-SE/images/space-colour-test.png b/sv-SE/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/sv-SE/images/space-colour-test.png differ diff --git a/sv-SE/images/space-costume.png b/sv-SE/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/sv-SE/images/space-costume.png differ diff --git a/sv-SE/images/space-egs.png b/sv-SE/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/sv-SE/images/space-egs.png differ diff --git a/sv-SE/images/space-monkey-edit.png b/sv-SE/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/sv-SE/images/space-monkey-edit.png differ diff --git a/sv-SE/images/space-monkey-sprite.png b/sv-SE/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/sv-SE/images/space-monkey-sprite.png differ diff --git a/sv-SE/images/space-rock-sprite.png b/sv-SE/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/sv-SE/images/space-rock-sprite.png differ diff --git a/sv-SE/images/space-rotate.png b/sv-SE/images/space-rotate.png new file mode 100644 index 000000000..916fb08f0 Binary files /dev/null and b/sv-SE/images/space-rotate.png differ diff --git a/sv-SE/images/space-size-test.png b/sv-SE/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/sv-SE/images/space-size-test.png differ diff --git a/sv-SE/images/space-spin-test.png b/sv-SE/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/sv-SE/images/space-spin-test.png differ diff --git a/sv-SE/images/space-sprites.png b/sv-SE/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/sv-SE/images/space-sprites.png differ diff --git a/sv-SE/images/space-star-sprite.png b/sv-SE/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/sv-SE/images/space-star-sprite.png differ diff --git a/sv-SE/images/sprite-earth.png b/sv-SE/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/sv-SE/images/sprite-earth.png differ diff --git a/sv-SE/images/sprite-monkey.png b/sv-SE/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/sv-SE/images/sprite-monkey.png differ diff --git a/sv-SE/images/sprite-rock.png b/sv-SE/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/sv-SE/images/sprite-rock.png differ diff --git a/sv-SE/images/sprite-spaceship.png b/sv-SE/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/sv-SE/images/sprite-spaceship.png differ diff --git a/sv-SE/images/sprite-star.png b/sv-SE/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/sv-SE/images/sprite-star.png differ diff --git a/sv-SE/images/trim_and_tile.sh b/sv-SE/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/sv-SE/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/sv-SE/meta.yml b/sv-SE/meta.yml new file mode 100644 index 000000000..b207a1b45 --- /dev/null +++ b/sv-SE/meta.yml @@ -0,0 +1,35 @@ +--- +title: Lost in space +hero_image: images/lost-in-space.png +description: Learn how to program your own animation! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introduction + - + title: Animating a spaceship + - + title: 'Challenge: improve your animation' + challenge: true + - + title: Animation using loops + completion: + - engaged + - + title: Floating monkey + - + title: Bouncing asteroid + - + title: Shining star + completion: + - internal + - + title: 'Challenge: make your own animation' + challenge: true + - + title: What next? diff --git a/sv-SE/scratch-translatable.txt b/sv-SE/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/sv-SE/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/sv-SE/solutions/lost-in-space-solution.sb3 b/sv-SE/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/sv-SE/solutions/lost-in-space-solution.sb3 differ diff --git a/sv-SE/step_1.md b/sv-SE/step_1.md new file mode 100644 index 000000000..bc43f86cd --- /dev/null +++ b/sv-SE/step_1.md @@ -0,0 +1,60 @@ +## Introduction + +You are going to learn how to program your own animation! + +### What you will make + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: What you will need + +### Hardware + +- A computer capable of running Scratch 3 + +### Software + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + +- None + +\--- /collapse \--- + +## \--- collapse \--- + +## title: What you will learn + +- Use a repeat loop to animate a sprite in Scratch +- Use a forever loop to repeat an animation indefinitely +- Understand that loops can be nested within each other + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Additional information for educators + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/sv-SE/step_10.md b/sv-SE/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/sv-SE/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/sv-SE/step_2.md b/sv-SE/step_2.md new file mode 100644 index 000000000..cbcdff0c6 --- /dev/null +++ b/sv-SE/step_2.md @@ -0,0 +1,72 @@ +## Animating a spaceship + +Your first step will be to create a spaceship that flies towards the Earth! + +\--- task \--- + +Open a new Scratch project. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** open a new project in the offline editor. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/sv-SE/step_3.md b/sv-SE/step_3.md new file mode 100644 index 000000000..4af9cb400 --- /dev/null +++ b/sv-SE/step_3.md @@ -0,0 +1,16 @@ +## Challenge: improve your animation + +Can you change the numbers in your animation code so that: + ++ The spaceship moves until it touches the Earth? ++ The spaceship moves more slowly towards the Earth? + +You'll need to change the numbers in this block: + +![Rocketship sprite](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/sv-SE/step_4.md b/sv-SE/step_4.md new file mode 100644 index 000000000..0e1397c55 --- /dev/null +++ b/sv-SE/step_4.md @@ -0,0 +1,126 @@ +## Animation using loops + +Another way to animate the spaceship is to tell it to move a small amount many times + +\--- task \--- + +Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testing a spaceship animation](images/space-animate-stage.png) + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Your spaceship should start at `100% size`{:class="blocklooks"}, and then `change size`{:class="blocklooks"} by a small amount each time it moves. + +\--- /hint \--- + +\--- hint \--- + +You will need to add these blocks to your code: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Your code should look like this: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/sv-SE/step_5.md b/sv-SE/step_5.md new file mode 100644 index 000000000..ab4c451b7 --- /dev/null +++ b/sv-SE/step_5.md @@ -0,0 +1,70 @@ +## Floating monkey + +Now you will add a monkey who's lost in space to your animation! + +\--- task \--- + +Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/sv-SE/step_6.md b/sv-SE/step_6.md new file mode 100644 index 000000000..729b6d975 --- /dev/null +++ b/sv-SE/step_6.md @@ -0,0 +1,59 @@ +## Bouncing asteroid + +Now you will add a floating space rock to your animation. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/sv-SE/step_7.md b/sv-SE/step_7.md new file mode 100644 index 000000000..e53504c76 --- /dev/null +++ b/sv-SE/step_7.md @@ -0,0 +1,61 @@ +## Shining star + +Now you will combine loops to make a shining star. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Star sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/sv-SE/step_8.md b/sv-SE/step_8.md new file mode 100644 index 000000000..841b139ec --- /dev/null +++ b/sv-SE/step_8.md @@ -0,0 +1,7 @@ +## Challenge: make your own animation + +Stop your space animation, save it, and start a new Scratch project. + +Use what you've learned in this project to make your own animation. It can be anything you like, but try to make your animation match the background you choose. Here are some examples: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/sv-SE/step_9.md b/sv-SE/step_9.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/sv-SE/step_9.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/ta-IN/images/banner.png b/ta-IN/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/ta-IN/images/banner.png differ diff --git a/ta-IN/images/ghostbusters-static.png b/ta-IN/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/ta-IN/images/ghostbusters-static.png differ diff --git a/ta-IN/images/lost-in-space.png b/ta-IN/images/lost-in-space.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/ta-IN/images/lost-in-space.png differ diff --git a/ta-IN/images/make-white.png b/ta-IN/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/ta-IN/images/make-white.png differ diff --git a/ta-IN/images/montage-1.png b/ta-IN/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/ta-IN/images/montage-1.png differ diff --git a/ta-IN/images/montage-2.png b/ta-IN/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/ta-IN/images/montage-2.png differ diff --git a/ta-IN/images/montage-3.png b/ta-IN/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/ta-IN/images/montage-3.png differ diff --git a/ta-IN/images/showcase_static.png b/ta-IN/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/ta-IN/images/showcase_static.png differ diff --git a/ta-IN/images/space-animate-stage.png b/ta-IN/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/ta-IN/images/space-animate-stage.png differ diff --git a/ta-IN/images/space-animate.png b/ta-IN/images/space-animate.png new file mode 100644 index 000000000..46a5038ab Binary files /dev/null and b/ta-IN/images/space-animate.png differ diff --git a/ta-IN/images/space-backdrop.png b/ta-IN/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/ta-IN/images/space-backdrop.png differ diff --git a/ta-IN/images/space-bounce-blocks.png b/ta-IN/images/space-bounce-blocks.png new file mode 100644 index 000000000..9294bb7f7 Binary files /dev/null and b/ta-IN/images/space-bounce-blocks.png differ diff --git a/ta-IN/images/space-bounce-code.png b/ta-IN/images/space-bounce-code.png new file mode 100644 index 000000000..e8791d62f Binary files /dev/null and b/ta-IN/images/space-bounce-code.png differ diff --git a/ta-IN/images/space-bounce-test.png b/ta-IN/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/ta-IN/images/space-bounce-test.png differ diff --git a/ta-IN/images/space-colour-blocks.png b/ta-IN/images/space-colour-blocks.png new file mode 100644 index 000000000..54461788b Binary files /dev/null and b/ta-IN/images/space-colour-blocks.png differ diff --git a/ta-IN/images/space-colour-code.png b/ta-IN/images/space-colour-code.png new file mode 100644 index 000000000..8afbd513d Binary files /dev/null and b/ta-IN/images/space-colour-code.png differ diff --git a/ta-IN/images/space-colour-test.png b/ta-IN/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/ta-IN/images/space-colour-test.png differ diff --git a/ta-IN/images/space-costume.png b/ta-IN/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/ta-IN/images/space-costume.png differ diff --git a/ta-IN/images/space-delete-glide.png b/ta-IN/images/space-delete-glide.png new file mode 100644 index 000000000..1d6fe71a9 Binary files /dev/null and b/ta-IN/images/space-delete-glide.png differ diff --git a/ta-IN/images/space-egs.png b/ta-IN/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/ta-IN/images/space-egs.png differ diff --git a/ta-IN/images/space-glide.png b/ta-IN/images/space-glide.png new file mode 100644 index 000000000..c04d7bfa9 Binary files /dev/null and b/ta-IN/images/space-glide.png differ diff --git a/ta-IN/images/space-initial-position.png b/ta-IN/images/space-initial-position.png new file mode 100644 index 000000000..260fa4f54 Binary files /dev/null and b/ta-IN/images/space-initial-position.png differ diff --git a/ta-IN/images/space-monkey-edit.png b/ta-IN/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/ta-IN/images/space-monkey-edit.png differ diff --git a/ta-IN/images/space-monkey-sprite.png b/ta-IN/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/ta-IN/images/space-monkey-sprite.png differ diff --git a/ta-IN/images/space-repeat-blocks.png b/ta-IN/images/space-repeat-blocks.png new file mode 100644 index 000000000..287663af6 Binary files /dev/null and b/ta-IN/images/space-repeat-blocks.png differ diff --git a/ta-IN/images/space-repeat-code.png b/ta-IN/images/space-repeat-code.png new file mode 100644 index 000000000..9800ca99d Binary files /dev/null and b/ta-IN/images/space-repeat-code.png differ diff --git a/ta-IN/images/space-rock-sprite.png b/ta-IN/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/ta-IN/images/space-rock-sprite.png differ diff --git a/ta-IN/images/space-rotate.png b/ta-IN/images/space-rotate.png new file mode 100644 index 000000000..916fb08f0 Binary files /dev/null and b/ta-IN/images/space-rotate.png differ diff --git a/ta-IN/images/space-size-blocks.png b/ta-IN/images/space-size-blocks.png new file mode 100644 index 000000000..1124075a4 Binary files /dev/null and b/ta-IN/images/space-size-blocks.png differ diff --git a/ta-IN/images/space-size-code.png b/ta-IN/images/space-size-code.png new file mode 100644 index 000000000..14c5d7bcc Binary files /dev/null and b/ta-IN/images/space-size-code.png differ diff --git a/ta-IN/images/space-size-test.png b/ta-IN/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/ta-IN/images/space-size-test.png differ diff --git a/ta-IN/images/space-spin-blocks.png b/ta-IN/images/space-spin-blocks.png new file mode 100644 index 000000000..ca9fd52ee Binary files /dev/null and b/ta-IN/images/space-spin-blocks.png differ diff --git a/ta-IN/images/space-spin-code.png b/ta-IN/images/space-spin-code.png new file mode 100644 index 000000000..8b3b016f9 Binary files /dev/null and b/ta-IN/images/space-spin-code.png differ diff --git a/ta-IN/images/space-spin-test.png b/ta-IN/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/ta-IN/images/space-spin-test.png differ diff --git a/ta-IN/images/space-sprites.png b/ta-IN/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/ta-IN/images/space-sprites.png differ diff --git a/ta-IN/images/space-star-blocks.png b/ta-IN/images/space-star-blocks.png new file mode 100644 index 000000000..f3b9f1e81 Binary files /dev/null and b/ta-IN/images/space-star-blocks.png differ diff --git a/ta-IN/images/space-star-code.png b/ta-IN/images/space-star-code.png new file mode 100644 index 000000000..7097d2e12 Binary files /dev/null and b/ta-IN/images/space-star-code.png differ diff --git a/ta-IN/images/space-star-sprite.png b/ta-IN/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/ta-IN/images/space-star-sprite.png differ diff --git a/ta-IN/images/space-star-test.png b/ta-IN/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/ta-IN/images/space-star-test.png differ diff --git a/ta-IN/images/sprite-earth.png b/ta-IN/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/ta-IN/images/sprite-earth.png differ diff --git a/ta-IN/images/sprite-monkey.png b/ta-IN/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/ta-IN/images/sprite-monkey.png differ diff --git a/ta-IN/images/sprite-rock.png b/ta-IN/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/ta-IN/images/sprite-rock.png differ diff --git a/ta-IN/images/sprite-spaceship.png b/ta-IN/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/ta-IN/images/sprite-spaceship.png differ diff --git a/ta-IN/images/sprite-star.png b/ta-IN/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/ta-IN/images/sprite-star.png differ diff --git a/ta-IN/images/trim_and_tile.sh b/ta-IN/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/ta-IN/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/ta-IN/meta.yml b/ta-IN/meta.yml new file mode 100644 index 000000000..245a407d0 --- /dev/null +++ b/ta-IN/meta.yml @@ -0,0 +1,35 @@ +--- +title: விண்வெளியில் தொலைந்தது +hero_image: images/lost-in-space.png +description: உங்கள் சொந்த அசைவூட்டலை (அனிமேஷன்-animation) எவ்வாறு நிரல் செய்வது என்பதை அறிக! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: அறிமுகம் + - + title: ஒரு விண்கலத்தை அசைவூட்டல் செய்தல் + - + title: 'சவால்: உங்கள் அசைவூட்டலை மேம்படுத்தவும்' + challenge: true + - + title: மடக்குகளைப்(loops) பயன்படுத்தி அசைவூட்டல் செய்தல் + completion: + - engaged + - + title: மிதக்கும் குரங்கு + - + title: துள்ளும் சிறுகோள் + - + title: பிரகாசிக்கும் நட்சத்திரம் + completion: + - internal + - + title: 'சவால்: உங்கள் சொந்த அசைவூட்டலை உருவாக்கவும்' + challenge: true + - + title: அடுத்தது என்ன? diff --git a/ta-IN/resources/LostinSpace-Finished.sb2 b/ta-IN/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..89753817a Binary files /dev/null and b/ta-IN/resources/LostinSpace-Finished.sb2 differ diff --git a/ta-IN/scratch-translatable.txt b/ta-IN/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/ta-IN/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/ta-IN/solutions/lost-in-space-solution.sb3 b/ta-IN/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/ta-IN/solutions/lost-in-space-solution.sb3 differ diff --git a/ta-IN/step_1.md b/ta-IN/step_1.md new file mode 100644 index 000000000..1378ec5f6 --- /dev/null +++ b/ta-IN/step_1.md @@ -0,0 +1,60 @@ +## அறிமுகம் + +You are going to learn how to program your own animation! + +### நீங்கள் என்ன செய்வீர்கள் + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: உங்களுக்கு தேவையானவை + +### வன்பொருள் + +- Scratch 3 -ஐ இயக்கும் திறன் கொண்ட கணினி + +### மென்பொருள் + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### பதிவிறக்கங்கள் + +- எதுவுமில்லை + +\--- /collapse \--- + +## \--- collapse \--- + +## title: நீங்கள் என்ன கற்றுக் கொள்வீர்கள் + +- Scratch-இல் ஒரு sprite -ஐ அசைவூட்ட repeat மடக்கைப் பயன்படுத்தவும் +- ஒரு அசைவூட்டலை காலவரையின்றி மீண்டும் திரும்பச் செய்ய forever மடக்கைப் பயன்படுத்தவும் +- ஒரு மடக்கினுள்ளே, இன்னொரு மடக்கை வைத்து பின்னலான மடக்கை(nested loops) உருவாக்கலாம் என்பதை புரிந்துகொள்ளவும் + +\--- /collapse \--- + +## \--- collapse \--- + +## title: கல்வியாளர்களுக்கான கூடுதல் தகவல் + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/ta-IN/step_10.md b/ta-IN/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/ta-IN/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/ta-IN/step_2.md b/ta-IN/step_2.md new file mode 100644 index 000000000..7f955fd94 --- /dev/null +++ b/ta-IN/step_2.md @@ -0,0 +1,72 @@ +## ஒரு விண்கலத்தை அசைவூட்டல் செய்தல் + +பூமியை நோக்கி பறக்கும் ஒரு விண்கலத்தை(spaceship) உருவாக்குவதே உங்கள் முதல் படி! + +\--- பணி \--- + +ஒரு புதிய Scratch திட்டத்தைத் திறக்கவும். + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**அகல்நிலை (ஆஃப்லைன்)**: அகல்நிலை பதிப்பானில் (ஆஃப்லைன் எடிட்டர்) ஒரு புதிய திட்டத்தை திறக்கவும். + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +உங்கள் மேடைக்கு(Stage) 'ராக்கெட்ஷிப்'(rocketship) மற்றும் 'பூமி'(Earth) sprite-களைச் சேர்க்கவும். + +![விண்கலம் மற்றும் பூமி sprite-கள்](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +உங்கள் மேடைக்கு 'நட்சத்திரங்கள்'(Stars) பின்னணியைச் சேர்க்கவும். + +![ஒரு விண்வெளி பின்னணி](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +உங்கள் விண்கலம் sprite-ஐக் கிளிக் செய்து, பின்னர், **Costumes** தத்தலைக்(tab) கிளிக் செய்க. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +முழு விண்கலம் படத்தைச் சுற்றி, ஒரு பெட்டியைக் கிளிக் செய்து இழுக்க **arrow** (அம்புக்குறி) கருவியைப் பயன்படுத்தவும். பின்னர் வட்ட **rotate** (சுழற்று) கைப்பிடியைக் கிளிக் செய்து, விண்கல படம் பக்கவாட்டுத் திசையில் வரும் வரை சுழற்றுங்கள். + +![ஒரு costume -ஐச் சுழற்றுதல்](images/space-rotate.png) + +\--- /பணி \--- + +\--- பணி \--- + +உங்கள் விண்கல sprite-இல் இந்த குறியீட்டைச் சேர்க்கவும்: + +![விண்கலம் sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +நீங்கள் சேர்த்த குறியீட்டு தொகுதிகளில் உள்ள எண்களை மாற்றவும், இதனால் குறியீடு மேலே காட்டப்பட்டுள்ளதைப் போலவே இருக்க வேண்டும். + +\--- /task \--- + +நீங்கள் பச்சைக் கொடியைக் கிளிக் செய்தால், விண்கலம் பேசுவதையும், திரும்புவதையும், மேடையின் மையத்தை நோக்கிச் செல்வதையும் நீங்கள் காண வேண்டும். + +![ஒரு விண்கலம் அசைவூட்டலைச் சோதித்தல்](images/space-animate-stage.png) \ No newline at end of file diff --git a/ta-IN/step_3.md b/ta-IN/step_3.md new file mode 100644 index 000000000..221df59f7 --- /dev/null +++ b/ta-IN/step_3.md @@ -0,0 +1,16 @@ +## சவால்: உங்கள் அசைவூட்டலை மேம்படுத்தவும் + +உங்கள் அசைவூட்டல் குறியீட்டில் உள்ள எண்களை மாற்றி: + ++ விண்கலத்தை பூமியைத் தொடும் வரை நகருமாறு செய்ய முடியுமா? ++ விண்கலத்தை பூமியை நோக்கி மிக மெதுவாக நகர வைக்க முடியுமா? + +இந்த தொகுதியில் உள்ள எண்களை நீங்கள் மாற்ற வேண்டும்: + +![Rocketship sprite](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/ta-IN/step_4.md b/ta-IN/step_4.md new file mode 100644 index 000000000..26a2df5d1 --- /dev/null +++ b/ta-IN/step_4.md @@ -0,0 +1,126 @@ +## மடக்குகளைப்(loops) பயன்படுத்தி அசைவூட்டல் செய்தல் + +விண்கலத்தை உயிரூட்டுவதற்கான மற்றொரு வழி, அதனை சிறு, சிறு அளவுகளாக பல முறை நகரச் சொல்வது + +\--- task \--- + +உங்கள் குறியீட்டிலிருந்து `glide`{: class = "block3motion"} (சறுக்கு) தொகுதியை நீக்கவும். இதைச் செய்ய, குறியீடு(Code) பகுதியிலிருந்து அந்தத் தொகுதியை இழுத்து, மற்ற ஒற்றை குறியீடு தொகுதிகள் இருக்கும் இடத்திலேயே அதை கைவிடவும். + +![விண்கலம் sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![ஒரு விண்கலம் அசைவூட்டலைச் சோதித்தல்](images/space-animate-stage.png) + +![விண்கலம் sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +உங்கள் குறியீட்டை சோதித்து சேமிக்கவும். உங்கள் விண்கலம் முன்பு போலவே பூமியை நோக்கி நகர வேண்டும், ஆனால் இந்த முறை அது `repeat` {:class="block3control"} தொகுதியைப் பயன்படுத்துகிறது. + +\--- /task \--- + +\--- task \--- + +அடுத்து உங்கள் விண்கலம் sprite-க்கு குறியீட்டைச் சேர்க்கவும், இதனால் விண்கலம் பூமியை நோக்கி நகரும்போது நிறத்தை மாற்ற வைக்க முடியுமா? + +இந்த தொகுதியைப் பயன்படுத்தவும்: + +![விண்கலம் sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +உங்கள் குறியீட்டை சோதித்து சேமிக்கவும். + +![வண்ணம் மாறும் விண்கலத்தை சோதித்தல்](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +உங்கள் விண்கலம் பூமியை நோக்கி நகரும்போது அது சிறியதாகிக் கொண்டே வருமாறு மாற்ற முடியுமா? + +\--- hints \--- + +\--- hint \--- + +உங்கள் விண்கலம் `100% size`{: class = "blocklooks"} -இல் தொடங்க வேண்டும், பின்னர் ஒவ்வொரு முறையும் நகரும் போது, ஒரு சிறிய தொகையில் அதன் அளவு மாற வேண்டும். இதற்கு, `change size`{: class = "blocklooks"} தொகுதியை பயன்படுத்தலாம். + +\--- /hint \--- + +\--- hint \--- + +உங்கள் குறியீட்டுக்கு இந்த தொகுதிகளை நீங்கள் சேர்க்க வேண்டும்: + +![விண்கலம் sprite](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +உங்கள் குறியீடு இவ்வாறு இருக்க வேண்டும்: + +![விண்கலம் sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +உங்கள் குறியீட்டை சோதித்து, பின் சேமிக்கவும். இப்போது, உங்கள் விண்கலம் நகரும்போது சிறியதாகிக் கொண்டே இருக்க வேண்டும். உங்கள் விண்கலத்தை **இரண்டாவது முறையாக** சோதிக்கவும். அது தொடங்கும் போது சரியான அளவில் தான் இருக்கிறதா? + +![சுருங்கும் விண்கலத்தை சோதித்தல்](images/space-size-test.png) \ No newline at end of file diff --git a/ta-IN/step_5.md b/ta-IN/step_5.md new file mode 100644 index 000000000..33ac655ea --- /dev/null +++ b/ta-IN/step_5.md @@ -0,0 +1,70 @@ +## மிதக்கும் குரங்கு + +இப்போது உங்கள் அசைவூட்டலில் விண்வெளியில் தொலைந்த ஒரு குரங்கைச் சேர்க்க வேண்டும்! + +\--- task \--- + +நூலகத்திலிருந்து 'குரங்கு'(monkey) sprite-ஐச் சேர்ப்பதன் மூலம் தொடங்கவும். + +![ஒரு குரங்கு sprite-ஐச் சேர்ப்பது](images/space-monkey-sprite.png) + +\--- /task \--- + +உங்கள் புதிய குரங்கு sprite-ஐக் கிளிக் செய்து, பின்னர் **Costumes**-ஐக் கிளிக் செய்க, இதனால் குரங்கு எப்படி இருக்கும் என்பதை நீங்கள் திருத்தலாம். + +\--- task \--- + +Fill (நிரப்பு)-ஐ, ஒளிபுகு (transparent) வகையில் அமைக்க, சிவப்புக் கோட்டைத் தேர்ந்தெடுக்கவும். வெளிப்புறத்திற்கு,(outline) செறிவு ஸ்லைடரை(Saturation slider) `0`க்கு நகர்த்துவதன் மூலம் வெள்ளை நிறத்தை அமைக்கவும். + +![வெள்ளை நிறத்தை உருவாக்குங்கள்](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +**Circle** (வட்டம்) கருவியைக் கிளிக் செய்து, குரங்கின் தலையைச் சுற்றி ஒரு வெள்ளை விண்வெளி தலைக்கவசம் வரைய அதை பயன்படுத்தவும். + +![குரங்கு விண்வெளி தலைக்கவசம் ](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +உங்கள் குரங்கு sprite-க்கு, அது ஒரு வட்டத்தில் மெதுவாக தொடர்ந்து சுழன்றுகொண்டே இருக்குமாறு குறியீட்டைச் சேர்க்க முடியுமா? + +\--- hints \--- \--- hint \--- + +பச்சைக் கொடியைக் கிளிக் செய்யும் போது(**flag is clicked**), உங்கள் குரங்கு sprite தொடர்ந்து எப்போதும்(**forever**) ஒரு வட்டத்தில் சுற்றிக்(**turn**) கொண்டே இருக்க வேண்டும். + +\--- /hint \--- \--- hint \--- + +உங்களுக்கு தேவையான குறியீட்டு தொகுதிகள் இங்கே: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +உங்கள் குரங்கைச் சுழற்றுவதற்கான குறியீடு இங்கே: + +![குரங்கு sprite](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +உங்கள் திட்டத்தை சோதித்து சேமிக்கவும். இந்த அசைவூட்டல் தொடர்ந்து இயங்கிக்கொண்டே இருக்கும். எனவே, அதனை நிறுத்த சிவப்பு **stop** (நிறுத்து) பொத்தானை கிளிக் செய்ய வேண்டும்! + +![சுழலும் குரங்கை சோதிக்கவும்](images/space-spin-test.png) \ No newline at end of file diff --git a/ta-IN/step_6.md b/ta-IN/step_6.md new file mode 100644 index 000000000..2bc5a321c --- /dev/null +++ b/ta-IN/step_6.md @@ -0,0 +1,59 @@ +## துள்ளும் சிறுகோள் + +இப்போது உங்கள் அசைவூட்டலில் மிதக்கும் விண்வெளி பாறையைச் சேர்ப்பீர்கள். + +\--- task \--- + +உங்கள் அசைவூட்டலில் 'பாறை'(rock) sprite-ஐச் சேர்க்கவும். + +![ஒரு பாறை sprite -ஐச் சேர்த்தல்](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +உங்கள் பாறையை, மேடையைச் சுற்றி துள்ளவைப்பதற்கான குறியீட்டை, உங்கள் பாறை sprite -இல் சேர்க்க முடியுமா? + +![ஒரு துள்ளும் பாறையை சோதித்தல்](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +பச்சைக் கொடியைக் கிளிக் செய்யும் போது(**flag is clicked**), உங்கள் பாறை sprite தொடர்ந்து எப்போதும்(**forever**) மேடையைச் சுற்றி நகர்ந்து(**move**) கொண்டும், துள்ளிக்(**bounce**) கொண்டும் இருக்க வேண்டும். + +\--- /hint \--- \--- hint \--- + +உங்களுக்கு தேவையான குறியீட்டு தொகுதிகள் இங்கே: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +நீங்கள் இந்த தொகுதிகளில் ஏதேனும் ஒன்றை வைத்து, பாறை sprite -இன் தொடக்க திசையை மேலும் சுவாரஸ்யமாக அமைக்கலாம்: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +மேடையைச் சுற்றி உங்கள் பாறையை துள்ளச் செய்வதற்கான குறியீடு இங்கே: + +![பாறை sprite](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/ta-IN/step_7.md b/ta-IN/step_7.md new file mode 100644 index 000000000..8cf7aa8ff --- /dev/null +++ b/ta-IN/step_7.md @@ -0,0 +1,61 @@ +## பிரகாசிக்கும் நட்சத்திரம் + +இப்போது நீங்கள் மடக்குகளை(loops) இணைத்து பிரகாசிக்கும் நட்சத்திரத்தை உருவாக்குவீர்கள். + +\--- task \--- + +உங்கள் மேடையில் ஒரு 'ஸ்டார்'(star) sprite-ஐச் சேர்க்கவும். + +![ஒரு நட்சத்திர sprite -ஐச் சேர்த்தல்](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +நட்சத்திரம் மீண்டும் மீண்டும் வளரவும், சுருங்கவும் உங்கள் நட்சத்திர sprite-க்கு குறியீட்டைச் சேர்க்க முடியுமா? + +![பிரகாசிக்கும் நட்சத்திரத்தை சோதித்தல்](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +பச்சைக் கொடியைக் கிளிக் செய்யும்போது(**flag is clicked**), உங்கள் நட்சத்திர sprite, சில நேரங்களில் பெரிய அளவாக மாற(**change size**) வேண்டும். பின்னர், சில நேரங்களில் சிறிய அளவாக மாற(**change size**) வேண்டும். அது இவ்வாறு செய்தால் தான், தொடர்ந்து எப்போதும்(**forever**) பெரிதாகவும், பின் சிறியதாகவும் மாறி, ஒளிர்வது போல தோற்றமளிக்கும். + +\--- /hint \--- \--- hint \--- + +உங்களுக்கு தேவையான குறியீட்டு தொகுதிகள் இங்கே: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +உங்கள் நட்சத்திரம் வளர்ந்து சுருங்குவதற்கான குறியீடு இங்கே: + +![நட்சத்திர sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/ta-IN/step_8.md b/ta-IN/step_8.md new file mode 100644 index 000000000..c73de4d30 --- /dev/null +++ b/ta-IN/step_8.md @@ -0,0 +1,7 @@ +## சவால்: உங்கள் சொந்த அசைவூட்டலை உருவாக்கவும் + +உங்கள் விண்வெளி அசைவூட்டலை நிறுத்தி, அதைச் சேமித்துவிட்டு, பின், ஒரு புதிய Scratch திட்டத்தைத் தொடங்கவும். + +உங்கள் சொந்த அசைவூட்டலை உருவாக்க, இந்த திட்டத்தில் நீங்கள் கற்றுக்கொண்டதை பயன்படுத்தவும். இது நீங்கள் விரும்பும் எதையும் கொண்டிருக்கலாம், ஆனால் உங்கள் அசைவூட்டலை நீங்கள் தேர்வுசெய்த பின்னணியுடன் பொருத்த முயற்சிக்கவும். இங்கே சில உதாரணங்கள்: + +![திரைப்பிடிப்பு](images/space-egs.png) \ No newline at end of file diff --git a/ta-IN/step_9.md b/ta-IN/step_9.md new file mode 100644 index 000000000..48565e825 --- /dev/null +++ b/ta-IN/step_9.md @@ -0,0 +1,18 @@ +## அடுத்தது என்ன? + +[பேய் பிடிப்பவர்கள்](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects)(Ghostbusters-கோஸ்ட்பஸ்டர்ஸ்) திட்டத்தை முயற்சிக்கவும்! அந்த திட்டத்தில், எல்லா இடங்களிலும் தோன்றும் பேய்களை நீங்கள் பிடிக்க வேண்டும், இவ்வாறான ஒரு விளையாட்டை எவ்வாறு உருவாக்குவது என்பதையும் கற்றுக்கொள்வீர்கள். விளையாட்டிற்கு ஒரு நேரங்காட்டியையும், மதிப்பெண்ணையும் எவ்வாறு சேர்ப்பது என்பதையும் நீங்கள் கற்றுக் கொள்வீர்கள், இதன் மூலம் நீங்கள் எத்தனை பேய்களைப் பிடிக்க முடியும் என்பதைக் காணலாம். + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![காட்சி பெட்டி](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/th-TH/images/banner.png b/th-TH/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/th-TH/images/banner.png differ diff --git a/th-TH/images/ghostbusters-static.png b/th-TH/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/th-TH/images/ghostbusters-static.png differ diff --git a/th-TH/images/lost-in-space.png b/th-TH/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/th-TH/images/lost-in-space.png differ diff --git a/th-TH/images/make-white.png b/th-TH/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/th-TH/images/make-white.png differ diff --git a/th-TH/images/montage-1.png b/th-TH/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/th-TH/images/montage-1.png differ diff --git a/th-TH/images/montage-2.png b/th-TH/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/th-TH/images/montage-2.png differ diff --git a/th-TH/images/montage-3.png b/th-TH/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/th-TH/images/montage-3.png differ diff --git a/th-TH/images/showcase_static.png b/th-TH/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/th-TH/images/showcase_static.png differ diff --git a/th-TH/images/space-animate-stage.png b/th-TH/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/th-TH/images/space-animate-stage.png differ diff --git a/th-TH/images/space-backdrop.png b/th-TH/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/th-TH/images/space-backdrop.png differ diff --git a/th-TH/images/space-bounce-test.png b/th-TH/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/th-TH/images/space-bounce-test.png differ diff --git a/th-TH/images/space-colour-test.png b/th-TH/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/th-TH/images/space-colour-test.png differ diff --git a/th-TH/images/space-costume.png b/th-TH/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/th-TH/images/space-costume.png differ diff --git a/th-TH/images/space-egs.png b/th-TH/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/th-TH/images/space-egs.png differ diff --git a/th-TH/images/space-monkey-edit.png b/th-TH/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/th-TH/images/space-monkey-edit.png differ diff --git a/th-TH/images/space-monkey-sprite.png b/th-TH/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/th-TH/images/space-monkey-sprite.png differ diff --git a/th-TH/images/space-rock-sprite.png b/th-TH/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/th-TH/images/space-rock-sprite.png differ diff --git a/th-TH/images/space-rotate.png b/th-TH/images/space-rotate.png new file mode 100644 index 000000000..916fb08f0 Binary files /dev/null and b/th-TH/images/space-rotate.png differ diff --git a/th-TH/images/space-size-test.png b/th-TH/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/th-TH/images/space-size-test.png differ diff --git a/th-TH/images/space-spin-test.png b/th-TH/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/th-TH/images/space-spin-test.png differ diff --git a/th-TH/images/space-sprites.png b/th-TH/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/th-TH/images/space-sprites.png differ diff --git a/th-TH/images/space-star-sprite.png b/th-TH/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/th-TH/images/space-star-sprite.png differ diff --git a/th-TH/images/sprite-earth.png b/th-TH/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/th-TH/images/sprite-earth.png differ diff --git a/th-TH/images/sprite-monkey.png b/th-TH/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/th-TH/images/sprite-monkey.png differ diff --git a/th-TH/images/sprite-rock.png b/th-TH/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/th-TH/images/sprite-rock.png differ diff --git a/th-TH/images/sprite-spaceship.png b/th-TH/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/th-TH/images/sprite-spaceship.png differ diff --git a/th-TH/images/sprite-star.png b/th-TH/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/th-TH/images/sprite-star.png differ diff --git a/th-TH/images/trim_and_tile.sh b/th-TH/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/th-TH/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/th-TH/meta.yml b/th-TH/meta.yml new file mode 100644 index 000000000..b207a1b45 --- /dev/null +++ b/th-TH/meta.yml @@ -0,0 +1,35 @@ +--- +title: Lost in space +hero_image: images/lost-in-space.png +description: Learn how to program your own animation! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introduction + - + title: Animating a spaceship + - + title: 'Challenge: improve your animation' + challenge: true + - + title: Animation using loops + completion: + - engaged + - + title: Floating monkey + - + title: Bouncing asteroid + - + title: Shining star + completion: + - internal + - + title: 'Challenge: make your own animation' + challenge: true + - + title: What next? diff --git a/th-TH/scratch-translatable.txt b/th-TH/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/th-TH/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/th-TH/solutions/lost-in-space-solution.sb3 b/th-TH/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/th-TH/solutions/lost-in-space-solution.sb3 differ diff --git a/th-TH/step_1.md b/th-TH/step_1.md new file mode 100644 index 000000000..bc43f86cd --- /dev/null +++ b/th-TH/step_1.md @@ -0,0 +1,60 @@ +## Introduction + +You are going to learn how to program your own animation! + +### What you will make + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: What you will need + +### Hardware + +- A computer capable of running Scratch 3 + +### Software + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + +- None + +\--- /collapse \--- + +## \--- collapse \--- + +## title: What you will learn + +- Use a repeat loop to animate a sprite in Scratch +- Use a forever loop to repeat an animation indefinitely +- Understand that loops can be nested within each other + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Additional information for educators + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/th-TH/step_10.md b/th-TH/step_10.md new file mode 100644 index 000000000..cde6173f7 --- /dev/null +++ b/th-TH/step_10.md @@ -0,0 +1,18 @@ +## อะไรต่อไป + +ลองโครงการ [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects)! ในโครงการนั้นคุณจะได้เรียนรู้วิธีการสร้างเกมที่มีผีที่ปรากฏอยู่ทั่วทุกที่และคุณต้องจับ นอกจากนี้คุณยังจะได้เรียนรู้วิธีเพิ่มตัวจับเวลาและคะแนนในเกมเพื่อให้คุณเห็นว่ามีผีจำนวนเท่าใดที่คุณสามารถจับได้ + +\--- ไม่มีพิมพ์ \--- + +
+ + +
+ +\--- / ไม่มีการพิมพ์ \--- + +\--- พิมพ์เท่านั้น \--- + +![ตู้โชว์](images/ghostbusters-static.png) + +\--- / พิมพ์อย่างเดียว \--- \ No newline at end of file diff --git a/th-TH/step_2.md b/th-TH/step_2.md new file mode 100644 index 000000000..cbcdff0c6 --- /dev/null +++ b/th-TH/step_2.md @@ -0,0 +1,72 @@ +## Animating a spaceship + +Your first step will be to create a spaceship that flies towards the Earth! + +\--- task \--- + +Open a new Scratch project. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** open a new project in the offline editor. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/th-TH/step_3.md b/th-TH/step_3.md new file mode 100644 index 000000000..4af9cb400 --- /dev/null +++ b/th-TH/step_3.md @@ -0,0 +1,16 @@ +## Challenge: improve your animation + +Can you change the numbers in your animation code so that: + ++ The spaceship moves until it touches the Earth? ++ The spaceship moves more slowly towards the Earth? + +You'll need to change the numbers in this block: + +![Rocketship sprite](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/th-TH/step_4.md b/th-TH/step_4.md new file mode 100644 index 000000000..0e1397c55 --- /dev/null +++ b/th-TH/step_4.md @@ -0,0 +1,126 @@ +## Animation using loops + +Another way to animate the spaceship is to tell it to move a small amount many times + +\--- task \--- + +Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testing a spaceship animation](images/space-animate-stage.png) + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Your spaceship should start at `100% size`{:class="blocklooks"}, and then `change size`{:class="blocklooks"} by a small amount each time it moves. + +\--- /hint \--- + +\--- hint \--- + +You will need to add these blocks to your code: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Your code should look like this: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/th-TH/step_5.md b/th-TH/step_5.md new file mode 100644 index 000000000..ab4c451b7 --- /dev/null +++ b/th-TH/step_5.md @@ -0,0 +1,70 @@ +## Floating monkey + +Now you will add a monkey who's lost in space to your animation! + +\--- task \--- + +Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/th-TH/step_6.md b/th-TH/step_6.md new file mode 100644 index 000000000..729b6d975 --- /dev/null +++ b/th-TH/step_6.md @@ -0,0 +1,59 @@ +## Bouncing asteroid + +Now you will add a floating space rock to your animation. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/th-TH/step_7.md b/th-TH/step_7.md new file mode 100644 index 000000000..e53504c76 --- /dev/null +++ b/th-TH/step_7.md @@ -0,0 +1,61 @@ +## Shining star + +Now you will combine loops to make a shining star. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Star sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/th-TH/step_8.md b/th-TH/step_8.md new file mode 100644 index 000000000..841b139ec --- /dev/null +++ b/th-TH/step_8.md @@ -0,0 +1,7 @@ +## Challenge: make your own animation + +Stop your space animation, save it, and start a new Scratch project. + +Use what you've learned in this project to make your own animation. It can be anything you like, but try to make your animation match the background you choose. Here are some examples: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/th-TH/step_9.md b/th-TH/step_9.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/th-TH/step_9.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/tl-PH/images/banner.png b/tl-PH/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/tl-PH/images/banner.png differ diff --git a/tl-PH/images/ghostbusters-static.png b/tl-PH/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/tl-PH/images/ghostbusters-static.png differ diff --git a/tl-PH/images/lost-in-space.png b/tl-PH/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/tl-PH/images/lost-in-space.png differ diff --git a/tl-PH/images/make-white.png b/tl-PH/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/tl-PH/images/make-white.png differ diff --git a/tl-PH/images/montage-1.png b/tl-PH/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/tl-PH/images/montage-1.png differ diff --git a/tl-PH/images/montage-2.png b/tl-PH/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/tl-PH/images/montage-2.png differ diff --git a/tl-PH/images/montage-3.png b/tl-PH/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/tl-PH/images/montage-3.png differ diff --git a/tl-PH/images/showcase_static.png b/tl-PH/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/tl-PH/images/showcase_static.png differ diff --git a/tl-PH/images/space-animate-stage.png b/tl-PH/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/tl-PH/images/space-animate-stage.png differ diff --git a/tl-PH/images/space-backdrop.png b/tl-PH/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/tl-PH/images/space-backdrop.png differ diff --git a/tl-PH/images/space-bounce-test.png b/tl-PH/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/tl-PH/images/space-bounce-test.png differ diff --git a/tl-PH/images/space-colour-test.png b/tl-PH/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/tl-PH/images/space-colour-test.png differ diff --git a/tl-PH/images/space-costume.png b/tl-PH/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/tl-PH/images/space-costume.png differ diff --git a/tl-PH/images/space-egs.png b/tl-PH/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/tl-PH/images/space-egs.png differ diff --git a/tl-PH/images/space-monkey-edit.png b/tl-PH/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/tl-PH/images/space-monkey-edit.png differ diff --git a/tl-PH/images/space-monkey-sprite.png b/tl-PH/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/tl-PH/images/space-monkey-sprite.png differ diff --git a/tl-PH/images/space-rock-sprite.png b/tl-PH/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/tl-PH/images/space-rock-sprite.png differ diff --git a/tl-PH/images/space-rotate.png b/tl-PH/images/space-rotate.png new file mode 100644 index 000000000..916fb08f0 Binary files /dev/null and b/tl-PH/images/space-rotate.png differ diff --git a/tl-PH/images/space-size-test.png b/tl-PH/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/tl-PH/images/space-size-test.png differ diff --git a/tl-PH/images/space-spin-test.png b/tl-PH/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/tl-PH/images/space-spin-test.png differ diff --git a/tl-PH/images/space-sprites.png b/tl-PH/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/tl-PH/images/space-sprites.png differ diff --git a/tl-PH/images/space-star-sprite.png b/tl-PH/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/tl-PH/images/space-star-sprite.png differ diff --git a/tl-PH/images/sprite-earth.png b/tl-PH/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/tl-PH/images/sprite-earth.png differ diff --git a/tl-PH/images/sprite-monkey.png b/tl-PH/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/tl-PH/images/sprite-monkey.png differ diff --git a/tl-PH/images/sprite-rock.png b/tl-PH/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/tl-PH/images/sprite-rock.png differ diff --git a/tl-PH/images/sprite-spaceship.png b/tl-PH/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/tl-PH/images/sprite-spaceship.png differ diff --git a/tl-PH/images/sprite-star.png b/tl-PH/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/tl-PH/images/sprite-star.png differ diff --git a/tl-PH/images/trim_and_tile.sh b/tl-PH/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/tl-PH/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/tl-PH/meta.yml b/tl-PH/meta.yml new file mode 100644 index 000000000..b207a1b45 --- /dev/null +++ b/tl-PH/meta.yml @@ -0,0 +1,35 @@ +--- +title: Lost in space +hero_image: images/lost-in-space.png +description: Learn how to program your own animation! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introduction + - + title: Animating a spaceship + - + title: 'Challenge: improve your animation' + challenge: true + - + title: Animation using loops + completion: + - engaged + - + title: Floating monkey + - + title: Bouncing asteroid + - + title: Shining star + completion: + - internal + - + title: 'Challenge: make your own animation' + challenge: true + - + title: What next? diff --git a/tl-PH/scratch-translatable.txt b/tl-PH/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/tl-PH/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/tl-PH/solutions/lost-in-space-solution.sb3 b/tl-PH/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/tl-PH/solutions/lost-in-space-solution.sb3 differ diff --git a/tl-PH/step_1.md b/tl-PH/step_1.md new file mode 100644 index 000000000..bc43f86cd --- /dev/null +++ b/tl-PH/step_1.md @@ -0,0 +1,60 @@ +## Introduction + +You are going to learn how to program your own animation! + +### What you will make + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: What you will need + +### Hardware + +- A computer capable of running Scratch 3 + +### Software + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + +- None + +\--- /collapse \--- + +## \--- collapse \--- + +## title: What you will learn + +- Use a repeat loop to animate a sprite in Scratch +- Use a forever loop to repeat an animation indefinitely +- Understand that loops can be nested within each other + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Additional information for educators + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/tl-PH/step_10.md b/tl-PH/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/tl-PH/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/tl-PH/step_2.md b/tl-PH/step_2.md new file mode 100644 index 000000000..cbcdff0c6 --- /dev/null +++ b/tl-PH/step_2.md @@ -0,0 +1,72 @@ +## Animating a spaceship + +Your first step will be to create a spaceship that flies towards the Earth! + +\--- task \--- + +Open a new Scratch project. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** open a new project in the offline editor. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/tl-PH/step_3.md b/tl-PH/step_3.md new file mode 100644 index 000000000..4af9cb400 --- /dev/null +++ b/tl-PH/step_3.md @@ -0,0 +1,16 @@ +## Challenge: improve your animation + +Can you change the numbers in your animation code so that: + ++ The spaceship moves until it touches the Earth? ++ The spaceship moves more slowly towards the Earth? + +You'll need to change the numbers in this block: + +![Rocketship sprite](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/tl-PH/step_4.md b/tl-PH/step_4.md new file mode 100644 index 000000000..0e1397c55 --- /dev/null +++ b/tl-PH/step_4.md @@ -0,0 +1,126 @@ +## Animation using loops + +Another way to animate the spaceship is to tell it to move a small amount many times + +\--- task \--- + +Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testing a spaceship animation](images/space-animate-stage.png) + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Your spaceship should start at `100% size`{:class="blocklooks"}, and then `change size`{:class="blocklooks"} by a small amount each time it moves. + +\--- /hint \--- + +\--- hint \--- + +You will need to add these blocks to your code: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Your code should look like this: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/tl-PH/step_5.md b/tl-PH/step_5.md new file mode 100644 index 000000000..ab4c451b7 --- /dev/null +++ b/tl-PH/step_5.md @@ -0,0 +1,70 @@ +## Floating monkey + +Now you will add a monkey who's lost in space to your animation! + +\--- task \--- + +Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/tl-PH/step_6.md b/tl-PH/step_6.md new file mode 100644 index 000000000..729b6d975 --- /dev/null +++ b/tl-PH/step_6.md @@ -0,0 +1,59 @@ +## Bouncing asteroid + +Now you will add a floating space rock to your animation. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/tl-PH/step_7.md b/tl-PH/step_7.md new file mode 100644 index 000000000..e53504c76 --- /dev/null +++ b/tl-PH/step_7.md @@ -0,0 +1,61 @@ +## Shining star + +Now you will combine loops to make a shining star. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Star sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/tl-PH/step_8.md b/tl-PH/step_8.md new file mode 100644 index 000000000..841b139ec --- /dev/null +++ b/tl-PH/step_8.md @@ -0,0 +1,7 @@ +## Challenge: make your own animation + +Stop your space animation, save it, and start a new Scratch project. + +Use what you've learned in this project to make your own animation. It can be anything you like, but try to make your animation match the background you choose. Here are some examples: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/tl-PH/step_9.md b/tl-PH/step_9.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/tl-PH/step_9.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/tr-TR/images/banner.png b/tr-TR/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/tr-TR/images/banner.png differ diff --git a/tr-TR/images/ghostbusters-static.png b/tr-TR/images/ghostbusters-static.png new file mode 100644 index 000000000..3c783e60b Binary files /dev/null and b/tr-TR/images/ghostbusters-static.png differ diff --git a/tr-TR/images/lost-in-space.png b/tr-TR/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/tr-TR/images/lost-in-space.png differ diff --git a/tr-TR/images/make-white.png b/tr-TR/images/make-white.png new file mode 100644 index 000000000..149008ab7 Binary files /dev/null and b/tr-TR/images/make-white.png differ diff --git a/tr-TR/images/montage-1.png b/tr-TR/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/tr-TR/images/montage-1.png differ diff --git a/tr-TR/images/montage-2.png b/tr-TR/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/tr-TR/images/montage-2.png differ diff --git a/tr-TR/images/montage-3.png b/tr-TR/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/tr-TR/images/montage-3.png differ diff --git a/tr-TR/images/showcase_static.png b/tr-TR/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/tr-TR/images/showcase_static.png differ diff --git a/tr-TR/images/space-animate-stage.png b/tr-TR/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/tr-TR/images/space-animate-stage.png differ diff --git a/tr-TR/images/space-animate.png b/tr-TR/images/space-animate.png new file mode 100644 index 000000000..46a5038ab Binary files /dev/null and b/tr-TR/images/space-animate.png differ diff --git a/tr-TR/images/space-backdrop.png b/tr-TR/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/tr-TR/images/space-backdrop.png differ diff --git a/tr-TR/images/space-bounce-blocks.png b/tr-TR/images/space-bounce-blocks.png new file mode 100644 index 000000000..9294bb7f7 Binary files /dev/null and b/tr-TR/images/space-bounce-blocks.png differ diff --git a/tr-TR/images/space-bounce-code.png b/tr-TR/images/space-bounce-code.png new file mode 100644 index 000000000..e8791d62f Binary files /dev/null and b/tr-TR/images/space-bounce-code.png differ diff --git a/tr-TR/images/space-bounce-test.png b/tr-TR/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/tr-TR/images/space-bounce-test.png differ diff --git a/tr-TR/images/space-colour-blocks.png b/tr-TR/images/space-colour-blocks.png new file mode 100644 index 000000000..54461788b Binary files /dev/null and b/tr-TR/images/space-colour-blocks.png differ diff --git a/tr-TR/images/space-colour-code.png b/tr-TR/images/space-colour-code.png new file mode 100644 index 000000000..8afbd513d Binary files /dev/null and b/tr-TR/images/space-colour-code.png differ diff --git a/tr-TR/images/space-colour-test.png b/tr-TR/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/tr-TR/images/space-colour-test.png differ diff --git a/tr-TR/images/space-costume.png b/tr-TR/images/space-costume.png new file mode 100644 index 000000000..122ac1677 Binary files /dev/null and b/tr-TR/images/space-costume.png differ diff --git a/tr-TR/images/space-delete-glide.png b/tr-TR/images/space-delete-glide.png new file mode 100644 index 000000000..1d6fe71a9 Binary files /dev/null and b/tr-TR/images/space-delete-glide.png differ diff --git a/tr-TR/images/space-egs.png b/tr-TR/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/tr-TR/images/space-egs.png differ diff --git a/tr-TR/images/space-glide.png b/tr-TR/images/space-glide.png new file mode 100644 index 000000000..c04d7bfa9 Binary files /dev/null and b/tr-TR/images/space-glide.png differ diff --git a/tr-TR/images/space-initial-position.png b/tr-TR/images/space-initial-position.png new file mode 100644 index 000000000..260fa4f54 Binary files /dev/null and b/tr-TR/images/space-initial-position.png differ diff --git a/tr-TR/images/space-monkey-edit.png b/tr-TR/images/space-monkey-edit.png new file mode 100644 index 000000000..dde8c0cec Binary files /dev/null and b/tr-TR/images/space-monkey-edit.png differ diff --git a/tr-TR/images/space-monkey-sprite.png b/tr-TR/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/tr-TR/images/space-monkey-sprite.png differ diff --git a/tr-TR/images/space-repeat-blocks.png b/tr-TR/images/space-repeat-blocks.png new file mode 100644 index 000000000..287663af6 Binary files /dev/null and b/tr-TR/images/space-repeat-blocks.png differ diff --git a/tr-TR/images/space-repeat-code.png b/tr-TR/images/space-repeat-code.png new file mode 100644 index 000000000..9800ca99d Binary files /dev/null and b/tr-TR/images/space-repeat-code.png differ diff --git a/tr-TR/images/space-rock-sprite.png b/tr-TR/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/tr-TR/images/space-rock-sprite.png differ diff --git a/tr-TR/images/space-rotate.png b/tr-TR/images/space-rotate.png new file mode 100644 index 000000000..35ec16755 Binary files /dev/null and b/tr-TR/images/space-rotate.png differ diff --git a/tr-TR/images/space-size-blocks.png b/tr-TR/images/space-size-blocks.png new file mode 100644 index 000000000..1124075a4 Binary files /dev/null and b/tr-TR/images/space-size-blocks.png differ diff --git a/tr-TR/images/space-size-code.png b/tr-TR/images/space-size-code.png new file mode 100644 index 000000000..14c5d7bcc Binary files /dev/null and b/tr-TR/images/space-size-code.png differ diff --git a/tr-TR/images/space-size-test.png b/tr-TR/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/tr-TR/images/space-size-test.png differ diff --git a/tr-TR/images/space-spin-blocks.png b/tr-TR/images/space-spin-blocks.png new file mode 100644 index 000000000..ca9fd52ee Binary files /dev/null and b/tr-TR/images/space-spin-blocks.png differ diff --git a/tr-TR/images/space-spin-code.png b/tr-TR/images/space-spin-code.png new file mode 100644 index 000000000..8b3b016f9 Binary files /dev/null and b/tr-TR/images/space-spin-code.png differ diff --git a/tr-TR/images/space-spin-test.png b/tr-TR/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/tr-TR/images/space-spin-test.png differ diff --git a/tr-TR/images/space-sprites.png b/tr-TR/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/tr-TR/images/space-sprites.png differ diff --git a/tr-TR/images/space-star-blocks.png b/tr-TR/images/space-star-blocks.png new file mode 100644 index 000000000..f3b9f1e81 Binary files /dev/null and b/tr-TR/images/space-star-blocks.png differ diff --git a/tr-TR/images/space-star-code.png b/tr-TR/images/space-star-code.png new file mode 100644 index 000000000..7097d2e12 Binary files /dev/null and b/tr-TR/images/space-star-code.png differ diff --git a/tr-TR/images/space-star-sprite.png b/tr-TR/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/tr-TR/images/space-star-sprite.png differ diff --git a/tr-TR/images/space-star-test.png b/tr-TR/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/tr-TR/images/space-star-test.png differ diff --git a/tr-TR/images/sprite-earth.png b/tr-TR/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/tr-TR/images/sprite-earth.png differ diff --git a/tr-TR/images/sprite-monkey.png b/tr-TR/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/tr-TR/images/sprite-monkey.png differ diff --git a/tr-TR/images/sprite-rock.png b/tr-TR/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/tr-TR/images/sprite-rock.png differ diff --git a/tr-TR/images/sprite-spaceship.png b/tr-TR/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/tr-TR/images/sprite-spaceship.png differ diff --git a/tr-TR/images/sprite-star.png b/tr-TR/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/tr-TR/images/sprite-star.png differ diff --git a/tr-TR/images/trim_and_tile.sh b/tr-TR/images/trim_and_tile.sh new file mode 100644 index 000000000..be4008e06 --- /dev/null +++ b/tr-TR/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text = $ (echo "$file" | head -c 2 | tail -c 1) #dosya adının 2. karakterini al + convert $file -trim +repage $file; #görüntüyü kırp + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; # text değişkeni ile not +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/tr-TR/meta.yml b/tr-TR/meta.yml new file mode 100644 index 000000000..2a22c5ca3 --- /dev/null +++ b/tr-TR/meta.yml @@ -0,0 +1,35 @@ +--- +title: Uzayda kaybolmuş +hero_image: images/lost-in-space.png +description: Kendi animasyonunuzu nasıl programlayacağınızı öğrenin! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Giriş + - + title: Bir uzay gemisini canlandırma + - + title: 'Meydan Okuma: animasyonunuzu geliştirin' + challenge: true + - + title: Döngüler kullanarak animasyon yapma + completion: + - engaged + - + title: Süzülen maymun + - + title: Zıplayan asteroit + - + title: Parlayan yıldız + completion: + - internal + - + title: 'Meydan okuma: kendi animasyonunuzu yaratın' + challenge: true + - + title: Sırada ne var? diff --git a/tr-TR/resources/LostinSpace-Finished.sb2 b/tr-TR/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..89753817a Binary files /dev/null and b/tr-TR/resources/LostinSpace-Finished.sb2 differ diff --git a/tr-TR/scratch-translatable.txt b/tr-TR/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/tr-TR/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/tr-TR/solutions/lost-in-space-solution.sb3 b/tr-TR/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..b879d0f15 Binary files /dev/null and b/tr-TR/solutions/lost-in-space-solution.sb3 differ diff --git a/tr-TR/step_1.md b/tr-TR/step_1.md new file mode 100644 index 000000000..4aad0c158 --- /dev/null +++ b/tr-TR/step_1.md @@ -0,0 +1,60 @@ +## Giriş + +You are going to learn how to program your own animation! + +### Neler yapacaksınız + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: Nelere ihtiyacınız var + +### Donanım + +- Scratch 3 çalıştırabilen bir bilgisayar + +### Yazılım + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### İndirilecekler + +- Yok + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Neler öğreneceksiniz + +- Bir kuklayı canlandırmak için tekrar eden döngü kullanma +- Bir animasyonu süresiz olarak tekrar ettirmek için sonsuz döngü kullanımı +- Döngülerin iç içe geçebileceğini anlama + +\--- /collapse \--- + +## \--- /collapse \--- + +## title: Eğitimciler için ek bilgiler + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/tr-TR/step_10.md b/tr-TR/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/tr-TR/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/tr-TR/step_2.md b/tr-TR/step_2.md new file mode 100644 index 000000000..2f5d1858f --- /dev/null +++ b/tr-TR/step_2.md @@ -0,0 +1,72 @@ +## Bir uzay gemisini canlandırma + +İlk adımınız Dünya'ya doğru uçan bir uzay gemisi oluşturmak olacak! + +\--- task \--- + +Yeni bir Scratch projesi açın. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Çevrimdışı:** Çevrimdışı düzenleyicide yeni bir proje açın. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Sahne Alanı'na 'roket' ve 'Dünya' kuklaları ekleyin. + +![Uzay gemisi ve Dünya kuklası](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Sahne Alanı'na 'Yıldızlar' fonunu ekleyin. + +![Bir uzay fonu](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Uzay gemisi kuklasına tıklayın ve **Costumes** sekmesine tıklayın. + +![Kukla kostümü](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +**Ok** aracını kullanarak uzay gemisi görüntüsünün etrafındaki bir kutuyu tıklayıp sürükleyebilirsiniz. Sonra **dairesel döndürme**'ye tıklayın ve tutamacı yan tarafına gelene kadar döndürün. + +![Kostüm döndürme](images/space-rotate.png) + +\--- /görev \--- + +\--- task \--- + +Bu kodu uzay gemisi kuklanıza ekleyin: + +![Uzay gemisi kuklası](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +Eklediğiniz kod bloklarındaki sayıları, kodun yukarıdakiyle tamamen aynı olması için değiştirin. + +\--- /task \--- + +Yeşil bayrağa tıklarsanız, uzay gemisinin konuştuğunu, döndüğünü ve sahnenin ortasına doğru kaydığını göreceksiniz. + +![Bir uzay gemisi animasyonunu test etme](images/space-animate-stage.png) \ No newline at end of file diff --git a/tr-TR/step_3.md b/tr-TR/step_3.md new file mode 100644 index 000000000..e525c1a88 --- /dev/null +++ b/tr-TR/step_3.md @@ -0,0 +1,16 @@ +## Meydan Okuma: animasyonunuzu geliştirin + +Animasyon kodunuzdaki sayıları öyle bir değiştirin ki + ++ Uzay gemisi Dünya'ya değene kadar hareket etsin ++ Uzay gemisi Dünya'ya doğru daha yavaş hareket etsin + +Bu bloktaki sayıları değiştirmeniz gerekecektir: + +![Roket gemisi kuklası](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/tr-TR/step_4.md b/tr-TR/step_4.md new file mode 100644 index 000000000..74ba5c934 --- /dev/null +++ b/tr-TR/step_4.md @@ -0,0 +1,126 @@ +## Döngüler kullanarak animasyon yapma + +Uzay gemisini canlandırmanın bir başka yolu, küçük bir miktarını birçok kez hareket ettirmesini söylemektir. + +\--- task \--- + +`kayma`{: class = "block3motion"} bloğunu kodunuzdan silin. Bunu yapmak için, bloğu Kod alanından sürükleyin ve diğer tek kod bloklarının olduğu yere geri bırakın. + +![Uzay gemisi kuklası](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Bir uzay gemisi animasyonunu test etme](images/space-animate-stage.png) + +![Uzay gemisi kuklası](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +Kodunuzu test edin ve kaydedin. Uzay geminiz, tam olarak eskisi gibi Dünya'ya doğru hareket etmeli, ancak bu sefer bir `repeat`{:class="block3control"} bloğu kullanıyor. + +\--- /task \--- + +\--- task \--- + +Şimdi kodunuzu uzay gemisi kuklasına ekleyin ki uzay gemisi Dünya'ya doğru hareket ederken rengi değişsin. + +Bu bloğu kullanın: + +![Uzay gemisi kuklası](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +Kodunuzu test edin ve kaydedin. + +![Renk değiştiren bir uzay gemisinin test edilmesi](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Uzay geminizi Dünya'ya doğru hareket ettikçe küçültebilir misiniz? + +\--- hints \--- + +\--- hint \--- + +Uzay geminiz `%100 boyutta`{:class="blocklooks"} başlayıp daha sonra her hareket ettiğinde birazcık `boyutunu değiştirmeli`{:class="blocklooks"}. + +\--- /hint \--- + +\---hint\--- + +Bu blokları kodunuza eklemeniz gerekiyor: + +![Uzay gemisi kuklası](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Kodunuz şöyle görünmeli: + +![Uzay gemisi kuklası](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Kodunuzu test edin ve kaydedin. Uzay geminiz şimdi ilerledikçe küçülmelidir. Uzay geminizi **ikinci defa** test edin. Başladığında olması gereken boyutta mı? + +![Küçülen bir uzay gemisinin test edilmesi](images/space-size-test.png) \ No newline at end of file diff --git a/tr-TR/step_5.md b/tr-TR/step_5.md new file mode 100644 index 000000000..f32c075b0 --- /dev/null +++ b/tr-TR/step_5.md @@ -0,0 +1,70 @@ +## Süzülen maymun + +Şimdi animasyonunuza uzayda kaybolmuş bir maymun ekleyeceksiniz! + +\--- task \--- + +Kütüphaneden 'maymun' kuklasını ekleyerek başlayın. + +![Bir maymun kukla ekleme](images/space-monkey-sprite.png) + +\--- /task \--- + +Yeni maymun kuklanıza tıklayın, ardından maymunun görünüşünü düzenleyebilmek için **Kostümler** seçeneğine tıklayın. + +\--- task \--- + +Dolguyu kırmızı çizgiyi seçerek saydam olacak şekilde ayarlayın. Ana hat için, doygunluk değerini `0`'a getirerek beyaz renge ayarlayın. + +![Beyaz renk yapma](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +**Daire** aracına tıklayın ve maymunun kafasının etrafına beyaz bir uzay kaskı çizmek için kullanın. + +![Maymun uzay kaskı](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Maymun kuklanıza sonsuza dek bir daire içinde yavaşça dönmesi için bir kod ekleyebilir misiniz? + +\--- hints \--- \--- hint \--- + +Yeşil **bayrak tıklandığında**, maymun kuklanız **sonsuza dek** bir daire içinde **dönmeli**. + +\--- /hint \--- \--- hint \--- + +İhtiyacınız olan kod blokları: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +İşte maymunun dönmesini sağlayacak kod: + +![Maymun kukla](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Projenizi test edin ve kaydedin. Bu animasyon sonsuza kadar devam edeceğinden onu sonlandırmak için kırmızı **durdur** butonuna tıklamanız gerekecek! + +![Dönen maymunu test et](images/space-spin-test.png) \ No newline at end of file diff --git a/tr-TR/step_6.md b/tr-TR/step_6.md new file mode 100644 index 000000000..1b82d13c5 --- /dev/null +++ b/tr-TR/step_6.md @@ -0,0 +1,59 @@ +## Zıplayan asteroit + +Şimdi animasyonunuza kayan bir uzay taşı ekleyeceksiniz. + +\--- task \--- + +Animasyonunuza bir 'taş' kuklası ekleyin. + +![Taş kuklası ekleme](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Taşın sahnenin etrafında zıplayabilmesi için taş kuklanıza bir kod ekleyebilir misiniz? + +![Zıplayan bir taşın test edilmesi](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +Yeşil **bayrak tıklandığında**, taş kuklanız sahne etrafında **hareket etmeli** ve **sonsuza dek sıçramalı**. + +\--- /hint \--- \--- hint \--- + +İhtiyacınız olan kod blokları: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +Bu kod bloklardan biriyle taş kuklanız için daha ilginç bir başlangıç yönü belirleyebilirsiniz: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +İşte taşınızı sahnenin etrafında zıplatmak için gerekli kod: + +![Taş kuklası](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/tr-TR/step_7.md b/tr-TR/step_7.md new file mode 100644 index 000000000..2f0e188dc --- /dev/null +++ b/tr-TR/step_7.md @@ -0,0 +1,61 @@ +## Parlayan yıldız + +Şimdi parlayan bir yıldız yapmak için döngüleri birleştireceksiniz. + +\--- task \--- + +Sahnene bir 'yıldız' kuklası ekle. + +![Bir yıldız kuklası ekleme](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Yıldızı sürekli olarak büyütüp küçültmek için yıldız kuklanıza bir kod ekleyebilir misiniz? + +![Parlayan bir yıldızı test etme](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +Yeşil **bayrak tıklandığında**, yıldız kuklan önce biraz büyümek için **boyut değiştirir**, sonra da biraz küçülmek için **boyut değiştirir**. Bunu yapmalı ki **sonsuza kadar** büyüyüp küçülerek parlayan bir yıldız gibi gözüksün. + +\--- /hint \--- \--- hint \--- + +İhtiyacınız olan kod blokları: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +İşte yıldızınızı büyütüp küçültmek için kullanabileceğiniz kod: + +![Yıldız kuklası](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/tr-TR/step_8.md b/tr-TR/step_8.md new file mode 100644 index 000000000..90927760a --- /dev/null +++ b/tr-TR/step_8.md @@ -0,0 +1,7 @@ +## Meydan okuma: kendi animasyonunuzu yaratın + +Uzay animasyonunuzu durdurun, kaydedin ve yeni bir Scratch projesi başlatın. + +Kendi projenizi yapmak için bu projede öğrendiklerinizi kullanın. İstediğiniz herhangi bir şey olabilir, ancak animasyonunuzun seçtiğiniz arka plana uyuyor olmasını sağlayın. İşte bazı örnekler: + +![ekran görüntüsü](images/space-egs.png) \ No newline at end of file diff --git a/tr-TR/step_9.md b/tr-TR/step_9.md new file mode 100644 index 000000000..5f178e523 --- /dev/null +++ b/tr-TR/step_9.md @@ -0,0 +1,18 @@ +## Sırada ne var? + +[Hayalet Avcıları](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) projesini dene! Bu projede, her tarafta ortaya çıkan hayaletlerin olduğu ve bunların yakalanması gerektiği bir oyun yapmayı öğreneceksiniz. Aynı zamanda bir zamanlayıcı ve oyun skoru eklemeyi öğreneceksiniz. Böylelikle kaç hayalet yakalayabildiğinizi göreceksiniz. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/uk-UA/images/banner.png b/uk-UA/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/uk-UA/images/banner.png differ diff --git a/uk-UA/images/ghostbusters-static.png b/uk-UA/images/ghostbusters-static.png new file mode 100644 index 000000000..c694aca37 Binary files /dev/null and b/uk-UA/images/ghostbusters-static.png differ diff --git a/uk-UA/images/lost-in-space.png b/uk-UA/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/uk-UA/images/lost-in-space.png differ diff --git a/uk-UA/images/make-white.png b/uk-UA/images/make-white.png new file mode 100644 index 000000000..2bff374aa Binary files /dev/null and b/uk-UA/images/make-white.png differ diff --git a/uk-UA/images/montage-1.png b/uk-UA/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/uk-UA/images/montage-1.png differ diff --git a/uk-UA/images/montage-2.png b/uk-UA/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/uk-UA/images/montage-2.png differ diff --git a/uk-UA/images/montage-3.png b/uk-UA/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/uk-UA/images/montage-3.png differ diff --git a/uk-UA/images/showcase_static.png b/uk-UA/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/uk-UA/images/showcase_static.png differ diff --git a/uk-UA/images/space-animate-stage.png b/uk-UA/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/uk-UA/images/space-animate-stage.png differ diff --git a/uk-UA/images/space-animate.png b/uk-UA/images/space-animate.png new file mode 100644 index 000000000..756f7b7b1 Binary files /dev/null and b/uk-UA/images/space-animate.png differ diff --git a/uk-UA/images/space-backdrop.png b/uk-UA/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/uk-UA/images/space-backdrop.png differ diff --git a/uk-UA/images/space-bounce-blocks.png b/uk-UA/images/space-bounce-blocks.png new file mode 100644 index 000000000..24f193725 Binary files /dev/null and b/uk-UA/images/space-bounce-blocks.png differ diff --git a/uk-UA/images/space-bounce-code.png b/uk-UA/images/space-bounce-code.png new file mode 100644 index 000000000..bd9017296 Binary files /dev/null and b/uk-UA/images/space-bounce-code.png differ diff --git a/uk-UA/images/space-bounce-test.png b/uk-UA/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/uk-UA/images/space-bounce-test.png differ diff --git a/uk-UA/images/space-colour-blocks.png b/uk-UA/images/space-colour-blocks.png new file mode 100644 index 000000000..fe18cdf05 Binary files /dev/null and b/uk-UA/images/space-colour-blocks.png differ diff --git a/uk-UA/images/space-colour-code.png b/uk-UA/images/space-colour-code.png new file mode 100644 index 000000000..ade9a522f Binary files /dev/null and b/uk-UA/images/space-colour-code.png differ diff --git a/uk-UA/images/space-colour-test.png b/uk-UA/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/uk-UA/images/space-colour-test.png differ diff --git a/uk-UA/images/space-costume.png b/uk-UA/images/space-costume.png new file mode 100644 index 000000000..af3d08c3c Binary files /dev/null and b/uk-UA/images/space-costume.png differ diff --git a/uk-UA/images/space-delete-glide.png b/uk-UA/images/space-delete-glide.png new file mode 100644 index 000000000..b1d734009 Binary files /dev/null and b/uk-UA/images/space-delete-glide.png differ diff --git a/uk-UA/images/space-egs.png b/uk-UA/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/uk-UA/images/space-egs.png differ diff --git a/uk-UA/images/space-glide.png b/uk-UA/images/space-glide.png new file mode 100644 index 000000000..421c359e4 Binary files /dev/null and b/uk-UA/images/space-glide.png differ diff --git a/uk-UA/images/space-initial-position.png b/uk-UA/images/space-initial-position.png new file mode 100644 index 000000000..f7e89f981 Binary files /dev/null and b/uk-UA/images/space-initial-position.png differ diff --git a/uk-UA/images/space-monkey-edit.png b/uk-UA/images/space-monkey-edit.png new file mode 100644 index 000000000..320c18832 Binary files /dev/null and b/uk-UA/images/space-monkey-edit.png differ diff --git a/uk-UA/images/space-monkey-sprite.png b/uk-UA/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/uk-UA/images/space-monkey-sprite.png differ diff --git a/uk-UA/images/space-repeat-blocks.png b/uk-UA/images/space-repeat-blocks.png new file mode 100644 index 000000000..52aca2d0f Binary files /dev/null and b/uk-UA/images/space-repeat-blocks.png differ diff --git a/uk-UA/images/space-repeat-code.png b/uk-UA/images/space-repeat-code.png new file mode 100644 index 000000000..7975ef3a1 Binary files /dev/null and b/uk-UA/images/space-repeat-code.png differ diff --git a/uk-UA/images/space-rock-sprite.png b/uk-UA/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/uk-UA/images/space-rock-sprite.png differ diff --git a/uk-UA/images/space-rotate.png b/uk-UA/images/space-rotate.png new file mode 100644 index 000000000..97ee92de9 Binary files /dev/null and b/uk-UA/images/space-rotate.png differ diff --git a/uk-UA/images/space-size-blocks.png b/uk-UA/images/space-size-blocks.png new file mode 100644 index 000000000..b14cdce26 Binary files /dev/null and b/uk-UA/images/space-size-blocks.png differ diff --git a/uk-UA/images/space-size-code.png b/uk-UA/images/space-size-code.png new file mode 100644 index 000000000..70f7719ae Binary files /dev/null and b/uk-UA/images/space-size-code.png differ diff --git a/uk-UA/images/space-size-test.png b/uk-UA/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/uk-UA/images/space-size-test.png differ diff --git a/uk-UA/images/space-spin-blocks.png b/uk-UA/images/space-spin-blocks.png new file mode 100644 index 000000000..085cddb72 Binary files /dev/null and b/uk-UA/images/space-spin-blocks.png differ diff --git a/uk-UA/images/space-spin-code.png b/uk-UA/images/space-spin-code.png new file mode 100644 index 000000000..663ce1cc8 Binary files /dev/null and b/uk-UA/images/space-spin-code.png differ diff --git a/uk-UA/images/space-spin-test.png b/uk-UA/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/uk-UA/images/space-spin-test.png differ diff --git a/uk-UA/images/space-sprites.png b/uk-UA/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/uk-UA/images/space-sprites.png differ diff --git a/uk-UA/images/space-star-blocks.png b/uk-UA/images/space-star-blocks.png new file mode 100644 index 000000000..0918bfe82 Binary files /dev/null and b/uk-UA/images/space-star-blocks.png differ diff --git a/uk-UA/images/space-star-code.png b/uk-UA/images/space-star-code.png new file mode 100644 index 000000000..e5eb8a321 Binary files /dev/null and b/uk-UA/images/space-star-code.png differ diff --git a/uk-UA/images/space-star-sprite.png b/uk-UA/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/uk-UA/images/space-star-sprite.png differ diff --git a/uk-UA/images/space-star-test.png b/uk-UA/images/space-star-test.png new file mode 100644 index 000000000..b0d33b055 Binary files /dev/null and b/uk-UA/images/space-star-test.png differ diff --git a/uk-UA/images/sprite-earth.png b/uk-UA/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/uk-UA/images/sprite-earth.png differ diff --git a/uk-UA/images/sprite-monkey.png b/uk-UA/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/uk-UA/images/sprite-monkey.png differ diff --git a/uk-UA/images/sprite-rock.png b/uk-UA/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/uk-UA/images/sprite-rock.png differ diff --git a/uk-UA/images/sprite-spaceship.png b/uk-UA/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/uk-UA/images/sprite-spaceship.png differ diff --git a/uk-UA/images/sprite-star.png b/uk-UA/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/uk-UA/images/sprite-star.png differ diff --git a/uk-UA/images/trim_and_tile.sh b/uk-UA/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/uk-UA/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/uk-UA/meta.yml b/uk-UA/meta.yml new file mode 100644 index 000000000..e7091f957 --- /dev/null +++ b/uk-UA/meta.yml @@ -0,0 +1,35 @@ +--- +title: Заблукали в космосі +hero_image: images/lost-in-space.png +description: Дізнайся, як запрограмувати власну анімацію! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Вступ + - + title: Анімація космічного корабля + - + title: 'Завдання: вдоскональ свою анімацію' + challenge: true + - + title: Анімація за допомогою циклів + completion: + - engaged + - + title: Невагома мавпа + - + title: Астероїд, що відскакує + - + title: Сяйна зірка + completion: + - internal + - + title: 'Завдання: створи власну анімацію' + challenge: true + - + title: Що далі? diff --git a/uk-UA/resources/LostinSpace-Finished.sb2 b/uk-UA/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..683e65627 Binary files /dev/null and b/uk-UA/resources/LostinSpace-Finished.sb2 differ diff --git a/uk-UA/scratch-translatable.txt b/uk-UA/scratch-translatable.txt new file mode 100644 index 000000000..ce428ffbe --- /dev/null +++ b/uk-UA/scratch-translatable.txt @@ -0,0 +1 @@ +Поїхали! diff --git a/uk-UA/solutions/lost-in-space-solution.sb3 b/uk-UA/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..da76fa5e0 Binary files /dev/null and b/uk-UA/solutions/lost-in-space-solution.sb3 differ diff --git a/uk-UA/step_1.md b/uk-UA/step_1.md new file mode 100644 index 000000000..ad853def1 --- /dev/null +++ b/uk-UA/step_1.md @@ -0,0 +1,60 @@ +## Вступ + +Ти навчишся програмувати власну анімацію! + +### Що ти зробиш + +\--- no-print \--- + +Натисни на зелений прапор, щоб побачити анімацію. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Завершений проєкт](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: Що тобі знадобиться + +### Обладнання + +- Комп'ютер, що підтримує Скретч 3 + +### Програмне забезпечення + +- Скретч 3 ([онлайн](https://rpf.io/scratchon){:target="_blank"} або [офлайн](https://rpf.io/scratchoff){:target="_blank"}) + +### Завантаження + +- Немає + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Чого ти навчишся + +- Використовувати цикл для анімації персонажа в Скретч +- Використовувати нескінченний цикл для нескінченної анімації персонажа в Скретч +- Побачиш, що цикли можуть бути вкладені одне в одного + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Додаткова інформація для викладачів + +Якщо вам потрібно надрукувати цей проєкт, скористайтеся [версією для друку](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_ blank"}. + +Ви можете знайти [завершений проєкт тут](https://rpf.io/p/en/lost-in-space-get){:target="_ blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/uk-UA/step_10.md b/uk-UA/step_10.md new file mode 100644 index 000000000..98ccce433 --- /dev/null +++ b/uk-UA/step_10.md @@ -0,0 +1,18 @@ +## Що далі? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/uk-UA/step_2.md b/uk-UA/step_2.md new file mode 100644 index 000000000..c6406f2b1 --- /dev/null +++ b/uk-UA/step_2.md @@ -0,0 +1,72 @@ +## Анімація космічного корабля + +Твоїм першим кроком буде створення космічного корабля, що летить до Землі! + +\--- task \--- + +Відкрий новий проєкт Скретч. + +**Онлайн:** відкрий новий онлайн проєкт Скретч на [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Офлайн:** відкрий новий проєкт в офлайн-редакторі. + +Якщо тобі треба завантажити та встановити офлайн-редактор Скретч, ти можеш його знайти на [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Додай спрайти rocketship («космічний корабель») та Earth («Земля») на Сцену. + +![Спрайти космічного корабля і Землі](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Додай тло Stars («Зірки») на Сцену. + +![Космічний фон](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Натисни на спрайт космічного корабля, а далі перейди на вкладку **Образи**. + +![Образ спрайта](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Використовуй інструмент **стрілка**: клікни та потягни, поки зображення космічного корабля не опиниться в рамці. Потім натисни на круглий значок **обернути** та обертай зображення, поки воно не опиниться на боці. + +![Обертання костюма](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Додайте цей код у свій спрайт космічного корабля: + +![Спрайт космічного корабля](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +Зміни числа в блоках з кодом, щоб код був точно таким, як показано вище. + +\--- /task \--- + +Коли ти натиснеш на зелений прапор, то космічний корабель заговорить, поверне і почне ковзати в напрямку центру сцени. + +![Тестування анімації космічного корабля](images/space-animate-stage.png) \ No newline at end of file diff --git a/uk-UA/step_3.md b/uk-UA/step_3.md new file mode 100644 index 000000000..0718d2c6c --- /dev/null +++ b/uk-UA/step_3.md @@ -0,0 +1,16 @@ +## Завдання: вдоскональ свою анімацію + +Чи можеш ти змінити числа в коді анімації так, щоб: + ++ Космічний корабель рухався, поки він не торкнеться Землі? ++ Космічний корабель рухався до Землі повільніше? + +Тобі потрібно буде змінити числа в цьому блоці: + +![Спрайт космічного корабля](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/uk-UA/step_4.md b/uk-UA/step_4.md new file mode 100644 index 000000000..391459674 --- /dev/null +++ b/uk-UA/step_4.md @@ -0,0 +1,126 @@ +## Анімація за допомогою циклів + +Зробити анімацію руху космічного корабля можна й по-іншому: наказавши йому рухатися малими відрізками багато разів + +\--- task \--- + +Видали із свого коду блок `ковзати`{:class="block3motion"}. Щоб це зробити, перетягни його із вкладки Код назад до інших одиночних блоків. + +![Спрайт космічного корабля](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Тепер використай блок `повторити`{:class="block3control"}, щоб перемістити космічний корабель до Землі. + +![Тестування анімації космічного корабля](images/space-animate-stage.png) + +![Спрайт космічного корабля](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +Перевір та збережи свій код. Твій космічний корабель повинен рухатися в напрямку Землі так само, як раніше, але на цей раз за допомогою блоку `повторити`. + +\--- /task \--- + +\--- task \--- + +Далі додай код до спрайту космічного корабля, щоб він міняв колір, рухаючись до Землі. + +Використовуй цей блок: + +![Спрайт космічного корабля](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +Протестуй та збережи свій код. + +![Тестування зміни кольору космічного корабля](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Чи можеш ти зробити так, щоб космічний корабель зменшувався при русі до Землі? + +\--- hints \--- + +\--- hint \--- + +Спочатку твій космічний корабель повинен мати `розмір 100`{:class="blocklooks"}, а далі `змінюй розмір`{:class="blocklooks"} на невелике значення кожного разу, коли він переміщується. + +\--- /hint \--- + +\--- hint \--- + +Тобі треба буде додати наступні блоки до свого коду: + +![Спрайт космічного корабля](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Твій код повинен виглядати так: + +![Спрайт космічного корабля](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Перевір та збережи свій код. Тепер твій космічний корабель має зменшуватися при русі. Перевір свій космічний корабель **іще раз**. Чи правильний у нього розмір на початку? + +![Тестування зменшення космічного корабля](images/space-size-test.png) \ No newline at end of file diff --git a/uk-UA/step_5.md b/uk-UA/step_5.md new file mode 100644 index 000000000..cfdf02ab7 --- /dev/null +++ b/uk-UA/step_5.md @@ -0,0 +1,70 @@ +## Невагома мавпа + +А тепер ти додаси до своєї анімації мавпу, що загубилася в космосі! + +\--- task \--- + +Спочатку додай спрайт monkey («мавпа») з бібліотеки. + +![Додавання спрайту мавпи](images/space-monkey-sprite.png) + +\--- /task \--- + +Натисни на щойно доданий спрайт мавпи, а далі перейди на вкладку **Образи** для того, щоб змінити її вигляд. + +\--- task \--- + +Встанови прозоре заповнення, вибравши червону лінію. Для контуру вибери білий колір, пересунувши повзунок «Насиченість» на `0`. + +![Вибери білий колір](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Вибери інструмент **коло**, щоб намалювати білий космічний шолом навколо голови мавпочки. + +![Космічний шолом мавпи](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Чи можеш ти додати код до спрайту мавпи так, щоб вона повільно оберталася без зупинки? + +\--- hints \--- \--- hint \--- + +Коли зелений **прапорець натиснуто**, твій спрайт мавпи повинен здійснювати **поворот** по колу **завжди**. + +\--- /hint \--- \--- hint \--- + +Тобі будуть потрібні наступні блоки коду: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +Ось цей код змусить мавпочку обертатися: + +![Спрайт мавпи](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Перевір та збережи свій проєкт. Натисни на червону кнопку **зупинити** для завершення анімації, бо інакше вона виконуватиметься вічно! + +![Перевірка мавпи, що обертається](images/space-spin-test.png) \ No newline at end of file diff --git a/uk-UA/step_6.md b/uk-UA/step_6.md new file mode 100644 index 000000000..10b26b384 --- /dev/null +++ b/uk-UA/step_6.md @@ -0,0 +1,59 @@ +## Астероїд, що відбивається + +Тепер ти додаси до своєї анімації летючий астероїд. + +\--- task \--- + +Додай спрайт rock («камінь») до своєї анімації. + +![Додавання спрайту астероїда](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Чи можеш ти додати код, щоб твій астероїд літав по сцені й відбивався від її країв? + +![Тестування астероїда, що відбивається](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +Коли на зелений **прапор натиснуто**, спрайт астероїда повинен **рухатися** по сцені і **відбиватися** **завжди**. + +\--- /hint \--- \--- hint \--- + +Тобі будуть потрібні наступні блоки коду: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +Також ти можеш задати цікавіший початковий напрямок для астероїда за допомогою одного з цих блоків: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Наступний код змусить астероїд літати по сцені, відбиваючися від її країв: + +![Спрайт астероїда](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/uk-UA/step_7.md b/uk-UA/step_7.md new file mode 100644 index 000000000..0288327cf --- /dev/null +++ b/uk-UA/step_7.md @@ -0,0 +1,61 @@ +## Сяйна зірка + +Тепер ти скомбінуєш цикли, щоб зробити сяючу зірку. + +\--- task \--- + +Додай спрайт star («зірка») до своєї сцени. + +![Додавання спрайту зірки](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Чи можеш ти додати код до спрайту зірки, щоб вона постійно збільшувалася та зменшувалася? + +![Тестування зірки, що сяє](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +Коли на зелений **прапор натиснуто**, спрайт зірки має декілька разів **збільшитися**, а потім — декілька разів **зменшитися**. Він повинен збільшуватися та зменшуватися **завжди**, щоб здавалося, ніби він сяє. + +\--- /hint \--- \--- hint \--- + +Тобі будуть потрібні наступні блоки коду: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +Ось код для збільшення та зменшення зірки: + +![Спрайт зірки](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/uk-UA/step_8.md b/uk-UA/step_8.md new file mode 100644 index 000000000..2b8545ece --- /dev/null +++ b/uk-UA/step_8.md @@ -0,0 +1,7 @@ +## Завдання: створи власну анімацію + +Зупини космічну анімацію, збережи її та створи новий проєкт Скретч. + +Використовуй знання, отримані в цьому проєкті, щоб створити власну анімацію. Це може бути що завгодно, але спробуй зробити так, щоб вона відповідала фону. Ось кілька прикладів: + +![знімок екрана](images/space-egs.png) \ No newline at end of file diff --git a/uk-UA/step_9.md b/uk-UA/step_9.md new file mode 100644 index 000000000..533d105ab --- /dev/null +++ b/uk-UA/step_9.md @@ -0,0 +1,18 @@ +## Що далі? + +Спробуй проєкт [Мисливці за привидами](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects)! У цьому проєкті ти дізнаєшся, як створити гру з привидами, що з’являються звідусіль і яких треба ловити. Також ти дізнаєшся як додати таймер та рахунок до гри, щоб бачити, скільки привидів тобі вдалося зловити. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![попередній перегляд](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/ur-PK/images/banner.png b/ur-PK/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/ur-PK/images/banner.png differ diff --git a/ur-PK/images/ghostbusters-static.png b/ur-PK/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/ur-PK/images/ghostbusters-static.png differ diff --git a/ur-PK/images/lost-in-space.png b/ur-PK/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/ur-PK/images/lost-in-space.png differ diff --git a/ur-PK/images/make-white.png b/ur-PK/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/ur-PK/images/make-white.png differ diff --git a/ur-PK/images/montage-1.png b/ur-PK/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/ur-PK/images/montage-1.png differ diff --git a/ur-PK/images/montage-2.png b/ur-PK/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/ur-PK/images/montage-2.png differ diff --git a/ur-PK/images/montage-3.png b/ur-PK/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/ur-PK/images/montage-3.png differ diff --git a/ur-PK/images/showcase_static.png b/ur-PK/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/ur-PK/images/showcase_static.png differ diff --git a/ur-PK/images/space-animate-stage.png b/ur-PK/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/ur-PK/images/space-animate-stage.png differ diff --git a/ur-PK/images/space-animate.png b/ur-PK/images/space-animate.png new file mode 100644 index 000000000..46a5038ab Binary files /dev/null and b/ur-PK/images/space-animate.png differ diff --git a/ur-PK/images/space-backdrop.png b/ur-PK/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/ur-PK/images/space-backdrop.png differ diff --git a/ur-PK/images/space-bounce-blocks.png b/ur-PK/images/space-bounce-blocks.png new file mode 100644 index 000000000..9294bb7f7 Binary files /dev/null and b/ur-PK/images/space-bounce-blocks.png differ diff --git a/ur-PK/images/space-bounce-code.png b/ur-PK/images/space-bounce-code.png new file mode 100644 index 000000000..e8791d62f Binary files /dev/null and b/ur-PK/images/space-bounce-code.png differ diff --git a/ur-PK/images/space-bounce-test.png b/ur-PK/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/ur-PK/images/space-bounce-test.png differ diff --git a/ur-PK/images/space-colour-blocks.png b/ur-PK/images/space-colour-blocks.png new file mode 100644 index 000000000..54461788b Binary files /dev/null and b/ur-PK/images/space-colour-blocks.png differ diff --git a/ur-PK/images/space-colour-code.png b/ur-PK/images/space-colour-code.png new file mode 100644 index 000000000..8afbd513d Binary files /dev/null and b/ur-PK/images/space-colour-code.png differ diff --git a/ur-PK/images/space-colour-test.png b/ur-PK/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/ur-PK/images/space-colour-test.png differ diff --git a/ur-PK/images/space-costume.png b/ur-PK/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/ur-PK/images/space-costume.png differ diff --git a/ur-PK/images/space-delete-glide.png b/ur-PK/images/space-delete-glide.png new file mode 100644 index 000000000..1d6fe71a9 Binary files /dev/null and b/ur-PK/images/space-delete-glide.png differ diff --git a/ur-PK/images/space-egs.png b/ur-PK/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/ur-PK/images/space-egs.png differ diff --git a/ur-PK/images/space-glide.png b/ur-PK/images/space-glide.png new file mode 100644 index 000000000..c04d7bfa9 Binary files /dev/null and b/ur-PK/images/space-glide.png differ diff --git a/ur-PK/images/space-initial-position.png b/ur-PK/images/space-initial-position.png new file mode 100644 index 000000000..260fa4f54 Binary files /dev/null and b/ur-PK/images/space-initial-position.png differ diff --git a/ur-PK/images/space-monkey-edit.png b/ur-PK/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/ur-PK/images/space-monkey-edit.png differ diff --git a/ur-PK/images/space-monkey-sprite.png b/ur-PK/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/ur-PK/images/space-monkey-sprite.png differ diff --git a/ur-PK/images/space-repeat-blocks.png b/ur-PK/images/space-repeat-blocks.png new file mode 100644 index 000000000..287663af6 Binary files /dev/null and b/ur-PK/images/space-repeat-blocks.png differ diff --git a/ur-PK/images/space-repeat-code.png b/ur-PK/images/space-repeat-code.png new file mode 100644 index 000000000..9800ca99d Binary files /dev/null and b/ur-PK/images/space-repeat-code.png differ diff --git a/ur-PK/images/space-rock-sprite.png b/ur-PK/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/ur-PK/images/space-rock-sprite.png differ diff --git a/ur-PK/images/space-rotate.png b/ur-PK/images/space-rotate.png new file mode 100644 index 000000000..916fb08f0 Binary files /dev/null and b/ur-PK/images/space-rotate.png differ diff --git a/ur-PK/images/space-size-blocks.png b/ur-PK/images/space-size-blocks.png new file mode 100644 index 000000000..1124075a4 Binary files /dev/null and b/ur-PK/images/space-size-blocks.png differ diff --git a/ur-PK/images/space-size-code.png b/ur-PK/images/space-size-code.png new file mode 100644 index 000000000..14c5d7bcc Binary files /dev/null and b/ur-PK/images/space-size-code.png differ diff --git a/ur-PK/images/space-size-test.png b/ur-PK/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/ur-PK/images/space-size-test.png differ diff --git a/ur-PK/images/space-spin-blocks.png b/ur-PK/images/space-spin-blocks.png new file mode 100644 index 000000000..ca9fd52ee Binary files /dev/null and b/ur-PK/images/space-spin-blocks.png differ diff --git a/ur-PK/images/space-spin-code.png b/ur-PK/images/space-spin-code.png new file mode 100644 index 000000000..8b3b016f9 Binary files /dev/null and b/ur-PK/images/space-spin-code.png differ diff --git a/ur-PK/images/space-spin-test.png b/ur-PK/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/ur-PK/images/space-spin-test.png differ diff --git a/ur-PK/images/space-sprites.png b/ur-PK/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/ur-PK/images/space-sprites.png differ diff --git a/ur-PK/images/space-star-blocks.png b/ur-PK/images/space-star-blocks.png new file mode 100644 index 000000000..f3b9f1e81 Binary files /dev/null and b/ur-PK/images/space-star-blocks.png differ diff --git a/ur-PK/images/space-star-code.png b/ur-PK/images/space-star-code.png new file mode 100644 index 000000000..7097d2e12 Binary files /dev/null and b/ur-PK/images/space-star-code.png differ diff --git a/ur-PK/images/space-star-sprite.png b/ur-PK/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/ur-PK/images/space-star-sprite.png differ diff --git a/ur-PK/images/space-star-test.png b/ur-PK/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/ur-PK/images/space-star-test.png differ diff --git a/ur-PK/images/sprite-earth.png b/ur-PK/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/ur-PK/images/sprite-earth.png differ diff --git a/ur-PK/images/sprite-monkey.png b/ur-PK/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/ur-PK/images/sprite-monkey.png differ diff --git a/ur-PK/images/sprite-rock.png b/ur-PK/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/ur-PK/images/sprite-rock.png differ diff --git a/ur-PK/images/sprite-spaceship.png b/ur-PK/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/ur-PK/images/sprite-spaceship.png differ diff --git a/ur-PK/images/sprite-star.png b/ur-PK/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/ur-PK/images/sprite-star.png differ diff --git a/ur-PK/images/trim_and_tile.sh b/ur-PK/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/ur-PK/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/ur-PK/meta.yml b/ur-PK/meta.yml new file mode 100644 index 000000000..b207a1b45 --- /dev/null +++ b/ur-PK/meta.yml @@ -0,0 +1,35 @@ +--- +title: Lost in space +hero_image: images/lost-in-space.png +description: Learn how to program your own animation! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introduction + - + title: Animating a spaceship + - + title: 'Challenge: improve your animation' + challenge: true + - + title: Animation using loops + completion: + - engaged + - + title: Floating monkey + - + title: Bouncing asteroid + - + title: Shining star + completion: + - internal + - + title: 'Challenge: make your own animation' + challenge: true + - + title: What next? diff --git a/ur-PK/resources/LostinSpace-Finished.sb2 b/ur-PK/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..89753817a Binary files /dev/null and b/ur-PK/resources/LostinSpace-Finished.sb2 differ diff --git a/ur-PK/scratch-translatable.txt b/ur-PK/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/ur-PK/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/ur-PK/solutions/lost-in-space-solution.sb3 b/ur-PK/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/ur-PK/solutions/lost-in-space-solution.sb3 differ diff --git a/ur-PK/step_1.md b/ur-PK/step_1.md new file mode 100644 index 000000000..bc43f86cd --- /dev/null +++ b/ur-PK/step_1.md @@ -0,0 +1,60 @@ +## Introduction + +You are going to learn how to program your own animation! + +### What you will make + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: What you will need + +### Hardware + +- A computer capable of running Scratch 3 + +### Software + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + +- None + +\--- /collapse \--- + +## \--- collapse \--- + +## title: What you will learn + +- Use a repeat loop to animate a sprite in Scratch +- Use a forever loop to repeat an animation indefinitely +- Understand that loops can be nested within each other + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Additional information for educators + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/ur-PK/step_10.md b/ur-PK/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/ur-PK/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/ur-PK/step_2.md b/ur-PK/step_2.md new file mode 100644 index 000000000..cbcdff0c6 --- /dev/null +++ b/ur-PK/step_2.md @@ -0,0 +1,72 @@ +## Animating a spaceship + +Your first step will be to create a spaceship that flies towards the Earth! + +\--- task \--- + +Open a new Scratch project. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** open a new project in the offline editor. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/ur-PK/step_3.md b/ur-PK/step_3.md new file mode 100644 index 000000000..4af9cb400 --- /dev/null +++ b/ur-PK/step_3.md @@ -0,0 +1,16 @@ +## Challenge: improve your animation + +Can you change the numbers in your animation code so that: + ++ The spaceship moves until it touches the Earth? ++ The spaceship moves more slowly towards the Earth? + +You'll need to change the numbers in this block: + +![Rocketship sprite](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/ur-PK/step_4.md b/ur-PK/step_4.md new file mode 100644 index 000000000..0e1397c55 --- /dev/null +++ b/ur-PK/step_4.md @@ -0,0 +1,126 @@ +## Animation using loops + +Another way to animate the spaceship is to tell it to move a small amount many times + +\--- task \--- + +Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testing a spaceship animation](images/space-animate-stage.png) + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Your spaceship should start at `100% size`{:class="blocklooks"}, and then `change size`{:class="blocklooks"} by a small amount each time it moves. + +\--- /hint \--- + +\--- hint \--- + +You will need to add these blocks to your code: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Your code should look like this: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/ur-PK/step_5.md b/ur-PK/step_5.md new file mode 100644 index 000000000..ab4c451b7 --- /dev/null +++ b/ur-PK/step_5.md @@ -0,0 +1,70 @@ +## Floating monkey + +Now you will add a monkey who's lost in space to your animation! + +\--- task \--- + +Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/ur-PK/step_6.md b/ur-PK/step_6.md new file mode 100644 index 000000000..729b6d975 --- /dev/null +++ b/ur-PK/step_6.md @@ -0,0 +1,59 @@ +## Bouncing asteroid + +Now you will add a floating space rock to your animation. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/ur-PK/step_7.md b/ur-PK/step_7.md new file mode 100644 index 000000000..e53504c76 --- /dev/null +++ b/ur-PK/step_7.md @@ -0,0 +1,61 @@ +## Shining star + +Now you will combine loops to make a shining star. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Star sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/ur-PK/step_8.md b/ur-PK/step_8.md new file mode 100644 index 000000000..841b139ec --- /dev/null +++ b/ur-PK/step_8.md @@ -0,0 +1,7 @@ +## Challenge: make your own animation + +Stop your space animation, save it, and start a new Scratch project. + +Use what you've learned in this project to make your own animation. It can be anything you like, but try to make your animation match the background you choose. Here are some examples: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/ur-PK/step_9.md b/ur-PK/step_9.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/ur-PK/step_9.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/vi-VN/images/banner.png b/vi-VN/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/vi-VN/images/banner.png differ diff --git a/vi-VN/images/ghostbusters-static.png b/vi-VN/images/ghostbusters-static.png new file mode 100644 index 000000000..54a314bc2 Binary files /dev/null and b/vi-VN/images/ghostbusters-static.png differ diff --git a/vi-VN/images/lost-in-space.png b/vi-VN/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/vi-VN/images/lost-in-space.png differ diff --git a/vi-VN/images/make-white.png b/vi-VN/images/make-white.png new file mode 100644 index 000000000..3945365a4 Binary files /dev/null and b/vi-VN/images/make-white.png differ diff --git a/vi-VN/images/montage-1.png b/vi-VN/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/vi-VN/images/montage-1.png differ diff --git a/vi-VN/images/montage-2.png b/vi-VN/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/vi-VN/images/montage-2.png differ diff --git a/vi-VN/images/montage-3.png b/vi-VN/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/vi-VN/images/montage-3.png differ diff --git a/vi-VN/images/showcase_static.png b/vi-VN/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/vi-VN/images/showcase_static.png differ diff --git a/vi-VN/images/space-animate-stage.png b/vi-VN/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/vi-VN/images/space-animate-stage.png differ diff --git a/vi-VN/images/space-animate.png b/vi-VN/images/space-animate.png new file mode 100644 index 000000000..46a5038ab Binary files /dev/null and b/vi-VN/images/space-animate.png differ diff --git a/vi-VN/images/space-backdrop.png b/vi-VN/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/vi-VN/images/space-backdrop.png differ diff --git a/vi-VN/images/space-bounce-blocks.png b/vi-VN/images/space-bounce-blocks.png new file mode 100644 index 000000000..9294bb7f7 Binary files /dev/null and b/vi-VN/images/space-bounce-blocks.png differ diff --git a/vi-VN/images/space-bounce-code.png b/vi-VN/images/space-bounce-code.png new file mode 100644 index 000000000..e8791d62f Binary files /dev/null and b/vi-VN/images/space-bounce-code.png differ diff --git a/vi-VN/images/space-bounce-test.png b/vi-VN/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/vi-VN/images/space-bounce-test.png differ diff --git a/vi-VN/images/space-colour-blocks.png b/vi-VN/images/space-colour-blocks.png new file mode 100644 index 000000000..54461788b Binary files /dev/null and b/vi-VN/images/space-colour-blocks.png differ diff --git a/vi-VN/images/space-colour-code.png b/vi-VN/images/space-colour-code.png new file mode 100644 index 000000000..8afbd513d Binary files /dev/null and b/vi-VN/images/space-colour-code.png differ diff --git a/vi-VN/images/space-colour-test.png b/vi-VN/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/vi-VN/images/space-colour-test.png differ diff --git a/vi-VN/images/space-costume.png b/vi-VN/images/space-costume.png new file mode 100644 index 000000000..c739f43cb Binary files /dev/null and b/vi-VN/images/space-costume.png differ diff --git a/vi-VN/images/space-delete-glide.png b/vi-VN/images/space-delete-glide.png new file mode 100644 index 000000000..1d6fe71a9 Binary files /dev/null and b/vi-VN/images/space-delete-glide.png differ diff --git a/vi-VN/images/space-egs.png b/vi-VN/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/vi-VN/images/space-egs.png differ diff --git a/vi-VN/images/space-glide.png b/vi-VN/images/space-glide.png new file mode 100644 index 000000000..c04d7bfa9 Binary files /dev/null and b/vi-VN/images/space-glide.png differ diff --git a/vi-VN/images/space-initial-position.png b/vi-VN/images/space-initial-position.png new file mode 100644 index 000000000..260fa4f54 Binary files /dev/null and b/vi-VN/images/space-initial-position.png differ diff --git a/vi-VN/images/space-monkey-edit.png b/vi-VN/images/space-monkey-edit.png new file mode 100644 index 000000000..bcfa6a707 Binary files /dev/null and b/vi-VN/images/space-monkey-edit.png differ diff --git a/vi-VN/images/space-monkey-sprite.png b/vi-VN/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/vi-VN/images/space-monkey-sprite.png differ diff --git a/vi-VN/images/space-repeat-blocks.png b/vi-VN/images/space-repeat-blocks.png new file mode 100644 index 000000000..287663af6 Binary files /dev/null and b/vi-VN/images/space-repeat-blocks.png differ diff --git a/vi-VN/images/space-repeat-code.png b/vi-VN/images/space-repeat-code.png new file mode 100644 index 000000000..9800ca99d Binary files /dev/null and b/vi-VN/images/space-repeat-code.png differ diff --git a/vi-VN/images/space-rock-sprite.png b/vi-VN/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/vi-VN/images/space-rock-sprite.png differ diff --git a/vi-VN/images/space-rotate.png b/vi-VN/images/space-rotate.png new file mode 100644 index 000000000..916fb08f0 Binary files /dev/null and b/vi-VN/images/space-rotate.png differ diff --git a/vi-VN/images/space-size-blocks.png b/vi-VN/images/space-size-blocks.png new file mode 100644 index 000000000..1124075a4 Binary files /dev/null and b/vi-VN/images/space-size-blocks.png differ diff --git a/vi-VN/images/space-size-code.png b/vi-VN/images/space-size-code.png new file mode 100644 index 000000000..14c5d7bcc Binary files /dev/null and b/vi-VN/images/space-size-code.png differ diff --git a/vi-VN/images/space-size-test.png b/vi-VN/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/vi-VN/images/space-size-test.png differ diff --git a/vi-VN/images/space-spin-blocks.png b/vi-VN/images/space-spin-blocks.png new file mode 100644 index 000000000..ca9fd52ee Binary files /dev/null and b/vi-VN/images/space-spin-blocks.png differ diff --git a/vi-VN/images/space-spin-code.png b/vi-VN/images/space-spin-code.png new file mode 100644 index 000000000..8b3b016f9 Binary files /dev/null and b/vi-VN/images/space-spin-code.png differ diff --git a/vi-VN/images/space-spin-test.png b/vi-VN/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/vi-VN/images/space-spin-test.png differ diff --git a/vi-VN/images/space-sprites.png b/vi-VN/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/vi-VN/images/space-sprites.png differ diff --git a/vi-VN/images/space-star-blocks.png b/vi-VN/images/space-star-blocks.png new file mode 100644 index 000000000..f3b9f1e81 Binary files /dev/null and b/vi-VN/images/space-star-blocks.png differ diff --git a/vi-VN/images/space-star-code.png b/vi-VN/images/space-star-code.png new file mode 100644 index 000000000..7097d2e12 Binary files /dev/null and b/vi-VN/images/space-star-code.png differ diff --git a/vi-VN/images/space-star-sprite.png b/vi-VN/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/vi-VN/images/space-star-sprite.png differ diff --git a/vi-VN/images/space-star-test.png b/vi-VN/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/vi-VN/images/space-star-test.png differ diff --git a/vi-VN/images/sprite-earth.png b/vi-VN/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/vi-VN/images/sprite-earth.png differ diff --git a/vi-VN/images/sprite-monkey.png b/vi-VN/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/vi-VN/images/sprite-monkey.png differ diff --git a/vi-VN/images/sprite-rock.png b/vi-VN/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/vi-VN/images/sprite-rock.png differ diff --git a/vi-VN/images/sprite-spaceship.png b/vi-VN/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/vi-VN/images/sprite-spaceship.png differ diff --git a/vi-VN/images/sprite-star.png b/vi-VN/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/vi-VN/images/sprite-star.png differ diff --git a/vi-VN/images/trim_and_tile.sh b/vi-VN/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/vi-VN/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/vi-VN/meta.yml b/vi-VN/meta.yml new file mode 100644 index 000000000..b207a1b45 --- /dev/null +++ b/vi-VN/meta.yml @@ -0,0 +1,35 @@ +--- +title: Lost in space +hero_image: images/lost-in-space.png +description: Learn how to program your own animation! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: Introduction + - + title: Animating a spaceship + - + title: 'Challenge: improve your animation' + challenge: true + - + title: Animation using loops + completion: + - engaged + - + title: Floating monkey + - + title: Bouncing asteroid + - + title: Shining star + completion: + - internal + - + title: 'Challenge: make your own animation' + challenge: true + - + title: What next? diff --git a/vi-VN/resources/LostinSpace-Finished.sb2 b/vi-VN/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..89753817a Binary files /dev/null and b/vi-VN/resources/LostinSpace-Finished.sb2 differ diff --git a/vi-VN/scratch-translatable.txt b/vi-VN/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/vi-VN/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/vi-VN/solutions/lost-in-space-solution.sb3 b/vi-VN/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/vi-VN/solutions/lost-in-space-solution.sb3 differ diff --git a/vi-VN/step_1.md b/vi-VN/step_1.md new file mode 100644 index 000000000..bc43f86cd --- /dev/null +++ b/vi-VN/step_1.md @@ -0,0 +1,60 @@ +## Introduction + +You are going to learn how to program your own animation! + +### What you will make + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: What you will need + +### Hardware + +- A computer capable of running Scratch 3 + +### Software + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### Downloads + +- None + +\--- /collapse \--- + +## \--- collapse \--- + +## title: What you will learn + +- Use a repeat loop to animate a sprite in Scratch +- Use a forever loop to repeat an animation indefinitely +- Understand that loops can be nested within each other + +\--- /collapse \--- + +## \--- collapse \--- + +## title: Additional information for educators + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/vi-VN/step_10.md b/vi-VN/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/vi-VN/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/vi-VN/step_2.md b/vi-VN/step_2.md new file mode 100644 index 000000000..cbcdff0c6 --- /dev/null +++ b/vi-VN/step_2.md @@ -0,0 +1,72 @@ +## Animating a spaceship + +Your first step will be to create a spaceship that flies towards the Earth! + +\--- task \--- + +Open a new Scratch project. + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**Offline:** open a new project in the offline editor. + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +Add 'rocketship' and 'Earth' sprites to your Stage. + +![Spaceship and Earth sprites](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +Add the 'Stars' backdrop to your Stage. + +![A space backdrop](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +Click on your spaceship sprite, and click on the **Costumes** tab. + +![Sprite costume](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +Use the **arrow** tool to click and drag a box around the whole spaceship image. Then click on the circular **rotate** handle, and rotate the image until it is on its side. + +![Rotating a costume](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +Add this code to your spaceship sprite: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +Change the numbers in the code blocks you've added so that the code is exactly the same as above. + +\--- /task \--- + +If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage. + +![Testing a spaceship animation](images/space-animate-stage.png) \ No newline at end of file diff --git a/vi-VN/step_3.md b/vi-VN/step_3.md new file mode 100644 index 000000000..4af9cb400 --- /dev/null +++ b/vi-VN/step_3.md @@ -0,0 +1,16 @@ +## Challenge: improve your animation + +Can you change the numbers in your animation code so that: + ++ The spaceship moves until it touches the Earth? ++ The spaceship moves more slowly towards the Earth? + +You'll need to change the numbers in this block: + +![Rocketship sprite](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/vi-VN/step_4.md b/vi-VN/step_4.md new file mode 100644 index 000000000..0e1397c55 --- /dev/null +++ b/vi-VN/step_4.md @@ -0,0 +1,126 @@ +## Animation using loops + +Another way to animate the spaceship is to tell it to move a small amount many times + +\--- task \--- + +Delete the `glide`{:class="block3motion"} block from your code. To do this, drag the block off the Code area and drop it back where the other single code blocks are. + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![Testing a spaceship animation](images/space-animate-stage.png) + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +Test and save your code. Your spaceship should move towards the Earth exactly as before, but this time it uses a `repeat`{:class="block3control"} block. + +\--- /task \--- + +\--- task \--- + +Next add code to your spaceship sprite so that the spaceship changes colour as it moves towards Earth? + +Use this block: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +Test and save your code. + +![Testing a colour-changing spaceship](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +Can you make your spaceship get smaller as it moves towards Earth? + +\--- hints \--- + +\--- hint \--- + +Your spaceship should start at `100% size`{:class="blocklooks"}, and then `change size`{:class="blocklooks"} by a small amount each time it moves. + +\--- /hint \--- + +\--- hint \--- + +You will need to add these blocks to your code: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +Your code should look like this: + +![Spaceship sprite](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +Test and save your code. Your spaceship should now get smaller as it moves. Test your spaceship a **second time**. Is it the right size when it starts? + +![Testing a shrinking spaceship](images/space-size-test.png) \ No newline at end of file diff --git a/vi-VN/step_5.md b/vi-VN/step_5.md new file mode 100644 index 000000000..ab4c451b7 --- /dev/null +++ b/vi-VN/step_5.md @@ -0,0 +1,70 @@ +## Floating monkey + +Now you will add a monkey who's lost in space to your animation! + +\--- task \--- + +Start by adding the 'monkey' sprite from the library. + +![Adding a monkey sprite](images/space-monkey-sprite.png) + +\--- /task \--- + +Click on your new monkey sprite and then click on **Costumes** so that you can edit how the monkey looks. + +\--- task \--- + +Set the fill to be transparent by selecting the red line. For the outline, set a white colour by moving the Saturation slider to `0`. + +![Make white colour](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +Click on the **circle** tool and then use it to draw a white space helmet around the monkey's head. + +![Monkey space helmet](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your monkey sprite so that it spins slowly in a circle forever? + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your monkey sprite should **turn** in a circle **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your monkey spin: + +![Monkey sprite](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +Test and save your project. You'll have to click on the red **stop** button to end this animation, as it runs forever! + +![Test the spinning monkey](images/space-spin-test.png) \ No newline at end of file diff --git a/vi-VN/step_6.md b/vi-VN/step_6.md new file mode 100644 index 000000000..729b6d975 --- /dev/null +++ b/vi-VN/step_6.md @@ -0,0 +1,59 @@ +## Bouncing asteroid + +Now you will add a floating space rock to your animation. + +\--- task \--- + +Add a 'rock' sprite to your animation. + +![Adding a rock sprite](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code for your rock sprite so that the rock bounces around the stage? + +![Testing a bouncing rock](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your rock sprite should **move** and **bounce** around the stage **forever**. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +You can also set a more interesting starting direction for the rock sprite with one of these blocks: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +Here's the code for making your rock bounce around the stage: + +![Rock sprite](images/sprite-rock.png) + +```blocks3 +when flag clicked +point towards (Earth v) +forever + move (2) steps + if on edge, bounce +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/vi-VN/step_7.md b/vi-VN/step_7.md new file mode 100644 index 000000000..e53504c76 --- /dev/null +++ b/vi-VN/step_7.md @@ -0,0 +1,61 @@ +## Shining star + +Now you will combine loops to make a shining star. + +\--- task \--- + +Add a 'star' sprite to your stage. + +![Adding a star sprite](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +Can you add code to your star sprite to make the star repeatedly grow and shrink? + +![Testing a shining star](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +When the green **flag is clicked**, your star sprite should **change size** to get bigger a few times, and then **change size** to get smaller a few times. It should do this so that it gets bigger and then smaller **forever** and looks like it's shining light. + +\--- /hint \--- \--- hint \--- + +Here are the code blocks you need: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +Here's the code to make your star grow and shrink: + +![Star sprite](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/vi-VN/step_8.md b/vi-VN/step_8.md new file mode 100644 index 000000000..841b139ec --- /dev/null +++ b/vi-VN/step_8.md @@ -0,0 +1,7 @@ +## Challenge: make your own animation + +Stop your space animation, save it, and start a new Scratch project. + +Use what you've learned in this project to make your own animation. It can be anything you like, but try to make your animation match the background you choose. Here are some examples: + +![screenshot](images/space-egs.png) \ No newline at end of file diff --git a/vi-VN/step_9.md b/vi-VN/step_9.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/vi-VN/step_9.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/zh-CN/images/banner.png b/zh-CN/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/zh-CN/images/banner.png differ diff --git a/zh-CN/images/ghostbusters-static.png b/zh-CN/images/ghostbusters-static.png new file mode 100644 index 000000000..5661a861c Binary files /dev/null and b/zh-CN/images/ghostbusters-static.png differ diff --git a/zh-CN/images/lost-in-space.png b/zh-CN/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/zh-CN/images/lost-in-space.png differ diff --git a/zh-CN/images/make-white.png b/zh-CN/images/make-white.png new file mode 100644 index 000000000..df447efb7 Binary files /dev/null and b/zh-CN/images/make-white.png differ diff --git a/zh-CN/images/montage-1.png b/zh-CN/images/montage-1.png new file mode 100644 index 000000000..11330bed4 Binary files /dev/null and b/zh-CN/images/montage-1.png differ diff --git a/zh-CN/images/montage-2.png b/zh-CN/images/montage-2.png new file mode 100644 index 000000000..f2eda55aa Binary files /dev/null and b/zh-CN/images/montage-2.png differ diff --git a/zh-CN/images/montage-3.png b/zh-CN/images/montage-3.png new file mode 100644 index 000000000..2a7c85922 Binary files /dev/null and b/zh-CN/images/montage-3.png differ diff --git a/zh-CN/images/showcase_static.png b/zh-CN/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/zh-CN/images/showcase_static.png differ diff --git a/zh-CN/images/space-animate-stage.png b/zh-CN/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/zh-CN/images/space-animate-stage.png differ diff --git a/zh-CN/images/space-animate.png b/zh-CN/images/space-animate.png new file mode 100644 index 000000000..3836ee60e Binary files /dev/null and b/zh-CN/images/space-animate.png differ diff --git a/zh-CN/images/space-backdrop.png b/zh-CN/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/zh-CN/images/space-backdrop.png differ diff --git a/zh-CN/images/space-bounce-blocks.png b/zh-CN/images/space-bounce-blocks.png new file mode 100644 index 000000000..c87a6ee56 Binary files /dev/null and b/zh-CN/images/space-bounce-blocks.png differ diff --git a/zh-CN/images/space-bounce-code.png b/zh-CN/images/space-bounce-code.png new file mode 100644 index 000000000..1e1a99ffa Binary files /dev/null and b/zh-CN/images/space-bounce-code.png differ diff --git a/zh-CN/images/space-bounce-test.png b/zh-CN/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/zh-CN/images/space-bounce-test.png differ diff --git a/zh-CN/images/space-colour-blocks.png b/zh-CN/images/space-colour-blocks.png new file mode 100644 index 000000000..a0bee8781 Binary files /dev/null and b/zh-CN/images/space-colour-blocks.png differ diff --git a/zh-CN/images/space-colour-code.png b/zh-CN/images/space-colour-code.png new file mode 100644 index 000000000..33af7ad3f Binary files /dev/null and b/zh-CN/images/space-colour-code.png differ diff --git a/zh-CN/images/space-colour-test.png b/zh-CN/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/zh-CN/images/space-colour-test.png differ diff --git a/zh-CN/images/space-costume.png b/zh-CN/images/space-costume.png new file mode 100644 index 000000000..f636f44c0 Binary files /dev/null and b/zh-CN/images/space-costume.png differ diff --git a/zh-CN/images/space-delete-glide.png b/zh-CN/images/space-delete-glide.png new file mode 100644 index 000000000..9490a50a4 Binary files /dev/null and b/zh-CN/images/space-delete-glide.png differ diff --git a/zh-CN/images/space-egs.png b/zh-CN/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/zh-CN/images/space-egs.png differ diff --git a/zh-CN/images/space-glide.png b/zh-CN/images/space-glide.png new file mode 100644 index 000000000..bfd361ab6 Binary files /dev/null and b/zh-CN/images/space-glide.png differ diff --git a/zh-CN/images/space-initial-position.png b/zh-CN/images/space-initial-position.png new file mode 100644 index 000000000..59c2367a8 Binary files /dev/null and b/zh-CN/images/space-initial-position.png differ diff --git a/zh-CN/images/space-monkey-edit.png b/zh-CN/images/space-monkey-edit.png new file mode 100644 index 000000000..57dfa043f Binary files /dev/null and b/zh-CN/images/space-monkey-edit.png differ diff --git a/zh-CN/images/space-monkey-sprite.png b/zh-CN/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/zh-CN/images/space-monkey-sprite.png differ diff --git a/zh-CN/images/space-repeat-blocks.png b/zh-CN/images/space-repeat-blocks.png new file mode 100644 index 000000000..405abbf13 Binary files /dev/null and b/zh-CN/images/space-repeat-blocks.png differ diff --git a/zh-CN/images/space-repeat-code.png b/zh-CN/images/space-repeat-code.png new file mode 100644 index 000000000..d02c2c01b Binary files /dev/null and b/zh-CN/images/space-repeat-code.png differ diff --git a/zh-CN/images/space-rock-sprite.png b/zh-CN/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/zh-CN/images/space-rock-sprite.png differ diff --git a/zh-CN/images/space-rotate.png b/zh-CN/images/space-rotate.png new file mode 100644 index 000000000..098f90752 Binary files /dev/null and b/zh-CN/images/space-rotate.png differ diff --git a/zh-CN/images/space-size-blocks.png b/zh-CN/images/space-size-blocks.png new file mode 100644 index 000000000..bfd3c6757 Binary files /dev/null and b/zh-CN/images/space-size-blocks.png differ diff --git a/zh-CN/images/space-size-code.png b/zh-CN/images/space-size-code.png new file mode 100644 index 000000000..1255a7ca6 Binary files /dev/null and b/zh-CN/images/space-size-code.png differ diff --git a/zh-CN/images/space-size-test.png b/zh-CN/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/zh-CN/images/space-size-test.png differ diff --git a/zh-CN/images/space-spin-blocks.png b/zh-CN/images/space-spin-blocks.png new file mode 100644 index 000000000..3216e26b7 Binary files /dev/null and b/zh-CN/images/space-spin-blocks.png differ diff --git a/zh-CN/images/space-spin-code.png b/zh-CN/images/space-spin-code.png new file mode 100644 index 000000000..17b33d4a0 Binary files /dev/null and b/zh-CN/images/space-spin-code.png differ diff --git a/zh-CN/images/space-spin-test.png b/zh-CN/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/zh-CN/images/space-spin-test.png differ diff --git a/zh-CN/images/space-sprites.png b/zh-CN/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/zh-CN/images/space-sprites.png differ diff --git a/zh-CN/images/space-star-blocks.png b/zh-CN/images/space-star-blocks.png new file mode 100644 index 000000000..1d89160df Binary files /dev/null and b/zh-CN/images/space-star-blocks.png differ diff --git a/zh-CN/images/space-star-code.png b/zh-CN/images/space-star-code.png new file mode 100644 index 000000000..0c1d70c91 Binary files /dev/null and b/zh-CN/images/space-star-code.png differ diff --git a/zh-CN/images/space-star-sprite.png b/zh-CN/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/zh-CN/images/space-star-sprite.png differ diff --git a/zh-CN/images/space-star-test.png b/zh-CN/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/zh-CN/images/space-star-test.png differ diff --git a/zh-CN/images/sprite-earth.png b/zh-CN/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/zh-CN/images/sprite-earth.png differ diff --git a/zh-CN/images/sprite-monkey.png b/zh-CN/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/zh-CN/images/sprite-monkey.png differ diff --git a/zh-CN/images/sprite-rock.png b/zh-CN/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/zh-CN/images/sprite-rock.png differ diff --git a/zh-CN/images/sprite-spaceship.png b/zh-CN/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/zh-CN/images/sprite-spaceship.png differ diff --git a/zh-CN/images/sprite-star.png b/zh-CN/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/zh-CN/images/sprite-star.png differ diff --git a/zh-CN/images/trim_and_tile.sh b/zh-CN/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/zh-CN/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/zh-CN/meta.yml b/zh-CN/meta.yml new file mode 100644 index 000000000..dc4c7ec0c --- /dev/null +++ b/zh-CN/meta.yml @@ -0,0 +1,35 @@ +--- +title: 迷失太空 +hero_image: images/lost-in-space.png +description: 学习如何编写你自己的动画! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: 简介 + - + title: 移动飞船 + - + title: '挑战: 优化你的动画' + challenge: true + - + title: 循环动画 + completion: + - engaged + - + title: 漂浮的猴子 + - + title: 弹跳小行星 + - + title: 闪亮的星星 + completion: + - internal + - + title: '挑战:创建你自己的动画' + challenge: true + - + title: 接下来呢? diff --git a/zh-CN/resources/LostinSpace-Finished.sb2 b/zh-CN/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..b0dd9d813 Binary files /dev/null and b/zh-CN/resources/LostinSpace-Finished.sb2 differ diff --git a/zh-CN/scratch-translatable.txt b/zh-CN/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/zh-CN/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/zh-CN/solutions/lost-in-space-solution.sb3 b/zh-CN/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..36afdcb8c Binary files /dev/null and b/zh-CN/solutions/lost-in-space-solution.sb3 differ diff --git a/zh-CN/step_1.md b/zh-CN/step_1.md new file mode 100644 index 000000000..021f27ba7 --- /dev/null +++ b/zh-CN/step_1.md @@ -0,0 +1,60 @@ +## 简介 + +You are going to learn how to program your own animation! + +### 你将做出什么 + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: 你需要准备什么 + +### 硬件 + +- 一台能够运行Scratch 3的电脑 + +### 软件 + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### 下载 + +- 无 + +\--- /collapse \--- + +## \--- collapse \--- + +## 标题: 你将学到什么 + +- 使用重复循环在Scratch中为精灵设置动画 +- 使用forever循环无限期地重复动画 +- 理解循环可以互相嵌套 + +\--- /collapse \--- + +## \--- collapse \--- + +## 标题: 教师附加信息 + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/zh-CN/step_10.md b/zh-CN/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/zh-CN/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/zh-CN/step_2.md b/zh-CN/step_2.md new file mode 100644 index 000000000..3e766b27c --- /dev/null +++ b/zh-CN/step_2.md @@ -0,0 +1,72 @@ +## 动画飞船 + +你的第一步将是创造一个飞向地球的宇宙飞船! + +\--- task \--- + +创建一个新的Scratch项目 + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**离线: **在离线编辑器中打开一个新项目。 + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +在你的舞台上添加'rocketship'和'Earth'精灵。 + +![飞船和地球角色](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +为舞台添加“星星“背景。 + +![太空背景](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +点击飞船角色,然后点击**造型**选项卡。 + +![角色造型](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +使用**箭头**工具来点击和拖拽环绕整个太空船图像的方框。然后点击圆形的**旋转**工具,旋转图像直到处于一侧。 + +![旋转造型](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +为飞船角色添加如下代码: + +![宇宙飞船精灵](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +glide (1) secs to x:(0) y:(0) +``` + +修改程序块中的数字,让宇宙飞船和上面显示的代码一样。 + +\--- /task \--- + +点击绿旗,你应该会看到飞船说话,转向,然后驶向舞台中央。 + +![测试飞船动画](images/space-animate-stage.png) \ No newline at end of file diff --git a/zh-CN/step_3.md b/zh-CN/step_3.md new file mode 100644 index 000000000..5e80496fb --- /dev/null +++ b/zh-CN/step_3.md @@ -0,0 +1,16 @@ +## 移动飞船 + +你能修改动画代码实现如下功能吗: + ++ 飞船碰到地球时停止移动 ++ 飞船更缓慢地驶向地球 + +你需要修改如下代码块里的数值: + +![火箭精灵](images/sprite-spaceship.png) + +```blocks3 +glide (1) secs to x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/zh-CN/step_4.md b/zh-CN/step_4.md new file mode 100644 index 000000000..ccb0dfbf0 --- /dev/null +++ b/zh-CN/step_4.md @@ -0,0 +1,126 @@ +## 循环动画 + +另一种移动飞船的方式是重复多次每次移动一小步。 + +\--- task \--- + +删除`滑动`来自您的代码的{:class="block3motion"}阻止。为此,将块拖离代码区域并将其放回其他单个代码块所在的位置。 + +![宇宙飞船精灵](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + +- glide (1) secs to x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![测试飞船动画](images/space-animate-stage.png) + +![宇宙飞船精灵](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) + ++ repeat (200) + move (2) steps +``` + +测试并保存.飞船应该像之前一样驶向地球,只不过这次使用的是`重复执行`{:class="block3control"}代码块。 + +\--- /task \--- + +\--- task \--- + +接下来,为你的飞船角色添加代码,让它在向舞台顶部移动的时候改变颜色。 + +使用此代码块: + +![宇宙飞船精灵](images/sprite-spaceship.png) + +```blocks3 +when flag clicked +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + ++ change [color v] effect by (25) +``` + +测试并保存您的代码。 + +![测试飞船变色](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +你可以让你的飞船在向舞台顶部的时候变小吗? + +\--- hints \--- + +\--- hint \--- + +你的飞船一开始的尺寸应该是 `100%大`{:class="blocklooks"},然后在每次移动的时候,通过每次减去一个小数值来`改变大小`{:class="blocklooks"}。 + +\--- /hint \--- + +\--- hint \--- + +您需要将这些块添加到代码中: + +![宇宙飞船精灵](images/sprite-spaceship.png) + +```blocks3 +change size by (10) + +set size to (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +你的代码应该是这样的: + +![宇宙飞船精灵](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +测试并保存。你的飞船在移动过程中应该逐渐变小。**再次**测试你的飞船,它的起始大小正确吗? + +![测试飞船变小](images/space-size-test.png) \ No newline at end of file diff --git a/zh-CN/step_5.md b/zh-CN/step_5.md new file mode 100644 index 000000000..911d78eee --- /dev/null +++ b/zh-CN/step_5.md @@ -0,0 +1,70 @@ +## 漂浮的猴子 + +让我们向动画中加入一只迷失在太空中的猴子! + +\--- task \--- + +首先从素材库中添加“猴子”角色。 + +![添加猴子角色](images/space-monkey-sprite.png) + +\--- /task \--- + +点击新加入的猴子然后点击**造型**,你就可以编辑猴子的外观了。 + +\--- task \--- + +通过选择红线将填充设置为透明。对于轮廓,通过将“饱和度”滑块移动到` 0来设置白色` 。 + +![白色颜色](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +点击**椭圆**工具在猴子头上画一顶白色的太空帽。 + +![猴子太空帽](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +你能编码让猴子不停地缓慢旋转吗? + +\--- hints \--- \--- hint \--- + +单击绿色**标志时** ,你的猴子精灵应该**转**并且** 停不下来** 。 + +\--- /hint \--- \--- hint \--- + +以下是你需要的代码块: + +```blocks3 +forever +end + +turn cw (15) degrees + +when flag clicked +``` + +\--- /hint \--- \--- hint \--- + +这是让你的猴子旋转的代码: + +![猴子精灵](images/sprite-monkey.png) + +```blocks3 +when flag clicked +forever + turn cw (1) degrees +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +测试并保存工程。你需要点击红色**停止**按钮来结束动画,否则它会一直动下去! + +![测试旋转的猴子](images/space-spin-test.png) \ No newline at end of file diff --git a/zh-CN/step_6.md b/zh-CN/step_6.md new file mode 100644 index 000000000..7bc3f533d --- /dev/null +++ b/zh-CN/step_6.md @@ -0,0 +1,57 @@ +## 跳跃的小行星 + +让我们向动画中加入一些漂浮的太空岩石。 + +\--- task \--- + +向动画中加入“岩石”角色。 + +![添加岩石角色](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +你能为你的岩石精灵添加代码,以便岩石在舞台上反弹吗? + +![测试岩石反弹](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +当绿**旗被点击**时,岩石应该**不停地**在舞台上**移动**并**反弹**。 + +\--- /hint \--- \--- hint \--- + +以下是你需要的代码块: + +```blocks3 +move (10) steps + +if on edge bounce + +when flag clicked + +forever +``` + +你还可以为岩石精灵上创建一个更令人感兴趣的起始方向,其中一个代码: + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- hint \--- + +这是让你的岩石在舞台上反弹的代码: + +![岩石精灵](images/sprite-rock.png) + +```blocks3 +turn cw (15) degrees + +point towards (Earth v) +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/zh-CN/step_7.md b/zh-CN/step_7.md new file mode 100644 index 000000000..bfd52fb4e --- /dev/null +++ b/zh-CN/step_7.md @@ -0,0 +1,61 @@ +## 亮闪闪的星星 + +让我们通过循环的组合来创造一颗闪亮的星星。 + +\--- task \--- + +在你的动画中添加一个'岩石'精灵。 + +![添加星星角色](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +你能为你的星形精灵添加代码,让星星反复增长和缩小吗? + +![测试闪亮的星星](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +当绿**旗被点击**时,星星应该**放大**一段时间,然后**缩小**一段时间。 它应该这样做,以便它变得更大,然后永远变小** **看起来像是闪亮的光芒。 + +\--- /hint \--- \--- hint \--- + +以下是你需要的代码块: + +```blocks3 +repeat (10) +end + +when flag clicked + +repeat (10) +end + +change size by (10) + +change size by (10) + +forever +``` + +\--- /hint \--- \--- hint \--- + +下面是让您的星星生长和缩减的代码: + +![星星精灵](images/sprite-star.png) + +```blocks3 +when flag clicked +forever + repeat (20) + change size by (2) + end + repeat (20) + change size by (-2) + end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/zh-CN/step_8.md b/zh-CN/step_8.md new file mode 100644 index 000000000..8cfa689be --- /dev/null +++ b/zh-CN/step_8.md @@ -0,0 +1,7 @@ +## 挑战:创建你自己的动画 + +停止动画,保存工程,然后新建一个空白的Scratch工程。 + +用你在本节课学到的知识创建你自己的动画。你可以设计任何你喜欢的动画,但要试着让动画和你选择的背景相匹配。下面是一些例子: + +![截屏](images/space-egs.png) \ No newline at end of file diff --git a/zh-CN/step_9.md b/zh-CN/step_9.md new file mode 100644 index 000000000..b3fdbb654 --- /dev/null +++ b/zh-CN/step_9.md @@ -0,0 +1,18 @@ +## 接下来呢? + +试试[捉鬼敢死队](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects)项目! 在该项目中,您将学习如何创建一个鬼的游戏,这些鬼出现在整个地方并且需要您捕获。 您还将学习如何为游戏添加计时器和分数,以便您可以看到有多少鬼可以捕获。 + +--无打印-- + +
+ + +
+ +\--- /无打印\--- + +\--- /仅打印\--- + +![展示](images/ghostbusters-static.png) + +\--- /仅打印\--- \ No newline at end of file diff --git a/zh-TW/images/banner.png b/zh-TW/images/banner.png new file mode 100644 index 000000000..d44142519 Binary files /dev/null and b/zh-TW/images/banner.png differ diff --git a/zh-TW/images/ghostbusters-static.png b/zh-TW/images/ghostbusters-static.png new file mode 100644 index 000000000..e457b9428 Binary files /dev/null and b/zh-TW/images/ghostbusters-static.png differ diff --git a/zh-TW/images/lost-in-space.png b/zh-TW/images/lost-in-space.png new file mode 100644 index 000000000..5befe6994 Binary files /dev/null and b/zh-TW/images/lost-in-space.png differ diff --git a/zh-TW/images/make-white.png b/zh-TW/images/make-white.png new file mode 100644 index 000000000..93a6161e6 Binary files /dev/null and b/zh-TW/images/make-white.png differ diff --git a/zh-TW/images/montage-1.png b/zh-TW/images/montage-1.png new file mode 100644 index 000000000..4bb08cb8c Binary files /dev/null and b/zh-TW/images/montage-1.png differ diff --git a/zh-TW/images/montage-2.png b/zh-TW/images/montage-2.png new file mode 100644 index 000000000..03fb647bb Binary files /dev/null and b/zh-TW/images/montage-2.png differ diff --git a/zh-TW/images/montage-3.png b/zh-TW/images/montage-3.png new file mode 100644 index 000000000..0a965c311 Binary files /dev/null and b/zh-TW/images/montage-3.png differ diff --git a/zh-TW/images/showcase_static.png b/zh-TW/images/showcase_static.png new file mode 100644 index 000000000..de041fc4e Binary files /dev/null and b/zh-TW/images/showcase_static.png differ diff --git a/zh-TW/images/space-animate-stage.png b/zh-TW/images/space-animate-stage.png new file mode 100644 index 000000000..ae6ee30ca Binary files /dev/null and b/zh-TW/images/space-animate-stage.png differ diff --git a/zh-TW/images/space-animate.png b/zh-TW/images/space-animate.png new file mode 100644 index 000000000..9e349fb60 Binary files /dev/null and b/zh-TW/images/space-animate.png differ diff --git a/zh-TW/images/space-backdrop.png b/zh-TW/images/space-backdrop.png new file mode 100644 index 000000000..a5e8c9a80 Binary files /dev/null and b/zh-TW/images/space-backdrop.png differ diff --git a/zh-TW/images/space-bounce-blocks.png b/zh-TW/images/space-bounce-blocks.png new file mode 100644 index 000000000..dc6075045 Binary files /dev/null and b/zh-TW/images/space-bounce-blocks.png differ diff --git a/zh-TW/images/space-bounce-code.png b/zh-TW/images/space-bounce-code.png new file mode 100644 index 000000000..20dac696c Binary files /dev/null and b/zh-TW/images/space-bounce-code.png differ diff --git a/zh-TW/images/space-bounce-test.png b/zh-TW/images/space-bounce-test.png new file mode 100644 index 000000000..224c6effb Binary files /dev/null and b/zh-TW/images/space-bounce-test.png differ diff --git a/zh-TW/images/space-colour-blocks.png b/zh-TW/images/space-colour-blocks.png new file mode 100644 index 000000000..424f0c00d Binary files /dev/null and b/zh-TW/images/space-colour-blocks.png differ diff --git a/zh-TW/images/space-colour-code.png b/zh-TW/images/space-colour-code.png new file mode 100644 index 000000000..23bf17175 Binary files /dev/null and b/zh-TW/images/space-colour-code.png differ diff --git a/zh-TW/images/space-colour-test.png b/zh-TW/images/space-colour-test.png new file mode 100644 index 000000000..35420ce99 Binary files /dev/null and b/zh-TW/images/space-colour-test.png differ diff --git a/zh-TW/images/space-costume.png b/zh-TW/images/space-costume.png new file mode 100644 index 000000000..684a0321a Binary files /dev/null and b/zh-TW/images/space-costume.png differ diff --git a/zh-TW/images/space-delete-glide.png b/zh-TW/images/space-delete-glide.png new file mode 100644 index 000000000..7833c9bd9 Binary files /dev/null and b/zh-TW/images/space-delete-glide.png differ diff --git a/zh-TW/images/space-egs.png b/zh-TW/images/space-egs.png new file mode 100644 index 000000000..025f39b9c Binary files /dev/null and b/zh-TW/images/space-egs.png differ diff --git a/zh-TW/images/space-glide.png b/zh-TW/images/space-glide.png new file mode 100644 index 000000000..ac3a5140a Binary files /dev/null and b/zh-TW/images/space-glide.png differ diff --git a/zh-TW/images/space-initial-position.png b/zh-TW/images/space-initial-position.png new file mode 100644 index 000000000..0128986dc Binary files /dev/null and b/zh-TW/images/space-initial-position.png differ diff --git a/zh-TW/images/space-monkey-edit.png b/zh-TW/images/space-monkey-edit.png new file mode 100644 index 000000000..44e1bde4b Binary files /dev/null and b/zh-TW/images/space-monkey-edit.png differ diff --git a/zh-TW/images/space-monkey-sprite.png b/zh-TW/images/space-monkey-sprite.png new file mode 100644 index 000000000..6817d1048 Binary files /dev/null and b/zh-TW/images/space-monkey-sprite.png differ diff --git a/zh-TW/images/space-repeat-blocks.png b/zh-TW/images/space-repeat-blocks.png new file mode 100644 index 000000000..548d958a2 Binary files /dev/null and b/zh-TW/images/space-repeat-blocks.png differ diff --git a/zh-TW/images/space-repeat-code.png b/zh-TW/images/space-repeat-code.png new file mode 100644 index 000000000..3ef163b75 Binary files /dev/null and b/zh-TW/images/space-repeat-code.png differ diff --git a/zh-TW/images/space-rock-sprite.png b/zh-TW/images/space-rock-sprite.png new file mode 100644 index 000000000..b7cc9b845 Binary files /dev/null and b/zh-TW/images/space-rock-sprite.png differ diff --git a/zh-TW/images/space-rotate.png b/zh-TW/images/space-rotate.png new file mode 100644 index 000000000..d2ff55bc2 Binary files /dev/null and b/zh-TW/images/space-rotate.png differ diff --git a/zh-TW/images/space-size-blocks.png b/zh-TW/images/space-size-blocks.png new file mode 100644 index 000000000..9bcd9a190 Binary files /dev/null and b/zh-TW/images/space-size-blocks.png differ diff --git a/zh-TW/images/space-size-code.png b/zh-TW/images/space-size-code.png new file mode 100644 index 000000000..68eb89797 Binary files /dev/null and b/zh-TW/images/space-size-code.png differ diff --git a/zh-TW/images/space-size-test.png b/zh-TW/images/space-size-test.png new file mode 100644 index 000000000..613d88e48 Binary files /dev/null and b/zh-TW/images/space-size-test.png differ diff --git a/zh-TW/images/space-spin-blocks.png b/zh-TW/images/space-spin-blocks.png new file mode 100644 index 000000000..8f5efa420 Binary files /dev/null and b/zh-TW/images/space-spin-blocks.png differ diff --git a/zh-TW/images/space-spin-code.png b/zh-TW/images/space-spin-code.png new file mode 100644 index 000000000..d2a85d3ac Binary files /dev/null and b/zh-TW/images/space-spin-code.png differ diff --git a/zh-TW/images/space-spin-test.png b/zh-TW/images/space-spin-test.png new file mode 100644 index 000000000..0835668d8 Binary files /dev/null and b/zh-TW/images/space-spin-test.png differ diff --git a/zh-TW/images/space-sprites.png b/zh-TW/images/space-sprites.png new file mode 100644 index 000000000..ae69f5671 Binary files /dev/null and b/zh-TW/images/space-sprites.png differ diff --git a/zh-TW/images/space-star-blocks.png b/zh-TW/images/space-star-blocks.png new file mode 100644 index 000000000..02e4896f8 Binary files /dev/null and b/zh-TW/images/space-star-blocks.png differ diff --git a/zh-TW/images/space-star-code.png b/zh-TW/images/space-star-code.png new file mode 100644 index 000000000..e9c3a3fdd Binary files /dev/null and b/zh-TW/images/space-star-code.png differ diff --git a/zh-TW/images/space-star-sprite.png b/zh-TW/images/space-star-sprite.png new file mode 100644 index 000000000..ea4fab5b3 Binary files /dev/null and b/zh-TW/images/space-star-sprite.png differ diff --git a/zh-TW/images/space-star-test.png b/zh-TW/images/space-star-test.png new file mode 100644 index 000000000..1decd6c43 Binary files /dev/null and b/zh-TW/images/space-star-test.png differ diff --git a/zh-TW/images/sprite-earth.png b/zh-TW/images/sprite-earth.png new file mode 100644 index 000000000..0a004f836 Binary files /dev/null and b/zh-TW/images/sprite-earth.png differ diff --git a/zh-TW/images/sprite-monkey.png b/zh-TW/images/sprite-monkey.png new file mode 100644 index 000000000..1078a7a81 Binary files /dev/null and b/zh-TW/images/sprite-monkey.png differ diff --git a/zh-TW/images/sprite-rock.png b/zh-TW/images/sprite-rock.png new file mode 100644 index 000000000..a391c7ea6 Binary files /dev/null and b/zh-TW/images/sprite-rock.png differ diff --git a/zh-TW/images/sprite-spaceship.png b/zh-TW/images/sprite-spaceship.png new file mode 100644 index 000000000..a84427bb9 Binary files /dev/null and b/zh-TW/images/sprite-spaceship.png differ diff --git a/zh-TW/images/sprite-star.png b/zh-TW/images/sprite-star.png new file mode 100644 index 000000000..16318f0c4 Binary files /dev/null and b/zh-TW/images/sprite-star.png differ diff --git a/zh-TW/images/trim_and_tile.sh b/zh-TW/images/trim_and_tile.sh new file mode 100644 index 000000000..6bc0e47a8 --- /dev/null +++ b/zh-TW/images/trim_and_tile.sh @@ -0,0 +1,7 @@ +for file in 1*.png; +do + text=$(echo "$file" | head -c 2 | tail -c 1) #get 2nd character from file name + convert $file -trim +repage $file; #trim the image + convert $file -gravity South -splice 0x36 -font FreeSans -pointsize 36 -annotate +0+-5 "$text" label$file; #annotate with text +done +montage label*.png -tile 2x2 -geometry +5+1 montage.png #montage diff --git a/zh-TW/meta.yml b/zh-TW/meta.yml new file mode 100644 index 000000000..f9e5a3634 --- /dev/null +++ b/zh-TW/meta.yml @@ -0,0 +1,35 @@ +--- +title: 太空迷航 +hero_image: images/lost-in-space.png +description: 學習用程式做動畫! +original_url: https://www.codeclubprojects.org/en-GB/scratch/lost-in-space +listed: true +copyedit: true +technologies: scratch +version: 4.1.3 +last_tested: 2018-09-26 +steps: + - + title: 介紹 + - + title: 動起來的飛船 + - + title: '挑戰:改良你的動畫' + challenge: true + - + title: 用迴圈做動畫 + completion: + - engaged + - + title: 漂浮的猴子 + - + title: 彈跳的行星 + - + title: 發亮的星星 + completion: + - internal + - + title: '挑戰:做個自己的動畫' + challenge: true + - + title: 然後呢? diff --git a/zh-TW/resources/LostinSpace-Finished.sb2 b/zh-TW/resources/LostinSpace-Finished.sb2 new file mode 100644 index 000000000..a9ce6b5a7 Binary files /dev/null and b/zh-TW/resources/LostinSpace-Finished.sb2 differ diff --git a/zh-TW/scratch-translatable.txt b/zh-TW/scratch-translatable.txt new file mode 100644 index 000000000..ed68a2cc7 --- /dev/null +++ b/zh-TW/scratch-translatable.txt @@ -0,0 +1 @@ +Let's go diff --git a/zh-TW/solutions/lost-in-space-solution.sb3 b/zh-TW/solutions/lost-in-space-solution.sb3 new file mode 100644 index 000000000..09842c996 Binary files /dev/null and b/zh-TW/solutions/lost-in-space-solution.sb3 differ diff --git a/zh-TW/step_1.md b/zh-TW/step_1.md new file mode 100644 index 000000000..7a3d75954 --- /dev/null +++ b/zh-TW/step_1.md @@ -0,0 +1,60 @@ +## 介紹 + +You are going to learn how to program your own animation! + +### 你會做出的玩意兒 + +\--- no-print \--- + +Click on the green flag to see the animation. + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![Complete project](images/showcase_static.png) + +\--- /print-only \--- + +## \--- collapse \--- + +## title: 你會用到 + +### 硬體 + +- 可運行 Scratch 3 的電腦 + +### 軟體 + +- Scratch 3 (either [online](https://rpf.io/scratchon){:target="_blank"} or [offline](https://rpf.io/scratchoff){:target="_blank"}) + +### 相關下載 + +- 無 + +\--- /collapse \--- + +## \--- collapse \--- + +## title: 你會學到 + +- 用 Scratch 程式的重複迴圈做出角色的動畫 +- 使無限迴圈不斷的播放動畫 +- 了解迴圈可以相互嵌套成為巢狀迴圈 + +\--- /collapse \--- + +## \--- collapse \--- + +## title: 給教師的其它資訊 + +If you need to print this project, please use the [printer-friendly version](https://projects.raspberrypi.org/en/projects/lost-in-space/print){:target="_blank"}. + +You can find the [completed project here](https://rpf.io/p/en/lost-in-space-get){:target="_blank"}. + +\--- /collapse \--- \ No newline at end of file diff --git a/zh-TW/step_10.md b/zh-TW/step_10.md new file mode 100644 index 000000000..3607fce5f --- /dev/null +++ b/zh-TW/step_10.md @@ -0,0 +1,18 @@ +## What next? + +Try the [Ghostbusters](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects) project! In that project, you will learn how to create a game with ghosts that appear all over the place and that you need to catch. You will also learn how to add a timer and a score to the game, so that you can see how many ghosts you are able to catch. + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![showcase](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file diff --git a/zh-TW/step_2.md b/zh-TW/step_2.md new file mode 100644 index 000000000..529ed589d --- /dev/null +++ b/zh-TW/step_2.md @@ -0,0 +1,72 @@ +## 動起來的太空船 + +你的第一步是創建一個飛往地球的宇宙飛船! + +\--- task \--- + +建立一個新的 Scratch 專案。 + +**Online:** open a new online Scratch project at [rpf.io/scratch-new](https://rpf.io/scratchon){:target="_blank"}. + +**離線版:**在離線編輯器的工作列中開啟選單並點擊新建專案。。 + +If you need to download and install the Scratch offline editor, you can find it at [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. + +\--- /task \--- + +\--- task \--- + +將 rocketship(太空船)和 Earth(地球)角色添加到舞台。 + +![太空船和地球角色](images/space-sprites.png) + +[[[generic-scratch3-sprite-from-library]]] + +\--- /task \--- + +\--- task \--- + +為舞台添加一個新的背景 Stars(星空)。 + +![一個太空背景](images/space-backdrop.png) + +\--- /task \--- + +\--- task \--- + +點擊太空船這個角色,然後切換到**造型**頁籤。 + +![角色造型](images/space-costume.png) + +\--- /task \--- + +\--- task \--- + +使用**選取**工具選取圖像,然後在太空船圖像周圍會出現方框,用滑鼠左鍵按住弧形的**旋轉**控制點,然後朝你想要的方向旋轉,確定好後鬆開滑鼠左鍵。 + +![旋轉一個造型](images/space-rotate.png) + +\--- /task \--- + +\--- task \--- + +為你的太空船角色編寫這個程式: + +![太空船角色](images/sprite-spaceship.png) + +```blocks3 +當 @greenflag 被點擊 +面朝 (0) 度 +定位到 x:(-150) y:(-150) +說出 (我們出發吧!) 持續 (2) 秒 +面朝 (地球 v) 向 +滑行 (1) 秒到 x:(0) y:(0) +``` + +記得要把程式積木中的數字改成和上面一樣。 + +\--- /task \--- + +如果你點擊綠旗,你會看到太空船說話、轉向,然後滑到舞台中央。 + +![測試太空船動畫](images/space-animate-stage.png) \ No newline at end of file diff --git a/zh-TW/step_3.md b/zh-TW/step_3.md new file mode 100644 index 000000000..4b2cade97 --- /dev/null +++ b/zh-TW/step_3.md @@ -0,0 +1,16 @@ +## 挑戰:改良你的動畫 + +你可以更改動畫程式中的數字,讓: + ++ 太空船飛行直到碰到地球? ++ 太空船向地球飛行的速度變慢? + +你需要更改的積木是: + +![太空船角色](images/sprite-spaceship.png) + +```blocks3 +滑行 (1) 秒到 x:(0) y:(0) +``` + +[[[generic-scratch3-coordinates]]] \ No newline at end of file diff --git a/zh-TW/step_4.md b/zh-TW/step_4.md new file mode 100644 index 000000000..3748240b7 --- /dev/null +++ b/zh-TW/step_4.md @@ -0,0 +1,125 @@ +## 用迴圈做動畫 + +另一種讓太空船動起來的方式,是要它在一點一點的持續向前推進。 + +\--- task \--- + +移除你的程式中的`滑行`{:class="block3motion"}積木。方式是用滑鼠點著這個積木,把它拖曳到工具箱的某個區域,然後鬆開滑鼠鍵就可以把他放回工具箱。 + +![太空船角色](images/sprite-spaceship.png) + +```blocks3 +當 @greenflag 被點擊 +面朝 (0) 度 +定位到 x:(-150) y:(-150) +說出 (我們出發吧!) 持續 (2) 秒 +面朝 (地球 v) 向 + +- 滑行 (1) 秒到 x:(0) y:(0) +``` + +\--- /task \--- + +\--- task \--- + +Now use a `repeat`{:class="block3control"} block to move your spaceship towards the Earth. + +![測試太空船動畫](images/space-animate-stage.png) + +![太空船角色](images/sprite-spaceship.png) + +```blocks3 +當 @greenflag 被點擊 +面朝 (0) 度 +定位到 x:(-150) y:(-150) +說出 (我們出發吧!) 持續 (2) 秒 +面朝 (地球 v) 向 + ++ 重複 (200) 次 + 移動 (2) 點 +``` + +測試一下然後儲存你的程式,你的太空船應該會像先前一樣朝地球前進,不過這次用的是`重複`{:class="block3control"}積木。 + +\--- /task \--- + +\--- task \--- + +接著來加個程式到太空船角色,讓它在飛向地球時會變顏色?! + +用到的積木是: + +![太空船角色](images/sprite-spaceship.png) + +```blocks3 +當 @greenflag 被點擊 +面朝 (0) 度 +定位到 x:(-150) y:(-150) +說出 (我們出發吧!) 持續 (2) 秒 +面朝 (地球 v) 向 +重複 (200) 次 + 移動 (2) 點 ++ 圖像效果 [顏色 v] 改變 (25) +``` + +測試並儲存你的程式。 + +![測試變色太空船](images/space-colour-test.png) + +\--- /task \--- + +\--- task \--- + +你能讓太空船向地球飛行時,變得愈來愈小嗎? + +\--- hints \--- + +\--- hint \--- + +你的太空船一開始的尺寸就是 `100%`{:class="blocklooks"},你要用`尺寸改變 `{:class="blocklooks"}積木,在太空船每次移動時都減小。 + +\--- /hint \--- + +\--- hint \--- + +你會用到這些積木: + +![太空船角色](images/sprite-spaceship.png) + +```blocks3 +尺寸改變 (10) + +尺寸設為 (100) % +``` + +\--- /hint \--- + +\--- hint \--- + +你的程式應該會像這樣: + +![太空船角色](images/sprite-spaceship.png) + +```blocks3 +when flag clicked + ++ set size to (100) % +point in direction (0) +go to x:(-150) y:(-150) +say [Let's go] for (2) seconds +point towards (Earth v) +repeat (200) + move (2) steps + change [color v] effect by (25) ++ change size by (-0.3) +``` + +\--- /hint \--- + +\--- /hints \--- + +\--- /task \--- + +測試並儲存你的程式,你的太空船在飛行時應該會愈變愈小,停止程式**再測試一次**,它的大小有沒有和一開始一樣? + +![測試一艘正在縮小的太空船](images/space-size-test.png) \ No newline at end of file diff --git a/zh-TW/step_5.md b/zh-TW/step_5.md new file mode 100644 index 000000000..485929d56 --- /dev/null +++ b/zh-TW/step_5.md @@ -0,0 +1,71 @@ +## 漂浮的猴子 + +現在我們加隻在太空中迷路的猴子吧! + +\--- task \--- + +從範例庫中添加一個名為 monkey(猴子)的角色。 + +![添加一個猴子角色](images/space-monkey-sprite.png) + +\--- /task \--- + +在新的猴子角色上點一下然後切換到**造型**頁籤,我們來修改猴子的外觀。 + +\--- task \--- + +把顏色填滿設定為透明(紅線圖示) ,外框部分則是移動彩度滑桿到 `0`,讓它變成白色。 + +![設定白色](images/make-white.png) + +\--- /task \--- + +\--- task \--- + +點擊**圓形**工具,在猴子頭上畫出一個白色輪廓的太空頭盔。 + +![猴子的太空頭盔](images/space-monkey-edit.png) + +\--- /task \--- + +\--- task \--- + +你能添加一些程式,讓猴子不停在空中打轉嗎? + +\--- hints \--- \--- hint \--- + +當**綠旗被點擊**時,你的猴子角色應該**轉**個圈,然後**重複無限次**。 + +\--- /hint \--- \--- hint \--- + +這裡是你需要的程式積木: + +```blocks3 +重複無限次 +end + +右轉 @turnright (15) 度 + +當 @greenflag 被點擊 +``` + +\--- /hint \--- \--- hint \--- + +這個是讓猴子打轉的程式: + +![猴子角色](images/sprite-monkey.png) + +```blocks3 +當 @greenflag 被點擊 +重複無限次 + 右轉 @turnright (1) 度 +end +``` + +\--- /hint \--- \--- /hints \--- + +\--- /task \--- + +測試並儲存你的專案,記得要點擊紅色的**停止**圖示結束運作,不然你的猴子會轉個不停。 + +![測試打轉的猴子](images/space-spin-test.png) \ No newline at end of file diff --git a/zh-TW/step_6.md b/zh-TW/step_6.md new file mode 100644 index 000000000..e51fe730d --- /dev/null +++ b/zh-TW/step_6.md @@ -0,0 +1,60 @@ +## 彈跳的行星 + +現在我們添加一個在太空漂浮的岩石。 + +\--- task \--- + +添加一個名為 rock(岩石)的角色到你的動畫裡。 + +![添加一個岩石角色](images/space-rock-sprite.png) + +\--- /task \--- + +\--- task \--- + +你可以為岩石編寫程式,讓它在舞台上四處彈跳嗎? + +![測試一個彈跳的岩石](images/space-bounce-test.png) + +\--- hints \--- \--- hint \--- + +當**綠旗被點擊**時,你的岩石角色應該**不停**的**移動**,而且一碰到邊緣就**反彈**。 + +\--- /hint \--- \--- hint \--- + +這裡是你需要的程式積木: + +```blocks3 +移動 (10) 點 + +碰到邊緣就反彈 + +當 @greenflag 被點擊 + +重複無限次 +``` + +你也可以用下面其中一個積木,讓岩石角色朝不同的方向移動: + +```blocks3 +右轉 @turnright (15) 度 + +面朝 (地球 v) 向 +``` + +\--- /hint \--- \--- hint \--- + +這是讓岩石不斷彈跳的程式: + +![岩石角色](images/sprite-rock.png) + +```blocks3 +當 @greenflag 被點擊 +面朝 (地球 v) 向 +重複無限次 + 移動 (2) 點 + 碰到邊緣就反彈 +end +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/zh-TW/step_7.md b/zh-TW/step_7.md new file mode 100644 index 000000000..fcf5a970f --- /dev/null +++ b/zh-TW/step_7.md @@ -0,0 +1,62 @@ +## 發亮的星星 + +現在我們用組合迴圈來做個閃閃發光的星星。 + +\--- task \--- + +添加一個名為 star(星星)的角色到舞台。 + +![添加一個星星角色](images/space-star-sprite.png) + +\--- /task \--- + +\--- task \--- + +你可以寫個程式,讓星星有一會兒放大,一會兒又縮小的效果嗎? + +![測試一顆閃亮的星星](images/sprite-star.png) + +\--- hints \--- \--- hint \--- + +當 **綠旗**被點擊時,你的星星角色應該會 **改變尺寸** 變大幾次,然後再**改變尺寸** 變小幾次。 讓它**重複不停的**變大然後變小,它看起來就會像是在發光了。 + +\--- /hint \--- \--- hint \--- + +這裡是你需要的程式積木: + +```blocks3 +重複 (10) 次 +end + +當 @greenflag 被點擊 + +重複 (10) 次 +end + +尺寸改變 (10) + +尺寸改變 (10) + +重複無限次 +``` + +\--- /hint \--- \--- hint \--- + +這個是讓星星不斷縮放的程式: + +![星星角色](images/sprite-star.png) + +```blocks3 +當 @greenflag 被點擊 +重複無限次 + 重複 (20) 次 + 尺寸改變 (2) + end + 重複 (20) 次 + 尺寸改變 (-2) + end +end + +``` + +\--- /hint \--- \--- /hints \--- \--- /task \--- \ No newline at end of file diff --git a/zh-TW/step_8.md b/zh-TW/step_8.md new file mode 100644 index 000000000..45efd0d60 --- /dev/null +++ b/zh-TW/step_8.md @@ -0,0 +1,7 @@ +## 挑戰:做個自己的動畫 + +停止你的太空動畫,把它儲存然後新建一個 Scratch 專案。 + +用你在這個專案學到的來做個你自己的動畫,任何你喜歡的都可以,但試著和舞台的背景協調,以下是一些範例: + +![截圖](images/space-egs.png) \ No newline at end of file diff --git a/zh-TW/step_9.md b/zh-TW/step_9.md new file mode 100644 index 000000000..6a455f395 --- /dev/null +++ b/zh-TW/step_9.md @@ -0,0 +1,18 @@ +## 然後呢? + +試試[捉鬼敢死隊](https://projects.raspberrypi.org/en/projects/ghostbusters?utm_source=pathway&utm_medium=whatnext&utm_campaign=projects)專案! 你要學習怎麼做一個人抓鬼的遊戲專案。 你會學到如何在遊戲中添加計時器和記分器,這樣子就可以統計你在時間內抓到多少鬼。 + +\--- no-print \--- + +
+ + +
+ +\--- /no-print \--- + +\--- print-only \--- + +![演示](images/ghostbusters-static.png) + +\--- /print-only \--- \ No newline at end of file