Skip to content
Browse files

Fix background of skyscraper game

  • Loading branch information...
1 parent e4bae48 commit e0dd5d4ebbaea8aadd3163002e60d285d5b02733 @aardvarrk aardvarrk committed
View
BIN HighScoreWorld.class
Binary file not shown.
View
4 HighScoreWorld.ctxt
@@ -1,4 +1,6 @@
#BlueJ class context
comment0.params=game
comment0.target=HighScoreWorld(Game)
-numComments=1
+comment1.params=
+comment1.target=void\ act()
+numComments=2
View
6 HighScoreWorld.java
@@ -33,4 +33,10 @@ public HighScoreWorld(Game game) {
setBackground(textImage);
}
+
+ public void act() {
+ if (Greenfoot.mouseClicked(null)) {
+ Greenfoot.setWorld(new Menuworld());
+ }
+ }
}
View
BIN images/skyscraper_background.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
8 project.greenfoot
@@ -158,7 +158,7 @@ class.SkyscraperCoin.image=coin.png
class.SkyscraperCoin.superclass=greenfoot.Actor
class.SkyscraperPlayer.image=POLITIEvoor1.png
class.SkyscraperPlayer.superclass=greenfoot.Actor
-class.SkyscraperWorld.image=background.png
+class.SkyscraperWorld.image=skyscraper_background.png
class.SkyscraperWorld.superclass=greenfoot.World
class.SpeedPowerUp.image=mushroom.png
class.SpeedPowerUp.superclass=PowerUps
@@ -397,6 +397,9 @@ dependency16.type=UsesDependency
dependency160.from=ControlroomWorld
dependency160.to=Game
dependency160.type=UsesDependency
+dependency161.from=HighScoreWorld
+dependency161.to=Menuworld
+dependency161.type=UsesDependency
dependency17.from=Bag
dependency17.to=WoodenDivider
dependency17.type=UsesDependency
@@ -674,7 +677,7 @@ mainWindow.height=774
mainWindow.width=1280
mainWindow.x=0
mainWindow.y=22
-package.numDependencies=160
+package.numDependencies=161
package.numTargets=117
project.charset=UTF-8
readme.editor.height=700
@@ -1517,6 +1520,7 @@ target60.editor.x=40
target60.editor.y=42
target60.height=50
target60.name=ControlroomWorld
+target60.naviview.expanded=false
target60.showInterface=false
target60.type=ClassTarget
target60.width=140

0 comments on commit e0dd5d4

Please sign in to comment.
Something went wrong with that request. Please try again.