Yay release

master
Ruben Müller 8 years ago
parent 8c66cb2901
commit a6e905d57a

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

@ -67,10 +67,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

@ -23,6 +23,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

Loading…
Cancel
Save