Introduction to Codemao
Form 1 - Computer
2024-2025
Floor 4 - Computer Room
Mr. Peter, Mr Jon
Outline
Outline

1
Get the coin Ex05_1
2
Bomb Ex05_2
Introduction to Codemao

Introduction to interface


Change to English
Basic operations & Code Block


Events:


Motion:
Control:




Looks:



Pen:


Get the coin Exercise Ex05_1
Code Block:







Get the coin Exercise Ex05_1


01_YourName_Ex01.bcm4
Drag
Import saved file
Get the coin Exercise Ex05_1


Adding Coin
Get the coin Exercise Ex05_1

Download your program and name it as 01_YourName_Ex05_1.bcm4
Ex05_2 - Bomb
Tasks:
Cat is chasing the cursor
1.
Explosion if the cat touch the bomb.
2.
Duplicate the bomb
4.
The explored bomb move the a new position
3.
Ex05_2 - Bomb
Tasks:

Change the rotation mode to Left-Right
Cat is chasing the cursor
1.
Explosion if the cat touch the bomb.
2.
Duplicate the bomb
4.
The explored bomb move the a new position
3.
Cat walks to the cursor
1.
Ex05_2 - Bomb
Tasks:

Change the rotation mode to Left-Right
Cat is chasing the cursor
1.
Explosion if the cat touch the bomb.
2.
Duplicate the bomb
4.
The explored bomb move the a new position
3.
Cat walks to the cursor
1.

Change the background and delete the default programming code in the background
Scaling the cat to be smaller
Ex05_2 - Bomb
Tasks:

Change the rotation mode to Left-Right
Cat is chasing the cursor
1.
Explosion if the cat touch the bomb.
2.
Duplicate the bomb
4.
The explored bomb move the a new position
3.
Cat walks to the cursor
1.

Change the background and delete the default programming code in the background
Scaling the cat to be smaller


Programming Logic
1.
When game starts
2.
The cat forever to change her costume for performing walking behavior
3.
Point towards to the mouse pointer
4.
Move the cat
5.
Wait 0.005 second in every loop


bomb.bcmp4
Drag
Import bomb.bcmp4 file
Ex05_2 - Bomb
Ex05_2 - Bomb
Bomb Explosion
2.
Programming Logic
1.
When game starts
2.
The bomb forever to check that whether the bomb is touching the cat
3.
Change the costume to be explosion if touched

3.
Fade out during 1 second if touched
3.
Go to a random position after fade out
4.
Change the costume back to bomb after in a random postion
5.
Fade in during 1 second
CodeCat chase the cursor
Ex05_2 - Bomb






Bomb Explosion








Duplicate it if it works
Ex05_2 - Bomb

Duplicate it if it works
Ex05_2 - Bomb


Download your program and name it as 01_YourName_Ex05_2.bcm4
Form 1 - Codemao
By Mr Peter
Form 1 - Codemao
- 239