Skip to content

Commit 01a07b0

Browse files
committed
Initial draft
1 parent db7477f commit 01a07b0

File tree

15 files changed

+2547
-1
lines changed

15 files changed

+2547
-1
lines changed

articles/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@
148148
href: tutorials/building_2d_games/17_scenes/
149149
- name: "18: Texture Sampling"
150150
href: tutorials/building_2d_games/18_texture_sampling/
151+
- name: "19: User Interface"
152+
href: tutorials/building_2d_games/19_user_interface/
151153
- name: Console Access
152154
href: console_access.md
153155
- name: Help and Support
21.9 KB
Loading

articles/tutorials/building_2d_games/19_user_interface/index.md

Lines changed: 682 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<TextureAtlas>
3+
<Texture>images/atlas</Texture>
4+
<Regions>
5+
<Region name="slime-1" x="320" y="0" width="80" height="80" />
6+
<Region name="slime-2" x="320" y="80" width="80" height="80" />
7+
<Region name="bat-1" x="320" y="160" width="80" height="80" />
8+
<Region name="bat-2" x="320" y="240" width="80" height="80" />
9+
<Region name="bat-3" x="400" y="0" width="80" height="80" />
10+
<Region name="start-button" x="480" y="0" width="208" height="44" />
11+
<Region name="options-button" x="480" y="44" width="208" height="44" />
12+
<Region name="accept-button" x="480" y="88" width="208" height="44" />
13+
<Region name="cancel-button" x="480" y="132" width="208" height="44" />
14+
<Region name="resume-button" x="480" y="176" width="208" height="44" />
15+
<Region name="retry-button" x="480" y="220" width="208" height="44" />
16+
<Region name="quit-button" x="480" y="264" width="208" height="44" />
17+
<Region name="start-button-selected-1" x="697" y="0" width="256" height="52" />
18+
<Region name="options-button-selected-1" x="697" y="52" width="256" height="52" />
19+
<Region name="accept-button-selected-1" x="697" y="104" width="256" height="52" />
20+
<Region name="cancel-button-selected-1" x="697" y="156" width="256" height="52" />
21+
<Region name="resume-button-selected-1" x="697" y="208" width="256" height="52" />
22+
<Region name="retry-button-selected-1" x="697" y="260" width="256" height="52" />
23+
<Region name="quit-button-selected-1" x="697" y="312" width="256" height="52" />
24+
<Region name="start-button-selected-2" x="0" y="320" width="256" height="52" />
25+
<Region name="options-button-selected-2" x="256" y="320" width="256" height="52" />
26+
<Region name="accept-button-selected-2" x="0" y="372" width="256" height="52" />
27+
<Region name="cancel-button-selected-2" x="256" y="372" width="256" height="52" />
28+
<Region name="resume-button-selected-2" x="512" y="364" width="256" height="52" />
29+
<Region name="retry-button-selected-2" x="768" y="364" width="256" height="52" />
30+
<Region name="quit-button-selected-2" x="768" y="416" width="256" height="52" />
31+
<Region name="options-label" x="0" y="424" width="315" height="72" />
32+
<Region name="escape-label" x="790" y="480" width="219" height="28" />
33+
<Region name="enter-label" x="790" y="508" width="149" height="28" />
34+
<Region name="music-label" x="320" y="448" width="178" height="35" />
35+
<Region name="paused-label" x="498" y="448" width="232" height="35" />
36+
<Region name="sound-effect-label" x="320" y="483" width="114" height="35" />
37+
<Region name="game-over-label" x="434" y="483" width="346" height="35" />
38+
<Region name="slider" x="0" y="519" width="782" height="44" />
39+
<Region name="title" x="0" y="563" width="751" height="240" />
40+
<Region name="panel" x="0" y="803" width="849" height="221" />
41+
<Region name="white-pixel" x="12" y="0" width="1" height="1" />
42+
<Region name="overlay-pixel" x="28" y="488" width="1" height="1" />
43+
</Regions>
44+
<Animations>
45+
<Animation name="slime-animation" delay="200">
46+
<Frame region="slime-1" />
47+
<Frame region="slime-2" />
48+
</Animation>
49+
<Animation name="bat-animation" delay="200">
50+
<Frame region="bat-1" />
51+
<Frame region="bat-2" />
52+
<Frame region="bat-1" />
53+
<Frame region="bat-3" />
54+
</Animation>
55+
<Animation name="start-button-selected" delay="300">
56+
<Frame region="start-button-selected-1" />
57+
<Frame region="start-button-selected-2" />
58+
</Animation>
59+
<Animation name="options-button-selected" delay="300">
60+
<Frame region="options-button-selected-1" />
61+
<Frame region="options-button-selected-2" />
62+
</Animation>
63+
<Animation name="accept-button-selected" delay="300">
64+
<Frame region="accept-button-selected-1" />
65+
<Frame region="accept-button-selected-2" />
66+
</Animation>
67+
<Animation name="cancel-button-selected" delay="300">
68+
<Frame region="cancel-button-selected-1" />
69+
<Frame region="cancel-button-selected-2" />
70+
</Animation>
71+
<Animation name="resume-button-selected" delay="300">
72+
<Frame region="resume-button-selected-1" />
73+
<Frame region="resume-button-selected-2" />
74+
</Animation>
75+
<Animation name="retry-button-selected" delay="300">
76+
<Frame region="retry-button-selected-1" />
77+
<Frame region="retry-button-selected-2" />
78+
</Animation>
79+
<Animation name="quit-button-selected" delay="300">
80+
<Frame region="quit-button-selected-1" />
81+
<Frame region="quit-button-selected-2" />
82+
</Animation>
83+
</Animations>
84+
</TextureAtlas>

0 commit comments

Comments
 (0)