Activity 1:Charater follows the mouse cursor
From the beginning, Cat follows the mouse cursor.
1. Click the Cat
2. Coding (Move Cat to the location of cursor)
3. When press SPACE, stops ALL
(Save the file as XXYYs1,XXYY = Class & Class no.)
Rubrics:
Cat follows the cursor (5 marks)
Press SPACE,Cat stops (5 marks)
Click the Cat
Coding
Activity 2 : Change the Cat to different Costumes
Change the cat to the next costume every second, try to make more costumes for fun!
1. Click the Cat
2. Choose the tag "Costumes"
3. Create TWO costumes with the cross in the center.
4. Do coding
5. The Cat run from left (Origin point (0, 0) to right
(Save the file as XXYYs2,XXYY = Class & Class no.)
Rubrics:
Two Costumes with different colours, designs, things (5 marks)
Move from left to right (5 marks)
Step 5: Make the Cat run from left to right
Step 2
Step 3
Step 4
Outcome
Activity 3: Object Collision
Just like in Activity 1, use your mouse to control the Cat sprite. If the Cat touches the Apple, the Apple will say "Hello !".
Add a new APPLE sprite.
Select the Cat sprite.
Write the code (same as Activity 1).
Select the APPLE sprite.
Write the code for the Apple.
Assignment Instructions: When the Cat touches the APPLE, the APPLE should say "Hello !" for 2 seconds. After that, it should turn right by 45 degrees and bounce away, with the "Hello !" message disappearing.
Grading Rubric:
Successfully add and simply design the APPLE sprite (2 marks)
The APPLE says "Hello !" when touched by the Cat (3 marks)
The APPLE says "Hello !" for exactly 2 seconds, then turns 45 degrees and bounces away, and the text disappears (5 marks)
Expected result
Step 2
Step 5 (Select Apple)
Demonstration
Activity 4: Using "Broadcast" to Make Other Sprites Appear
When the APPLE is collided with, it will broadcast a "GameOver" message and trigger another sprite named "GG" to appear.
Reuse your code from Activity 1 and Activity 3.
Select the APPLE sprite and add a broadcast "GameOver" block (found under the Events category) to its code.
Draw a new sprite named "GG" yourself. Make sure to convert it to a vector graphic (Convert to Vector) so you can easily adjust its size later without losing quality.
Assignment Instructions: The "GG" sprite should be hidden at the start of the game, but it must appear when it receives the "GameOver" message.
(File naming format: XXYYs4, where XXYY = your Class and Class Number)
Grading Rubric:
The APPLE says "Hello" (2 marks)
Add a new "GG" sprite: well-designed (4 marks)
The "GG" sprite only appears after receiving the "GameOver" message (4 marks)
GG's costume
Step 3(A) - Add new spirite
Step 3(B) - Convert to Vector graphic
Step 4 - Click "GG", then add the code
Activity 5: Making a Sprite Bounce and Move Around the Screen
The Cat sprite continuously moves across the Stage, bouncing off the edges and continuing to move whenever it hits a boundary.
Select the Cat sprite.
Write the code: First, use a random number (from the Operators category) to set the Cat to a random direction. Then, continuously repeat moving forward and bounce if on edge (you may refer to the image on the right).
(File naming format: XXYYs5, where XXYY = your Class and Class Number)
Grading Rubric:
The Cat continuously moves around the Stage in random path (5 marks)
The Cat bounces off the boundary and continues moving whenever it hits an edge (5 marks)
Activity 6: Bouncing Off Other Sprites
The Cat sprite continuously moves across the Stage, bouncing off and continuing its movement whenever it touches the Basketball.
Use your code from Activity 5 to make the Cat sprite move around the Stage.
Use your code from Activity 1 to make a Basketball sprite follow the mouse pointer.
(File naming format: XXYYs6, where XXYY = your Class and Class Number)
Grading Rubric:
The Cat continuously moves and bounces off edges in an irregular path on the Stage (3 marks)
The Basketball sprite follows the mouse pointer (3 marks)
The Cat sprite bounces away after touching the Basketball (4 marks)
提示:當貓貓碰到籃球後作水平反彈
Activity 7: Countdown Timer
Design a 10-second timer. When the countdown reaches "0", the Cat sprite should say "TIME IS UP".
Create a new variable (from the Variables category) named "time" to store the time, starting the countdown from 10 seconds.
Decrease the variable by 1 and repeat this 10 times.
(File naming format: XXYYs7, where XXYY = your Class and Class Number)
Grading Rubric:
Successfully complete the countdown timer (5 marks)
Tips:countdown