import greenfoot.*;
/**
* Write a description of class mulai here.
*
* @author Anjar
* @version 1.1
*/
public class mulai extends World
{
public mulai()
{
// Create a new world with 600x400 cells with a cell size of 1x1 pixels.
super(600, 400, 1,false);
Greenfoot.start();
prepare();
}
private void prepare(){ //fungsi untuk menyiapkan objek untuk ditampilkan
BtnMulai btnMulai = new BtnMulai();
BtnPetunjuk btnPetunjuk = new BtnPetunjuk();
BtnKeluar btnKeluar = new BtnKeluar();
addObject(btnMulai, 322, 215);//menambahkan objek btnMulai pada world
addObject(btnPetunjuk, 322, 280);//menambahkan objek btnMulai pada world
addObject(btnKeluar, 322,345);
}
}
i tried many code to playing sound when the game is start up, but i found error. anyone can help me to complete the code in above to playing sound?
Help me guys :)
