1 of 16

Game Quiz I

Anti-Virus Game�GameType: DropDown

2 of 16

Transfer from Projects to Workspace

P:\RUDIE ASMARA ….\01_CPA\03_Sec_3T1�\$_Class_Test\01_AntiVirus_Game�

  1. Read the question paper
  2. Start the programming in Scratch

3 of 16

Sprites & Stage | Check your folder

Transfer the entire folder not just the files

4 of 16

Read the instructions on your question paper.

Tick off each completed task.

5 of 16

Warning

“Stop All” should only be used at Stage after �[Receive Broadcast]. ��Why?

6 of 16

Lesson Reflections

  1. What are the initialisation values?
    1. Starting Score? Starting positions?
  2. Which codes were outside the Forever loops?
  3. Which codes made the sprites respawn (re-appear) at the top of the screen?
  4. Where are these codes repeated?
  5. Where should a “Stop All” be placed?

7 of 16

Suggested Solutions

Spend some time to understand the codes.

Especially codes that can be duplicated.

8 of 16

Concept | Dropdown Games*

  1. Stage
  2. Hero
  3. Bonus & Enemies �(almost similar codes)

*this concept can also be used in most games except Quiz Game Type

Scratch Game�Programming�Hacks

9 of 16

Your Stage

x = 0, y = 0

x = 240, �y = 0

x = 0, y = 180

x = -240, �y = 0

x = 0, y = -180

480px width by �360px height

10 of 16

Hero

  • Initialisation �Position/Costume/Scores/Life (if any)
  • Movement Controls
  • Win-Lose conditions

I am not interested in “Touching” them.��I am Only interested�In Win or Lose conditions

If “Touching Hero [PC]”�is in all our codes

11 of 16

Stage1

  1. Green Flag pressed
  2. Spacebar pressed
  3. GameWin
  4. GameLose

(1) These gorgeous stage backgrounds were created in Inkscape.

Each stage background size 480px width by 360px height.�

480px width by �360px height

12 of 16

Stage

13 of 16

Bonus & Enemies�99% the same. Only 1 difference.

Bonus�Anti-virus, Firewall

Enemies�Trojan , Virus, Worm

Change in Score is the only difference

14 of 16

Bonus & Enemies Tips

Do not import all the sprites at the start.

Complete 1 sprite first then clone.

You realised our codes look the same except when �“touching PC’?

15 of 16

Happy Coding!��The End

Scratch Anti-virus package prepared by Mr Rudie Asmara��Watch the theCPAtube on Youtube for the full game explanation.

16 of 16

http://gg.gg/welovecpa

Tutorial at�Lessons/Scratch Programming/Game Tutorials��Complete the Anti-Virus Game

Save in Your WorkSpace�Transfer to Mr Rudie/Projects/$Submissions