This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

Ananda_Wahyu
Ananda_Wahyu presents ...

2016/12/31

11140347_Project_4_Tom n' Jerry

1.Menambahkan action control pada actor untuk belok.
if (Greenfoot.isKeyDown("left"))
{ turn(-4); }
=> Maka apabila ditekan tombol "kiri", actor akan belok/turn ke kiri(-4).

2. Penggunaan pemanggilan fungsi/method. Ini akan memudahkan dan menambah kerapian dalam program.
Fungsi/method akan diletakkan dibagian bawah atau atas, yang nantinya akan dipanggil pada fungsi utama.

1237 views / 5 in the last 7 days

Tags: mouse with-source

open in greenfoot
Your browser is ignoring the <APPLET> tag.

No Comments

Want to leave a comment? You must first log in.

Who likes this?

No votes yet.