diff --git a/public/images/buildinfo.png b/public/images/buildinfo.png index f245641..25d1797 100644 Binary files a/public/images/buildinfo.png and b/public/images/buildinfo.png differ diff --git a/src/game.coffee b/src/game.coffee index b2938a1..fa17c66 100644 --- a/src/game.coffee +++ b/src/game.coffee @@ -68,10 +68,22 @@ app.game = when "i" then app.game.hud.showBuildInfo() when "s" then @createSilo() when "c" then @cheatah() + when "1" then @releaseRes 'stardust' + when "2" then @releaseRes 'dirt' + when "3" then @releaseRes 'bedrock' + when "4" then @releaseRes 'oxodum' + when "5" then @releaseRes 'lubinit' + when "6" then @releaseRes 'darkana' + when "7" then @releaseRes 'bio' + when "8" then @releaseRes 'notch' + when "9" then @releaseRes 'lava' when "space" @currentSelectedTile.deselect() if @currentSelectedTile @currentSelectedTile = null + releaseRes: (string) -> + @resources[string] = 0 + tick: => tile.tick() for tile in app.game.map diff --git a/src/hud.coffee b/src/hud.coffee index 6a4575d..3e24573 100644 --- a/src/hud.coffee +++ b/src/hud.coffee @@ -22,6 +22,7 @@ app.game.hud = app.layer.drawRegion app.images.buildinfo, [0, 0, 106, 10], 1, 1 app.layer.drawRegion app.images.buildinfo, [0, 10, 106, 10], 1, 12 app.layer.drawRegion app.images.buildinfo, [0, 20, 106, 10], 1, 23 + app.layer.drawRegion app.images.buildinfo, [0, 30, 106, 10], 1, 34 currentSelectedTile = app.game.currentSelectedTile if currentSelectedTile != null