diff --git a/notes.org b/notes.org index 6b545c2..15b4545 100644 --- a/notes.org +++ b/notes.org @@ -11,19 +11,10 @@ Title: Entire game on one screen * TODO HUD ** hud: energie progress bar :aaron: ** hud: resources "release to space" on click :aaron: -** Hint für shortcuts anzeigen :ruben: -** Preise für entities :ruben: * TODO Entities ** solarpanel item :aaron: -* TODO Polishing - * TODO OUTRO ** animation bei voller energybar: typ fliegt davon -** win screen - -* TODO EXTRA Polishing -** game balancing -** Miner verschieben -** Silos: Farben je nach Kapazität einfärben +** win screen \ No newline at end of file diff --git a/public/images/speechbubbles.png b/public/images/speechbubbles.png index aecfe10..233fb02 100644 Binary files a/public/images/speechbubbles.png and b/public/images/speechbubbles.png differ diff --git a/public/images/speechbubbles.psd b/public/images/speechbubbles.psd index bc7b947..d1df1c2 100644 Binary files a/public/images/speechbubbles.psd and b/public/images/speechbubbles.psd differ diff --git a/src/game.coffee b/src/game.coffee index f482e2e..921da74 100644 --- a/src/game.coffee +++ b/src/game.coffee @@ -80,6 +80,8 @@ app.game = @currentSelectedTile.entity = new Miner else @speechbubble.say 'nores' + else + @speechbubble.say 'nosel' createSilo: -> if @currentSelectedTile @@ -90,6 +92,8 @@ app.game = @speechbubble.say 'nores' else @speechbubble.say 'toofar' + else + @speechbubble.say 'nosel' checkResource: (type, amount, drain = false) -> if @resources[type] >= amount diff --git a/src/hud.coffee b/src/hud.coffee index 61a9b5b..5df8b50 100644 --- a/src/hud.coffee +++ b/src/hud.coffee @@ -62,7 +62,7 @@ app.game.hud = showBuildInfo: -> clearTimeout(@timeout) if @timeout @buildinfo = true - @timeout = window.setTimeout @hideBuildInfo, 2000 + @timeout = window.setTimeout @hideBuildInfo, 4000 hideBuildInfo: -> app.game.hud.buildinfo = false diff --git a/src/speechbubble.coffee b/src/speechbubble.coffee index e48ca47..d32f2c5 100644 --- a/src/speechbubble.coffee +++ b/src/speechbubble.coffee @@ -9,6 +9,7 @@ app.game.speechbubble = when 'help' then @sprite = [0, 0, 27, 13] when 'toofar' then @sprite = [0, 13, 90, 13] when 'nores' then @sprite = [0, 26, 90, 13] + when 'nosel' then @sprite = [0, 39, 90, 13] @visible = true @timeout = window.setTimeout @hide, 1000