HelloSun commited on
Commit
0b864e8
·
verified ·
1 Parent(s): 4a37ff2

Add Starfire Forest pixel RPG

Browse files

Ship the Traditional Chinese static RPG, separable source assets, and licensing information.

AGPL-3.0.txt ADDED
@@ -0,0 +1,661 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ GNU AFFERO GENERAL PUBLIC LICENSE
2
+ Version 3, 19 November 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+ Preamble
9
+
10
+ The GNU Affero General Public License is a free, copyleft license for
11
+ software and other kinds of works, specifically designed to ensure
12
+ cooperation with the community in the case of network server software.
13
+
14
+ The licenses for most software and other practical works are designed
15
+ to take away your freedom to share and change the works. By contrast,
16
+ our General Public Licenses are intended to guarantee your freedom to
17
+ share and change all versions of a program--to make sure it remains free
18
+ software for all its users.
19
+
20
+ When we speak of free software, we are referring to freedom, not
21
+ price. Our General Public Licenses are designed to make sure that you
22
+ have the freedom to distribute copies of free software (and charge for
23
+ them if you wish), that you receive source code or can get it if you
24
+ want it, that you can change the software or use pieces of it in new
25
+ free programs, and that you know you can do these things.
26
+
27
+ Developers that use our General Public Licenses protect your rights
28
+ with two steps: (1) assert copyright on the software, and (2) offer
29
+ you this License which gives you legal permission to copy, distribute
30
+ and/or modify the software.
31
+
32
+ A secondary benefit of defending all users' freedom is that
33
+ improvements made in alternate versions of the program, if they
34
+ receive widespread use, become available for other developers to
35
+ incorporate. Many developers of free software are heartened and
36
+ encouraged by the resulting cooperation. However, in the case of
37
+ software used on network servers, this result may fail to come about.
38
+ The GNU General Public License permits making a modified version and
39
+ letting the public access it on a server without ever releasing its
40
+ source code to the public.
41
+
42
+ The GNU Affero General Public License is designed specifically to
43
+ ensure that, in such cases, the modified source code becomes available
44
+ to the community. It requires the operator of a network server to
45
+ provide the source code of the modified version running there to the
46
+ users of that server. Therefore, public use of a modified version, on
47
+ a publicly accessible server, gives the public access to the source
48
+ code of the modified version.
49
+
50
+ An older license, called the Affero General Public License and
51
+ published by Affero, was designed to accomplish similar goals. This is
52
+ a different license, not a version of the Affero GPL, but Affero has
53
+ released a new version of the Affero GPL which permits relicensing under
54
+ this license.
55
+
56
+ The precise terms and conditions for copying, distribution and
57
+ modification follow.
58
+
59
+ TERMS AND CONDITIONS
60
+
61
+ 0. Definitions.
62
+
63
+ "This License" refers to version 3 of the GNU Affero General Public License.
64
+
65
+ "Copyright" also means copyright-like laws that apply to other kinds of
66
+ works, such as semiconductor masks.
67
+
68
+ "The Program" refers to any copyrightable work licensed under this
69
+ License. Each licensee is addressed as "you". "Licensees" and
70
+ "recipients" may be individuals or organizations.
71
+
72
+ To "modify" a work means to copy from or adapt all or part of the work
73
+ in a fashion requiring copyright permission, other than the making of an
74
+ exact copy. The resulting work is called a "modified version" of the
75
+ earlier work or a work "based on" the earlier work.
76
+
77
+ A "covered work" means either the unmodified Program or a work based
78
+ on the Program.
79
+
80
+ To "propagate" a work means to do anything with it that, without
81
+ permission, would make you directly or secondarily liable for
82
+ infringement under applicable copyright law, except executing it on a
83
+ computer or modifying a private copy. Propagation includes copying,
84
+ distribution (with or without modification), making available to the
85
+ public, and in some countries other activities as well.
86
+
87
+ To "convey" a work means any kind of propagation that enables other
88
+ parties to make or receive copies. Mere interaction with a user through
89
+ a computer network, with no transfer of a copy, is not conveying.
90
+
91
+ An interactive user interface displays "Appropriate Legal Notices"
92
+ to the extent that it includes a convenient and prominently visible
93
+ feature that (1) displays an appropriate copyright notice, and (2)
94
+ tells the user that there is no warranty for the work (except to the
95
+ extent that warranties are provided), that licensees may convey the
96
+ work under this License, and how to view a copy of this License. If
97
+ the interface presents a list of user commands or options, such as a
98
+ menu, a prominent item in the list meets this criterion.
99
+
100
+ 1. Source Code.
101
+
102
+ The "source code" for a work means the preferred form of the work
103
+ for making modifications to it. "Object code" means any non-source
104
+ form of a work.
105
+
106
+ A "Standard Interface" means an interface that either is an official
107
+ standard defined by a recognized standards body, or, in the case of
108
+ interfaces specified for a particular programming language, one that
109
+ is widely used among developers working in that language.
110
+
111
+ The "System Libraries" of an executable work include anything, other
112
+ than the work as a whole, that (a) is included in the normal form of
113
+ packaging a Major Component, but which is not part of that Major
114
+ Component, and (b) serves only to enable use of the work with that
115
+ Major Component, or to implement a Standard Interface for which an
116
+ implementation is available to the public in source code form. A
117
+ "Major Component", in this context, means a major essential component
118
+ (kernel, window system, and so on) of the specific operating system
119
+ (if any) on which the executable work runs, or a compiler used to
120
+ produce the work, or an object code interpreter used to run it.
121
+
122
+ The "Corresponding Source" for a work in object code form means all
123
+ the source code needed to generate, install, and (for an executable
124
+ work) run the object code and to modify the work, including scripts to
125
+ control those activities. However, it does not include the work's
126
+ System Libraries, or general-purpose tools or generally available free
127
+ programs which are used unmodified in performing those activities but
128
+ which are not part of the work. For example, Corresponding Source
129
+ includes interface definition files associated with source files for
130
+ the work, and the source code for shared libraries and dynamically
131
+ linked subprograms that the work is specifically designed to require,
132
+ such as by intimate data communication or control flow between those
133
+ subprograms and other parts of the work.
134
+
135
+ The Corresponding Source need not include anything that users
136
+ can regenerate automatically from other parts of the Corresponding
137
+ Source.
138
+
139
+ The Corresponding Source for a work in source code form is that
140
+ same work.
141
+
142
+ 2. Basic Permissions.
143
+
144
+ All rights granted under this License are granted for the term of
145
+ copyright on the Program, and are irrevocable provided the stated
146
+ conditions are met. This License explicitly affirms your unlimited
147
+ permission to run the unmodified Program. The output from running a
148
+ covered work is covered by this License only if the output, given its
149
+ content, constitutes a covered work. This License acknowledges your
150
+ rights of fair use or other equivalent, as provided by copyright law.
151
+
152
+ You may make, run and propagate covered works that you do not
153
+ convey, without conditions so long as your license otherwise remains
154
+ in force. You may convey covered works to others for the sole purpose
155
+ of having them make modifications exclusively for you, or provide you
156
+ with facilities for running those works, provided that you comply with
157
+ the terms of this License in conveying all material for which you do
158
+ not control copyright. Those thus making or running the covered works
159
+ for you must do so exclusively on your behalf, under your direction
160
+ and control, on terms that prohibit them from making any copies of
161
+ your copyrighted material outside their relationship with you.
162
+
163
+ Conveying under any other circumstances is permitted solely under
164
+ the conditions stated below. Sublicensing is not allowed; section 10
165
+ makes it unnecessary.
166
+
167
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
168
+
169
+ No covered work shall be deemed part of an effective technological
170
+ measure under any applicable law fulfilling obligations under article
171
+ 11 of the WIPO copyright treaty adopted on 20 December 1996, or
172
+ similar laws prohibiting or restricting circumvention of such
173
+ measures.
174
+
175
+ When you convey a covered work, you waive any legal power to forbid
176
+ circumvention of technological measures to the extent such circumvention
177
+ is effected by exercising rights under this License with respect to
178
+ the covered work, and you disclaim any intention to limit operation or
179
+ modification of the work as a means of enforcing, against the work's
180
+ users, your or third parties' legal rights to forbid circumvention of
181
+ technological measures.
182
+
183
+ 4. Conveying Verbatim Copies.
184
+
185
+ You may convey verbatim copies of the Program's source code as you
186
+ receive it, in any medium, provided that you conspicuously and
187
+ appropriately publish on each copy an appropriate copyright notice;
188
+ keep intact all notices stating that this License and any
189
+ non-permissive terms added in accord with section 7 apply to the code;
190
+ keep intact all notices of the absence of any warranty; and give all
191
+ recipients a copy of this License along with the Program.
192
+
193
+ You may charge any price or no price for each copy that you convey,
194
+ and you may offer support or warranty protection for a fee.
195
+
196
+ 5. Conveying Modified Source Versions.
197
+
198
+ You may convey a work based on the Program, or the modifications to
199
+ produce it from the Program, in the form of source code under the
200
+ terms of section 4, provided that you also meet all of these conditions:
201
+
202
+ a) The work must carry prominent notices stating that you modified
203
+ it, and giving a relevant date.
204
+
205
+ b) The work must carry prominent notices stating that it is
206
+ released under this License and any conditions added under section
207
+ 7. This requirement modifies the requirement in section 4 to
208
+ "keep intact all notices".
209
+
210
+ c) You must license the entire work, as a whole, under this
211
+ License to anyone who comes into possession of a copy. This
212
+ License will therefore apply, along with any applicable section 7
213
+ additional terms, to the whole of the work, and all its parts,
214
+ regardless of how they are packaged. This License gives no
215
+ permission to license the work in any other way, but it does not
216
+ invalidate such permission if you have separately received it.
217
+
218
+ d) If the work has interactive user interfaces, each must display
219
+ Appropriate Legal Notices; however, if the Program has interactive
220
+ interfaces that do not display Appropriate Legal Notices, your
221
+ work need not make them do so.
222
+
223
+ A compilation of a covered work with other separate and independent
224
+ works, which are not by their nature extensions of the covered work,
225
+ and which are not combined with it such as to form a larger program,
226
+ in or on a volume of a storage or distribution medium, is called an
227
+ "aggregate" if the compilation and its resulting copyright are not
228
+ used to limit the access or legal rights of the compilation's users
229
+ beyond what the individual works permit. Inclusion of a covered work
230
+ in an aggregate does not cause this License to apply to the other
231
+ parts of the aggregate.
232
+
233
+ 6. Conveying Non-Source Forms.
234
+
235
+ You may convey a covered work in object code form under the terms
236
+ of sections 4 and 5, provided that you also convey the
237
+ machine-readable Corresponding Source under the terms of this License,
238
+ in one of these ways:
239
+
240
+ a) Convey the object code in, or embodied in, a physical product
241
+ (including a physical distribution medium), accompanied by the
242
+ Corresponding Source fixed on a durable physical medium
243
+ customarily used for software interchange.
244
+
245
+ b) Convey the object code in, or embodied in, a physical product
246
+ (including a physical distribution medium), accompanied by a
247
+ written offer, valid for at least three years and valid for as
248
+ long as you offer spare parts or customer support for that product
249
+ model, to give anyone who possesses the object code either (1) a
250
+ copy of the Corresponding Source for all the software in the
251
+ product that is covered by this License, on a durable physical
252
+ medium customarily used for software interchange, for a price no
253
+ more than your reasonable cost of physically performing this
254
+ conveying of source, or (2) access to copy the
255
+ Corresponding Source from a network server at no charge.
256
+
257
+ c) Convey individual copies of the object code with a copy of the
258
+ written offer to provide the Corresponding Source. This
259
+ alternative is allowed only occasionally and noncommercially, and
260
+ only if you received the object code with such an offer, in accord
261
+ with subsection 6b.
262
+
263
+ d) Convey the object code by offering access from a designated
264
+ place (gratis or for a charge), and offer equivalent access to the
265
+ Corresponding Source in the same way through the same place at no
266
+ further charge. You need not require recipients to copy the
267
+ Corresponding Source along with the object code. If the place to
268
+ copy the object code is a network server, the Corresponding Source
269
+ may be on a different server (operated by you or a third party)
270
+ that supports equivalent copying facilities, provided you maintain
271
+ clear directions next to the object code saying where to find the
272
+ Corresponding Source. Regardless of what server hosts the
273
+ Corresponding Source, you remain obligated to ensure that it is
274
+ available for as long as needed to satisfy these requirements.
275
+
276
+ e) Convey the object code using peer-to-peer transmission, provided
277
+ you inform other peers where the object code and Corresponding
278
+ Source of the work are being offered to the general public at no
279
+ charge under subsection 6d.
280
+
281
+ A separable portion of the object code, whose source code is excluded
282
+ from the Corresponding Source as a System Library, need not be
283
+ included in conveying the object code work.
284
+
285
+ A "User Product" is either (1) a "consumer product", which means any
286
+ tangible personal property which is normally used for personal, family,
287
+ or household purposes, or (2) anything designed or sold for incorporation
288
+ into a dwelling. In determining whether a product is a consumer product,
289
+ doubtful cases shall be resolved in favor of coverage. For a particular
290
+ product received by a particular user, "normally used" refers to a
291
+ typical or common use of that class of product, regardless of the status
292
+ of the particular user or of the way in which the particular user
293
+ actually uses, or expects or is expected to use, the product. A product
294
+ is a consumer product regardless of whether the product has substantial
295
+ commercial, industrial or non-consumer uses, unless such uses represent
296
+ the only significant mode of use of the product.
297
+
298
+ "Installation Information" for a User Product means any methods,
299
+ procedures, authorization keys, or other information required to install
300
+ and execute modified versions of a covered work in that User Product from
301
+ a modified version of its Corresponding Source. The information must
302
+ suffice to ensure that the continued functioning of the modified object
303
+ code is in no case prevented or interfered with solely because
304
+ modification has been made.
305
+
306
+ If you convey an object code work under this section in, or with, or
307
+ specifically for use in, a User Product, and the conveying occurs as
308
+ part of a transaction in which the right of possession and use of the
309
+ User Product is transferred to the recipient in perpetuity or for a
310
+ fixed term (regardless of how the transaction is characterized), the
311
+ Corresponding Source conveyed under this section must be accompanied
312
+ by the Installation Information. But this requirement does not apply
313
+ if neither you nor any third party retains the ability to install
314
+ modified object code on the User Product (for example, the work has
315
+ been installed in ROM).
316
+
317
+ The requirement to provide Installation Information does not include a
318
+ requirement to continue to provide support service, warranty, or updates
319
+ for a work that has been modified or installed by the recipient, or for
320
+ the User Product in which it has been modified or installed. Access to a
321
+ network may be denied when the modification itself materially and
322
+ adversely affects the operation of the network or violates the rules and
323
+ protocols for communication across the network.
324
+
325
+ Corresponding Source conveyed, and Installation Information provided,
326
+ in accord with this section must be in a format that is publicly
327
+ documented (and with an implementation available to the public in
328
+ source code form), and must require no special password or key for
329
+ unpacking, reading or copying.
330
+
331
+ 7. Additional Terms.
332
+
333
+ "Additional permissions" are terms that supplement the terms of this
334
+ License by making exceptions from one or more of its conditions.
335
+ Additional permissions that are applicable to the entire Program shall
336
+ be treated as though they were included in this License, to the extent
337
+ that they are valid under applicable law. If additional permissions
338
+ apply only to part of the Program, that part may be used separately
339
+ under those permissions, but the entire Program remains governed by
340
+ this License without regard to the additional permissions.
341
+
342
+ When you convey a copy of a covered work, you may at your option
343
+ remove any additional permissions from that copy, or from any part of
344
+ it. (Additional permissions may be written to require their own
345
+ removal in certain cases when you modify the work.) You may place
346
+ additional permissions on material, added by you to a covered work,
347
+ for which you have or can give appropriate copyright permission.
348
+
349
+ Notwithstanding any other provision of this License, for material you
350
+ add to a covered work, you may (if authorized by the copyright holders of
351
+ that material) supplement the terms of this License with terms:
352
+
353
+ a) Disclaiming warranty or limiting liability differently from the
354
+ terms of sections 15 and 16 of this License; or
355
+
356
+ b) Requiring preservation of specified reasonable legal notices or
357
+ author attributions in that material or in the Appropriate Legal
358
+ Notices displayed by works containing it; or
359
+
360
+ c) Prohibiting misrepresentation of the origin of that material, or
361
+ requiring that modified versions of such material be marked in
362
+ reasonable ways as different from the original version; or
363
+
364
+ d) Limiting the use for publicity purposes of names of licensors or
365
+ authors of the material; or
366
+
367
+ e) Declining to grant rights under trademark law for use of some
368
+ trade names, trademarks, or service marks; or
369
+
370
+ f) Requiring indemnification of licensors and authors of that
371
+ material by anyone who conveys the material (or modified versions of
372
+ it) with contractual assumptions of liability to the recipient, for
373
+ any liability that these contractual assumptions directly impose on
374
+ those licensors and authors.
375
+
376
+ All other non-permissive additional terms are considered "further
377
+ restrictions" within the meaning of section 10. If the Program as you
378
+ received it, or any part of it, contains a notice stating that it is
379
+ governed by this License along with a term that is a further
380
+ restriction, you may remove that term. If a license document contains
381
+ a further restriction but permits relicensing or conveying under this
382
+ License, you may add to a covered work material governed by the terms
383
+ of that license document, provided that the further restriction does
384
+ not survive such relicensing or conveying.
385
+
386
+ If you add terms to a covered work in accord with this section, you
387
+ must place, in the relevant source files, a statement of the
388
+ additional terms that apply to those files, or a notice indicating
389
+ where to find the applicable terms.
390
+
391
+ Additional terms, permissive or non-permissive, may be stated in the
392
+ form of a separately written license, or stated as exceptions;
393
+ the above requirements apply either way.
394
+
395
+ 8. Termination.
396
+
397
+ You may not propagate or modify a covered work except as expressly
398
+ provided under this License. Any attempt otherwise to propagate or
399
+ modify it is void, and will automatically terminate your rights under
400
+ this License (including any patent licenses granted under the third
401
+ paragraph of section 11).
402
+
403
+ However, if you cease all violation of this License, then your
404
+ license from a particular copyright holder is reinstated (a)
405
+ provisionally, unless and until the copyright holder explicitly and
406
+ finally terminates your license, and (b) permanently, if the copyright
407
+ holder fails to notify you of the violation by some reasonable means
408
+ prior to 60 days after the cessation.
409
+
410
+ Moreover, your license from a particular copyright holder is
411
+ reinstated permanently if the copyright holder notifies you of the
412
+ violation by some reasonable means, this is the first time you have
413
+ received notice of violation of this License (for any work) from that
414
+ copyright holder, and you cure the violation prior to 30 days after
415
+ your receipt of the notice.
416
+
417
+ Termination of your rights under this section does not terminate the
418
+ licenses of parties who have received copies or rights from you under
419
+ this License. If your rights have been terminated and not permanently
420
+ reinstated, you do not qualify to receive new licenses for the same
421
+ material under section 10.
422
+
423
+ 9. Acceptance Not Required for Having Copies.
424
+
425
+ You are not required to accept this License in order to receive or
426
+ run a copy of the Program. Ancillary propagation of a covered work
427
+ occurring solely as a consequence of using peer-to-peer transmission
428
+ to receive a copy likewise does not require acceptance. However,
429
+ nothing other than this License grants you permission to propagate or
430
+ modify any covered work. These actions infringe copyright if you do
431
+ not accept this License. Therefore, by modifying or propagating a
432
+ covered work, you indicate your acceptance of this License to do so.
433
+
434
+ 10. Automatic Licensing of Downstream Recipients.
435
+
436
+ Each time you convey a covered work, the recipient automatically
437
+ receives a license from the original licensors, to run, modify and
438
+ propagate that work, subject to this License. You are not responsible
439
+ for enforcing compliance by third parties with this License.
440
+
441
+ An "entity transaction" is a transaction transferring control of an
442
+ organization, or substantially all assets of one, or subdividing an
443
+ organization, or merging organizations. If propagation of a covered
444
+ work results from an entity transaction, each party to that
445
+ transaction who receives a copy of the work also receives whatever
446
+ licenses to the work the party's predecessor in interest had or could
447
+ give under the previous paragraph, plus a right to possession of the
448
+ Corresponding Source of the work from the predecessor in interest, if
449
+ the predecessor has it or can get it with reasonable efforts.
450
+
451
+ You may not impose any further restrictions on the exercise of the
452
+ rights granted or affirmed under this License. For example, you may
453
+ not impose a license fee, royalty, or other charge for exercise of
454
+ rights granted under this License, and you may not initiate litigation
455
+ (including a cross-claim or counterclaim in a lawsuit) alleging that
456
+ any patent claim is infringed by making, using, selling, offering for
457
+ sale, or importing the Program or any portion of it.
458
+
459
+ 11. Patents.
460
+
461
+ A "contributor" is a copyright holder who authorizes use under this
462
+ License of the Program or a work on which the Program is based. The
463
+ work thus licensed is called the contributor's "contributor version".
464
+
465
+ A contributor's "essential patent claims" are all patent claims
466
+ owned or controlled by the contributor, whether already acquired or
467
+ hereafter acquired, that would be infringed by some manner, permitted
468
+ by this License, of making, using, or selling its contributor version,
469
+ but do not include claims that would be infringed only as a
470
+ consequence of further modification of the contributor version. For
471
+ purposes of this definition, "control" includes the right to grant
472
+ patent sublicenses in a manner consistent with the requirements of
473
+ this License.
474
+
475
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
476
+ patent license under the contributor's essential patent claims, to
477
+ make, use, sell, offer for sale, import and otherwise run, modify and
478
+ propagate the contents of its contributor version.
479
+
480
+ In the following three paragraphs, a "patent license" is any express
481
+ agreement or commitment, however denominated, not to enforce a patent
482
+ (such as an express permission to practice a patent or covenant not to
483
+ sue for patent infringement). To "grant" such a patent license to a
484
+ party means to make such an agreement or commitment not to enforce a
485
+ patent against the party.
486
+
487
+ If you convey a covered work, knowingly relying on a patent license,
488
+ and the Corresponding Source of the work is not available for anyone
489
+ to copy, free of charge and under the terms of this License, through a
490
+ publicly available network server or other readily accessible means,
491
+ then you must either (1) cause the Corresponding Source to be so
492
+ available, or (2) arrange to deprive yourself of the benefit of the
493
+ patent license for this particular work, or (3) arrange, in a manner
494
+ consistent with the requirements of this License, to extend the patent
495
+ license to downstream recipients. "Knowingly relying" means you have
496
+ actual knowledge that, but for the patent license, your conveying the
497
+ covered work in a country, or your recipient's use of the covered work
498
+ in a country, would infringe one or more identifiable patents in that
499
+ country that you have reason to believe are valid.
500
+
501
+ If, pursuant to or in connection with a single transaction or
502
+ arrangement, you convey, or propagate by procuring conveyance of, a
503
+ covered work, and grant a patent license to some of the parties
504
+ receiving the covered work authorizing them to use, propagate, modify
505
+ or convey a specific copy of the covered work, then the patent license
506
+ you grant is automatically extended to all recipients of the covered
507
+ work and works based on it.
508
+
509
+ A patent license is "discriminatory" if it does not include within
510
+ the scope of its coverage, prohibits the exercise of, or is
511
+ conditioned on the non-exercise of one or more of the rights that are
512
+ specifically granted under this License. You may not convey a covered
513
+ work if you are a party to an arrangement with a third party that is
514
+ in the business of distributing software, under which you make payment
515
+ to the third party based on the extent of your activity of conveying
516
+ the work, and under which the third party grants, to any of the
517
+ parties who would receive the covered work from you, a discriminatory
518
+ patent license (a) in connection with copies of the covered work
519
+ conveyed by you (or copies made from those copies), or (b) primarily
520
+ for and in connection with specific products or compilations that
521
+ contain the covered work, unless you entered into that arrangement,
522
+ or that patent license was granted, prior to 28 March 2007.
523
+
524
+ Nothing in this License shall be construed as excluding or limiting
525
+ any implied license or other defenses to infringement that may
526
+ otherwise be available to you under applicable patent law.
527
+
528
+ 12. No Surrender of Others' Freedom.
529
+
530
+ If conditions are imposed on you (whether by court order, agreement or
531
+ otherwise) that contradict the conditions of this License, they do not
532
+ excuse you from the conditions of this License. If you cannot convey a
533
+ covered work so as to satisfy simultaneously your obligations under this
534
+ License and any other pertinent obligations, then as a consequence you may
535
+ not convey it at all. For example, if you agree to terms that obligate you
536
+ to collect a royalty for further conveying from those to whom you convey
537
+ the Program, the only way you could satisfy both those terms and this
538
+ License would be to refrain entirely from conveying the Program.
539
+
540
+ 13. Remote Network Interaction; Use with the GNU General Public License.
541
+
542
+ Notwithstanding any other provision of this License, if you modify the
543
+ Program, your modified version must prominently offer all users
544
+ interacting with it remotely through a computer network (if your version
545
+ supports such interaction) an opportunity to receive the Corresponding
546
+ Source of your version by providing access to the Corresponding Source
547
+ from a network server at no charge, through some standard or customary
548
+ means of facilitating copying of software. This Corresponding Source
549
+ shall include the Corresponding Source for any work covered by version 3
550
+ of the GNU General Public License that is incorporated pursuant to the
551
+ following paragraph.
552
+
553
+ Notwithstanding any other provision of this License, you have
554
+ permission to link or combine any covered work with a work licensed
555
+ under version 3 of the GNU General Public License into a single
556
+ combined work, and to convey the resulting work. The terms of this
557
+ License will continue to apply to the part which is the covered work,
558
+ but the work with which it is combined will remain governed by version
559
+ 3 of the GNU General Public License.
560
+
561
+ 14. Revised Versions of this License.
562
+
563
+ The Free Software Foundation may publish revised and/or new versions of
564
+ the GNU Affero General Public License from time to time. Such new versions
565
+ will be similar in spirit to the present version, but may differ in detail to
566
+ address new problems or concerns.
567
+
568
+ Each version is given a distinguishing version number. If the
569
+ Program specifies that a certain numbered version of the GNU Affero General
570
+ Public License "or any later version" applies to it, you have the
571
+ option of following the terms and conditions either of that numbered
572
+ version or of any later version published by the Free Software
573
+ Foundation. If the Program does not specify a version number of the
574
+ GNU Affero General Public License, you may choose any version ever published
575
+ by the Free Software Foundation.
576
+
577
+ If the Program specifies that a proxy can decide which future
578
+ versions of the GNU Affero General Public License can be used, that proxy's
579
+ public statement of acceptance of a version permanently authorizes you
580
+ to choose that version for the Program.
581
+
582
+ Later license versions may give you additional or different
583
+ permissions. However, no additional obligations are imposed on any
584
+ author or copyright holder as a result of your choosing to follow a
585
+ later version.
586
+
587
+ 15. Disclaimer of Warranty.
588
+
589
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
590
+ APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
591
+ HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
592
+ OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
593
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
594
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
595
+ IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
596
+ ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
597
+
598
+ 16. Limitation of Liability.
599
+
600
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
601
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
602
+ THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
603
+ GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
604
+ USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
605
+ DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
606
+ PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
607
+ EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
608
+ SUCH DAMAGES.
609
+
610
+ 17. Interpretation of Sections 15 and 16.
611
+
612
+ If the disclaimer of warranty and limitation of liability provided
613
+ above cannot be given local legal effect according to their terms,
614
+ reviewing courts shall apply local law that most closely approximates
615
+ an absolute waiver of all civil liability in connection with the
616
+ Program, unless a warranty or assumption of liability accompanies a
617
+ copy of the Program in return for a fee.
618
+
619
+ END OF TERMS AND CONDITIONS
620
+
621
+ How to Apply These Terms to Your New Programs
622
+
623
+ If you develop a new program, and you want it to be of the greatest
624
+ possible use to the public, the best way to achieve this is to make it
625
+ free software which everyone can redistribute and change under these terms.
626
+
627
+ To do so, attach the following notices to the program. It is safest
628
+ to attach them to the start of each source file to most effectively
629
+ state the exclusion of warranty; and each file should have at least
630
+ the "copyright" line and a pointer to where the full notice is found.
631
+
632
+ <one line to give the program's name and a brief idea of what it does.>
633
+ Copyright (C) <year> <name of author>
634
+
635
+ This program is free software: you can redistribute it and/or modify
636
+ it under the terms of the GNU Affero General Public License as published by
637
+ the Free Software Foundation, either version 3 of the License, or
638
+ (at your option) any later version.
639
+
640
+ This program is distributed in the hope that it will be useful,
641
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
642
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
643
+ GNU Affero General Public License for more details.
644
+
645
+ You should have received a copy of the GNU Affero General Public License
646
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
647
+
648
+ Also add information on how to contact you by electronic and paper mail.
649
+
650
+ If your software can interact with users remotely through a computer
651
+ network, you should also make sure that it provides a way for users to
652
+ get its source. For example, if your program is a web application, its
653
+ interface could display a "Source" link that leads users to an archive
654
+ of the code. There are many ways you could offer source, and different
655
+ solutions will be better for different programs; see section 13 for the
656
+ specific requirements.
657
+
658
+ You should also get your employer (if you work as a programmer) or school,
659
+ if any, to sign a "copyright disclaimer" for the program, if necessary.
660
+ For more information on this, and how to apply and follow the GNU AGPL, see
661
+ <https://www.gnu.org/licenses/>.
ASSETS.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 素材來源與重用方式
2
+
3
+ 本作依 Kyrodian Legends Public License 1.0 使用下列 Kyrodian Legends 素材。原作由 Kelvin Shadewing 與各素材貢獻者共同創作。
4
+
5
+ | 本 Space 檔案 | 上游素材 | 用途 | 隨附的可編輯來源 |
6
+ |---|---|---|---|
7
+ | [`assets/klc/midi-ow.png`](assets/klc/midi-ow.png) | `game/res/klc/midi-ow.png` | 玩家角色 | [`assets/klc/midi-ow.ase`](assets/klc/midi-ow.ase);對應的精靈圖 Aseprite 原始檔 |
8
+ | [`assets/klc/pillbug.png`](assets/klc/pillbug.png) | `game/res/klc/pillbug.png` | 森林敵人 | [`assets/klc/pillbug.ase`](assets/klc/pillbug.ase) |
9
+ | [`assets/klc/ts-grass.png`](assets/klc/ts-grass.png) | `game/res/gfx/ts-grass.png` | 地圖上的小花 | PNG 本身是個別可重用素材;上游沒有發佈與此 tileset 對應的 Aseprite 原始檔 |
10
+
11
+ 角色與敵人精靈以獨立 PNG atlas 載入,程式只選取其中的動畫影格;草地圖塊則只使用可分離的小花影格。上游發佈的 `midiO.ase` 作為 Midi 精靈圖的可編輯來源一併提供,Pillbug 素材亦附原始 `.ase` 檔。Kyrodian Legends 沒有發佈 `ts-grass.png` 對應的 `.ase` 檔,因此只提供上游 PNG,**不會將不同素材的 `.ase` 偽稱為其原始檔**。不論是單張 PNG 或 Aseprite 原始檔,皆可直接下載與重用,無須依賴本遊戲程式。
12
+
13
+ - 原始專案:[github.com/KelvinShadewing/KyrodianLegends](https://github.com/KelvinShadewing/KyrodianLegends)
14
+ - 美術作者與貢獻者名單:上游 [`game/CREDITS.md`](https://github.com/KelvinShadewing/KyrodianLegends/blob/main/game/CREDITS.md)
15
+ - Kyrodian Legends 作者網站:[kyrodianlegends.com](https://kyrodianlegends.com/)
16
+ - Kyrodian Legends Public License:[KLPL.md](KLPL.md)
17
+ - 遊戲程式:GNU AGPL-3.0-or-later;使用 Kyrodian Legends 人物、怪物與敘事的衍生遊戲及相關新內容:KLPL 1.0。見 [`README.md`](README.md)、[`KLPL.md`](KLPL.md) 與 [`AGPL-3.0.txt`](AGPL-3.0.txt)。
18
+
19
+ 本作是獨立創作,不是官方作品,也未獲 Kelvin Shadewing、Kyrodian Legends 專案或其他貢獻者認可或背書。
KLPL.md ADDED
@@ -0,0 +1,488 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Kyrodian Legends Public License 1.0
2
+
3
+ The characters, settings, and other content specific to Kyrodian Legends (“KLC”) are licensed under the terms of This License.
4
+
5
+ All rights expressly granted under This License are conditioned upon compliance with its terms. This License governs only copyright and related rights in KLC and does not grant any rights in trademarks, publicity rights, or other legal interests except as expressly stated. Use of names, titles, or marks confusingly similar to Kyrodian Legends in a manner likely to cause consumer confusion is not permitted. For permitted uses, see the Kyrodian Legends Trademark Policy.
6
+
7
+ Nothing in This License restricts rights granted by applicable law, including fair use, fair dealing, or similar doctrines. This License shall be interpreted in a manner consistent with international copyright conventions, including, without limitation, the Berne Convention.
8
+
9
+ The Copyright Holders may publish revised versions of This License. You may use, reproduce, and Distribute KLC under the version under which you received it or any later version published by the Copyright Holders that does not reduce the freedoms granted under This License.
10
+
11
+ Subject to the terms and conditions of This License, each recipient is granted a worldwide, royalty-free, non-exclusive license, directly from the Copyright Holders, to reproduce, Distribute, publicly perform, publicly display, and create derivative works of KLC.
12
+
13
+ Nothing in This License shall be construed to grant any person or group the legal authority, by virtue of copyright in KLC, to impose creative restrictions, consistency requirements, or approval processes on other users of KLC.
14
+
15
+ **Governing Law**
16
+
17
+ To the extent permitted by applicable law, This License shall be governed by and interpreted in accordance with the laws of [Jurisdiction], without regard to conflict of law principles.
18
+
19
+ ----
20
+
21
+ ## Preamble
22
+
23
+ This Preamble explains the purpose and interpretive intent of the Kyrodian Legends Public License (KLPL). It does not create additional rights or obligations beyond the operative terms of This License.
24
+
25
+ Historically, stories functioned as shared cultural inheritance, evolving through collective retelling and reinterpretation. Modern copyright law enables exclusive control over fictional worlds, which can incentivize creation but also restrict the ability of works to evolve through broader participation.
26
+
27
+ The KLPL is designed to preserve Kyrodian Legends as a living body of work that may be freely used, adapted, and extended. It permits commercial use and does not seek to restrict profit, but ensures that such use does not depend on withholding KLC from downstream reuse.
28
+
29
+ Accordingly, This License applies copyleft obligations to KLC and to derivative works of KLC, ensuring that additions remain available to future participants. At the same time, it does not extend those obligations to independent works that incorporate KLC as a separable component, provided the conditions of separability defined in This License are satisfied.
30
+
31
+ The objective of the KLPL is to support an open, continuous creative ecosystem in which contributors may extend and reinterpret a shared world without exclusive control over its future development. The License is intended to prevent forms of distribution, integration, or presentation that, in practice, limit meaningful downstream reuse of KLC or concentrate control over its continued development.
32
+
33
+ No derivative work may present itself as the primary or definitive continuation of KLC in a manner that obscures its open and collaborative nature.
34
+
35
+ ----
36
+
37
+ ## 0. Definitions
38
+
39
+ 0. **“KLC”**
40
+
41
+ All copyrighted expressive content first published by the Kyrodian Legends project under This License, including characters, character designs, settings, species, lore, artwork, dialogue, and music, to the extent such material is owned or licensable by the contributors releasing it. Once released as KLC, content remains KLC regardless of later revision or removal.
42
+
43
+ 1. **“Crossover Work”**
44
+
45
+ A creative work or software that combines KLC with non-KLC expressive elements.
46
+
47
+ 2. **“Substantive Part”** or **“Substantive Expressive Component”**
48
+
49
+ “Substantive Part” means use of KLC that materially contributes to the work’s expressive content, identity, or user experience.
50
+
51
+ Use is presumed Substantive where KLC appears in characters, settings, narrative, visual identity, or marketing. This presumption may be rebutted only where the use is clearly incidental or decorative.
52
+
53
+ Substantive use shall be determined based on the work as a whole and may not be avoided through technical, structural, or labeling choices.
54
+
55
+ Use shall be considered Substantive where removal of KLC would materially alter the identity, presentation, or user experience of the work.
56
+
57
+ 3. **“Separability”**, **“Separable”** and **"Practically Reusable"**
58
+
59
+ "Separable" means that KLC is provided in a form that allows a typical contributor, using commonly available tools, to identify, extract, modify, and reuse the KLC independently of non-KLC content. Typical contributor refers to a person with skills and tools commonly used in the relevant field, excluding specialized or proprietary systems not generally accessible.
60
+
61
+ This requirement is satisfied only where:
62
+
63
+ (a) KLC can be accessed and extracted without requiring permission to use non-KLC material, and without requiring reverse engineering, decompilation, or circumvention of protective measures applied to non-KLC content, except to the limited extent such actions are otherwise permitted by applicable law;
64
+
65
+ (b) KLC is provided in a form that is reasonably suitable for modification, consistent with ordinary professional or community standards, and not intentionally degraded, flattened, compiled, or obfuscated where editable source materials exist; and
66
+
67
+ (c) the structure, packaging, or integration of the work does not impose artificial, unnecessary, or intentional barriers that materially impede the practical extraction, modification, or reuse of KLC.
68
+
69
+ "Practically Reusable" shall be evaluated based on whether a typical contributor can, in practice, exercise the rights granted under This License without undue burden, cost, or technical effort beyond what is typical for similar works in the relevant field.
70
+
71
+ This requirement does not require that any remaining non-KLC work retain functionality, completeness, or value after removal of KLC.
72
+
73
+ A work shall be considered “Separable” for purposes of This License where its KLC components satisfy this definition.
74
+
75
+ 4. **"Distribution”** or **“Distributed”**
76
+
77
+ Means any public release, sale, license, display, performance, or provision of access to a work or software, whether free or paid, permanent or temporary, including online publication, physical sale, or public exhibition.
78
+
79
+ 5. **“Cure”** or **“Curing Noncompliance”**
80
+
81
+ Means taking reasonable steps, as soon as practicable after Notice or discovery, to bring a work or software into full compliance with the requirements of This License.
82
+
83
+ 6. **“Derivative of KLC”**
84
+
85
+ A work is Derivative of KLC if it incorporates or is based on protected expressive elements of KLC in a manner that would constitute a derivative work under applicable copyright law.
86
+
87
+ A work does not avoid being derivative solely by renaming elements or making minor or superficial changes where a reasonable observer would recognize the work as based on KLC.
88
+
89
+ Mere inspiration, genre similarity, or use of unprotectable ideas does not create a derivative work.
90
+
91
+ 7. **“Copyright Holder(s) of KLC”**
92
+
93
+ The original creator of Kyrodian Legends and any contributors who hold copyright in KLC released under This License. By contributing KLC, contributors agree to license their contributions under This License.
94
+
95
+ 8. **“Notice”**
96
+
97
+ Means a communication that reasonably informs a distributor that a work incorporates KLC and is subject to This License. Notice may be provided through public communication channels, including but not limited to direct message, email, issue tracker, website comment, or public discussion where the distributor can reasonably be expected to become aware of the communication.
98
+
99
+ 9. **"This License"**
100
+
101
+ The Kyrodian Legends Public License, including all sections of its operative terms.
102
+
103
+ 10. **“Reproducible Expression Materials (REM)”**
104
+
105
+ Means the minimum set of materials, in any form or combination of forms, that are sufficient to enable a typical contributor, using commonly available tools, to identify, reproduce, modify, and reuse the protected expressive elements of KLC contained in a work without requiring access to the original Distributed work.
106
+
107
+ REM may include, as appropriate to the medium, textual descriptions, visual references, structured data, schematics, or other representations that capture the protected expressive elements of KLC in a form suitable for reuse.
108
+
109
+ REM are limited to what is necessary to reproduce and modify the expressive elements of KLC, and do not require disclosure of unrelated non-KLC material, proprietary systems, or internal processes.
110
+
111
+ Where such materials exist, REM shall include editable source files sufficient to reproduce, modify, or extract KLC components (e.g., layered artwork files, vector illustrations, 3D models, molds, blueprints, layout files, or project files), and shall not be limited to merely exported or flattened versions such as PDFs, JPEGs, or PNGs.
112
+
113
+ Where a distributor has created or used editable source materials in the production of a work, such materials shall be deemed to exist for purposes of this definition where they are reasonably recoverable or reconstructable using materials under the distributor’s control. Reasonably equivalent materials must preserve the practical ability to identify, modify, and reuse KLC to a degree substantially comparable to the original editable materials, and shall not materially degrade editability, fidelity, or reuse.
114
+
115
+ Distributors may not avoid this requirement by failing to retain such materials, and, where disputed, must be able to demonstrate that such materials are not reasonably recoverable or reconstructable.
116
+
117
+ ----
118
+
119
+ ## 1. Terms of Use
120
+
121
+ 0. **Attribution and Origin**
122
+
123
+ The origin of KLC must not be misrepresented and must be attributed properly. Credit must be given to the Copyright Holders of KLC for creation of KLC and, where practical, must include a link to kyrodianlegends.com.
124
+
125
+ All attributions for KLC must be provided in a reasonably prominent and accessible manner, such that their source and authorship can be clearly understood by recipients, taking into account the practical limitations of the medium or platform used.
126
+
127
+ 1. **Copyleft for Creative Works**
128
+
129
+ Any Derivative of KLC must be licensed under This License.
130
+
131
+ You may not apply legal terms, technological measures, or other restrictions that limit the exercise of the rights granted under This License with respect to KLC or Derivatives of KLC.
132
+
133
+ In the case of a Crossover Work, clause 1.2 controls the scope of this copyleft requirement.
134
+
135
+ For the avoidance of doubt, this requirement does not apply to works that are merely inspired by Kyrodian Legends, that do not incorporate any identifiable Kyrodian Legends characters, settings, or protected expressive elements.
136
+
137
+ Any new characters, species, locations, factions, or narrative elements introduced in a work that is Derivative of KLC and that build upon or extend the Kyrodian Legends setting shall be licensed as KLC under This License.
138
+
139
+ Any person or entity that Distributes a work containing KLC bears responsibility for ensuring compliance with This License, regardless of whether KLC was incorporated directly or through third parties, contractors, or upstream suppliers.
140
+
141
+ 2. **Crossover Scope Limitation**
142
+
143
+ In the case of a Crossover Work, the copyleft requirements of This License apply only to KLC and to any modifications, adaptations, or derivative works of KLC.
144
+
145
+ Independent characters, settings, narratives, code, or other expressive elements that are not derived from Kyrodian Legends are not subject to the copyleft requirements of This License, provided they remain Separable and are not themselves derivative of KLC.
146
+
147
+ 3. **Separability Requirement and Structural Responsibility**
148
+
149
+ KLC must be provided as REM at the time of Distribution or as part of the same release process, and such REM must satisfy the requirements of Section 0.3 (Separability and Practical Reusability).
150
+
151
+ Where KLC is Distributed in a compiled, packaged, or access-controlled form, the distributor must also provide the KLC in a separate form suitable for modification.
152
+
153
+ REM must be provided in a manner that is reasonably accessible to recipients at the time of Distribution, including through a stable and publicly available location.
154
+
155
+ 4. **Copyleft for Software**
156
+
157
+ Software that incorporates KLC or Derivatives of KLC as part of its functionality or core user experience, as determined by its actual operation and presentation to users, in a manner where KLC is not separate, optional, and Separable shall be licensed under the GNU Affero General Public License v3 or later, or under a license that provides equivalent or greater copyleft protections, including network interaction requirements, to the KLC components.
158
+
159
+ This applies where KLC is included, embedded, or otherwise made available as part of the software’s intended operation.
160
+
161
+ KLC shall be considered included as part of the software where it is automatically retrieved, installed, or enabled as part of the default initialization or first-run experience, including where such behavior is presented as recommended, guided, or prominently suggested to the user.
162
+
163
+ Content shall be considered prominently suggested where it is presented as a default, recommended, featured, guided, or primary option during onboarding or initial use as reasonably perceived by an ordinary user.
164
+
165
+ This requirement does not apply to:
166
+ (a) general-purpose software that merely processes user-supplied content;
167
+ (b) software that Distributes KLC separately as a Separable work and does not depend on it.
168
+
169
+ These exceptions do not apply where, in substance, the software and KLC form an integrated product or where KLC constitutes a Substantive Part of the overall experience.
170
+
171
+ Software may include integrated systems for discovering, downloading, installing, or managing KLC (including add-on browsers, package managers, or similar Distribution mechanisms), provided that:
172
+
173
+ (i) KLC is not included by default in the software Distribution;
174
+
175
+ (ii) the software remains meaningfully functional without KLC;
176
+
177
+ (iii) KLC is made available as a Separable work in accordance with Section 0.3; and
178
+
179
+ (iv) KLC is not given preferential or materially favorable technical, functional, or promotional treatment that would cause it to constitute a Substantive Part of the software’s default user experience, including prioritization, highlighting, or default prominence in discovery interfaces.
180
+
181
+ Such systems do not, by themselves, cause the software to be subject to the requirements of this Section.
182
+
183
+ Ordinary use shall be evaluated based on the typical user experience as presented by the distributor.
184
+
185
+ Meaningfully functional means that the software can be used for its primary intended purposes as presented to users, without reliance on KLC.
186
+
187
+ In determining whether KLC is a separate and optional component, consideration shall be given to the overall design and presentation of the software, including whether KLC is functionally required, preloaded, prominently featured, or presented as a primary or expected component of the user experience.
188
+
189
+ Formal separation shall not control where the practical effect is integration.
190
+
191
+ Distribution of KLC and software through coordinated, bundled, or jointly marketed channels may be considered in determining whether, in substance, they form an integrated product.
192
+
193
+ Distribution, marketing, or technical design strategies that have the effect of making KLC a practical requirement for ordinary use shall be considered evidence that KLC constitutes a Substantive Part of the software, including official documentation, onboarding materials, or ecosystem guidance.
194
+
195
+ Software shall be considered dependent on KLC where, in practice, ordinary use, learning, or development workflows materially rely on KLC.
196
+
197
+ These factors shall be considered collectively in determining whether KLC forms a Substantive Part of the software.
198
+
199
+ 5. **Technological Protection Measures**
200
+
201
+ You may not impose legal or technical restrictions on KLC that limit the rights granted under This License. If Distribution occurs through a platform that does so, you must provide KLC separately in a manner that permits full exercise of those rights.
202
+
203
+ 6. **Physical Merchandise Conditions**
204
+
205
+ Distributors of physical merchandise incorporating KLC must provide the corresponding Reproducible Materials for the KLC components. This requirement applies only to KLC and does not require disclosure of unrelated proprietary materials. It does not apply where no such materials exist and no deliberate steps were taken to avoid retaining them.
206
+
207
+ 7. **Network Interaction Disclosure**
208
+
209
+ If a work that is Derivative of KLC is made available for public interaction through a network service in a manner that allows members of the public to experience or interact with the expressive elements of that work, the operator of that service must provide access to the KLC components in REM, satisfying Section 0.3.
210
+
211
+ 8. **Non-Association Disclaimer**
212
+
213
+ You must make clear that any views expressed in your work are your own interpretation and are not necessarily the views of the official Kyrodian Legends publications or of other contributors.
214
+
215
+ Narrative works must include a disclaimer indicating that your story is not officially associated with the Kyrodian Legends project or its creators. (e.g., "This publication is not approved by or associated with Kelvin Shadewing.")
216
+
217
+ No derivative work may claim or imply that it represents the official direction, continuation, canon, or authoritative version of the Kyrodian Legends project unless explicitly authorized by the Copyright Holders of KLC.
218
+
219
+ No work may be presented, described or marketed in a manner that reasonably implies it is the primary, definitive, or authoritative continuation of KLC as a whole.
220
+
221
+ 9. **No Warranty**
222
+
223
+ KLC is provided “as-is,” without warranty of any kind. The Copyright Holders disclaim all warranties and shall not be liable for any damages arising from the use of KLC, including in commercial or derivative works.
224
+
225
+ 10. **Advertising and Promotional Use**
226
+
227
+ Nothing in This License grants permission to use the Kyrodian Legends name, logo, or marks in advertising or promotion except to describe a work that incorporates KLC.
228
+
229
+ KLC may not be used in advertising unless the advertised work itself incorporates KLC.
230
+
231
+ 11. **Community Documentation (Advisory)**
232
+
233
+ Contributors are encouraged to document new characters, species, locations, factions, or narrative elements derived from KLC that appear as a Substantive Part of a publicly Distributed work. Documentation may include textual descriptions, visual references, structural diagrams, or other representations that enable a typical contributor to understand, recreate, or reuse the derived elements.
234
+
235
+ Where multiple descriptions of the same derived element exist, contributors may reinterpret or extend the element, but no contributor may claim exclusive authority over its definition. Earlier published descriptions remain valid references for reuse unless explicitly superseded within a derivative work.
236
+
237
+ Contributors are encouraged to include machine-readable metadata describing derived elements, including identifiers, authorship, and source information, in commonly used structured formats. Documentation that includes textual, visual, or structural representations and a stable URL or repository entry is especially helpful for community reuse.
238
+
239
+ Where multiple interpretations of a character, setting, or event exist, contributors are encouraged to treat such variations as parallel or alternative continuities rather than resolving them into a single canonical version.
240
+
241
+ Multiple, conflicting, or incompatible interpretations of KLC are expected and permitted. No interpretation shall be treated as inherently more valid than others by virtue of popularity, coordination, or community endorsement.
242
+
243
+ Nothing in This License shall be construed to grant any person or group the legal authority, by virtue of copyright in KLC, to impose creative restrictions, consistency requirements, or approval processes on other users of KLC.
244
+
245
+ 12. **Evidentiary Standards for Compliance**
246
+
247
+ Compliance shall be evaluated based on whether recipients can practically exercise the rights granted under This License, including whether the requirements of Section 0.3 are satisfied in practice.
248
+
249
+ 13. **Moral Rights Containment and Non-Assertion**
250
+
251
+ To the extent permitted by law, contributors agree not to assert moral rights in a manner that interferes with the rights granted under This License.
252
+
253
+ Moral rights may be asserted only where required by law and only to prevent substantial harm to the author’s honor or reputation.
254
+
255
+ 14. **Official Reference Materials (Non-Binding)**
256
+
257
+ The Copyright Holders may publish official Kyrodian Legends materials, including on an official website, that present a coherent interpretation of the setting (the “Reference Continuity”).
258
+
259
+ The Reference Continuity is provided as a convenient starting point for creators and as an example of how KLC may be used. It does not define an official canon, and it does not limit the ability of others to create, reinterpret, modify, or contradict any aspect of KLC.
260
+
261
+ No work is required to be consistent with the Reference Continuity, and consistency or inconsistency with it shall not be used to determine the validity, quality, or legitimacy of any work under this License.
262
+
263
+ Use of the Reference Continuity does not confer authority over other works, and alternative or conflicting continuities are equally permitted.
264
+
265
+ The Reference Continuity may be made available through an official website designated by the Copyright Holders.
266
+
267
+ Official materials published by the original creators are one possible continuity among many and are not privileged over other interpretations.
268
+
269
+ 15. **Use of This License by Independent Works**
270
+
271
+ This License may be adopted, without modification to its operative terms, to license original works that do not incorporate Kyrodian Legends Content (“KLC”).
272
+
273
+ In such cases:
274
+
275
+ * References to “KLC” shall be construed as referring to the adopting work’s own designated licensed content.
276
+
277
+ * Such content does not constitute KLC and does not grant any rights in Kyrodian Legends or its Marks.
278
+
279
+ * Use of This License must not imply affiliation with or endorsement by the Kyrodian Legends project.
280
+
281
+ * Use of “Kyrodian Legends” or associated Marks remains governed exclusively by the Kyrodian Legends Trademark Policy.
282
+
283
+ * The adopting licensor must clearly identify the work or project to which this License applies.
284
+
285
+ * Modified versions of this License may not be represented as the Kyrodian Legends Public License.
286
+
287
+ 16. **Interoperability with Independently Licensed Works**
288
+
289
+ Where a work combines KLC with content licensed under this License by an independent project (“External KLPL Content”), the work shall be treated as a Crossover Work.
290
+
291
+ Copyleft applies independently to KLC and to External KLPL Content. Neither shall be reclassified as the other.
292
+
293
+ Inclusion of KLC does not grant rights in External KLPL Content, and vice versa.
294
+
295
+ New elements that combine both (“Crossover Elements”) shall be licensed under This License and must be Practically Reusable consistent with Section 0.3.
296
+
297
+ Attribution must clearly identify the respective originating projects.
298
+
299
+ Inclusion in a Crossover Work does not create a shared canon or unified setting.
300
+
301
+ 17. **Legacy Licensing**
302
+
303
+ KLC may have previously been distributed under other licenses, including Creative Commons Attribution-ShareAlike (CC-BY-SA). Those licenses remain fully in effect for copies received under their terms.
304
+
305
+ Where KLC is also made available under the KLPL, it is offered under an additional, independent license. You may choose to use, modify, and distribute that KLC under the KLPL instead of any prior license—but you may not alter the terms of copies you received under prior licenses.
306
+
307
+ Derivative works created under a prior license remain subject to that license. To distribute under the KLPL, you must rely on KLC designated as KLPL-licensed.
308
+
309
+ No downstream recipient may remove or alter the terms of any prior license; any such attempt is void and without legal effect.
310
+
311
+ Independent reimplementations that do not incorporate protected expressive elements of prior works are not considered derivatives and may be licensed independently.
312
+
313
+ ----
314
+
315
+ ## 2. Violations and Community Enforcement
316
+
317
+ 0. **Enforcement of Rights**
318
+
319
+ Failure to comply with the terms of This License results in termination of rights under This License and may constitute copyright infringement. Legal enforcement of rights in KLC may be pursued by any copyright holder whose copyrighted KLC material is infringed. Rights under This License terminate automatically upon violation and are reinstated automatically upon Cure. Sections relating to attribution, disclaimers, trademark limitations, and downstream licensing survive termination of This License.
320
+
321
+ Termination affects only the party in violation and does not revoke or invalidate rights previously granted to persons who received KLC or derivative works in good faith while the distributor was in compliance or appeared to be in compliance with This License.
322
+
323
+ 1. **Community Role (Advisory)**
324
+
325
+ The community is encouraged to maintain compliance by:
326
+
327
+ * Reporting violations of attribution, licensing, or labeling;
328
+ * Providing guidance or corrections to improperly licensed works;
329
+ * Sharing corrected or properly attributed versions of derivative works.
330
+
331
+ Community members do not gain copyright ownership over KLC by assisting with enforcement, and may not use This License to assert control over works beyond the scope of KLC.
332
+
333
+ 2. **Corrective ReDistribution**
334
+
335
+ If a derivative work incorporating KLC is Distributed but fails to comply with This License due to missing or incorrect attribution, improper licensing, or failure to clearly mark KLC, any person may redistribute a corrected version under the terms of This License, provided that:
336
+
337
+ * Credit is given to the original contributor(s) of the derivative work;
338
+ * Credit to the original creators of KLC and contributors is preserved;
339
+ * The KLC content is not misrepresented as being created by the redistributor.
340
+
341
+ 3. **Community Right to Cure Noncompliance**
342
+
343
+ If a work or software is publicly Distributed and includes KLC, but the distributor fails to comply with the requirements of This License at the time of Distribution, recipients may exercise the rights granted under This License to reproduce and redistribute KLC in order to restore compliance.
344
+
345
+ Such actions may include:
346
+
347
+ * Extracting, reproducing, or reconstructing KLC and KLC-related assets from lawfully obtained copies of the Distributed work;
348
+
349
+ * Separating KLC from non-KLC content where technically feasible;
350
+
351
+ * Redistributing the extracted or corrected KLC under the terms of This License;
352
+
353
+ * Providing or supplementing missing attribution or License Notices.
354
+
355
+ This permission applies only to KLC and derivative works thereof and does not grant rights in non-KLC material. Actions taken under this clause must be proportional and strictly limited to curing noncompliance. Where reasonably practicable, Notice should be provided prior to corrective action, but failure to provide such Notice does not invalidate otherwise lawful corrective actions under this Section.
356
+
357
+ Actions taken under this Section must be performed solely from lawfully obtained copies of the Distributed work and in good faith for the purpose of curing noncompliance with This License.
358
+
359
+ To the fullest extent permitted by applicable law, no person shall be liable for actions taken in good faith under this Section that are strictly limited to what is reasonably necessary to effect such cure, including acts that are incidental to accessing or extracting KLC where such access is otherwise lawful under This License.
360
+
361
+ This Section does not authorize the extraction, access, or reDistribution of non-KLC materials, and does not permit circumvention of applicable laws governing technological protection measures except to the limited extent that such circumvention is expressly permitted by law.
362
+
363
+ If and when the original distributor brings the work into full compliance with This License, this conditional permission does not retroactively invalidate lawful corrective actions already taken, but does not authorize further extraction or reDistribution beyond what is otherwise permitted.
364
+
365
+ 4. **Severability**
366
+
367
+ This License shall be interpreted to preserve the maximum enforceability of its terms consistent with applicable law. If any provision of This License is held unenforceable, the remaining provisions shall remain in effect. Failure to enforce any provision shall not constitute a waiver.
368
+
369
+ 5. **Non-Expansion**
370
+
371
+ This License governs only KLC and its derivative works. Independent works, communities, or other non-KLC material are not affected, except to the minimum extent necessary to enforce the copyright conditions expressly stated herein.
372
+
373
+ Nothing in this License grants anyone the authority to control, approve, or dictate the creative content, direction, or “canon” of KLC. No system of editorial control, gatekeeping, or approval is created or recognized.
374
+
375
+ Works that merely aggregate, bundle, or interact with KLC remain outside the obligations of this License unless doing so would be strictly necessary to prevent circumvention.
376
+
377
+ Any provision interpreted to exceed the scope of applicable copyright law shall be enforced only to the maximum extent permitted. All other provisions remain fully effective.
378
+
379
+ This Section is intended to be read in conjunction with:
380
+ * Section 0.2 (Derivative of KLC)
381
+ * Section 0.3 (Substantive Part / Separability)
382
+ * Section 1.2 (Crossover Scope Limitation)
383
+
384
+ 6. **Community Cure Limitation and Non-Agency**
385
+
386
+ Persons acting to cure noncompliance do so independently and are not agents of the Copyright Holders.
387
+
388
+ 7. **Retaliatory Assertion of Rights**
389
+
390
+ If you assert legal claims in a manner that restricts the rights granted under This License with respect to KLC, your rights under This License terminate automatically.
391
+
392
+ Rights are reinstated if the claim is withdrawn or resolved without restricting those rights and any resulting noncompliance is cured.
393
+
394
+ ----
395
+
396
+ ## 3. Illustrative Examples (Non-Binding Guidance)
397
+
398
+ The following examples illustrate the intended operation and scope of This License. They do not create independent legal obligations, but are intended to guide interpretation of the operative provisions.
399
+
400
+ In the event of ambiguity or dispute, these examples shall be considered persuasive evidence of the intent of the Copyright Holders and the structure of This License. Interpretations consistent with these examples, where aligned with the operative provisions, shall be preferred over interpretations that expand the scope of copyleft beyond that reasonably implied by their respective Sections.
401
+
402
+ 1. **Copyleft for Software (ref. 1.4)**
403
+
404
+ Example: A game engine includes a built-in content browser that allows users to download and install optional content, including KLC. The engine is meaningfully functional without KLC, and no KLC is included by default.
405
+
406
+ In this case, the engine does not incorporate KLC, even if it is designed to support such content, provides integrated download features, or commonly operates with KLC installed.
407
+
408
+ This does not apply where the software is, in substance, incomplete or commercially impractical without KLC, or where KLC forms a Substantive Part of the overall product experience.
409
+
410
+ ----
411
+
412
+ ## Appendix A: Philosophy of the Kyrodian Legends Public License (Non-Binding)
413
+
414
+ This Appendix explains the principles underlying the Kyrodian Legends Public License (KLPL). It is provided for guidance and shared understanding. It does not create additional legal obligations beyond the operative terms of this License.
415
+
416
+ 0. **A Shared World, Not a Controlled One**
417
+
418
+ Kyrodian Legends is intended to function as a shared creative space rather than a centrally directed property. Anyone may contribute to it, reinterpret it, or take it in new directions.
419
+
420
+ No person, group, or institution has exclusive authority over the future of the setting.
421
+
422
+ 1. **No Single Canon**
423
+
424
+ There is no single, official, or definitive version of Kyrodian Legends.
425
+
426
+ Different works may present conflicting interpretations of characters, events, or settings. These differences are expected and are a natural result of an open creative system.
427
+
428
+ Participants are free to follow, ignore, combine, or reinterpret any existing material.
429
+
430
+ 2. **Freedom Requires Reusability**
431
+
432
+ The ability to reuse, modify, and build upon KLC is the foundation of this system.
433
+
434
+ Works should be shared in a way that allows others to meaningfully engage with and extend them. Barriers, whether technical, structural, or practical, that prevent reuse undermine the purpose of the License.
435
+
436
+ 3. **No Gatekeepers**
437
+
438
+ Communities may form, collaborate, and develop shared preferences or guidelines. However, no individual or group may claim the authority to approve, reject, or control what constitutes a valid Kyrodian Legends work.
439
+
440
+ Guidelines are tools for coordination, not mechanisms of control.
441
+
442
+ 4. **Attribution Without Authority**
443
+
444
+ Credit is required so that contributions can be recognized and traced. Attribution supports continuity and collaboration.
445
+
446
+ However, attribution does not imply control. Being the creator of a work does not grant authority over how others may interpret or build upon it.
447
+
448
+ 5. **Clarity Without Confusion**
449
+
450
+ The Kyrodian Legends name and identity exist to help people understand what a work is and where it comes from.
451
+
452
+ Creators should present their work clearly as independent contributions. Audiences should not be misled into believing that any work represents an official or exclusive continuation of the setting.
453
+
454
+ 6. **Many Paths Forward**
455
+
456
+ Kyrodian Legends is not a single timeline moving in one direction. It is a network of possibilities.
457
+
458
+ Different creators may take the world in different directions at the same time. These paths may overlap, diverge, or contradict one another.
459
+
460
+ This multiplicity is not a problem to be resolved, but a feature of the system.
461
+
462
+ 7. **Continuity Through Participation**
463
+
464
+ The long-term continuity of Kyrodian Legends does not depend on any single creator or group. It depends on ongoing participation.
465
+
466
+ By contributing, adapting, and reinterpreting the setting, participants collectively ensure that it remains active, evolving, and accessible.
467
+
468
+ 8. **Open by Design**
469
+
470
+ The KLPL is designed to prevent both legal and practical barriers to reuse, and to discourage the emergence of centralized control through branding, distribution, or community structures.
471
+
472
+ Where questions arise, interpretations that preserve openness, reuse, and plurality should be preferred over those that enable control, restriction, or exclusivity.
473
+
474
+ 9. **A Living System**
475
+
476
+ Kyrodian Legends is intended to evolve over time through use.
477
+
478
+ Its meaning, structure, and direction are not fixed. They emerge from the collective activity of those who engage with it.
479
+
480
+ No single contribution defines the whole.
481
+
482
+ ----
483
+
484
+ ## Closing Note
485
+
486
+ This License provides the legal framework for sharing Kyrodian Legends. This Appendix expresses the spirit in which that framework is intended to operate.
487
+
488
+ Participants are encouraged to act in ways that support an open, collaborative, and continuously evolving creative ecosystem.
README.md CHANGED
@@ -1,10 +1,29 @@
1
  ---
2
- title: Rpg1
3
- emoji: 📚
4
- colorFrom: yellow
5
  colorTo: purple
6
  sdk: static
 
7
  pinned: false
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ title: Kyrodian Legends — 星火之森
3
+ emoji: 🗡️
4
+ colorFrom: green
5
  colorTo: purple
6
  sdk: static
7
+ license: other
8
  pinned: false
9
  ---
10
 
11
+ # 星火之森
12
+
13
+ 一款以《薩爾達傳說》初代俯視角冒險為靈感、使用原生 HTML Canvas 製作的瀏覽器像素 RPG。走過草地、擊退 Pillbug、收集星火碎片,打開北方神殿並挑戰魔王。
14
+
15
+ ## 操作
16
+
17
+ - 移動:方向鍵或 WASD
18
+ - 揮劍:Z、空白鍵或 Enter
19
+ - 手機/平板:使用畫面下方方向鍵與劍按鈕
20
+
21
+ ## 素材與授權
22
+
23
+ 由於 Midi、Pillbug 及其遊戲敘事構成遊戲體驗的一部分,本遊戲作為 Kyrodian Legends 衍生遊戲,依 [Kyrodian Legends Public License 1.0](KLPL.md) 發行;原創程式碼則以 GNU AGPL v3-or-later 授權,詳見 [`AGPL-3.0.txt`](AGPL-3.0.txt)。個別上游遊戲素材亦作為可分離的素材提供。原始 PNG 與可用的 Aseprite `.ase` 來源一併收錄在 [`assets/klc/`](assets/klc/),可獨立擷取、修改與重用。各素材的上游路徑、用途及作者資訊見 [`ASSETS.md`](ASSETS.md)。
24
+
25
+ - Kyrodian Legends 角色 Midi 與相關精靈圖作者:Kelvin Shadewing;素材貢獻者及完整原始著作權聲明見 [`game/CREDITS.md`](https://github.com/KelvinShadewing/KyrodianLegends/blob/main/game/CREDITS.md)。
26
+ - 專案與素材來源:[github.com/KelvinShadewing/KyrodianLegends](https://github.com/KelvinShadewing/KyrodianLegends)、[kyrodianlegends.com](https://kyrodianlegends.com/)。
27
+ - 本遊戲為獨立同人詮釋,並非官方作品,也不代表 Kyrodian Legends 專案或作者立場。
28
+
29
+ 此 Space 的介面與實作為獨立創作;Kyrodian Legends 衍生遊戲內容與素材依 KLPL 提供,個別圖像以 PNG 獨立附上,附上游既有的可編輯 `.ase` 源檔,不把素材藏在合併圖或混淆的遊戲引擎中。
assets/klc/midi-ow.ase ADDED
Binary file (33.2 kB). View file
 
assets/klc/midi-ow.png ADDED
assets/klc/midiO.ase ADDED
Binary file (33.2 kB). View file
 
assets/klc/pillbug.ase ADDED
Binary file (3.03 kB). View file
 
assets/klc/pillbug.png ADDED
assets/klc/ts-grass.png ADDED
game.js ADDED
@@ -0,0 +1,591 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (() => {
2
+ 'use strict';
3
+
4
+ const canvas = document.querySelector('#game');
5
+ const ctx = canvas.getContext('2d', { alpha: false });
6
+ const intro = document.querySelector('#intro');
7
+ const objectiveEl = document.querySelector('#objective');
8
+ const TILE = 48;
9
+ const MAP_W = 50;
10
+ const MAP_H = 35;
11
+ const WORLD_W = MAP_W * TILE;
12
+ const WORLD_H = MAP_H * TILE;
13
+ const view = { w: canvas.width, h: canvas.height };
14
+ const keys = new Set();
15
+ const image = (src) => { const img = new Image(); img.src = src; return img; };
16
+ const sprites = {
17
+ hero: image('assets/klc/midi-ow.png'),
18
+ bug: image('assets/klc/pillbug.png'),
19
+ grass: image('assets/klc/ts-grass.png'),
20
+ };
21
+
22
+ let state;
23
+ let lastTime = 0;
24
+ let toast = '';
25
+ let toastTimer = 0;
26
+ let swingTimer = 0;
27
+ let hurtFlash = 0;
28
+ let seed = 412907;
29
+
30
+ function random() {
31
+ seed = (seed * 1664525 + 1013904223) >>> 0;
32
+ return seed / 4294967296;
33
+ }
34
+
35
+ function noise(x, y) {
36
+ const n = Math.sin(x * 127.1 + y * 311.7 + 41.73) * 43758.5453;
37
+ return n - Math.floor(n);
38
+ }
39
+
40
+ function makeWorld() {
41
+ seed = 412907;
42
+ const obstacles = [];
43
+ const props = [];
44
+ const enemies = [];
45
+ const water = { x: 17, y: 12, w: 8, h: 5 };
46
+ const temple = { x: 21, y: 3, w: 8, h: 5 };
47
+
48
+ for (let y = 0; y < MAP_H; y++) {
49
+ for (let x = 0; x < MAP_W; x++) {
50
+ if (x < 2 || y < 2 || x > MAP_W - 3 || y > MAP_H - 3) obstacles.push({ x, y, type: 'edge' });
51
+ if (x >= water.x && x < water.x + water.w && y >= water.y && y < water.y + water.h) {
52
+ if (x === water.x || x === water.x + water.w - 1 || y === water.y || y === water.y + water.h - 1) {
53
+ if (!(x === 20 && y >= 15)) obstacles.push({ x, y, type: 'bank' });
54
+ } else obstacles.push({ x, y, type: 'water' });
55
+ }
56
+ }
57
+ }
58
+
59
+ // A small, walkable stone clearing beneath the last dungeon.
60
+ for (let y = 7; y < 11; y++) {
61
+ for (let x = 18; x < 32; x++) {
62
+ if (x === 18 || x === 31 || y === 7 || y === 10) {
63
+ if (!(x >= 23 && x <= 26 && y === 10)) obstacles.push({ x, y, type: 'temple' });
64
+ }
65
+ }
66
+ }
67
+
68
+ const reserved = (x, y) => (x >= 15 && x <= 34 && y >= 2 && y <= 12) || (x >= 21 && x <= 29 && y >= 26 && y <= 33) || (x >= 17 && x <= 27 && y >= 16 && y <= 19);
69
+ for (let i = 0; i < 165; i++) {
70
+ const x = 3 + Math.floor(random() * (MAP_W - 6));
71
+ const y = 3 + Math.floor(random() * (MAP_H - 6));
72
+ if (reserved(x, y) || obstacles.some((o) => o.x === x && o.y === y)) continue;
73
+ const kind = random() > 0.57 ? 'tree' : 'rock';
74
+ obstacles.push({ x, y, type: kind });
75
+ props.push({ x, y, type: kind, variant: Math.floor(random() * 3) });
76
+ }
77
+
78
+ const spawnPoints = [[9, 26], [14, 23], [33, 27], [39, 18], [10, 14], [37, 11], [13, 8]];
79
+ for (let i = 0; i < spawnPoints.length; i++) {
80
+ const [tx, ty] = spawnPoints[i];
81
+ enemies.push({ id: i, x: tx * TILE + 23, y: ty * TILE + 25, hp: 2, maxHp: 2, alive: true, cooldown: 0, phase: random() * 6, boss: false });
82
+ }
83
+
84
+ return { obstacles, props, enemies, water, temple, deco: Array.from({ length: 95 }, (_, i) => ({ x: 2 + Math.floor(noise(i, 4) * (MAP_W - 4)), y: 2 + Math.floor(noise(8, i + 9) * (MAP_H - 4)), variant: i % 3 })) };
85
+ }
86
+
87
+ function reset() {
88
+ keys.clear();
89
+ const world = makeWorld();
90
+ state = {
91
+ ...world,
92
+ player: { x: 25 * TILE, y: 29 * TILE, facing: 'up', hp: 6, maxHp: 6, invuln: 0, walk: 0 },
93
+ shards: 0,
94
+ boss: null,
95
+ bossDefeated: false,
96
+ started: false,
97
+ won: false,
98
+ time: 0,
99
+ particles: [],
100
+ projectiles: [],
101
+ drops: [],
102
+ };
103
+ toast = '沿著林間小徑前進,找到星火碎片。';
104
+ toastTimer = 3.5;
105
+ swingTimer = 0;
106
+ hurtFlash = 0;
107
+ updateObjective();
108
+ }
109
+
110
+ function updateObjective() {
111
+ if (state.bossDefeated) objectiveEl.textContent = '森林恢復了光彩!謝謝你的勇敢。';
112
+ else if (state.boss) objectiveEl.textContent = `擊敗神殿魔王 · ${'♥'.repeat(Math.max(0, state.boss.hp))}${'♡'.repeat(Math.max(0, state.boss.maxHp - state.boss.hp))}`;
113
+ else objectiveEl.textContent = `找到星火碎片 · ${state.shards} / 5`;
114
+ }
115
+
116
+ function start() {
117
+ if (state.won) reset();
118
+ state.started = true;
119
+ intro.classList.add('hidden');
120
+ toast = '森林深處的神殿,正等著最後一場戰鬥。';
121
+ toastTimer = 3;
122
+ }
123
+
124
+ function showEnd() {
125
+ state.won = true;
126
+ intro.classList.remove('hidden');
127
+ intro.innerHTML = '<div class="title-card"><div class="title-eyebrow">THE FOREST REMEMBERS</div><h1>星火再燃</h1><p>神殿重歸寧靜,森林裡亮起了久違的燈火。</p><button id="start" class="start-button" type="button"><span>✦</span> 再玩一次 <span>✦</span></button><div class="title-hint">你拯救了星火之森</div></div>';
128
+ intro.querySelector('#start').addEventListener('click', start);
129
+ }
130
+
131
+ function isSolid(x, y) {
132
+ const tx = Math.floor(x / TILE);
133
+ const ty = Math.floor(y / TILE);
134
+ return state.obstacles.some((o) => o.x === tx && o.y === ty);
135
+ }
136
+
137
+ function canStand(x, y) {
138
+ const r = 11;
139
+ if (x < TILE * 2 + r || y < TILE * 2 + r || x > WORLD_W - TILE * 2 - r || y > WORLD_H - TILE * 2 - r) return false;
140
+ if (isSolid(x - r, y) || isSolid(x + r, y) || isSolid(x, y - r) || isSolid(x, y + r)) return false;
141
+ for (const p of state.props) if (p.type === 'tree' && Math.hypot(x - (p.x + .5) * TILE, y - (p.y + .66) * TILE) < 21) return false;
142
+ return true;
143
+ }
144
+
145
+ function say(text, duration = 2.3) { toast = text; toastTimer = duration; }
146
+
147
+ function burst(x, y, color, count = 10) {
148
+ for (let i = 0; i < count; i++) {
149
+ const a = random() * Math.PI * 2;
150
+ const speed = 35 + random() * 110;
151
+ state.particles.push({ x, y, vx: Math.cos(a) * speed, vy: Math.sin(a) * speed - 20, life: .35 + random() * .55, maxLife: .9, color, size: 2 + Math.floor(random() * 4) });
152
+ }
153
+ }
154
+
155
+ function sword() {
156
+ if (!state.started || state.won || swingTimer > .1) return;
157
+ swingTimer = .32;
158
+ const p = state.player;
159
+ const vector = { up: [0, -1], down: [0, 1], left: [-1, 0], right: [1, 0] }[p.facing];
160
+ const cx = p.x + vector[0] * 39;
161
+ const cy = p.y + vector[1] * 39;
162
+ for (const enemy of [...state.enemies, ...(state.boss ? [state.boss] : [])]) {
163
+ if (!enemy.alive && !enemy.boss) continue;
164
+ if (enemy.boss && enemy.flash > .1) continue;
165
+ const dx = enemy.x - cx;
166
+ const dy = enemy.y - cy;
167
+ if (Math.hypot(dx, dy) < (enemy.boss ? 81 : 49) && dx * vector[0] + dy * vector[1] > -8) {
168
+ enemy.hp -= enemy.boss ? 1 : 1;
169
+ enemy.flash = .19;
170
+ burst(enemy.x, enemy.y - 5, enemy.boss ? '#ffd676' : '#f6eaa8', enemy.boss ? 13 : 7);
171
+ if (enemy.hp <= 0) {
172
+ if (enemy.boss) {
173
+ state.bossDefeated = true;
174
+ state.boss = null;
175
+ burst(enemy.x, enemy.y, '#ffd879', 46);
176
+ say('魔王化作星塵,森林再度亮了起來!', 5);
177
+ updateObjective();
178
+ window.setTimeout(showEnd, 2000);
179
+ } else {
180
+ enemy.alive = false;
181
+ state.drops.push({ x: enemy.x, y: enemy.y, life: 18, kind: 'shard' });
182
+ say('魔物被打倒了!撿起掉落的星火碎片。', 2.4);
183
+ }
184
+ }
185
+ }
186
+ }
187
+ }
188
+
189
+ function hurt(amount, x, y) {
190
+ const p = state.player;
191
+ if (p.invuln > 0 || state.won) return;
192
+ p.hp = Math.max(0, p.hp - amount);
193
+ p.invuln = 1;
194
+ hurtFlash = .25;
195
+ burst(p.x, p.y, '#f08b78', 9);
196
+ say(p.hp === 0 ? '勇者倒下了!星火碎片還在,站起來再試一次。' : '被魔物擊中了!小心閃避。');
197
+ if (p.hp === 0) {
198
+ window.setTimeout(() => { if (state.started && !state.won) { p.hp = p.maxHp; p.x = 25 * TILE; p.y = 29 * TILE; p.invuln = 1; say('在森林入口醒來了,繼續前進吧!'); } }, 950);
199
+ }
200
+ }
201
+
202
+ function summonBoss() {
203
+ state.boss = { x: 25 * TILE, y: 7.15 * TILE, hp: 12, maxHp: 12, boss: true, alive: true, flash: 0, attackTimer: 1.4, phase: 0, radius: 35 };
204
+ say('古老的封印裂開了……熔岩之王甦醒!', 3.2);
205
+ updateObjective();
206
+ }
207
+
208
+ function moveEnemy(enemy, dt) {
209
+ if (!enemy.alive || enemy.boss) return;
210
+ enemy.flash = Math.max(0, (enemy.flash || 0) - dt);
211
+ enemy.phase += dt * 4;
212
+ enemy.cooldown = Math.max(0, enemy.cooldown - dt);
213
+ const p = state.player;
214
+ const dx = p.x - enemy.x;
215
+ const dy = p.y - enemy.y;
216
+ const distance = Math.hypot(dx, dy);
217
+ if (distance < 380 && distance > 29) {
218
+ const step = Math.min(distance - 25, 52 * dt);
219
+ const nx = enemy.x + dx / distance * step;
220
+ const ny = enemy.y + dy / distance * step;
221
+ if (canStand(nx, enemy.y)) enemy.x = nx;
222
+ if (canStand(enemy.x, ny)) enemy.y = ny;
223
+ }
224
+ if (distance < 34 && enemy.cooldown <= 0) {
225
+ enemy.cooldown = 1.05;
226
+ hurt(1, enemy.x, enemy.y);
227
+ }
228
+ }
229
+
230
+ function showIntro() {
231
+ intro.innerHTML = '<div class="title-card"><div class="title-eyebrow">A LITTLE PIXEL ADVENTURE</div><h1>星火之森</h1><p>古老的神殿裡,沉睡著最後的火焰。</p><button id="start" class="start-button" type="button"><span>✦</span> 開始冒險 <span>✦</span></button><div class="title-hint">方向鍵移動 <span>·</span> Z 揮劍</div></div>';
232
+ intro.querySelector('#start').addEventListener('click', start);
233
+ }
234
+
235
+ function updateBoss(dt) {
236
+ const boss = state.boss;
237
+ if (!boss) return;
238
+ boss.phase += dt;
239
+ boss.flash = Math.max(0, boss.flash - dt);
240
+ boss.attackTimer -= dt;
241
+ const p = state.player;
242
+ const dx = p.x - boss.x;
243
+ const dy = p.y - boss.y;
244
+ const distance = Math.hypot(dx, dy);
245
+ const speed = boss.hp < 6 ? 49 : 34;
246
+ if (distance > 86) {
247
+ boss.x += dx / Math.max(1, distance) * speed * dt;
248
+ boss.y += dy / Math.max(1, distance) * speed * dt;
249
+ }
250
+ if (distance < 72 && boss.attackTimer <= 0) {
251
+ boss.attackTimer = boss.hp < 6 ? 1.2 : 1.75;
252
+ const a = Math.atan2(dy, dx);
253
+ for (const offset of (boss.hp < 6 ? [-.32, 0, .32] : [-.17, .17])) {
254
+ const angle = a + offset;
255
+ state.projectiles.push({ x: boss.x, y: boss.y - 6, vx: Math.cos(angle) * 178, vy: Math.sin(angle) * 178, life: 3, size: 8 });
256
+ }
257
+ burst(boss.x, boss.y, '#ff8149', 7);
258
+ }
259
+ if (distance < 53 && boss.attackTimer < .9) hurt(1, boss.x, boss.y);
260
+ }
261
+
262
+ function update(dt) {
263
+ if (!state.started || state.won) return;
264
+ state.time += dt;
265
+ const p = state.player;
266
+ p.invuln = Math.max(0, p.invuln - dt);
267
+ swingTimer = Math.max(0, swingTimer - dt);
268
+ hurtFlash = Math.max(0, hurtFlash - dt);
269
+ toastTimer = Math.max(0, toastTimer - dt);
270
+
271
+ let dx = 0, dy = 0;
272
+ if (keys.has('ArrowLeft') || keys.has('KeyA')) dx--;
273
+ if (keys.has('ArrowRight') || keys.has('KeyD')) dx++;
274
+ if (keys.has('ArrowUp') || keys.has('KeyW')) dy--;
275
+ if (keys.has('ArrowDown') || keys.has('KeyS')) dy++;
276
+ if (dx || dy) {
277
+ const length = Math.hypot(dx, dy);
278
+ dx = dx / length * 156 * dt;
279
+ dy = dy / length * 156 * dt;
280
+ if (Math.abs(dx) > Math.abs(dy)) p.facing = dx > 0 ? 'right' : 'left';
281
+ else p.facing = dy > 0 ? 'down' : 'up';
282
+ if (canStand(p.x + dx, p.y)) p.x += dx;
283
+ if (canStand(p.x, p.y + dy)) p.y += dy;
284
+ p.walk += dt * 11;
285
+ }
286
+
287
+ for (const enemy of state.enemies) moveEnemy(enemy, dt);
288
+ updateBoss(dt);
289
+
290
+ for (const projectile of state.projectiles) {
291
+ projectile.x += projectile.vx * dt;
292
+ projectile.y += projectile.vy * dt;
293
+ projectile.life -= dt;
294
+ if (Math.hypot(projectile.x - p.x, projectile.y - p.y) < 22) {
295
+ hurt(1, projectile.x, projectile.y);
296
+ projectile.life = -1;
297
+ }
298
+ }
299
+ state.projectiles = state.projectiles.filter((p) => p.life > 0);
300
+
301
+ for (const drop of state.drops) {
302
+ drop.life -= dt;
303
+ if (Math.hypot(drop.x - p.x, drop.y - p.y) < 35) {
304
+ drop.life = 0;
305
+ state.shards = Math.min(5, state.shards + 1);
306
+ const healed = p.hp < p.maxHp;
307
+ if (healed) p.hp = Math.min(p.maxHp, p.hp + 1);
308
+ say(state.shards < 5 ? `撿起星火碎片 ${state.shards} / 5${healed ? ' · 恢復一顆愛心' : ''}` : `五枚星火碎片已收齊!${healed ? ' · 恢復一顆愛心 ' : ''}前往北方神殿。`, 2.6);
309
+ updateObjective();
310
+ }
311
+ }
312
+ state.drops = state.drops.filter((d) => d.life > 0);
313
+
314
+ for (const particle of state.particles) {
315
+ particle.x += particle.vx * dt;
316
+ particle.y += particle.vy * dt;
317
+ particle.vy += 130 * dt;
318
+ particle.life -= dt;
319
+ }
320
+ state.particles = state.particles.filter((p) => p.life > 0);
321
+
322
+ const atTemple = p.y < 12 * TILE && p.x > 21 * TILE && p.x < 29 * TILE;
323
+ if (atTemple && !state.bossDefeated && !state.boss) {
324
+ if (state.shards >= 5) summonBoss();
325
+ else if (toastTimer <= 0) say(`神殿的門仍然封印著,需要星火碎片 ${state.shards} / 5`, 2.5);
326
+ }
327
+ updateObjective();
328
+ }
329
+
330
+ function tile(ctx2, sx, sy, dx, dy, sw = 24, sh = 24, size = TILE) {
331
+ if (sprites.grass.complete && sprites.grass.naturalWidth >= sx + sw && sprites.grass.naturalHeight >= sy + sh) {
332
+ ctx2.drawImage(sprites.grass, sx, sy, sw, sh, dx, dy, size, size);
333
+ }
334
+ }
335
+
336
+ function drawGround(camX, camY) {
337
+ const x0 = Math.max(0, Math.floor(camX / TILE));
338
+ const y0 = Math.max(0, Math.floor(camY / TILE));
339
+ const x1 = Math.min(MAP_W, Math.ceil((camX + view.w) / TILE) + 1);
340
+ const y1 = Math.min(MAP_H, Math.ceil((camY + view.h) / TILE) + 1);
341
+ const greens = ['#467448', '#49794a', '#456e43', '#4b7748'];
342
+ for (let y = y0; y < y1; y++) {
343
+ for (let x = x0; x < x1; x++) {
344
+ const px = x * TILE - camX;
345
+ const py = y * TILE - camY;
346
+ const n = noise(x, y);
347
+ ctx.fillStyle = greens[Math.floor(n * greens.length)];
348
+ ctx.fillRect(px, py, TILE, TILE);
349
+ ctx.fillStyle = '#263c2925';
350
+ ctx.fillRect(px + 3 + n * 17, py + 5 + noise(y, x) * 23, 2, 4);
351
+ ctx.fillStyle = '#bad07927';
352
+ ctx.fillRect(px + 27 + noise(x + 8, y) * 12, py + 26 + n * 11, 2, 3);
353
+ }
354
+ }
355
+ for (const [i, d] of state.deco.entries()) {
356
+ if (d.x * TILE < camX - TILE || d.x * TILE > camX + view.w || d.y * TILE < camY - TILE || d.y * TILE > camY + view.h) continue;
357
+ const x = d.x * TILE - camX + 10 + noise(d.x, d.y) * 24;
358
+ const y = d.y * TILE - camY + 9 + noise(d.y + 4, d.x) * 25;
359
+ ctx.fillStyle = d.variant === 0 ? '#b0bd615e' : d.variant === 1 ? '#dae29650' : '#7caa565a';
360
+ ctx.fillRect(Math.round(x), Math.round(y), 3, 4);
361
+ ctx.fillRect(Math.round(x + 4), Math.round(y - 3), 2, 3);
362
+ // Use individual, reusable flower tiles from the Kyrodian Legends atlas.
363
+ if (sprites.grass.complete && sprites.grass.naturalWidth >= 480 && d.variant === 0 && i % 3 === 0) {
364
+ const cells = [[360, 144], [384, 144], [408, 144], [432, 144], [456, 144], [360, 168], [384, 168], [408, 168], [432, 168], [456, 168]];
365
+ const [sx, sy] = cells[Math.floor(noise(d.x, d.y + 11) * cells.length)];
366
+ ctx.drawImage(sprites.grass, sx, sy, 24, 24, Math.round(x - 8), Math.round(y - 9), 24, 24);
367
+ }
368
+ }
369
+ drawWater(camX, camY);
370
+ }
371
+
372
+ function drawWater(camX, camY) {
373
+ const w = state.water;
374
+ for (let y = w.y; y < w.y + w.h; y++) for (let x = w.x; x < w.x + w.w; x++) {
375
+ const px = x * TILE - camX;
376
+ const py = y * TILE - camY;
377
+ ctx.fillStyle = '#446d67'; ctx.fillRect(px, py, TILE, TILE);
378
+ ctx.fillStyle = '#638c7d'; ctx.fillRect(px + 4, py + 8 + Math.sin(state.time * 1.7 + x * 1.8) * 3, 16, 2);
379
+ ctx.fillStyle = '#92ae92'; ctx.fillRect(px + 24, py + 28 + Math.sin(state.time + y) * 3, 11, 2);
380
+ ctx.fillStyle = '#74917b'; ctx.fillRect(px + 36, py + 15, 5, 2);
381
+ }
382
+ ctx.fillStyle = '#bdc27f';
383
+ for (let x = 0; x < 4; x++) ctx.fillRect((20.1 + x * .8) * TILE - camX, 15.1 * TILE - camY, 27, 8);
384
+ }
385
+
386
+ function drawTree(x, y, variant, camX, camY) {
387
+ const px = x * TILE - camX;
388
+ const py = y * TILE - camY;
389
+ const sway = Math.sin(state.time * .65 + x * 2) * 1.7;
390
+ ctx.fillStyle = '#24342a'; ctx.fillRect(px + 13, py + 23, 23, 24);
391
+ ctx.fillStyle = '#604f36'; ctx.fillRect(px + 19, py + 23, 10, 23);
392
+ ctx.fillStyle = '#344a32';
393
+ ctx.beginPath(); ctx.ellipse(px + 25, py + 24, 23, 13, 0, 0, Math.PI * 2); ctx.fill();
394
+ const palettes = variant === 0 ? ['#315c3c', '#44784a', '#71a05c'] : ['#386447', '#50824e', '#84a967'];
395
+ ctx.fillStyle = '#253a2b'; ctx.beginPath(); ctx.moveTo(px + 25 + sway, py - 7); ctx.lineTo(px + 2, py + 29); ctx.lineTo(px + 47, py + 29); ctx.closePath(); ctx.fill();
396
+ ctx.fillStyle = palettes[0]; ctx.beginPath(); ctx.moveTo(px + 25 + sway, py - 11); ctx.lineTo(px + 5, py + 20); ctx.lineTo(px + 44, py + 20); ctx.closePath(); ctx.fill();
397
+ ctx.fillStyle = palettes[1]; ctx.beginPath(); ctx.moveTo(px + 23 + sway, py - 9); ctx.lineTo(px + 11, py + 16); ctx.lineTo(px + 35, py + 16); ctx.closePath(); ctx.fill();
398
+ ctx.fillStyle = palettes[2]; ctx.fillRect(px + 20 + sway, py + 2, 4, 3); ctx.fillRect(px + 30 + sway, py + 10, 3, 3);
399
+ ctx.fillStyle = '#ffffff13'; ctx.fillRect(px + 5, py + 22, 2, 5);
400
+ }
401
+
402
+ function drawRock(x, y, camX, camY) {
403
+ const px = x * TILE - camX, py = y * TILE - camY;
404
+ ctx.fillStyle = '#304331'; ctx.fillRect(px + 6, py + 32, 38, 11);
405
+ ctx.fillStyle = '#7d866c'; ctx.fillRect(px + 9, py + 18, 29, 19);
406
+ ctx.fillStyle = '#9fa183'; ctx.fillRect(px + 15, py + 11, 19, 12);
407
+ ctx.fillStyle = '#b8b493'; ctx.fillRect(px + 20, py + 9, 11, 5);
408
+ ctx.fillStyle = '#5c6b56'; ctx.fillRect(px + 9, py + 31, 22, 4);
409
+ }
410
+
411
+ function drawTemple(camX, camY) {
412
+ const tx = state.temple;
413
+ const x = tx.x * TILE - camX, y = tx.y * TILE - camY;
414
+ ctx.fillStyle = '#30382f'; ctx.fillRect(x - 12, y + 133, tx.w * TILE + 24, 14);
415
+ ctx.fillStyle = '#665f4b'; ctx.fillRect(x + 4, y + 55, tx.w * TILE - 8, 82);
416
+ ctx.fillStyle = '#94876a'; ctx.fillRect(x, y + 43, tx.w * TILE, 17);
417
+ ctx.fillStyle = '#c1ad7d'; ctx.fillRect(x + 6, y + 38, tx.w * TILE - 12, 7);
418
+ for (let i = 0; i < 6; i++) {
419
+ ctx.fillStyle = i % 2 ? '#a39876' : '#83795f';
420
+ ctx.fillRect(x + 8 + i * 63, y + 59, 49, 71);
421
+ ctx.fillStyle = '#c0b18a'; ctx.fillRect(x + 12 + i * 63, y + 60, 5, 67);
422
+ }
423
+ ctx.fillStyle = '#413d32'; ctx.fillRect(x + 5, y + 125, tx.w * TILE - 10, 12);
424
+ ctx.fillStyle = '#edcc77'; ctx.fillRect(x + 3 * TILE + 8, y + 48, 5, 5); ctx.fillRect(x + 4 * TILE - 12, y + 48, 5, 5);
425
+ if (!state.bossDefeated && !state.boss) {
426
+ ctx.fillStyle = '#25251e'; ctx.fillRect(x + 3 * TILE - 5, y + 91, 58, 45);
427
+ ctx.fillStyle = state.shards >= 5 ? '#e7c76b' : '#9a573b'; ctx.fillRect(x + 3 * TILE + 1, y + 97, 5, 30);
428
+ ctx.fillStyle = state.shards >= 5 ? '#f8e3a0' : '#d49b62'; ctx.fillRect(x + 3 * TILE + 18, y + 108, 8, 8);
429
+ }
430
+ ctx.fillStyle = '#ddd0a7'; ctx.fillRect(x - 13, y + 134, tx.w * TILE + 26, 5);
431
+ }
432
+
433
+ function drawBug(enemy, camX, camY) {
434
+ const x = Math.round(enemy.x - camX);
435
+ const y = Math.round(enemy.y - camY + Math.sin(enemy.phase) * 2);
436
+ ctx.fillStyle = '#1c2c20a8'; ctx.beginPath(); ctx.ellipse(x, y + 12, 17, 6, 0, 0, Math.PI * 2); ctx.fill();
437
+ if (sprites.bug.complete && sprites.bug.naturalWidth) {
438
+ const frame = Math.floor(state.time * 8 + enemy.id) % 6;
439
+ ctx.drawImage(sprites.bug, frame * 32, 0, 32, 32, x - 20, y - 19, 40, 38);
440
+ } else {
441
+ ctx.fillStyle = '#bdd777'; ctx.beginPath(); ctx.ellipse(x, y, 15, 12, 0, 0, 7); ctx.fill();
442
+ }
443
+ if (enemy.flash > 0) { ctx.fillStyle = '#fff9d6aa'; ctx.fillRect(x - 14, y - 13, 28, 24); }
444
+ }
445
+
446
+ function drawBoss(boss, camX, camY) {
447
+ const x = Math.round(boss.x - camX), y = Math.round(boss.y - camY);
448
+ const bob = Math.sin(boss.phase * 3) * 4;
449
+ ctx.fillStyle = '#13190fb3'; ctx.beginPath(); ctx.ellipse(x, y + 26, 44, 16, 0, 0, 7); ctx.fill();
450
+ ctx.save(); ctx.translate(x, y + bob);
451
+ ctx.fillStyle = boss.flash ? '#fff5c8' : '#521d1d'; ctx.beginPath(); ctx.ellipse(0, 3, 36, 33, 0, 0, 7); ctx.fill();
452
+ ctx.fillStyle = '#873329'; ctx.beginPath(); ctx.ellipse(-3, -3, 29, 26, 0, 0, 7); ctx.fill();
453
+ ctx.fillStyle = '#d44d32'; ctx.beginPath(); ctx.moveTo(-24,-14);ctx.lineTo(-33,-42);ctx.lineTo(-8,-26);ctx.lineTo(4,-47);ctx.lineTo(13,-25);ctx.lineTo(34,-37);ctx.lineTo(23,-8);ctx.closePath();ctx.fill();
454
+ ctx.fillStyle = '#f3c66e'; ctx.beginPath(); ctx.ellipse(-12, -5, 5, 7, 0, 0, 7); ctx.ellipse(12,-5,5,7,0,0,7);ctx.fill();
455
+ ctx.fillStyle = '#55211d'; ctx.fillRect(-12, 11, 24, 6); ctx.fillStyle = '#f3c66e'; ctx.fillRect(-8, 12, 4, 5); ctx.fillRect(4,12,4,5);
456
+ ctx.fillStyle = '#e88943'; ctx.fillRect(-39, 5, 7, 20); ctx.fillRect(32, 5, 7, 20);
457
+ ctx.restore();
458
+ ctx.fillStyle = '#30251e'; ctx.fillRect(x - 36, y - 58, 72, 9);
459
+ ctx.fillStyle = '#ce5541'; ctx.fillRect(x - 34, y - 56, 68 * boss.hp / boss.maxHp, 5);
460
+ }
461
+
462
+ function drawHero(camX, camY) {
463
+ const p = state.player;
464
+ const x = Math.round(p.x - camX);
465
+ const y = Math.round(p.y - camY + (keys.size ? Math.sin(p.walk) * 1.5 : 0));
466
+ if (p.invuln > 0 && Math.floor(state.time * 12) % 2 === 0) return;
467
+ ctx.fillStyle = '#1a251a99'; ctx.beginPath(); ctx.ellipse(x, y + 10, 14, 5, 0, 0, 7); ctx.fill();
468
+ if (sprites.hero.complete && sprites.hero.naturalWidth) {
469
+ const row = { down: 0, right: 1, up: 4, left: 3 }[p.facing];
470
+ const col = Math.floor(p.walk * 2) % 4;
471
+ ctx.save();
472
+ if (p.facing === 'left') { ctx.translate(x * 2, 0); ctx.scale(-1, 1); ctx.drawImage(sprites.hero, col * 26, row * 33, 26, 33, -20, y - 27, 40, 48); }
473
+ else ctx.drawImage(sprites.hero, col * 26, row * 33, 26, 33, x - 20, y - 27, 40, 48);
474
+ ctx.restore();
475
+ } else {
476
+ ctx.fillStyle = '#e9ca77'; ctx.fillRect(x - 7, y - 20, 14, 22); ctx.fillStyle = '#558656'; ctx.fillRect(x - 8, y - 10, 16, 10);
477
+ }
478
+ if (swingTimer > 0) {
479
+ const offset = { up:[0,-34],down:[0,34],left:[-35,0],right:[35,0] }[p.facing];
480
+ ctx.save(); ctx.translate(x + offset[0], y + offset[1]); ctx.rotate(Math.sin((swingTimer / .32) * Math.PI) * .35);
481
+ ctx.fillStyle = '#fff2bc'; ctx.fillRect(-2, -22, 4, 31); ctx.fillStyle = '#d1ac64'; ctx.fillRect(-2, 4, 4, 9); ctx.fillRect(-7, 3, 14, 3); ctx.restore();
482
+ }
483
+ }
484
+
485
+ function draw(camX, camY) {
486
+ ctx.fillStyle = '#263b2b'; ctx.fillRect(0, 0, view.w, view.h);
487
+ drawGround(camX, camY);
488
+ const objects = [];
489
+ for (const prop of state.props) objects.push({ y: (prop.y + .8) * TILE, draw: () => prop.type === 'tree' ? drawTree(prop.x, prop.y, prop.variant, camX, camY) : drawRock(prop.x, prop.y, camX, camY) });
490
+ const tx = state.temple;
491
+ objects.push({ y: (tx.y + tx.h) * TILE, draw: () => drawTemple(camX, camY) });
492
+ for (const enemy of state.enemies) if (enemy.alive) objects.push({ y: enemy.y + 12, draw: () => drawBug(enemy, camX, camY) });
493
+ if (state.boss) objects.push({ y: state.boss.y + 25, draw: () => drawBoss(state.boss, camX, camY) });
494
+ for (const drop of state.drops) objects.push({ y: drop.y + 5, draw: () => {
495
+ const pulse = 1 + Math.sin(state.time * 6 + drop.x) * .16;
496
+ ctx.fillStyle = '#f3d26b24'; ctx.beginPath(); ctx.arc(drop.x - camX, drop.y - camY, 19 * pulse, 0, 7); ctx.fill();
497
+ ctx.fillStyle = '#f9db75'; ctx.beginPath(); ctx.moveTo(drop.x-camX,drop.y-camY-10);ctx.lineTo(drop.x-camX+7,drop.y-camY);ctx.lineTo(drop.x-camX,drop.y-camY+9);ctx.lineTo(drop.x-camX-7,drop.y-camY);ctx.closePath();ctx.fill();
498
+ } });
499
+ objects.push({ y: state.player.y + 10, draw: () => drawHero(camX, camY) });
500
+ objects.sort((a,b) => a.y - b.y);
501
+ for (const object of objects) object.draw();
502
+
503
+ for (const projectile of state.projectiles) {
504
+ ctx.fillStyle = '#f1482d56'; ctx.beginPath(); ctx.arc(projectile.x - camX, projectile.y - camY, 15, 0, 7); ctx.fill();
505
+ ctx.fillStyle = '#ffc35b'; ctx.beginPath(); ctx.arc(projectile.x - camX, projectile.y - camY, projectile.size, 0, 7); ctx.fill();
506
+ }
507
+ for (const particle of state.particles) {
508
+ ctx.globalAlpha = Math.max(0, particle.life / particle.maxLife);
509
+ ctx.fillStyle = particle.color; ctx.fillRect(Math.round(particle.x - camX), Math.round(particle.y - camY), particle.size, particle.size);
510
+ }
511
+ ctx.globalAlpha = 1;
512
+ drawHud(camX, camY);
513
+ }
514
+
515
+ function drawHud(camX, camY) {
516
+ const p = state.player;
517
+ ctx.fillStyle = '#17241fde';
518
+ ctx.beginPath(); ctx.roundRect(17, 15, 214, 58, 8); ctx.fill();
519
+ ctx.strokeStyle = '#e9ddb33a'; ctx.lineWidth = 1; ctx.stroke();
520
+ for (let i = 0; i < p.maxHp; i++) {
521
+ const x = 30 + i * 25, y = 28;
522
+ ctx.fillStyle = i < p.hp ? '#e88570' : '#758072';
523
+ ctx.font = '20px serif'; ctx.fillText(i < p.hp ? '♥' : '♡', x, y + 1);
524
+ }
525
+ ctx.fillStyle = '#eed47f'; ctx.font = 'bold 12px "DM Mono", monospace'; ctx.fillText('✦', 31, 57);
526
+ ctx.fillStyle = '#eee4c8'; ctx.font = '12px "DM Mono", monospace'; ctx.fillText(`${state.shards} / 5`, 50, 57);
527
+
528
+ // A little compass and northbound shrine marker.
529
+ ctx.fillStyle = '#17241dd9'; ctx.beginPath(); ctx.roundRect(view.w - 60, 16, 43, 43, 22); ctx.fill();
530
+ ctx.strokeStyle = '#dfd29a65'; ctx.stroke();
531
+ ctx.fillStyle = '#d8ddcb'; ctx.font = '10px "DM Mono", monospace'; ctx.fillText('N', view.w - 44, 29);
532
+ const mx = view.w - 39 + ((25 * TILE - p.x) / WORLD_W) * 11;
533
+ const my = 39 + ((7 * TILE - p.y) / WORLD_H) * 11;
534
+ ctx.fillStyle = '#efd37c'; ctx.beginPath(); ctx.arc(mx, my, 3, 0, 7); ctx.fill();
535
+
536
+ if (toastTimer > 0 && toast) {
537
+ ctx.font = '13px "Noto Sans TC", sans-serif';
538
+ const width = Math.min(view.w - 60, ctx.measureText(toast).width + 38);
539
+ const x = (view.w - width) / 2;
540
+ ctx.fillStyle = '#142019e8'; ctx.beginPath(); ctx.roundRect(x, view.h - 54, width, 34, 7); ctx.fill();
541
+ ctx.strokeStyle = '#e1ce8a38'; ctx.stroke();
542
+ ctx.fillStyle = '#eee5ce'; ctx.textAlign = 'center'; ctx.fillText(toast, view.w / 2, view.h - 32, width - 24); ctx.textAlign = 'start';
543
+ }
544
+ if (hurtFlash > 0) { ctx.fillStyle = `rgba(205,67,58,${hurtFlash * .25})`; ctx.fillRect(0, 0, view.w, view.h); }
545
+ // Keep the camera arguments available here for the minimap and future map overlays.
546
+ void camX; void camY;
547
+ }
548
+
549
+ function loop(now) {
550
+ const dt = Math.min(.035, (now - lastTime) / 1000 || 0);
551
+ lastTime = now;
552
+ update(dt);
553
+ const targetX = state.player.x - view.w / 2;
554
+ const targetY = state.player.y - view.h / 2;
555
+ const camX = Math.max(0, Math.min(WORLD_W - view.w, targetX));
556
+ const camY = Math.max(0, Math.min(WORLD_H - view.h, targetY));
557
+ draw(camX, camY);
558
+ requestAnimationFrame(loop);
559
+ }
560
+
561
+ window.addEventListener('keydown', (event) => {
562
+ if (['ArrowUp','ArrowDown','ArrowLeft','ArrowRight','Space'].includes(event.code)) event.preventDefault();
563
+ keys.add(event.code);
564
+ if (event.code === 'KeyZ' || event.code === 'Space' || event.code === 'Enter') sword();
565
+ if (!state.started && ['ArrowUp','ArrowDown','ArrowLeft','ArrowRight','KeyW','KeyA','KeyS','KeyD','Enter','Space'].includes(event.code)) start();
566
+ });
567
+ window.addEventListener('keyup', (event) => keys.delete(event.code));
568
+ window.addEventListener('blur', () => keys.clear());
569
+ document.querySelector('#start').addEventListener('click', start);
570
+ document.querySelector('#restart').addEventListener('click', () => {
571
+ reset();
572
+ showIntro();
573
+ intro.classList.remove('hidden');
574
+ });
575
+ document.querySelectorAll('[data-key]').forEach((button) => {
576
+ const key = button.dataset.key;
577
+ const up = (event) => { event.preventDefault(); keys.delete(key); button.classList.remove('pressed'); };
578
+ button.addEventListener('pointerdown', (event) => {
579
+ event.preventDefault();
580
+ button.setPointerCapture(event.pointerId);
581
+ button.classList.add('pressed');
582
+ if (key === 'KeyZ') sword(); else { keys.add(key); if (!state.started) start(); }
583
+ });
584
+ button.addEventListener('pointerup', up);
585
+ button.addEventListener('pointercancel', up);
586
+ button.addEventListener('lostpointercapture', up);
587
+ });
588
+
589
+ reset();
590
+ requestAnimationFrame(loop);
591
+ })();
index.html CHANGED
@@ -1,19 +1,49 @@
1
  <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  </html>
 
1
  <!doctype html>
2
+ <html lang="zh-Hant">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
6
+ <meta name="theme-color" content="#101d18">
7
+ <meta name="description" content="走過星火之森、擊退魔物、收集星火碎片,挑戰北方的魔王。">
8
+ <title>星火之森 — 一場像素 RPG 冒險</title>
9
+ <link rel="stylesheet" href="style.css">
10
+ </head>
11
+ <body>
12
+ <main class="game-shell">
13
+ <header class="topbar">
14
+ <a class="brand" href="#" aria-label="星火之森首頁"><span class="brand-mark">✳</span> 星火之森</a>
15
+ <span class="chapter">第一章 / 遺忘的神殿</span>
16
+ <button class="sound-button" id="restart" type="button" aria-label="重新開始">重新開始 ↺</button>
17
+ </header>
18
+
19
+ <section class="screen-wrap" aria-label="遊戲畫面">
20
+ <canvas id="game" width="960" height="640" aria-label="星火之森 RPG 遊戲畫面"></canvas>
21
+ <div id="intro" class="overlay">
22
+ <div class="title-card">
23
+ <div class="title-eyebrow">A LITTLE PIXEL ADVENTURE</div>
24
+ <h1>星火之森</h1>
25
+ <p>古老的神殿裡,沉睡著最後的火焰。</p>
26
+ <button id="start" class="start-button" type="button"><span>✦</span> 開始冒險 <span>✦</span></button>
27
+ <div class="title-hint">方向鍵移動 <span>·</span> Z 揮劍</div>
28
+ </div>
29
+ </div>
30
+ <div class="touch-controls" aria-label="觸控操作">
31
+ <div class="pad">
32
+ <button type="button" data-key="ArrowUp" class="up" aria-label="向上">▲</button>
33
+ <button type="button" data-key="ArrowLeft" class="left" aria-label="向左">◀</button>
34
+ <button type="button" data-key="ArrowDown" class="down" aria-label="向下">▼</button>
35
+ <button type="button" data-key="ArrowRight" class="right" aria-label="向右">▶</button>
36
+ </div>
37
+ <button type="button" data-key="KeyZ" class="attack-button" aria-label="揮劍"><span>⚔</span><small>揮劍</small></button>
38
+ </div>
39
+ </section>
40
+
41
+ <section class="bottom-bar">
42
+ <div class="legend"><span class="legend-spark">✦</span><span id="objective">踏上旅程,收集 5 個星火碎片</span></div>
43
+ <div class="controls-hint"><kbd>W</kbd><kbd>A</kbd><kbd>S</kbd><kbd>D</kbd> 或 <kbd>↑</kbd><kbd>←</kbd><kbd>↓</kbd><kbd>→</kbd><span class="hint-separator"></span><kbd>Z</kbd> 揮劍</div>
44
+ </section>
45
+ <footer>遊戲及原創程式採 AGPL-3.0-or-later · 角色與像素素材由 <a href="https://github.com/KelvinShadewing/KyrodianLegends" target="_blank" rel="noreferrer">Kyrodian Legends 社群</a>創作,依 KLPL 1.0 授權 · <a href="KLPL.md" target="_blank">素材授權與來源</a></footer>
46
+ </main>
47
+ <script src="game.js" defer></script>
48
+ </body>
49
  </html>
style.css CHANGED
@@ -1,28 +1,6 @@
1
- body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
4
- }
5
-
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
9
- }
10
-
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
- }
17
-
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
- }
25
-
26
- .card p:last-child {
27
- margin-bottom: 0;
28
- }
 
1
+ :root{color-scheme:dark;--ink:#f6f1df;--muted:#9ca89d;--line:#ffffff15;--gold:#edcc77;--green:#8ac58b;font-family:'Nunito Sans','Noto Sans TC',sans-serif;background:#101512;color:var(--ink);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
2
+ *{box-sizing:border-box}html,body{width:100%;min-height:100%;margin:0}body{min-height:100svh;display:flex;justify-content:center;align-items:center;padding:30px 24px;background:radial-gradient(ellipse at 50% 30%,#26372b 0,#17221b 40%,#101512 78%);overflow-x:hidden}.game-shell{width:min(1024px,100%);margin:auto}.topbar,.bottom-bar{display:flex;align-items:center;justify-content:space-between}.topbar{height:52px;margin-bottom:14px}.brand{display:flex;align-items:center;gap:11px;color:#f2f0e7;text-decoration:none;font-size:17px;font-weight:800;letter-spacing:.04em}.brand-mark{width:29px;height:29px;display:grid;place-items:center;border:1px solid #d7bd7285;border-radius:9px;color:var(--gold);font-size:19px;background:linear-gradient(145deg,#7f60304d,#3d563d4f)}.chapter{font-family:'DM Mono',monospace;font-size:11px;color:#a5b0a1;letter-spacing:.12em}.sound-button{border:1px solid #ffffff21;border-radius:7px;padding:8px 12px;background:#ffffff08;color:#cad0c3;font:500 12px 'DM Mono',monospace;cursor:pointer;transition:.2s}.sound-button:hover{border-color:#edcc7760;color:#edcc77}.screen-wrap{position:relative;width:100%;aspect-ratio:3/2;overflow:hidden;border:1px solid #efe3bd38;border-radius:10px;background:#152518;box-shadow:0 22px 90px #0008,0 0 0 5px #ffffff05,inset 0 0 50px #0003}.screen-wrap::after{position:absolute;inset:0;content:"";pointer-events:none;border-radius:inherit;box-shadow:inset 0 0 45px #08100a7a,inset 0 0 0 1px #ffffff11}canvas{display:block;width:100%;height:100%;image-rendering:pixelated;image-rendering:crisp-edges}.overlay{position:absolute;z-index:3;inset:0;display:grid;place-items:center;background:linear-gradient(180deg,#07120a39,#09120ac9);transition:opacity .35s,visibility .35s}.overlay.hidden{opacity:0;visibility:hidden;pointer-events:none}.title-card{width:min(430px,86%);padding:36px 30px 27px;text-align:center;background:linear-gradient(160deg,#1d2c21ee,#18231df0);border:1px solid #e8d8983a;border-radius:13px;box-shadow:0 18px 60px #0008,0 0 50px #c9a7510d;backdrop-filter:blur(5px)}.title-eyebrow{color:#b7c69c;font:11px 'DM Mono',monospace;letter-spacing:.22em}.title-card h1{margin:12px 0 8px;font-size:clamp(35px,6vw,53px);font-weight:900;letter-spacing:.14em;color:#f1dc9d;text-shadow:0 3px #a277437d,0 8px 25px #efca6533}.title-card p{margin:0 0 23px;color:#b7c0ae;font-size:13px;letter-spacing:.08em}.start-button{border:1px solid #efda9a;border-radius:7px;padding:13px 25px;background:linear-gradient(180deg,#f1d898,#d3af69);box-shadow:0 3px 0 #8c7144,0 7px 25px #d9bd6522;color:#2b311f;font:800 14px 'Noto Sans TC',sans-serif;letter-spacing:.1em;cursor:pointer;transition:transform .16s,filter .16s}.start-button:hover{filter:brightness(1.08);transform:translateY(-2px)}.title-hint{margin-top:22px;color:#9aab93;font:11px 'DM Mono','Noto Sans TC',monospace;letter-spacing:.08em}.title-hint span{padding:0 7px;color:#d9c27a}.bottom-bar{min-height:56px;padding:0 4px;border-bottom:1px solid var(--line)}.legend{display:flex;align-items:center;gap:11px;color:#d7dccd;font-size:13px}.legend-spark{color:#ecd484;font-size:17px;text-shadow:0 0 12px #eecb63}.controls-hint{display:flex;align-items:center;gap:4px;color:#929e92;font:10px 'DM Mono','Noto Sans TC',monospace}.controls-hint kbd{min-width:19px;height:20px;display:inline-grid;place-items:center;padding:0 4px;border:1px solid #ffffff24;border-radius:4px;background:#ffffff09;color:#d4d9ca;font:10px 'DM Mono',monospace}.hint-separator{width:1px;height:14px;margin:0 9px;background:#ffffff26}.bottom-bar kbd:nth-of-type(5){margin-left:6px}footer{padding:17px 4px 8px;color:#819084;font-size:10px;line-height:1.8;letter-spacing:.025em}footer a{color:#b8c29c;text-decoration-color:#b8c29c66;text-underline-offset:3px}.touch-controls{position:absolute;z-index:2;inset:auto 0 0;display:none;align-items:end;justify-content:space-between;padding:16px 19px max(16px,env(safe-area-inset-bottom));pointer-events:none}.pad{width:126px;height:122px;display:grid;grid-template-columns:repeat(3,40px);grid-template-rows:repeat(3,40px);gap:3px;pointer-events:auto}.pad button,.attack-button{border:1px solid #fff4;border-radius:9px;background:#17231bd9;box-shadow:inset 0 1px 1px #ffffff15,0 2px 8px #0005;color:#f1edda;font-size:15px;touch-action:none;-webkit-tap-highlight-color:transparent}.pad .up{grid-area:1/2}.pad .left{grid-area:2/1}.pad .down{grid-area:2/2}.pad .right{grid-area:2/3}.pad button:active,.attack-button:active{background:#99794bd9;transform:scale(.96)}.attack-button{width:69px;height:69px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;border-color:#f2d37d88;border-radius:50%;background:#634d35dc;color:#ffe5a3}.attack-button span{font-size:24px}.attack-button small{font:10px 'Noto Sans TC',sans-serif}.sound-button:focus-visible,.start-button:focus-visible,.pad button:focus-visible,.attack-button:focus-visible{outline:2px solid #f1d898;outline-offset:3px}
3
+ @media(max-width:650px){body{padding:12px}.topbar{height:39px;margin-bottom:8px}.brand{font-size:14px}.brand-mark{width:25px;height:25px}.chapter{font-size:8px;letter-spacing:.03em}.sound-button{font-size:10px;padding:6px 8px}.screen-wrap{border-radius:7px}.bottom-bar{min-height:43px}.legend{gap:7px;font-size:11px}.controls-hint{font-size:0}.controls-hint kbd{font-size:9px}.controls-hint kbd:nth-of-type(n+5){display:none}.controls-hint::after{content:'Z 揮劍';font:10px 'DM Mono','Noto Sans TC',monospace;color:#aab2a5;margin-left:5px}footer{font-size:9px;padding-top:12px}.title-card{padding:25px 18px 19px}.title-card h1{margin-top:9px}.title-card p{font-size:11px;margin-bottom:17px}.start-button{padding:11px 18px;font-size:12px}.title-hint{margin-top:16px;font-size:10px}}
4
+ @media(pointer:coarse){.touch-controls{display:flex}.screen-wrap{touch-action:none}}
5
+ @media(max-width:480px){body{padding:8px}.chapter{max-width:130px;text-align:center}.bottom-bar{min-height:39px}.legend{font-size:10px}footer{padding-top:10px}.title-eyebrow{font-size:9px}.touch-controls{padding-inline:11px}}
6
+ @media(min-width:651px){.touch-controls{display:none!important}}