1 of 17

3. Archery Practice

Skills: Algorithms Clones, Conditionals, loops, Variables, debugging,

2 of 17

5: Archery Practice

  1. Code a sprite to move to be able to shoot an arrow.
  2. Create a Clone of the Arrow and have it try to hit the target
  3. Code a moving target
  4. Keep score of how many times you hit the target
  5. Have something happen when you win.
  6. Add comments

Check List.

Project Expectations

  • Students will create a game that codes a character to hit a moving object.

Vocabulary:

Variable

Conditional

Clones

3 of 17

4 of 17

conditional

conditional

  • Commands that only run under certain conditions.
  • An action that occurs based on whether a condition is true or false.

5 of 17

conditional

variables

  • A place to store a piece of data that can change.
  • A container for storing a value that can be used and updated. Variables can store numbers, text (strings) or other values.

$

24

code.org : Course 4, Lesson 6

6 of 17

VARIABLES: ADD A SCORE

Add the code and change it from my variable to score

7 of 17

a copy of a sprite that is made while a program is running

Clone

8 of 17

Blocks you will need

9 of 17

Instructional Videos

  1. Knight Moving

10 of 17

Sample Code

11 of 17

Sample Code

12 of 17

ADD COMMENTS

Control Click or Right Click on the Work Space or a line of code and Add Comments

Add at least 1 comment per sprite.

13 of 17

Debug it!

Go to this Sample Project

It is supposed to do …

What is it doing …

How can I fix it …

Did you fix it?

Try again.

14 of 17

Extension Activities

1.Add own sprites from Pics for Learning or Photos for Class.

2. Create another level on another background

3. Have sound when the arrow hits the target.

4. Have a neighbor play your game.

15 of 17

Picture Books

The Knight who Wouldn’t Fight

Attack of the Underwear Dragon

16 of 17

Get Pictures:

  1. Right Click, Save Image as

3. Upload New Backdrop/Sprite

2. Save to Desktop

New Backdrop

New Sprite

17 of 17

Credits