Smart Technology - Codemao

Form 3 - ECA

2024-2025

Floor 4 - Computer Room

Mr. Peter

Outline

Outline

1

Ex08_1 - Drawing

2

Ex08_2 - Stars

3

Ex08_3 - Magic

Codemao Platform

Change language

Change to English

Ex08_1 - Drawing

Tasks:

Drawing using mouse and cursor

1.

Press R key to change as red colour

2.

Press G key to change as green colour

3.

Press B key to change as blue colour

4.

Press key to increase the size of pen drawing

5.

Press key to increase the size of pen drawing

6.

Setup the scene

1.

Create a blank new project

2.

Import pen image to the codemao

Edit the background and drag the background image into the editing.

3.

Set landscape as 4:3

4.

Change the position of origin point of the pen in the left bottom

5.

Ex08_1 - Drawing

Background

When game starts, set the background transparency as 60%

1.

Ex08_1 - Drawing

Pen

When game starts, forever to go to the mouse pointer

1.

Pen down if mouse is pressed, otherwise pen up.

2.

Ex08_1 - Drawing

Pen

Press R key to change as red colour

1.

Press G key to change as green colour

2.

Press B key to change as blue colour

3.

Press key to increase the size of pen drawing

4.

Press key to increase the size of pen drawing

5.

Ex08_1 - Drawing

Download your program and name it as 01_YourName_Ex08_1.bcm4

Ex08_1 - Drawing

Tasks:

Tracking mouse pointer

1.

Ex08_2 - Stars

Ex08_2 - Stars

Clone stars if mouse if pressed

2.

Setup the scene

1.

Create a blank new project

2.

Select a background

3.

Import star image

4.

Hide star image

Ex08_2 - Stars

Star

Forever to check if mouse is pressed, and clone if mouse pressed.

1.

Show the star when cloned.

2.

Set the size with an random number from 50 to 100

3.

Point towards to the mouse

4.

Go to the mouse position

5.

Fade out in one second

6.

Delete the clone

7.

Ex08_2 - Stars

Download your program and name it as 01_YourName_Ex08_2.bcm4

Ex08_2 - Stars

Tasks:

Change costume if mouse pressed

1.

Square is drawn if mouse is pressed

2.

Square is drawn by a star character

3.

Ex08_3 - Magic

Setup the scene

1.

Create a blank new project

2.

Select a background

3.

Import star and magic-wand image

Hide star image

4.

Ex08_3 - Magic

Change to the second costume if mouse is pressed, otherwise showing the first costume.

Magic Wand

Ex08_3 - Magic

Forever to check if mouse pressed and clone a star if mouse pressed

2.

Star

When cloned

3.

Ex08_3 - Magic

1.

Logic and procedure

Create a variable called "size" for the star character

Set the size variable to 10 ~ 50 randomly

3.1.

Go to the mouse pointer

3.2.

Move

3.3.

steps

\frac{size}{-2}

3.4.

Turn -90 degrees

Move

3.5.

steps

\frac{size}{2}

3.6.

Turn 90 degrees

3.7.

Fade In during 0.3 second

3.8.

Pen down

3.9.

Repeat 4 times

3.9.1.

Move "Size" steps

3.9.1.

Turn 90 degrees

3.9.1.

Wait 0.1 second

3.10.

Fade out during 0.3 second

This variable is used to represent the size of drawing square

Forever to check if mouse pressed and clone a star if mouse pressed

2.

Star

When cloned

3.

Ex08_3 - Magic

1.

Logic and procedure

Create a variable called "size" for the star character

Set the size variable to 10 ~ 50 randomly

3.1.

Go to the mouse pointer

3.2.

Move

3.3.

steps

\frac{size}{-2}

3.4.

Turn -90 degrees

Move

3.5.

steps

\frac{size}{2}

3.6.

Turn 90 degrees

3.7.

Fade In during 0.3 second

3.8.

Pen down

3.9.

Repeat 4 times

3.9.1.

Move "Size" steps

3.9.1.

Turn 90 degrees

3.9.1.

Wait 0.1 second

3.10.

Fade out during 0.3 second

This variable is used to represent the size of drawing square

Forever to check if mouse pressed and clone a star if mouse pressed

2.

Star

When cloned

3.

Ex08_3 - Magic

1.

Logic and procedure

Create a variable called "size" for the star character

Set the size variable to 10 ~ 50 randomly

3.1.

Go to the mouse pointer

3.2.

Move

3.3.

steps

\frac{size}{-2}

3.4.

Turn -90 degrees

Move

3.5.

steps

\frac{size}{2}

3.6.

Turn 90 degrees

3.7.

Fade In during 0.3 second

3.8.

Pen down

3.9.

Repeat 4 times

3.9.1.

Move "Size" steps

3.9.1.

Turn 90 degrees

3.9.1.

Wait 0.1 second

3.10.

Fade out during 0.3 second

This variable is used to represent the size of drawing square

Download your program and name it as 01_YourName_Ex08_3.bcm4

Ex08_3 - Magic

Smart Technology - Codemao

By Mr Peter

Smart Technology - Codemao

  • 309