Skip to content

Commit

Permalink
Add assets for new HaxePunk-gui atlas-based themes.
Browse files Browse the repository at this point in the history
  • Loading branch information
nadako committed May 6, 2013
1 parent b68b106 commit 508105a
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions assets/atlas/assets.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--Format:
n => name of the sprite
x => sprite x pos in texture
y => sprite y pos in texture
w => sprite width (may be trimmed)
h => sprite height (may be trimmed)
oX => sprite's x-corner offset (only available if trimmed)
oY => sprite's y-corner offset (only available if trimmed)
oW => sprite's original width (only available if trimmed)
oH => sprite's original height (only available if trimmed)
r => 'y' only set if sprite is rotated
-->
<TextureAtlas imagePath="gfx/ui/themes.png" width="120" height="288">
<sprite n="gfx/ui/greyDefault.png" x="0" y="0" w="120" h="72" />
<sprite n="gfx/ui/blueMagda.png" x="0" y="72" w="120" h="72" />
<sprite n="gfx/ui/greenMagda.png" x="0" y="144" w="120" h="72" />
<sprite n="gfx/ui/purpleMagda.png" x="0" y="216" w="120" h="72" />
</TextureAtlas>
Binary file added assets/font/lythgame.ttf
Binary file not shown.
Binary file added assets/font/lythgamescript.ttf
Binary file not shown.
File renamed without changes
Binary file added assets/gfx/ui/greenMagda.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 assets/gfx/ui/greyDefault.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 assets/gfx/ui/purpleMagda.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 assets/gfx/ui/themes.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 src/dungeons/Main.hx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Main extends Engine
public function new()
{
super();
Control.useSkin("blueMagda.png");
Control.useSkin("gfx/ui/blueMagda.png");
Control.defaultLayer = RenderLayers.UI;
// HXP.console.enable();
trace('Random seed is ${HXP.randomSeed}');
Expand Down

0 comments on commit 508105a

Please sign in to comment.