Skip to content

Commit

Permalink
use new hud sprite
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof Urbas committed Nov 29, 2013
1 parent 4b8905c commit 764a8d3
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 25 deletions.
74 changes: 51 additions & 23 deletions app/data/hud.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,76 +7,104 @@
"tileh": 71,
"frames": 1
},
"hud_zombie": {
"hud_zombie_player": {
"sx": 81,
"sy": 0,
"cols": 1,
"tilew": 81,
"tileh": 71,
"frames": 1
},
"hud_zombie": {
"sx": 162,
"sy": 0,
"cols": 1,
"tilew": 76,
"tileh": 63,
"frames": 1
},

"hud_health": {
"sx": 81,
"sy": 71,
"sx": 60,
"sy": 119,
"cols": 1,
"tilew": 45,
"tileh": 27,
"tileh": 29,
"frames": 1
},
"hud_health_half": {
"sx": 105,
"sy": 119,
"cols": 1,
"tilew": 45,
"tileh": 29,
"frames": 1
},

"hud_bullets": {
"sx": 97,
"sy": 102,
"sx": 0,
"sy": 119,
"cols": 1,
"tilew": 60,
"tileh": 27,
"tileh": 29,
"frames": 1
},

"hud_key_empty": {
"sx": 0,
"sy": 71,
"sx": 162,
"sy": 121,
"cols": 1,
"tilew": 30,
"tileh": 31,
"frames": 1
},
"hud_key_collected": {
"sx": 30,
"sy": 71,
"sx": 192,
"sy": 121,
"cols": 1,
"tilew": 30,
"tileh": 31,
"frames": 1
},

"hud_settings_button": {
"sx": 0,
"sy": 102,
"sx": 44,
"sy": 71,
"cols": 1,
"tilew": 44,
"tileh": 49,
"tileh": 47,
"frames": 1
},
"hud_back_button": {
"sx": 88,
"sy": 71,
"cols": 1,
"tilew": 44,
"tileh": 47,
"frames": 1
},
"hud_pause_button": {
"sx": 45,
"sy": 102,
"sx": 0,
"sy": 71,
"cols": 1,
"tilew": 44,
"tileh": 49,
"tileh": 47,
"frames": 1
},
"hud_audio_on_button": {
"sx": 0,
"sy": 102,
"sx": 132,
"sy": 71,
"cols": 1,
"tilew": 44,
"tileh": 49,
"tileh": 47,
"frames": 1
},
"hud_audio_off_button": {
"sx": 45,
"sy": 102,
"sx": 176,
"sy": 71,
"cols": 1,
"tilew": 44,
"tileh": 49,
"tileh": 47,
"frames": 1
}
}
Binary file removed app/images/hud-sprite.png
Binary file not shown.
Binary file modified app/images/hud.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion app/scripts/game.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/scripts/game/sprites/ui/menu_button.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Q.UI.MenuButton = Q.UI.Button.extend "UI.MenuButton",
y: 170
z: 100
type: Q.SPRITE_UI | Q.SPRITE_DEFAULT
sheet: "hud_settings_button"
sheet: "hud_back_button"
keyActionName: "escape" # button that will trigger click event

@on 'click', =>
Expand Down

0 comments on commit 764a8d3

Please sign in to comment.