SCRATCH 2.0
ANIE BINTI ASRAMIZI ASRAM
SEKOLAH KEBANGSAAN TITI TO’ BANDAR
RBA0036
BIL KANDUNGAN MUKA SURAT
1. PENDAHULUAN 2
2. PENGUMPULAN MAKLUMAT 3
3. STORYBOARD 4
4. CARTA ALIR
5. PROSES PEMBINAAN PROGRAM 5 – 13
6. SOURCE CODE 14 – 21
7. REFLEKSI 22 – 27
8. BIBLIOGRAFI
28
29
Junior Stem Coding Challenge Scratch 2.0 Page 1
Permainan ‘Shoot the Zombie’ dihasilkan melalui scratch 2.0 bertujuan untuk
pembelajaran Reka Bentuk danTeknologi (RBT). Seterusnya saya memilih game ini
untuk memasuki pertandingan Junior Stem Coding Challenge peringkat Sekolah dan
peringkat Negeri Perlis.
Permainan ‘Shoot The Zombie’ mempunyai 5 Sprite, 6 backdrop dan 3 level.
Sprite utama adalah polis. Sprite kedua, ketiga dan keempat ialah musuh. Setiap
musuh berbeza bentuk, bunyi dan durasi keluar mengikut ‘Level’. Sprite kelima ialah
Peluru.
Terdapat 6 ‘backdrop’ iaitu Start, Level 1, Level 2, Level 3, Game Over dan You
Are Winner. Backdrop start ketika bendera hijau ditekan. Selepas 3 saat backdrop
akan bertukar kepada Level 1. Apabila score 500 backdrop bertukar kepada Level 2.
Seterusnya apabila score berjumlah 1500 backdrop bertukar kepada Level 3. Jika
kalah iaitu apabila Zombie menyentuh Police backdrop akan menjadi ‘game over”.
Akhir sekali apabila score 3000 bermaksud kemenangan backdrop bertukar kepada
backdrop You Are Winner.
Junior Stem Coding Challenge Scratch 2.0 Page 2
Pengumpulan maklumat dan data untuk menghasilkan game ‘Shoot the Zombie’
melalui kaedah-kaedah berikut:
1. Pengajaran dan Pembelajaran (PdP) mata pelajaran Reka Bentuk dan
Teknologi Tahun 4 dan Tahun 5. Kaedah PdP termasuk aktiviti yang
diberikan oleh guru mata pelajaran.
2. Tunjuk ajar guru mata pelajaran RBT memalui Google Meet.
3. Rujukan youtube dan laman web tentang scratch.
4. Penghasilan pelbagai permainan melalui scratch 2.0 di rumah semasa PDPR
untuk mengisi masa lapang keluarga.
5. Pembacaan dan latihan berterusan sehingga berhasil game.
Junior Stem Coding Challenge Scratch 2.0 Page 3
Installation Open and
Scratch 2.0 Explore
Scratch 2.0
Create
Backdrop : Create new
Start, Level, Sprites :
Game over Police,
andYou Are
Zombie and
Winner Bullet
Build script, and PLAY
Sound for each
sprite and
backdrop
Junior Stem Coding Challenge Scratch 2.0 Page 4
CARTA ALIR BACKDROP
Start
Set Level 0
Switch backdrop to Start
Switch Backdrop to Level 1
Score 500 No Wait
Yes
Switch Backdrop to Level 2
Score 1500 No Wait
Yes
Switch Backdrop to Level 3
Score 3000 No Wait
Yes
Switch Backdrop to You Are
Winner
EJnudnior Stem Coding Challenge Scratch 2.0 Page 5
CARTA ALIR POLICE
Start
Hide
Wait 2 second
Show
Point in direction 99
Go to x:-97 y: -78
Key Up arrow No Wait
Press
Yes
Change y by 3
Key Down No
arrow Press Wait
Yes
Change y by -3
End
Junior Stem Coding Challenge Scratch 2.0 Page 6
CARTA ALIR BULLET
Start
Set Level 0
Key Space No Wait
Press Wait
Yes
Creat clone
Go back 99 layers
Go to poloce
Show
Point in direction of Police
Move 10 steps
Touch Zombie No
Yes
Delete Bullets
End
Junior Stem Coding Challenge Scratch 2.0 Page 7
CARTA ALIR ZOMBIE LEVEL 1
Start
Show
Go to x:250 y: pick random -170 to 170
Point towards Police
Move 1 steps
Touch Bullet No Move 1 steps forever
Yes Touch police
Wait 0.1 second Play sound game over
Switch backdrop to game over
Move 1 steps
Wait 2 second
Change Zombie Life by -1 Stop all
Play sound Laser2
.
Move 1 steps
Change Score by 50
Wait 0.1 second
Junior Stem Coding Challenge Scratch 2.0 Page 8
Set Brightness effect 60
Set Brightness effect 0
Delete the clone
End
Junior Stem Coding Challenge Scratch 2.0 Page 9
CARTA ALIR ZOMBIE LEVEL 2 Move 1 steps forever
Start Touch police
Wait until Score 500 Play sound game over
Show Switch backdrop to game over
Go to x: 250 y: pick random -170 to 170 Wait 2 second
Point towards Police Stop all
Move 1 steps
Touch Bullet
Wait 0.1 second
Move 1 steps
Change Zombie Life by -1
Play sound Screech
Move 1 steps
Junior Stem Coding Challenge Scratch 2.0 Page 10
Change Score by 50
Wait 0.1 second
Set Brightness effect 60
Set Brightness effect 0
Delete the clone
End
Junior Stem Coding Challenge Scratch 2.0 Page 11
CARTA ALIR ZOMBIE LEVEL 3 Move 1 steps forever
Start Touch police
Wait until Score 1500 Play sound game over
Show Switch backdrop to game over
Go to x: 250 y: pick random -170 to 170 Wait 2 second
Point towards Police Stop all
Move 1 steps
Touch Bullet
Wait 0.1 second
Move 1 steps
Change Zombie Life by -1
Play sound Wah beatbox
Move 1 steps
Junior Stem Coding Challenge Scratch 2.0 Page 12
Change Score by 50
Wait 0.1 second
Set Brightness effect 60
Set Brightness effect 0
Delete the clone
End
Junior Stem Coding Challenge Scratch 2.0 Page 13
BACKDROP
1. START
2. LEVEL 1 – Mula selepas backdrop Start
Junior Stem Coding Challenge Scratch 2.0 Page 14
3. LEVEL 2 – Selepas skor 500
4. LEVEL 3 – Selepas skor 1500
Junior Stem Coding Challenge Scratch 2.0 Page 15
5. GAME OVER – Apabila polis tersentuh dengan Zombie 1, Ghoul
atau Zombie 2.
6. YOU ARE WINNER – Backdrop keluar apabila skor 3000.
Junior Stem Coding Challenge Scratch 2.0 Page 16
POLIS
1. Tekan arrow atas dan bawah.
2. Tekan space untuk menembak.
Junior Stem Coding Challenge Scratch 2.0 Page 17
PELURU
1. Setelah space ditekan, peluru akan ditembak.
2. Apabila peluru terkena pada zombie, zombie akan menghilang.
Junior Stem Coding Challenge Scratch 2.0 Page 18
ZOMBIE 1
1. Keluar secara rawak, di kedudukan x = 250 y = -170 hingga 170.
2. Sekiranya terkena peluru nyawa zombie ditolak satu.
3. Bunyi laser akan keluar.
4. Kecerahan zombie akan turun dari 60 kepada 0.
Junior Stem Coding Challenge Scratch 2.0 Page 19
GHOUL
1. Keluar secara rawak di kedudukan x = 250 y = - 150 hingga 150.
2. Keluar apabila skor 500.
3. Apabila nyawa ghoul -1 ghoul akan mengeluarkan bunyi creech.
Junior Stem Coding Challenge Scratch 2.0 Page 20
ZOMBIE 2
1. Keluar secara rawak di kedudukan x = 250 y = - 160 hingga 160.
2. Keluar apabila skor 1500.
3. Apabila nyawa zombie 2 –1 zombie 2 akan mengeluarkan bunyi
Alien Creak 2.
Junior Stem Coding Challenge Scratch 2.0 Page 21
Junior Stem Coding Challenge Scratch 2.0 Page 22
Junior Stem Coding Challenge Scratch 2.0 Page 23
Junior Stem Coding Challenge Scratch 2.0 Page 24
Junior Stem Coding Challenge Scratch 2.0 Page 25
Junior Stem Coding Challenge Scratch 2.0 Page 26
Junior Stem Coding Challenge Scratch 2.0 Page 27
Refleksi pembinaan Game
Projek awal game ini saya dapati tidak cukup menarik dan program scratch tidak
mengikut aturan yang dikehendaki contoh sprite yang tidak mengikut aturan ialah
bullet, zombie, backdrop.
Bullet pada awalnya keluar bertentangan arah zombie. Zombie pula turun dan
naik tidak mendekati sasaran ada kalanya zombie keluar tidak mengikut level dan
score yang sepatutnya. Backdrop juga tidak mengikut level dan score yang
sepatutnya.
Cara mengatasi
Saya membuat game ini banyak kali tanpa berputus asa. Saya mengunakan
YOUTUBE sebagai panduan dan saya juga berbincang dengan guru saya melalui
aplikasi GOOGLE MEET.
Setelah menggunakan ketiga- tiga acara ini saya dapat mengatasi masalah yang
saya hadapi.
Sasaran masa hadapan
Saya berharap Game ini lebih bagus dimana dapat dimasukkan dalam GOOGLE
PLAYSTORE, lebih banyak polis dengan ciri-ciri futuristic, zombie boleh lompat dan
lebih laju, saya berharap saya dapat memenangi pertandingan ini supaya lebih yakin
pada masa hadapan dan dapat memenuhi cita-cita menjadi seorang Game Creator
paling terbaik di dunia.
Junior Stem Coding Challenge Scratch 2.0 Page 28
Buku:
1. Buku Teks Reka Bentuk dan Teknologi Tahun 5 Sekolah Kebangsaan, Dewan
Bahasa dan Pustaka (2020).
2. Modul Aktivit Formula A+ Reka Bentuk dan Teknologi Tahun 4, Sasbadi Sdn.
Bhd.
3. Modul Aktiviti Mesra Digital Reka Bentuk dan Teknologi Tahun 5, Sasbadi sdn.
Bhd.
Internet:
1. https://www.idtech.com/blog/how-to-create-a-game-on-scratch-a-tutorial-for-
beginners
2. https://scratch.mit.edu/studios/5637595/
Junior Stem Coding Challenge Scratch 2.0 Page 29