-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMeny.java
More file actions
34 lines (28 loc) · 802 Bytes
/
Meny.java
File metadata and controls
34 lines (28 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Adds buttons to the Main Menu screen
*
* @author Barry Al-Jawari, Betim Goxhuli, Edi Imamovic, James Lay
*
*/
public class Meny extends World
{
public static GreenfootSound music;
{
if(music == null)
{
music = new GreenfootSound("Meny.wav");
music.playLoop();
}
}
public Meny()
{
super(1000, 500, 1);
addObject(new MainM(), 500, 250);
addObject(new ButtonStart(), 500, 240);
addObject(new ButtonControls(), 360, 350);
addObject(new ButtonAbout(), 675, 350);
addObject(new SoundOn(), 677, 130);
addObject(new SoundOff(), 821, 134);
}
}