1 of 24

Spiderman Saves Mary Jane

Game Project

2 of 24

Choose the sprite Teen :

3 of 24

������Paint Teen Boy in Paint with Red and Blue dress to look like �Spiderman

Create the ‘SPIDERMAN’ look for the sprite

4 of 24

Draw and Paint an Orange Block in Paint

5 of 24

Draw and Paint a Red Block in Paint

6 of 24

Draw and Paint a Yellow Block in Paint

7 of 24

Draw and Paint a Green Block in Paint

8 of 24

Add these sprites on the screen

Character sprites move the ‘Spiderman’ in different directions

Teen boy

sprite is

‘Spiderman’

and Teen girl

Sprite is

‘Mary Jane’

9 of 24

Select the below Background

Select the

same

background

2 times

to have 2

different

backgrounds

10 of 24

There are two Backgrounds

Add the

‘Apartment ‘

‘Spiderman’

‘Mary’ and the 4 block

sprites

in the

first

background

NOTE that the Mary sprite SHOULD be on top of the Apartment sprite but SHOULD NOT touch the Apartment sprite

11 of 24

Second Background

Add the

‘Spiderman’

and ‘Mary’

sprites

in the

second

background

12 of 24

Let us start coding for sprites��Note that code will be different for sprites in each background�

13 of 24

Code For Spiderman in First Background

14 of 24

Code Explanation

On Orange message : Spiderman moves up(4), down(1) turns left (2), turns right (2)

On Yellow message : Spiderman moves left(1)

On Green message : Spiderman moves right(1)

On Red message : Spiderman moves up(4),down(1)

15 of 24

Code for the Orange Block in the First Background

When Orange block is tapped, a message is sent

16 of 24

Code for the Red Block in the First Background

When Red block is tapped, a message is sent

17 of 24

Code for the Yellow Block in the First Background

When Yellow block is tapped, a message is sent

18 of 24

Code for the Green Block in the First Background

When Green block is tapped, a message is sent

19 of 24

Code For Mary in the First �Background

When Spiderman saves Mary , (Spiderman sprite bumps into

Mary sprite in the first background).

Mary sprite is shown on the second background.

20 of 24

Code for Mary in the Second Background

When Spiderman saves Mary, she says

“ Thank you for saving me Spiderman”

21 of 24

Code for Spiderman in the Second Background

When Spiderman saves Mary,

she thanks him

and Spiderman replies

“Anytime”

22 of 24

On the First background move Spiderman in any direction using red, green, yellow, or orange blocks to reach Mary

23 of 24

When Spiderman saves Mary , she thanks him and Spiderman replies “Anytime”.

Second Background : When Spiderman sprite bumps into Mary sprite

24 of 24

Thank You