Anda di halaman 1dari 7

MEMBUAT GAME CHEEKY HAMSTER

1. Jalankan aplikasi App Inventor


2. Buat project baru dengan mengklik “New Project” dan beri nama “CheekyHamster”:
MEMBUAT GAME CHEEKY HAMSTER

3. Ke “Media” klik “Upload File”, akan ada kotak dialog baru dan pilih “Choose File”, cari file yang akan dimasukkan, lalu
klik “OK” :
MEMBUAT GAME CHEEKY HAMSTER

4. Masukkan file “Cheekyhamster.png”, “Bowl.png”, “Hamstericon.png”, jika semua file gambar sudah diupload maka
akan tampak pada list yang ada di “Media” :
5. Selanjutnya tambahkan Component yang diperlukan dan ubah pada bagian propertiesnya, seperti berikut :

Nama
Nama Asli Ganti Nama Properties
Component
AlignHorizont al: Cent er AlignVert ical: Top
ScreenOrient at ion: Port rait Scrollable: No
Screen Screen1
Tit le: Cheeky Hamst er
BackgroundColor: Blue Icon: Hamst ericon.png
BackgroundColor: Whit e Widt h: Fill Parent
Canvas Canvas1
Height : 375
Picture: Bowl.png
ImageSprite ImageSprit e1 BowlSprite X: 100
Y: 0
Heading: 90 Int erval: 10
Paint Color: Orange Radius: 5
Ball Ball1 Seed Speed: 20
Visible: Yes X: 152
Y: 276
Nama Component Nama Asli Ganti Nama Properties
Heading: 0
Pict ure: Cheekyhamst er.png
ImageSprit e ImageSprit e2 Hamst erSprit e
X: 100
Y: 270
HorizontalArrangement1
Horizont
(Diisi dengan 2 buah
alArrangement
Button)
BackgroundColor: Light Gray Font : Bold
Font Size: 20
But t on But t on1 Left But t on
Text : <=
Text Color: Red
BackgroundColor: Light Gray Font : Bold
Font Size: 20
But t on But t on2 Right But t on
Text : =>
Text Color: Red
Font : Bold
Label Label1 Scorelabel Font Size: 20 Text : Score: Text
Color: Red
Label Label2 Scorelabelcount Font : Bold Font Size: 20
Text : 0
Text Color: Red
BackgroundColor: Light Gray Font Size: 20
Button Button3 Reset button
Text : Reset Text Color: Red
Clock Clock1 BowlClock TimerInt erval: 2000

6. Maka tampilannya akan sebagai berikut :


7. Terakhir untuk memasukkan perintah, klik “Blocks” dan masukkan blok perintah sebagai berikut :

8 . Jalankan aplikasi menggunakan Emulat or, Kabel at au Wifi

Anda mungkin juga menyukai