Skip to content

Commit

Permalink
add new sprite for other elements
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof Urbas committed Nov 29, 2013
1 parent 68e3f0a commit 4b8905c
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 48 deletions.
48 changes: 0 additions & 48 deletions app/data/hud.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,53 +78,5 @@
"tilew": 44,
"tileh": 49,
"frames": 1
},
"ui_level_button": {
"sx": 0,
"sy": 151,
"cols": 1,
"tilew": 172,
"tileh": 171,
"frames": 1
},
"ui_level_button_locked": {
"sx": 0,
"sy": 364,
"cols": 1,
"tilew": 175,
"tileh": 184,
"frames": 1
},
"ui_level_progress": {
"sx": 0,
"sy": 322,
"cols": 1,
"tilew": 30,
"tileh": 30,
"frames": 1
},
"ui_controls_1": {
"sx": 174,
"sy": 55,
"cols": 1,
"tilew": 174,
"tileh": 97,
"frames": 1
},
"ui_controls_2": {
"sx": 349,
"sy": 55,
"cols": 1,
"tilew": 118,
"tileh": 112,
"frames": 1
},
"ui_controls_3": {
"sx": 174,
"sy": 0,
"cols": 1,
"tilew": 297,
"tileh": 55,
"frames": 1
}
}
50 changes: 50 additions & 0 deletions app/data/others.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"ui_level_button": {
"sx": 0,
"sy": 167,
"cols": 1,
"tilew": 171,
"tileh": 171,
"frames": 1
},
"ui_level_button_locked": {
"sx": 171,
"sy": 167,
"cols": 1,
"tilew": 175,
"tileh": 184,
"frames": 1
},
"ui_controls_1": {
"sx": 0,
"sy": 55,
"cols": 1,
"tilew": 175,
"tileh": 97,
"frames": 1
},
"ui_controls_2": {
"sx": 175,
"sy": 55,
"cols": 1,
"tilew": 118,
"tileh": 112,
"frames": 1
},
"ui_controls_3": {
"sx": 0,
"sy": 0,
"cols": 1,
"tilew": 297,
"tileh": 55,
"frames": 1
},
"ui_level_progress": {
"sx": 0,
"sy": 0,
"cols": 1,
"tilew": 30,
"tileh": 30,
"frames": 1
}
}
Binary file added app/images/hud-sprite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/others.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions app/scripts/game.js

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

3 changes: 3 additions & 0 deletions app/scripts/game/init.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ window.Game =
hud:
dataAsset: "hud.json"
sheet: "hud.png"
others:
dataAsset: "others.json"
sheet: "others.png"
map:
sheet: "map_tiles.png"
bg: "bg.png"
Expand Down
1 change: 1 addition & 0 deletions app/scripts/game/load.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Q.load Game.assets.all,
Q.compileSheets Game.assets.characters.sheet, Game.assets.characters.dataAsset
Q.compileSheets Game.assets.items.sheet, Game.assets.items.dataAsset
Q.compileSheets Game.assets.hud.sheet, Game.assets.hud.dataAsset
Q.compileSheets Game.assets.others.sheet, Game.assets.others.dataAsset

# first stage
Game.stageStartScreen()
Expand Down

0 comments on commit 4b8905c

Please sign in to comment.