-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathindex.html
237 lines (230 loc) · 9.95 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
<!DOCTYPE html>
<html lang="en-US">
<head>
<!-- EARLY -->
<meta http-equiv="Content-Type" content="text/html"/>
<meta charset="utf-8" />
<base target="_blank" href="/" />
<!-- SEO -->
<link rel="robots" type="text/plain" href="/static/robots.txt" />
<meta name="robots" content="" />
<meta name="revisit-after" content="90 day" />
<meta name="keywords" content="golden sun, golden sun the lost age, golden sun engine, golden sun html5, golden sun online, golden sun 4, opengs, open golden sun, gshtml5" />
<title>Golden Sun Engine - HTML5</title>
<meta name="description" content="An online Golden Sun Engine entirely built in HTML5 with Phaser 2. This project is 100% open source and MIT licensed. Build your own GS game without programming skills." />
<!-- MISC -->
<link rel="manifest" type="application/manifest+json" href="/static/manifest.webmanifest" />
<meta name="background-color" content="#000" />
<meta name="theme-color" content="#fff" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="author" type="text/plain" href="/static/humans.txt" />
<!-- ICONS -->
<link rel="shortcut icon" type="image/x-icon" href="/static/favicon.ico" />
<!-- LIBRARIES -->
<link rel="stylesheet" href="/static/styles.css">
<script type="text/javascript" src="/static/phaser.js"></script>
<script type="module" src="/dist/bundle.js"></script>
<script src="/static/codemirror.js"></script>
<link rel="stylesheet" href="/static/codemirror.css">
<script src="/static/mode-javascript.js"></script>
<script src="/static/home.js"></script>
</head>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<body>
<div id="firefox-warning" class="warning-banner">You are using Firefox. GS HTML5 does not run smoothly on it. Please consider switching to a Chromium based browser.</div>
<div id="fps-warning" class="warning-banner bottom-warning">You're running low FPS. The engine may not work as expected.</div>
<div class="intro">
<pre>
<b>Golden Sun Engine - HTML5</b>
<small>MIT License. Open source project. Beta version available.</small>
For this demo, please use <b>Chromium</b> based browsers instead of Firefox.
<small>The engine is not working properly on Firefox. Don't use it.</small>
• Use the same controls of VBA: arrows, Z, X, A, S, Backspace and Enter.
• Press 1,2, 3, or 4 for zoom. Double click on screen to fullscreen.
• Press M to unmute. Press SHIFT + PGUP/PGDN to control the volume.
• D for debug colision. F for fps. G for grid. K for keys debug. T for battle stats. L for sliders. Y for battle animation tester.
• Use Q to cast Move. Use W to cast Whirlwind. Use E to cast Growth (swap djinn first). Use R to cast Reveal.
Check the <a href="https://github.com/jjppof/goldensun_html5">source code</a> on github.
Download latest release <a href="https://github.com/jjppof/goldensun_html5/releases">here</a> (Windows only available).
Please visit our <a href="https://github.com/jjppof/goldensun_html5/wiki">wiki</a> to find docs and tutorials on how to use the engine.
Join our <b><a href="https://discord.gg/fYFSxPMjmS">discord</a></b> server, feel free to drop questions.
</pre>
</div>
<div id="game"></div>
<div id="animation_tester">
<input type="text" id="animation_tester_enemy_party" placeholder="enemy party key name" /> <br>
<button onclick="GoldenSun.debug.start_battle_animation_tester()">Start animation tester</button> <br><br>
<input type="text" id="animation_tester_ability_keyname" placeholder="ability key name"/> <br>
<button onclick="GoldenSun.debug.fire_battle_animation()">Fire animation</button> <br><br>
<textarea id="battle_anim_recipe"></textarea>
</div>
<div id="key_debug">
<div class="up"><img src="./assets/images/debug/keyboard_arrow.png"/></div>
<div class="down"><img src="./assets/images/debug/keyboard_arrow.png"/></div>
<div class="left"><img src="./assets/images/debug/keyboard_arrow.png"/></div>
<div class="right"><img src="./assets/images/debug/keyboard_arrow.png"/></div>
<table>
<tr>
<th>Direction:</th>
<td class="direction"></td>
</tr>
<tr>
<th>Action:</th>
<td class="action"></td>
</tr>
<tr>
<th>x:</th>
<td class="x"></td>
</tr>
<tr>
<th>y:</th>
<td class="y"></td>
</tr>
<tr>
<th>speed_x:</th>
<td class="speed_x"></td>
</tr>
<tr>
<th>speed_y:</th>
<td class="speed_y"></td>
</tr>
<tr>
<th>Force direction:</th>
<td class="force_direction"></td>
</tr>
<tr>
<th>Stop by colliding:</th>
<td class="stop_by_colliding"></td>
</tr>
<tr>
<th>Sliding on ice:</th>
<td class="sliding_on_ice"></td>
</tr>
<tr>
<th>Collision layer:</th>
<td class="collision_layer"></td>
</tr>
</table>
</div>
<div id="stats_debug">
<label for="stats_debug_select">Choose a char:</label>
<select id="stats_debug_select"></select>
<table>
<tr>
<th>Name:</th>
<td class="name"></td>
</tr>
<tr>
<th>Class:</th>
<td class="class"></td>
</tr>
<tr>
<th>Level:</th>
<td class="level"></td>
</tr>
<tr>
<th>Exp:</th>
<td class="exp"></td>
</tr>
<tr>
<th>HP:</th>
<td><span class="current_hp"></span>/<span class="max_hp"></span></td>
</tr>
<tr>
<th>PP:</th>
<td><span class="current_pp"></span>/<span class="max_pp"></span></td>
</tr>
<tr>
<th>Attack:</th>
<td class="atk"></td>
</tr>
<tr>
<th>Defense:</th>
<td class="def"></td>
</tr>
<tr>
<th>Agility:</th>
<td class="agi"></td>
</tr>
<tr>
<th>Luck:</th>
<td class="luk"></td>
</tr>
<tr>
<th>Venus Level:</th>
<td class="venus_level"></td>
</tr>
<tr>
<th>Mercury Level:</th>
<td class="mercury_level"></td>
</tr>
<tr>
<th>Mars Level:</th>
<td class="mars_level"></td>
</tr>
<tr>
<th>Jupiter Level:</th>
<td class="jupiter_level"></td>
</tr>
<tr>
<th>Venus Power:</th>
<td class="venus_power"></td>
</tr>
<tr>
<th>Mercury Power:</th>
<td class="mercury_power"></td>
</tr>
<tr>
<th>Mars Power:</th>
<td class="mars_power"></td>
</tr>
<tr>
<th>Jupiter Power:</th>
<td class="jupiter_power"></td>
</tr>
<tr>
<th>Venus Resist:</th>
<td class="venus_resist"></td>
</tr>
<tr>
<th>Mercury Resist:</th>
<td class="mercury_resist"></td>
</tr>
<tr>
<th>Mars Resist:</th>
<td class="mars_resist"></td>
</tr>
<tr>
<th>Jupiter Resist:</th>
<td class="jupiter_resist"></td>
</tr>
<tr>
<th>Turns:</th>
<td class="turns"></td>
</tr>
<tr>
<th>Temp. statuses:</th>
<td class="temp_statuses"></td>
</tr>
<tr>
<th>Perm. statuses:</th>
<td class="perm_statuses"></td>
</tr>
<tr>
<th>Buff/Turn count</th>
<td class="buff"></td>
</tr>
<tr>
<th>Effects count</th>
<td class="effect_count"></td>
</tr>
</table>
</div>
<div><pre id="object_inspector"></pre></div>
<div id="sliders_debug">
<button onclick="GoldenSun.debug.add_slider()">Add slider</button>
<div id="sliders"></div>
</div>
<p class="disclaimer">All Golden Sun games and their media are property of Camelot Software Planning Ltd., Nintendo and/or Nintendo of America Inc., and are protected by United States and international copyright, trademark and other intellectual property laws.</p>
</body>
</html>