Skip to content

Commit

Permalink
Add mute button to control room game
Browse files Browse the repository at this point in the history
  • Loading branch information
aardvarrk committed Jan 25, 2013
1 parent c523a3c commit f222b0b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions ControlroomWorld.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public class ControlroomWorld extends World
private CatchThief_Menu CatchThiefMenu;
private Console console;
private Lifes lifes;
private MuteButton muteButton;

Character selectedCharacter;

Expand Down Expand Up @@ -83,6 +84,11 @@ public ControlroomWorld()
addObject(CatchThiefMenu = new CatchThief_Menu(), 40, 75);
addObject(EvacuateMenu = new Evacuate_Menu(), 50, 75);
addObject(lifes = new Lifes(), 68, 65);

setPaintOrder(MuteButton.class);

addObject(muteButton = new MuteButton(), 75, 75);
muteButton.registerSound(backgroundMusic);
}

/** Checks score to set difficulty over the game */
Expand Down
Binary file modified HelicopterWorld.class
Binary file not shown.
6 changes: 3 additions & 3 deletions project.greenfoot
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Greenfoot properties
#Fri Jan 25 13:35:01 CET 2013
#Fri Jan 25 13:42:46 CET 2013
target86.type=ClassTarget
target5.height=50
target15.width=140
Expand Down Expand Up @@ -741,7 +741,7 @@ target103.editor.width=900
dependency61.to=MenuBar
mainWindow.y=22
target114.y=2890
mainWindow.x=102
mainWindow.x=34
target114.x=10
class.SkyscraperCoin.image=coin.png
target38.name=Game1
Expand Down Expand Up @@ -805,7 +805,7 @@ target52.width=80
target87.width=80
target116.name=GameOverScreen
dependency123.type=UsesDependency
simulation.speed=50
simulation.speed=55
target110.editor.y=22
target110.editor.x=0
dependency156.type=UsesDependency
Expand Down

0 comments on commit f222b0b

Please sign in to comment.