Compare commits
No commits in common. "main" and "demo3" have entirely different histories.
4
.gitignore
vendored
|
@ -1,4 +1,2 @@
|
|||
.import/
|
||||
build/
|
||||
ngio.ini
|
||||
scoreboard_host.txt
|
||||
build/
|
395
LICENSE-ASSETS
|
@ -1,395 +0,0 @@
|
|||
Attribution 4.0 International
|
||||
|
||||
=======================================================================
|
||||
|
||||
Creative Commons Corporation ("Creative Commons") is not a law firm and
|
||||
does not provide legal services or legal advice. Distribution of
|
||||
Creative Commons public licenses does not create a lawyer-client or
|
||||
other relationship. Creative Commons makes its licenses and related
|
||||
information available on an "as-is" basis. Creative Commons gives no
|
||||
warranties regarding its licenses, any material licensed under their
|
||||
terms and conditions, or any related information. Creative Commons
|
||||
disclaims all liability for damages resulting from their use to the
|
||||
fullest extent possible.
|
||||
|
||||
Using Creative Commons Public Licenses
|
||||
|
||||
Creative Commons public licenses provide a standard set of terms and
|
||||
conditions that creators and other rights holders may use to share
|
||||
original works of authorship and other material subject to copyright
|
||||
and certain other rights specified in the public license below. The
|
||||
following considerations are for informational purposes only, are not
|
||||
exhaustive, and do not form part of our licenses.
|
||||
|
||||
Considerations for licensors: Our public licenses are
|
||||
intended for use by those authorized to give the public
|
||||
permission to use material in ways otherwise restricted by
|
||||
copyright and certain other rights. Our licenses are
|
||||
irrevocable. Licensors should read and understand the terms
|
||||
and conditions of the license they choose before applying it.
|
||||
Licensors should also secure all rights necessary before
|
||||
applying our licenses so that the public can reuse the
|
||||
material as expected. Licensors should clearly mark any
|
||||
material not subject to the license. This includes other CC-
|
||||
licensed material, or material used under an exception or
|
||||
limitation to copyright. More considerations for licensors:
|
||||
wiki.creativecommons.org/Considerations_for_licensors
|
||||
|
||||
Considerations for the public: By using one of our public
|
||||
licenses, a licensor grants the public permission to use the
|
||||
licensed material under specified terms and conditions. If
|
||||
the licensor's permission is not necessary for any reason--for
|
||||
example, because of any applicable exception or limitation to
|
||||
copyright--then that use is not regulated by the license. Our
|
||||
licenses grant only permissions under copyright and certain
|
||||
other rights that a licensor has authority to grant. Use of
|
||||
the licensed material may still be restricted for other
|
||||
reasons, including because others have copyright or other
|
||||
rights in the material. A licensor may make special requests,
|
||||
such as asking that all changes be marked or described.
|
||||
Although not required by our licenses, you are encouraged to
|
||||
respect those requests where reasonable. More considerations
|
||||
for the public:
|
||||
wiki.creativecommons.org/Considerations_for_licensees
|
||||
|
||||
=======================================================================
|
||||
|
||||
Creative Commons Attribution 4.0 International Public License
|
||||
|
||||
By exercising the Licensed Rights (defined below), You accept and agree
|
||||
to be bound by the terms and conditions of this Creative Commons
|
||||
Attribution 4.0 International Public License ("Public License"). To the
|
||||
extent this Public License may be interpreted as a contract, You are
|
||||
granted the Licensed Rights in consideration of Your acceptance of
|
||||
these terms and conditions, and the Licensor grants You such rights in
|
||||
consideration of benefits the Licensor receives from making the
|
||||
Licensed Material available under these terms and conditions.
|
||||
|
||||
|
||||
Section 1 -- Definitions.
|
||||
|
||||
a. Adapted Material means material subject to Copyright and Similar
|
||||
Rights that is derived from or based upon the Licensed Material
|
||||
and in which the Licensed Material is translated, altered,
|
||||
arranged, transformed, or otherwise modified in a manner requiring
|
||||
permission under the Copyright and Similar Rights held by the
|
||||
Licensor. For purposes of this Public License, where the Licensed
|
||||
Material is a musical work, performance, or sound recording,
|
||||
Adapted Material is always produced where the Licensed Material is
|
||||
synched in timed relation with a moving image.
|
||||
|
||||
b. Adapter's License means the license You apply to Your Copyright
|
||||
and Similar Rights in Your contributions to Adapted Material in
|
||||
accordance with the terms and conditions of this Public License.
|
||||
|
||||
c. Copyright and Similar Rights means copyright and/or similar rights
|
||||
closely related to copyright including, without limitation,
|
||||
performance, broadcast, sound recording, and Sui Generis Database
|
||||
Rights, without regard to how the rights are labeled or
|
||||
categorized. For purposes of this Public License, the rights
|
||||
specified in Section 2(b)(1)-(2) are not Copyright and Similar
|
||||
Rights.
|
||||
|
||||
d. Effective Technological Measures means those measures that, in the
|
||||
absence of proper authority, may not be circumvented under laws
|
||||
fulfilling obligations under Article 11 of the WIPO Copyright
|
||||
Treaty adopted on December 20, 1996, and/or similar international
|
||||
agreements.
|
||||
|
||||
e. Exceptions and Limitations means fair use, fair dealing, and/or
|
||||
any other exception or limitation to Copyright and Similar Rights
|
||||
that applies to Your use of the Licensed Material.
|
||||
|
||||
f. Licensed Material means the artistic or literary work, database,
|
||||
or other material to which the Licensor applied this Public
|
||||
License.
|
||||
|
||||
g. Licensed Rights means the rights granted to You subject to the
|
||||
terms and conditions of this Public License, which are limited to
|
||||
all Copyright and Similar Rights that apply to Your use of the
|
||||
Licensed Material and that the Licensor has authority to license.
|
||||
|
||||
h. Licensor means the individual(s) or entity(ies) granting rights
|
||||
under this Public License.
|
||||
|
||||
i. Share means to provide material to the public by any means or
|
||||
process that requires permission under the Licensed Rights, such
|
||||
as reproduction, public display, public performance, distribution,
|
||||
dissemination, communication, or importation, and to make material
|
||||
available to the public including in ways that members of the
|
||||
public may access the material from a place and at a time
|
||||
individually chosen by them.
|
||||
|
||||
j. Sui Generis Database Rights means rights other than copyright
|
||||
resulting from Directive 96/9/EC of the European Parliament and of
|
||||
the Council of 11 March 1996 on the legal protection of databases,
|
||||
as amended and/or succeeded, as well as other essentially
|
||||
equivalent rights anywhere in the world.
|
||||
|
||||
k. You means the individual or entity exercising the Licensed Rights
|
||||
under this Public License. Your has a corresponding meaning.
|
||||
|
||||
|
||||
Section 2 -- Scope.
|
||||
|
||||
a. License grant.
|
||||
|
||||
1. Subject to the terms and conditions of this Public License,
|
||||
the Licensor hereby grants You a worldwide, royalty-free,
|
||||
non-sublicensable, non-exclusive, irrevocable license to
|
||||
exercise the Licensed Rights in the Licensed Material to:
|
||||
|
||||
a. reproduce and Share the Licensed Material, in whole or
|
||||
in part; and
|
||||
|
||||
b. produce, reproduce, and Share Adapted Material.
|
||||
|
||||
2. Exceptions and Limitations. For the avoidance of doubt, where
|
||||
Exceptions and Limitations apply to Your use, this Public
|
||||
License does not apply, and You do not need to comply with
|
||||
its terms and conditions.
|
||||
|
||||
3. Term. The term of this Public License is specified in Section
|
||||
6(a).
|
||||
|
||||
4. Media and formats; technical modifications allowed. The
|
||||
Licensor authorizes You to exercise the Licensed Rights in
|
||||
all media and formats whether now known or hereafter created,
|
||||
and to make technical modifications necessary to do so. The
|
||||
Licensor waives and/or agrees not to assert any right or
|
||||
authority to forbid You from making technical modifications
|
||||
necessary to exercise the Licensed Rights, including
|
||||
technical modifications necessary to circumvent Effective
|
||||
Technological Measures. For purposes of this Public License,
|
||||
simply making modifications authorized by this Section 2(a)
|
||||
(4) never produces Adapted Material.
|
||||
|
||||
5. Downstream recipients.
|
||||
|
||||
a. Offer from the Licensor -- Licensed Material. Every
|
||||
recipient of the Licensed Material automatically
|
||||
receives an offer from the Licensor to exercise the
|
||||
Licensed Rights under the terms and conditions of this
|
||||
Public License.
|
||||
|
||||
b. No downstream restrictions. You may not offer or impose
|
||||
any additional or different terms or conditions on, or
|
||||
apply any Effective Technological Measures to, the
|
||||
Licensed Material if doing so restricts exercise of the
|
||||
Licensed Rights by any recipient of the Licensed
|
||||
Material.
|
||||
|
||||
6. No endorsement. Nothing in this Public License constitutes or
|
||||
may be construed as permission to assert or imply that You
|
||||
are, or that Your use of the Licensed Material is, connected
|
||||
with, or sponsored, endorsed, or granted official status by,
|
||||
the Licensor or others designated to receive attribution as
|
||||
provided in Section 3(a)(1)(A)(i).
|
||||
|
||||
b. Other rights.
|
||||
|
||||
1. Moral rights, such as the right of integrity, are not
|
||||
licensed under this Public License, nor are publicity,
|
||||
privacy, and/or other similar personality rights; however, to
|
||||
the extent possible, the Licensor waives and/or agrees not to
|
||||
assert any such rights held by the Licensor to the limited
|
||||
extent necessary to allow You to exercise the Licensed
|
||||
Rights, but not otherwise.
|
||||
|
||||
2. Patent and trademark rights are not licensed under this
|
||||
Public License.
|
||||
|
||||
3. To the extent possible, the Licensor waives any right to
|
||||
collect royalties from You for the exercise of the Licensed
|
||||
Rights, whether directly or through a collecting society
|
||||
under any voluntary or waivable statutory or compulsory
|
||||
licensing scheme. In all other cases the Licensor expressly
|
||||
reserves any right to collect such royalties.
|
||||
|
||||
|
||||
Section 3 -- License Conditions.
|
||||
|
||||
Your exercise of the Licensed Rights is expressly made subject to the
|
||||
following conditions.
|
||||
|
||||
a. Attribution.
|
||||
|
||||
1. If You Share the Licensed Material (including in modified
|
||||
form), You must:
|
||||
|
||||
a. retain the following if it is supplied by the Licensor
|
||||
with the Licensed Material:
|
||||
|
||||
i. identification of the creator(s) of the Licensed
|
||||
Material and any others designated to receive
|
||||
attribution, in any reasonable manner requested by
|
||||
the Licensor (including by pseudonym if
|
||||
designated);
|
||||
|
||||
ii. a copyright notice;
|
||||
|
||||
iii. a notice that refers to this Public License;
|
||||
|
||||
iv. a notice that refers to the disclaimer of
|
||||
warranties;
|
||||
|
||||
v. a URI or hyperlink to the Licensed Material to the
|
||||
extent reasonably practicable;
|
||||
|
||||
b. indicate if You modified the Licensed Material and
|
||||
retain an indication of any previous modifications; and
|
||||
|
||||
c. indicate the Licensed Material is licensed under this
|
||||
Public License, and include the text of, or the URI or
|
||||
hyperlink to, this Public License.
|
||||
|
||||
2. You may satisfy the conditions in Section 3(a)(1) in any
|
||||
reasonable manner based on the medium, means, and context in
|
||||
which You Share the Licensed Material. For example, it may be
|
||||
reasonable to satisfy the conditions by providing a URI or
|
||||
hyperlink to a resource that includes the required
|
||||
information.
|
||||
|
||||
3. If requested by the Licensor, You must remove any of the
|
||||
information required by Section 3(a)(1)(A) to the extent
|
||||
reasonably practicable.
|
||||
|
||||
4. If You Share Adapted Material You produce, the Adapter's
|
||||
License You apply must not prevent recipients of the Adapted
|
||||
Material from complying with this Public License.
|
||||
|
||||
|
||||
Section 4 -- Sui Generis Database Rights.
|
||||
|
||||
Where the Licensed Rights include Sui Generis Database Rights that
|
||||
apply to Your use of the Licensed Material:
|
||||
|
||||
a. for the avoidance of doubt, Section 2(a)(1) grants You the right
|
||||
to extract, reuse, reproduce, and Share all or a substantial
|
||||
portion of the contents of the database;
|
||||
|
||||
b. if You include all or a substantial portion of the database
|
||||
contents in a database in which You have Sui Generis Database
|
||||
Rights, then the database in which You have Sui Generis Database
|
||||
Rights (but not its individual contents) is Adapted Material; and
|
||||
|
||||
c. You must comply with the conditions in Section 3(a) if You Share
|
||||
all or a substantial portion of the contents of the database.
|
||||
|
||||
For the avoidance of doubt, this Section 4 supplements and does not
|
||||
replace Your obligations under this Public License where the Licensed
|
||||
Rights include other Copyright and Similar Rights.
|
||||
|
||||
|
||||
Section 5 -- Disclaimer of Warranties and Limitation of Liability.
|
||||
|
||||
a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
|
||||
EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
|
||||
AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
|
||||
ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
|
||||
IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
|
||||
WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
||||
PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
|
||||
ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
|
||||
KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
|
||||
ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
|
||||
|
||||
b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
|
||||
TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
|
||||
NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
|
||||
INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
|
||||
COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
|
||||
USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
|
||||
ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
|
||||
DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
|
||||
IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
|
||||
|
||||
c. The disclaimer of warranties and limitation of liability provided
|
||||
above shall be interpreted in a manner that, to the extent
|
||||
possible, most closely approximates an absolute disclaimer and
|
||||
waiver of all liability.
|
||||
|
||||
|
||||
Section 6 -- Term and Termination.
|
||||
|
||||
a. This Public License applies for the term of the Copyright and
|
||||
Similar Rights licensed here. However, if You fail to comply with
|
||||
this Public License, then Your rights under this Public License
|
||||
terminate automatically.
|
||||
|
||||
b. Where Your right to use the Licensed Material has terminated under
|
||||
Section 6(a), it reinstates:
|
||||
|
||||
1. automatically as of the date the violation is cured, provided
|
||||
it is cured within 30 days of Your discovery of the
|
||||
violation; or
|
||||
|
||||
2. upon express reinstatement by the Licensor.
|
||||
|
||||
For the avoidance of doubt, this Section 6(b) does not affect any
|
||||
right the Licensor may have to seek remedies for Your violations
|
||||
of this Public License.
|
||||
|
||||
c. For the avoidance of doubt, the Licensor may also offer the
|
||||
Licensed Material under separate terms or conditions or stop
|
||||
distributing the Licensed Material at any time; however, doing so
|
||||
will not terminate this Public License.
|
||||
|
||||
d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
|
||||
License.
|
||||
|
||||
|
||||
Section 7 -- Other Terms and Conditions.
|
||||
|
||||
a. The Licensor shall not be bound by any additional or different
|
||||
terms or conditions communicated by You unless expressly agreed.
|
||||
|
||||
b. Any arrangements, understandings, or agreements regarding the
|
||||
Licensed Material not stated herein are separate from and
|
||||
independent of the terms and conditions of this Public License.
|
||||
|
||||
|
||||
Section 8 -- Interpretation.
|
||||
|
||||
a. For the avoidance of doubt, this Public License does not, and
|
||||
shall not be interpreted to, reduce, limit, restrict, or impose
|
||||
conditions on any use of the Licensed Material that could lawfully
|
||||
be made without permission under this Public License.
|
||||
|
||||
b. To the extent possible, if any provision of this Public License is
|
||||
deemed unenforceable, it shall be automatically reformed to the
|
||||
minimum extent necessary to make it enforceable. If the provision
|
||||
cannot be reformed, it shall be severed from this Public License
|
||||
without affecting the enforceability of the remaining terms and
|
||||
conditions.
|
||||
|
||||
c. No term or condition of this Public License will be waived and no
|
||||
failure to comply consented to unless expressly agreed to by the
|
||||
Licensor.
|
||||
|
||||
d. Nothing in this Public License constitutes or may be interpreted
|
||||
as a limitation upon, or waiver of, any privileges and immunities
|
||||
that apply to the Licensor or You, including from the legal
|
||||
processes of any jurisdiction or authority.
|
||||
|
||||
|
||||
=======================================================================
|
||||
|
||||
Creative Commons is not a party to its public
|
||||
licenses. Notwithstanding, Creative Commons may elect to apply one of
|
||||
its public licenses to material it publishes and in those instances
|
||||
will be considered the “Licensor.” The text of the Creative Commons
|
||||
public licenses is dedicated to the public domain under the CC0 Public
|
||||
Domain Dedication. Except for the limited purpose of indicating that
|
||||
material is shared under a Creative Commons public license or as
|
||||
otherwise permitted by the Creative Commons policies published at
|
||||
creativecommons.org/policies, Creative Commons does not authorize the
|
||||
use of the trademark "Creative Commons" or any other trademark or logo
|
||||
of Creative Commons without its prior written consent including,
|
||||
without limitation, in connection with any unauthorized modifications
|
||||
to any of its public licenses or any other arrangements,
|
||||
understandings, or agreements concerning use of licensed material. For
|
||||
the avoidance of doubt, this paragraph does not form part of the
|
||||
public licenses.
|
||||
|
||||
Creative Commons may be contacted at creativecommons.org.
|
|
@ -1,7 +0,0 @@
|
|||
Copyright © 2024 Haze Weathers and Penny Rigate
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
7
Main.tscn
Normal file
|
@ -0,0 +1,7 @@
|
|||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://control.tscn" type="PackedScene" id=1]
|
||||
|
||||
[node name="Main" type="Node2D"]
|
||||
|
||||
[node name="Control" parent="." instance=ExtResource( 1 )]
|
20
README.md
|
@ -1,20 +0,0 @@
|
|||
# Revolution 2083
|
||||
Published source code of [Revolution 2083](https://pennyrigate.itch.io/revolution-2083).
|
||||
|
||||
Feel free to use this to make mods, fangames, whatever you like! It would make
|
||||
us extra happy to be credited in and/or told about whatever you use this for.
|
||||
|
||||
Apologies in advance for the messy code :)
|
||||
— Haze
|
||||
|
||||
## License
|
||||
|
||||
Music is by [Scarlett Sylvistrix](https://ivsnyd.bandcamp.com/) and licensed under
|
||||
the [CC-BY license](LICENSE-ASSETS) except for end credits
|
||||
cover of "You're Wondering Now".
|
||||
"You're Wondering Now" is not licensed for re-use.
|
||||
|
||||
All textures and sound effects are by Haze Weathers and Penny Rigate.
|
||||
They are also licensed under the [CC-BY license](LICENSE-ASSETS).
|
||||
|
||||
All other code and data is licensed under the [MIT license](LICENSE-CODE).
|
|
@ -1,20 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg width="100%" height="100%" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;">
|
||||
<rect id="Artboard1" x="0" y="0" width="32" height="32" style="fill:none;"/>
|
||||
<g id="Artboard11" serif:id="Artboard1">
|
||||
<g transform="matrix(1.03705,0,0,1.03705,-0.460588,-0.659827)">
|
||||
<g id="BG">
|
||||
<path d="M30.337,8.833C30.337,4.841 27.096,1.601 23.104,1.601L8.64,1.601C4.649,1.601 1.408,4.841 1.408,8.833L1.408,23.297C1.408,27.288 4.649,30.529 8.64,30.529L23.104,30.529C27.096,30.529 30.337,27.288 30.337,23.297L30.337,8.833Z" style="fill:none;stroke:rgb(225,142,57);stroke-width:0.96px;"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="AnimationTreeState">
|
||||
<g transform="matrix(3.01177,0,0,3.01177,-34.5681,-33.1274)">
|
||||
<circle cx="16.79" cy="16.312" r="3.319" style="fill:rgb(225,142,57);"/>
|
||||
</g>
|
||||
<g transform="matrix(1,0,0,1,-0.944123,0.510573)">
|
||||
<path d="M12.988,9.407L14.259,22.064L15.427,22.185L15.484,19.654L17.723,19.607L17.7,21.031L18.427,20.976L18.583,18.442L15.48,18.154L15.515,14.006L20.744,13.909L20.738,16.136L21.79,16.077L21.992,12.615L15.399,12.643L14.958,9.391L12.988,9.407Z"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 1.6 KiB |
|
@ -1,35 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/animation_tree_state.svg-b99077fc178cfa1e23b2c854c7735c4a.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/godot_state_charts/animation_tree_state.svg"
|
||||
dest_files=[ "res://.import/animation_tree_state.svg-b99077fc178cfa1e23b2c854c7735c4a.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
svg/scale=1.0
|
|
@ -1,23 +0,0 @@
|
|||
tool
|
||||
class_name AtomicState, "atomic_state.svg"
|
||||
extends State
|
||||
|
||||
func _handle_transition(transition: Transition, source: State) -> void:
|
||||
# resolve target state
|
||||
var target = transition.resolve_target()
|
||||
if not target is State:
|
||||
push_error("the target state: %s of transition from state: %s is not a state" % [str(transition.to), source.name])
|
||||
return
|
||||
# atomic states can't transition, gotta ask mommy
|
||||
get_parent()._handle_transition(transition, source)
|
||||
|
||||
func _get_configuration_warning() -> String:
|
||||
var warning := ._get_configuration_warning()
|
||||
if not warning.empty():
|
||||
return warning
|
||||
|
||||
for child in get_children():
|
||||
if not child is Transition:
|
||||
return "atomic states cannot have children other than transitions"
|
||||
|
||||
return ""
|
|
@ -1,17 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg width="100%" height="100%" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;">
|
||||
<rect id="Artboard1" x="0" y="0" width="32" height="32" style="fill:none;"/>
|
||||
<g id="Artboard11" serif:id="Artboard1">
|
||||
<g transform="matrix(1.03705,0,0,1.03705,-0.460588,-0.659827)">
|
||||
<g id="BG">
|
||||
<path d="M30.337,8.833C30.337,4.841 27.096,1.601 23.104,1.601L8.64,1.601C4.649,1.601 1.408,4.841 1.408,8.833L1.408,23.297C1.408,27.288 4.649,30.529 8.64,30.529L23.104,30.529C27.096,30.529 30.337,27.288 30.337,23.297L30.337,8.833Z" style="fill:none;stroke:rgb(225,142,57);stroke-width:0.96px;"/>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="matrix(3.01177,0,0,3.01177,-34.5681,-33.1274)">
|
||||
<g id="AtomicState">
|
||||
<circle cx="16.79" cy="16.312" r="3.319" style="fill:rgb(225,142,57);"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 1.2 KiB |
|
@ -1,107 +0,0 @@
|
|||
tool
|
||||
class_name CompoundState, "compound_state.svg"
|
||||
extends State
|
||||
|
||||
## initial state to activate when state is activated
|
||||
export var initial_state: NodePath setget _set_initial_state
|
||||
|
||||
var _active_state: State = null
|
||||
|
||||
onready var _initial_state: State = get_node_or_null(initial_state)
|
||||
|
||||
func _set_initial_state(value: NodePath) -> void:
|
||||
initial_state = value
|
||||
update_configuration_warning()
|
||||
|
||||
func _state_init() -> void:
|
||||
._state_init()
|
||||
|
||||
for child in get_children():
|
||||
if child is State:
|
||||
child._state_init()
|
||||
|
||||
func _state_enter() -> void:
|
||||
._state_enter()
|
||||
|
||||
# activate initial state
|
||||
if _initial_state != null:
|
||||
_active_state = _initial_state
|
||||
_active_state._state_enter()
|
||||
else:
|
||||
push_error("no initial state set for state %s" % name)
|
||||
|
||||
func _state_exit() -> void:
|
||||
# deactivate current state
|
||||
if _active_state != null:
|
||||
_active_state._state_exit()
|
||||
_active_state = null
|
||||
._state_exit()
|
||||
|
||||
func _state_event(event: String) -> bool:
|
||||
if not active:
|
||||
return false
|
||||
|
||||
# forward event to active state
|
||||
if is_instance_valid(_active_state):
|
||||
if _active_state._state_event(event):
|
||||
emit_signal("event_received", event)
|
||||
return true
|
||||
|
||||
# if event not handled by active state, handle here
|
||||
return ._state_event(event)
|
||||
|
||||
func _handle_transition(transition: Transition, source: State) -> void:
|
||||
var target: State = transition.resolve_target()
|
||||
if not target is State:
|
||||
push_error("the target state: %s of transition from state: %s is not a state" % [str(transition.to), source.name])
|
||||
return
|
||||
|
||||
if target.active:
|
||||
return
|
||||
|
||||
# if direct child, just switch active state
|
||||
if target in get_children():
|
||||
# deactivate current state
|
||||
if is_instance_valid(_active_state):
|
||||
_active_state._state_exit()
|
||||
# activate target state
|
||||
_active_state = target
|
||||
_active_state._state_enter()
|
||||
return
|
||||
|
||||
# if ancestor, activate next state down and let it handle transition further
|
||||
if self.is_a_parent_of(target):
|
||||
# find which child is also ancestor
|
||||
for child in get_children():
|
||||
if child.is_a_parent_of(target):
|
||||
# change state if necessary
|
||||
if _active_state != child:
|
||||
if is_instance_valid(_active_state):
|
||||
_active_state._state_exit()
|
||||
_active_state = child
|
||||
_active_state._state_enter()
|
||||
child._handle_transition(transition, source)
|
||||
return
|
||||
return
|
||||
|
||||
# target is a cousin, defer to mommy
|
||||
get_parent()._handle_transition(transition, source)
|
||||
|
||||
func _get_configuration_warning() -> String:
|
||||
var warning := ._get_configuration_warning()
|
||||
if not warning.empty():
|
||||
return warning
|
||||
|
||||
if get_child_count() == 0:
|
||||
return "compound states must have at least one child state"
|
||||
|
||||
var child_state = get_node_or_null(initial_state)
|
||||
|
||||
if not is_instance_valid(child_state):
|
||||
return "initial state not found, is the path correct?"
|
||||
if child_state.get_parent() != self:
|
||||
return "initial state must be a direct child of this compound state"
|
||||
if not child_state is State:
|
||||
return "initial state must be a State"
|
||||
|
||||
return ""
|
|
@ -1,24 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg width="100%" height="100%" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;">
|
||||
<rect id="Artboard1" x="0" y="0" width="32" height="32" style="fill:none;"/>
|
||||
<g id="Artboard11" serif:id="Artboard1">
|
||||
<g transform="matrix(1.03705,0,0,1.03705,-0.460588,-0.659827)">
|
||||
<g id="BG">
|
||||
<path d="M30.337,8.833C30.337,4.841 27.096,1.601 23.104,1.601L8.64,1.601C4.649,1.601 1.408,4.841 1.408,8.833L1.408,23.297C1.408,27.288 4.649,30.529 8.64,30.529L23.104,30.529C27.096,30.529 30.337,27.288 30.337,23.297L30.337,8.833Z" style="fill:none;stroke:rgb(225,142,57);stroke-width:0.96px;"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="CompoundState">
|
||||
<path d="M7.984,22.271L16.112,8.238L24.694,22.425L7.984,22.271Z" style="fill:none;stroke:rgb(225,142,57);stroke-width:2px;"/>
|
||||
<g transform="matrix(1.36246,0,0,1.36246,-18.1682,-4.24482)">
|
||||
<circle cx="19.207" cy="19.263" r="4.404" style="fill:rgb(225,142,57);"/>
|
||||
</g>
|
||||
<g transform="matrix(1.36246,0,0,1.36246,-2.16822,-4.24482)">
|
||||
<circle cx="19.207" cy="19.263" r="4.404" style="fill:rgb(225,142,57);"/>
|
||||
</g>
|
||||
<g transform="matrix(1.36246,0,0,1.36246,-10.1682,-17.6299)">
|
||||
<circle cx="19.207" cy="19.263" r="4.404" style="fill:rgb(225,142,57);"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 1.7 KiB |
|
@ -1,35 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/compound_state.svg-84780d78ec1f15e1cbb9d20f4df031a7.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/godot_state_charts/compound_state.svg"
|
||||
dest_files=[ "res://.import/compound_state.svg-84780d78ec1f15e1cbb9d20f4df031a7.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
svg/scale=1.0
|
|
@ -1,10 +0,0 @@
|
|||
tool
|
||||
extends EditorPlugin
|
||||
|
||||
# plugin initialization
|
||||
func _enter_tree() -> void:
|
||||
pass
|
||||
|
||||
# plugin cleanup
|
||||
func _exit_tree() -> void:
|
||||
pass
|
|
@ -1,23 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg width="100%" height="100%" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;">
|
||||
<rect id="Artboard1" x="0" y="0" width="32" height="32" style="fill:none;"/>
|
||||
<g id="Artboard11" serif:id="Artboard1">
|
||||
<g transform="matrix(1.03705,0,0,1.03705,-0.460588,-0.659827)">
|
||||
<g id="BG">
|
||||
<path d="M30.337,8.833C30.337,4.841 27.096,1.601 23.104,1.601L8.64,1.601C4.649,1.601 1.408,4.841 1.408,8.833L1.408,23.297C1.408,27.288 4.649,30.529 8.64,30.529L23.104,30.529C27.096,30.529 30.337,27.288 30.337,23.297L30.337,8.833Z" style="fill:none;stroke:rgb(225,142,57);stroke-width:0.96px;"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="HistoryState">
|
||||
<g transform="matrix(1,0,0,1,0.326002,-0.0776194)">
|
||||
<path d="M7.731,16.235C7.731,11.827 11.31,8.248 15.718,8.248C20.127,8.248 23.706,11.827 23.706,16.235C23.706,20.644 20.127,24.222 15.718,24.222C13.665,24.222 11.792,23.446 10.377,22.171" style="fill:none;stroke:rgb(225,142,57);stroke-width:2px;"/>
|
||||
</g>
|
||||
<g transform="matrix(1,0,0,1,0.465717,0)">
|
||||
<path d="M7.731,16.235L10.089,16.228L7.707,18.393L5.332,16.235L7.731,16.235Z" style="fill:none;stroke:rgb(225,142,57);stroke-width:2px;"/>
|
||||
</g>
|
||||
<g transform="matrix(1,0,0,1,0.294954,0.0776194)">
|
||||
<path d="M15.646,12.205L15.568,16.908L18.021,18.771" style="fill:none;stroke:rgb(225,142,57);stroke-width:2px;"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 1.8 KiB |
|
@ -1,35 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/history_state.svg-7ed355ddc4d844fa3139e70c23187edd.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/godot_state_charts/history_state.svg"
|
||||
dest_files=[ "res://.import/history_state.svg-7ed355ddc4d844fa3139e70c23187edd.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
svg/scale=1.0
|
|
@ -1,53 +0,0 @@
|
|||
tool
|
||||
class_name ParallelState, "parallel_state.svg"
|
||||
extends State
|
||||
|
||||
var _sub_states: Array = []
|
||||
|
||||
func _state_init() -> void:
|
||||
._state_init()
|
||||
|
||||
for child in get_children():
|
||||
if child is State:
|
||||
_sub_states.append(child)
|
||||
child._state_init()
|
||||
|
||||
func _state_enter() -> void:
|
||||
._state_enter()
|
||||
# enter all children
|
||||
for child in _sub_states:
|
||||
child._state_enter()
|
||||
|
||||
func _state_exit() -> void:
|
||||
# exit all children
|
||||
for child in _sub_states:
|
||||
child._state_exit()
|
||||
._state_exit()
|
||||
|
||||
func _state_event(event: String) -> bool:
|
||||
if not active:
|
||||
return false
|
||||
|
||||
# forward to all children
|
||||
var handled := false
|
||||
for child in _sub_states:
|
||||
var child_handled = child._state_event(event)
|
||||
handled = handled or child_handled
|
||||
|
||||
# if child handled event, no more touchy
|
||||
if handled:
|
||||
emit_signal("event_received", event)
|
||||
return true
|
||||
|
||||
# otherwise handle ourselves
|
||||
return ._state_event(event)
|
||||
|
||||
func _get_configuration_warning() -> String:
|
||||
var warning := ._get_configuration_warning()
|
||||
if not warning.empty():
|
||||
return warning
|
||||
|
||||
if get_child_count() == 0:
|
||||
return "parallel states should have at least one child state"
|
||||
|
||||
return ""
|
|
@ -1,23 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg width="100%" height="100%" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;">
|
||||
<rect id="Artboard1" x="0" y="0" width="32" height="32" style="fill:none;"/>
|
||||
<g id="Artboard11" serif:id="Artboard1">
|
||||
<g transform="matrix(1.03705,0,0,1.03705,-0.460588,-0.659827)">
|
||||
<g id="BG">
|
||||
<path d="M30.337,8.833C30.337,4.841 27.096,1.601 23.104,1.601L8.64,1.601C4.649,1.601 1.408,4.841 1.408,8.833L1.408,23.297C1.408,27.288 4.649,30.529 8.64,30.529L23.104,30.529C27.096,30.529 30.337,27.288 30.337,23.297L30.337,8.833Z" style="fill:none;stroke:rgb(225,142,57);stroke-width:0.96px;"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="ParallelState">
|
||||
<g transform="matrix(1.36246,0,0,1.36246,-10.1682,-18.2448)">
|
||||
<circle cx="19.207" cy="19.263" r="4.404" style="fill:rgb(225,142,57);"/>
|
||||
</g>
|
||||
<g transform="matrix(1,0,0,1,-0.0397943,-0.229175)">
|
||||
<path d="M4.306,16.267L27.54,16.341" style="fill:none;stroke:rgb(225,142,57);stroke-width:2px;"/>
|
||||
</g>
|
||||
<g transform="matrix(1.36246,0,0,1.36246,-10.1682,-2.24482)">
|
||||
<circle cx="19.207" cy="19.263" r="4.404" style="fill:rgb(225,142,57);"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 1.6 KiB |
|
@ -1,7 +0,0 @@
|
|||
[plugin]
|
||||
|
||||
name="Godot State Charts"
|
||||
description="A simple, yet powerful state charts library for Godot"
|
||||
author="derkork"
|
||||
version="0.0.1"
|
||||
script="godot_state_charts.gd"
|
|
@ -1,132 +0,0 @@
|
|||
tool
|
||||
class_name State, "state.svg"
|
||||
extends Node
|
||||
|
||||
## called when state is entered
|
||||
signal state_entered()
|
||||
|
||||
## called when state is exited
|
||||
signal state_exited()
|
||||
|
||||
## called when state recieves an event while active
|
||||
signal event_received(event)
|
||||
|
||||
## called when the state is processing
|
||||
signal state_processing(delta)
|
||||
|
||||
## called when the state is physics_processing
|
||||
signal state_physics_processing(delta)
|
||||
|
||||
## processing mode
|
||||
enum ProcessMode {IDLE, PHYSICS}
|
||||
|
||||
## whether to process transition delays during physics or idle frames
|
||||
export (ProcessMode) var transition_process_mode: int = ProcessMode.PHYSICS
|
||||
## events to consume so that parent state can not
|
||||
export (Array, String) var consumed_events: Array = []
|
||||
|
||||
## whether the current state is active
|
||||
var active: bool setget _set_active
|
||||
func _set_active(value: bool):
|
||||
active = value
|
||||
set_process(value)
|
||||
set_physics_process(value)
|
||||
|
||||
## all of the state's transitions
|
||||
var _transitions: Array = []
|
||||
## queued transition to take
|
||||
var _queued_transition: Transition = null
|
||||
## time until queued transition is taken
|
||||
var _queued_transition_time: float = 0.0
|
||||
|
||||
## called when building the state chart
|
||||
func _state_init() -> void:
|
||||
_set_active(false)
|
||||
|
||||
# get references to transitions
|
||||
_transitions.clear()
|
||||
for child in get_children():
|
||||
if child is Transition:
|
||||
_transitions.append(child as Transition)
|
||||
|
||||
## called when state is entered
|
||||
func _state_enter() -> void:
|
||||
_set_active(true)
|
||||
emit_signal("state_entered")
|
||||
|
||||
# check eventless transitions
|
||||
for transition in _transitions:
|
||||
if not transition.has_event() and transition.evaluate_guard():
|
||||
# first match is taken
|
||||
_queue_transition(transition)
|
||||
|
||||
## called when state is exited
|
||||
func _state_exit() -> void:
|
||||
_set_active(false)
|
||||
emit_signal("state_exited")
|
||||
|
||||
## handles given event. returns true if it is consumed
|
||||
func _state_event(event: String) -> bool:
|
||||
if not active:
|
||||
return false
|
||||
|
||||
# emit event received signal
|
||||
emit_signal("event_received", event)
|
||||
|
||||
#check for transitions reacting to event
|
||||
for transition in _transitions:
|
||||
if transition.event == event and transition.evaluate_guard():
|
||||
# first match is taken
|
||||
_queue_transition(transition)
|
||||
return true
|
||||
|
||||
if event in consumed_events:
|
||||
return true
|
||||
|
||||
return false
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
if Engine.editor_hint:
|
||||
return
|
||||
|
||||
# emit processing signal
|
||||
emit_signal("state_processing", delta)
|
||||
|
||||
# process transitions if mode is IDLE
|
||||
if transition_process_mode == ProcessMode.IDLE:
|
||||
_process_transition(delta)
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
if Engine.editor_hint:
|
||||
return
|
||||
|
||||
# emit physics processing signal
|
||||
emit_signal("state_physics_processing", delta)
|
||||
|
||||
# process transitions if mode is PHYSICS
|
||||
if transition_process_mode == ProcessMode.PHYSICS:
|
||||
_process_transition(delta)
|
||||
|
||||
## queues a transition to be taken
|
||||
func _queue_transition(transition: Transition) -> void:
|
||||
_queued_transition = transition
|
||||
_queued_transition_time = transition.delay
|
||||
|
||||
## checks for and processes queued transition
|
||||
func _process_transition(delta: float) -> void:
|
||||
# check for queued transition
|
||||
if _queued_transition != null:
|
||||
_queued_transition_time -= delta
|
||||
# if ready, handle transition and clear queue
|
||||
if _queued_transition_time <= 0.0:
|
||||
var transition = _queued_transition
|
||||
_queued_transition = null
|
||||
_queued_transition_time = 0.0
|
||||
_handle_transition(transition, self)
|
||||
|
||||
## attempts to take transition
|
||||
func _handle_transition(transition: Transition, source: State) -> void:
|
||||
push_error("state %s cannot handle transitions" % name)
|
||||
|
||||
func _get_configuration_warning() -> String:
|
||||
return ""
|
|
@ -1,92 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
width="100%"
|
||||
height="100%"
|
||||
viewBox="0 0 32 32"
|
||||
version="1.1"
|
||||
xml:space="preserve"
|
||||
style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;"
|
||||
id="svg132"
|
||||
sodipodi:docname="state.svg"
|
||||
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns:serif="http://www.serif.com/"><defs
|
||||
id="defs136"><linearGradient
|
||||
inkscape:collect="always"
|
||||
id="linearGradient1345"><stop
|
||||
style="stop-color:#e18e39;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop1341" /><stop
|
||||
style="stop-color:#e18e39;stop-opacity:0;"
|
||||
offset="1"
|
||||
id="stop1343" /></linearGradient><linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient1345"
|
||||
id="linearGradient1347"
|
||||
x1="12.971001"
|
||||
y1="16.312"
|
||||
x2="20.609001"
|
||||
y2="16.312"
|
||||
gradientUnits="userSpaceOnUse" /></defs><sodipodi:namedview
|
||||
id="namedview134"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#000000"
|
||||
borderopacity="0.25"
|
||||
inkscape:showpageshadow="2"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:deskcolor="#d1d1d1"
|
||||
showgrid="false"
|
||||
inkscape:zoom="17.46875"
|
||||
inkscape:cx="5.5241503"
|
||||
inkscape:cy="16.028623"
|
||||
inkscape:window-width="1302"
|
||||
inkscape:window-height="737"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="0"
|
||||
inkscape:current-layer="Artboard11" />
|
||||
<rect
|
||||
id="Artboard1"
|
||||
x="0"
|
||||
y="0"
|
||||
width="32"
|
||||
height="32"
|
||||
style="fill:none;" />
|
||||
<g
|
||||
id="Artboard11"
|
||||
serif:id="Artboard1">
|
||||
<g
|
||||
transform="matrix(1.03705,0,0,1.03705,-0.460588,-0.659827)"
|
||||
id="g124"
|
||||
style="stroke-width:0.99995179;stroke-dasharray:none">
|
||||
<g
|
||||
id="BG"
|
||||
style="stroke-width:0.99995179;stroke-dasharray:none">
|
||||
<path
|
||||
d="M30.337,8.833C30.337,4.841 27.096,1.601 23.104,1.601L8.64,1.601C4.649,1.601 1.408,4.841 1.408,8.833L1.408,23.297C1.408,27.288 4.649,30.529 8.64,30.529L23.104,30.529C27.096,30.529 30.337,27.288 30.337,23.297L30.337,8.833Z"
|
||||
style="fill:none;stroke:rgb(225, 142, 57);stroke-width:0.99995179;stroke-dasharray:none"
|
||||
id="path121" />
|
||||
</g>
|
||||
</g>
|
||||
<g
|
||||
transform="matrix(3.01177,0,0,3.01177,-34.5681,-33.1274)"
|
||||
id="g129"
|
||||
style="fill:none;stroke:#e18e39;stroke-opacity:1;opacity:1;stroke-width:0.83406103;stroke-dasharray:none">
|
||||
<g
|
||||
id="AtomicState"
|
||||
style="fill:none;stroke:#e18e39;stroke-opacity:1;stroke-width:0.83406103;stroke-dasharray:none">
|
||||
<circle
|
||||
cx="16.79"
|
||||
cy="16.312"
|
||||
r="3.319"
|
||||
style="fill:none;stroke:#e18e39;stroke-opacity:1;stroke-width:0.83406103;stroke-dasharray:none"
|
||||
id="circle126" />
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 3 KiB |
|
@ -1,69 +0,0 @@
|
|||
tool
|
||||
class_name StateChart, "state_chart.svg"
|
||||
extends Node
|
||||
|
||||
## whether chart should initialize on its own or be done manually
|
||||
export var auto_initialize: bool = true
|
||||
## whether chart should propagate processing events every frame
|
||||
export var idle_frame_event: bool = false
|
||||
export var physics_frame_event: bool = false
|
||||
|
||||
# root state of the state chart
|
||||
var _state: State = null
|
||||
|
||||
# values available to expression guards
|
||||
var _guard_properties: Dictionary = {}
|
||||
|
||||
func _ready() -> void:
|
||||
if Engine.editor_hint:
|
||||
return
|
||||
if auto_initialize:
|
||||
initialize()
|
||||
|
||||
func initialize() -> void:
|
||||
# make sure only one child exists
|
||||
if get_child_count() != 1:
|
||||
push_error("StateChart must have exactly one child")
|
||||
return
|
||||
|
||||
# verify child is a State
|
||||
var child = get_child(0)
|
||||
if not child is State:
|
||||
push_error("StateChart's child must be a State")
|
||||
return
|
||||
|
||||
# initialize states
|
||||
_state = child as State
|
||||
_state._state_init()
|
||||
|
||||
# enter root state
|
||||
_state._state_enter()
|
||||
|
||||
## sends an event to be propagated through the states
|
||||
func send_event(event: String) -> void:
|
||||
if not is_instance_valid(_state):
|
||||
push_error("StateChart is not initialized properly")
|
||||
return
|
||||
|
||||
_state._state_event(event)
|
||||
|
||||
## sets a property available to guard expressions in transitions
|
||||
func set_guard_property(property: String, value) -> void:
|
||||
_guard_properties[property] = value
|
||||
|
||||
func _get_configuration_warning() -> String:
|
||||
if get_child_count() != 1:
|
||||
return "StateChart must have exactly one child"
|
||||
if not get_child(0) is State:
|
||||
return "StateChart's child must be a State"
|
||||
return ""
|
||||
|
||||
# send frame events that transition can listen to if it should evaluate
|
||||
# its guard every frame
|
||||
func _process(delta: float) -> void:
|
||||
if idle_frame_event:
|
||||
send_event("idle_frame")
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
if physics_frame_event:
|
||||
send_event("physics_frame")
|
|
@ -1,20 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg width="100%" height="100%" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;">
|
||||
<rect id="Artboard1" x="0" y="0" width="32" height="32" style="fill:none;"/>
|
||||
<g id="Artboard11" serif:id="Artboard1">
|
||||
<g transform="matrix(1.03705,0,0,1.03705,-0.460588,-0.659827)">
|
||||
<g id="BG">
|
||||
<path d="M30.337,8.833C30.337,4.841 27.096,1.601 23.104,1.601L8.64,1.601C4.649,1.601 1.408,4.841 1.408,8.833L1.408,23.297C1.408,27.288 4.649,30.529 8.64,30.529L23.104,30.529C27.096,30.529 30.337,27.288 30.337,23.297L30.337,8.833Z" style="fill:none;stroke:rgb(225,142,57);stroke-width:0.96px;"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="Statechart">
|
||||
<g transform="matrix(0.672421,0,0,0.672421,-1.95754,-0.281501)">
|
||||
<path d="M26.032,10.926C26.032,8.533 24.089,6.591 21.696,6.591L13.025,6.591C10.632,6.591 8.689,8.533 8.689,10.926L8.689,20.247C8.689,22.639 10.632,24.582 13.025,24.582L21.696,24.582C24.089,24.582 26.032,22.639 26.032,20.247L26.032,10.926Z" style="fill:rgb(225,142,57);stroke:rgb(225,142,57);stroke-width:2.97px;"/>
|
||||
</g>
|
||||
<g transform="matrix(0.851682,0,0,0.851682,5.75568,7.00772)">
|
||||
<path d="M26.032,10.926C26.032,8.533 24.089,6.591 21.696,6.591L13.025,6.591C10.632,6.591 8.689,8.533 8.689,10.926L8.689,20.247C8.689,22.639 10.632,24.582 13.025,24.582L21.696,24.582C24.089,24.582 26.032,22.639 26.032,20.247L26.032,10.926Z" style="fill:rgb(225,142,57);stroke:rgb(225,142,57);stroke-width:2.35px;"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 1.9 KiB |
|
@ -1,24 +0,0 @@
|
|||
class_name StateChartDebug
|
||||
extends Tree
|
||||
|
||||
var target: StateChart = null
|
||||
|
||||
func _init() -> void:
|
||||
set("custom_styles/bg", StyleBoxEmpty.new())
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
if target is StateChart and visible:
|
||||
clear()
|
||||
var root_state = target.get_child(0)
|
||||
if root_state is State:
|
||||
var item = create_item(null)
|
||||
item.set_text(0, root_state.name)
|
||||
_find_active_states(root_state, item)
|
||||
|
||||
func _find_active_states(state: State, state_item: TreeItem):
|
||||
for child in state.get_children():
|
||||
if child is State:
|
||||
if child.active:
|
||||
var item := create_item(state_item)
|
||||
item.set_text(0, child.name)
|
||||
_find_active_states(child, item)
|
|
@ -1,88 +0,0 @@
|
|||
tool
|
||||
class_name Transition, "transition.svg"
|
||||
extends Node
|
||||
|
||||
## cyclic reference workarounds :/
|
||||
var _State = load("res://addons/godot_state_charts/state.gd")
|
||||
var _StateChart = load("res://addons/godot_state_charts/state_chart.gd")
|
||||
|
||||
## state to transition to
|
||||
export var to: NodePath
|
||||
|
||||
## event to react to for transition
|
||||
export var event: String
|
||||
|
||||
## delay before taking transition
|
||||
export var delay: float = 0.0
|
||||
|
||||
## expression to determine whether to take transition
|
||||
## if it returns true the transition will be taken
|
||||
## expression properties added via the StateChart are available here
|
||||
## if states are listed in `monitored_states`, they will be available as
|
||||
## boolean properties named "[state]_active"
|
||||
export (String, MULTILINE) var guard_expression: String
|
||||
|
||||
## states to check if active
|
||||
## they are available in the guard expression as bools named "[state]_active"
|
||||
export (Array, NodePath) var checked_states: Array = []
|
||||
|
||||
## returns true if the transition has an event to react to
|
||||
func has_event() -> bool:
|
||||
return event != null and not event.empty()
|
||||
|
||||
## returns the target state
|
||||
func resolve_target():
|
||||
if to == null or to.is_empty():
|
||||
return null
|
||||
|
||||
var target = get_node_or_null(to)
|
||||
if target is _State:
|
||||
return target
|
||||
|
||||
return null
|
||||
|
||||
## returns true if the transition should be taken at this time
|
||||
func evaluate_guard() -> bool:
|
||||
# return true if there is no guard
|
||||
if guard_expression == null or guard_expression.empty():
|
||||
return true
|
||||
|
||||
# find root StateChart
|
||||
var root = get_parent()
|
||||
while is_instance_valid(root) and not root is _StateChart:
|
||||
root = root.get_parent()
|
||||
if not is_instance_valid(root):
|
||||
push_error("could not find root StateChart, cannot evaluate expression")
|
||||
return false
|
||||
|
||||
# combine monitored states with expression properties
|
||||
var properties: Dictionary = root._guard_properties.duplicate()
|
||||
for node in checked_states:
|
||||
var state = get_node_or_null(node)
|
||||
if is_instance_valid(state) and state is _State:
|
||||
properties["in_" + state.name] = state.active
|
||||
|
||||
# construct expression and set up properties
|
||||
var expression := Expression.new()
|
||||
var input_names = properties.keys()
|
||||
|
||||
# attempt to parse expression
|
||||
var parse_result = expression.parse(guard_expression, input_names)
|
||||
if parse_result != OK:
|
||||
push_error("error parsing expression: " + expression.get_error_text())
|
||||
return false
|
||||
|
||||
# create array of input values
|
||||
var input_values = []
|
||||
for input_name in input_names:
|
||||
input_values.append(properties[input_name])
|
||||
|
||||
# execute expression and validate result
|
||||
var result = expression.execute(input_values)
|
||||
if expression.has_execute_failed():
|
||||
push_error("failed to execute expression: " + expression.get_error_text())
|
||||
return false
|
||||
if typeof(result) != TYPE_BOOL:
|
||||
push_error("result is not a boolean value. returning false")
|
||||
return false
|
||||
return result
|
|
@ -1,93 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
width="100%"
|
||||
height="100%"
|
||||
viewBox="0 0 32 32"
|
||||
version="1.1"
|
||||
xml:space="preserve"
|
||||
style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;"
|
||||
id="svg86"
|
||||
sodipodi:docname="transition.svg"
|
||||
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns:serif="http://www.serif.com/"><defs
|
||||
id="defs90" /><sodipodi:namedview
|
||||
id="namedview88"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#000000"
|
||||
borderopacity="0.25"
|
||||
inkscape:showpageshadow="2"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:deskcolor="#d1d1d1"
|
||||
showgrid="false"
|
||||
inkscape:zoom="17.46875"
|
||||
inkscape:cx="16"
|
||||
inkscape:cy="16.257603"
|
||||
inkscape:window-width="1302"
|
||||
inkscape:window-height="737"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="0"
|
||||
inkscape:current-layer="Transition" />
|
||||
<rect
|
||||
id="Artboard1"
|
||||
x="0"
|
||||
y="0"
|
||||
width="32"
|
||||
height="32"
|
||||
style="fill:none;" />
|
||||
<g
|
||||
id="Artboard11"
|
||||
serif:id="Artboard1">
|
||||
<g
|
||||
transform="matrix(1.03705,0,0,1.03705,-0.460588,-0.659827)"
|
||||
id="g70"
|
||||
style="stroke:#ffdf00;stroke-opacity:1">
|
||||
<g
|
||||
id="BG"
|
||||
style="stroke:#ffdf00;stroke-opacity:1">
|
||||
<path
|
||||
d="M30.337,8.833C30.337,4.841 27.096,1.601 23.104,1.601L8.64,1.601C4.649,1.601 1.408,4.841 1.408,8.833L1.408,23.297C1.408,27.288 4.649,30.529 8.64,30.529L23.104,30.529C27.096,30.529 30.337,27.288 30.337,23.297L30.337,8.833Z"
|
||||
style="fill:none;stroke:#ffdf00;stroke-width:0.96px;stroke-opacity:1"
|
||||
id="path67" />
|
||||
</g>
|
||||
</g>
|
||||
<g
|
||||
id="Transition">
|
||||
<g
|
||||
transform="matrix(0.59386,-0.00129228,-0.00129228,0.999996,1.73018,-0.223543)"
|
||||
id="g74"
|
||||
style="stroke:#ffdf00;stroke-opacity:1">
|
||||
<path
|
||||
d="M14.852,23.427C30.642,25.277 38.781,18.528 34.54,10.944"
|
||||
style="fill:none;stroke:#ffdf00;stroke-width:2.44px;stroke-opacity:1"
|
||||
id="path72" />
|
||||
</g>
|
||||
<g
|
||||
transform="matrix(1.36246,0,0,1.36246,-3.81851,-16.9755)"
|
||||
id="g78">
|
||||
<circle
|
||||
cx="19.207"
|
||||
cy="19.263"
|
||||
r="4.404"
|
||||
style="fill:#ffdf00;fill-opacity:1"
|
||||
id="circle76" />
|
||||
</g>
|
||||
<g
|
||||
transform="matrix(1.36246,0,0,1.36246,-16.9151,-2.76732)"
|
||||
id="g82"
|
||||
style="fill:#ffdf00;fill-opacity:1">
|
||||
<circle
|
||||
cx="19.207"
|
||||
cy="19.263"
|
||||
r="4.404"
|
||||
style="fill:#ffdf00;fill-opacity:1"
|
||||
id="circle80" />
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 2.7 KiB |
|
@ -1,15 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/glass_break.ogg-90d29d1196efeaa1b90b121f831dc311.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://audio/glass_break.ogg"
|
||||
dest_files=[ "res://.import/glass_break.ogg-90d29d1196efeaa1b90b121f831dc311.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=false
|
||||
loop_offset=0
|
|
@ -1,15 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/glass_crack.ogg-f61a203463634593b8f657b7bd6c8959.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://audio/glass_crack.ogg"
|
||||
dest_files=[ "res://.import/glass_crack.ogg-f61a203463634593b8f657b7bd6c8959.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=false
|
||||
loop_offset=0
|
|
@ -1,15 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/74(game_over).ogg-c8daa270fc6254ebdb545c9163121582.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://audio/music/74(game_over).ogg"
|
||||
dest_files=[ "res://.import/74(game_over).ogg-c8daa270fc6254ebdb545c9163121582.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=false
|
||||
loop_offset=0
|
|
@ -1,15 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/BBBBBBBB.ogg-cc9e6a4bb1b385b89207987440a19675.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://audio/music/BBBBBBBB.ogg"
|
||||
dest_files=[ "res://.import/BBBBBBBB.ogg-cc9e6a4bb1b385b89207987440a19675.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=12.091
|
BIN
audio/music/bumpy_ride.mp3
Normal file
15
audio/music/bumpy_ride.mp3.import
Normal file
|
@ -0,0 +1,15 @@
|
|||
[remap]
|
||||
|
||||
importer="mp3"
|
||||
type="AudioStreamMP3"
|
||||
path="res://.import/bumpy_ride.mp3-55d67433bf2f6cadbc5025701c782443.mp3str"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://audio/music/bumpy_ride.mp3"
|
||||
dest_files=[ "res://.import/bumpy_ride.mp3-55d67433bf2f6cadbc5025701c782443.mp3str" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=0
|
BIN
audio/music/burnt_in.ogg
Normal file
15
audio/music/burnt_in.ogg.import
Normal file
|
@ -0,0 +1,15 @@
|
|||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/burnt_in.ogg-5771350ae6e2877e32aaf932b22c784c.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://audio/music/burnt_in.ogg"
|
||||
dest_files=[ "res://.import/burnt_in.ogg-5771350ae6e2877e32aaf932b22c784c.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=false
|
||||
loop_offset=0
|
|
@ -1,15 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/burnt_out.ogg-330f5bc87b626c0f8fed84e8c4c6a359.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://audio/music/burnt_out.ogg"
|
||||
dest_files=[ "res://.import/burnt_out.ogg-330f5bc87b626c0f8fed84e8c4c6a359.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=42.507
|
|
@ -1,15 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/cryokiller.ogg-d287a2f5c24b6c8114a93e405fe3c292.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://audio/music/cryokiller.ogg"
|
||||
dest_files=[ "res://.import/cryokiller.ogg-d287a2f5c24b6c8114a93e405fe3c292.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=71.924
|
BIN
audio/music/dusk_park.mp3
Normal file
15
audio/music/dusk_park.mp3.import
Normal file
|
@ -0,0 +1,15 @@
|
|||
[remap]
|
||||
|
||||
importer="mp3"
|
||||
type="AudioStreamMP3"
|
||||
path="res://.import/dusk_park.mp3-4f32391dd5241853bbe02a0e983b8702.mp3str"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://audio/music/dusk_park.mp3"
|
||||
dest_files=[ "res://.import/dusk_park.mp3-4f32391dd5241853bbe02a0e983b8702.mp3str" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=0
|
|
@ -1,15 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/dusk_park.ogg-66b2f58b4fbcb15fb39169e2ef3dc572.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://audio/music/dusk_park.ogg"
|
||||
dest_files=[ "res://.import/dusk_park.ogg-66b2f58b4fbcb15fb39169e2ef3dc572.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=14.25
|
|
@ -1,15 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/empty_motel.ogg-1334b9d142536ba1f2d1ff346aa90c0f.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://audio/music/empty_motel.ogg"
|
||||
dest_files=[ "res://.import/empty_motel.ogg-1334b9d142536ba1f2d1ff346aa90c0f.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=false
|
||||
loop_offset=0
|
|
@ -1,15 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/intro.ogg-a141f549457bc6a41bef73e129d9f7b6.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://audio/music/intro.ogg"
|
||||
dest_files=[ "res://.import/intro.ogg-a141f549457bc6a41bef73e129d9f7b6.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=false
|
||||
loop_offset=0
|
BIN
audio/music/klystron.mp3
Normal file
15
audio/music/klystron.mp3.import
Normal file
|
@ -0,0 +1,15 @@
|
|||
[remap]
|
||||
|
||||
importer="mp3"
|
||||
type="AudioStreamMP3"
|
||||
path="res://.import/klystron.mp3-602926993b6a74c407f1b84641b06fdd.mp3str"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://audio/music/klystron.mp3"
|
||||
dest_files=[ "res://.import/klystron.mp3-602926993b6a74c407f1b84641b06fdd.mp3str" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=0
|
|
@ -1,15 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/klystron.ogg-2dce5b1690502308cf909f0b9eda8d99.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://audio/music/klystron.ogg"
|
||||
dest_files=[ "res://.import/klystron.ogg-2dce5b1690502308cf909f0b9eda8d99.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=6.775
|
|
@ -1,15 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/klystron_vip.ogg-fb327691a1b5cc895d2d8258fd374fdb.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://audio/music/klystron_vip.ogg"
|
||||
dest_files=[ "res://.import/klystron_vip.ogg-fb327691a1b5cc895d2d8258fd374fdb.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=0
|
|
@ -1,15 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/mitten.ogg-ca50efac016b8bf1022a91f574ac6ca6.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://audio/music/mitten.ogg"
|
||||
dest_files=[ "res://.import/mitten.ogg-ca50efac016b8bf1022a91f574ac6ca6.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=0
|
BIN
audio/music/moon_trail.mp3
Normal file
15
audio/music/moon_trail.mp3.import
Normal file
|
@ -0,0 +1,15 @@
|
|||
[remap]
|
||||
|
||||
importer="mp3"
|
||||
type="AudioStreamMP3"
|
||||
path="res://.import/moon_trail.mp3-e5596d3a9a378d4307b426522ca94d8d.mp3str"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://audio/music/moon_trail.mp3"
|
||||
dest_files=[ "res://.import/moon_trail.mp3-e5596d3a9a378d4307b426522ca94d8d.mp3str" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=0
|
|
@ -1,15 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/moon_trail.ogg-8108eb4067344b396b1f232ad37111d0.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://audio/music/moon_trail.ogg"
|
||||
dest_files=[ "res://.import/moon_trail.ogg-8108eb4067344b396b1f232ad37111d0.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=0
|
|
@ -1,15 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/pause.ogg-e880bf592ac2065d4f2c443ae1e801bb.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://audio/music/pause.ogg"
|
||||
dest_files=[ "res://.import/pause.ogg-e880bf592ac2065d4f2c443ae1e801bb.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=0
|
|
@ -1,15 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/precision_parasite.ogg-48c1edc2a47c76aa62b0460e1c85582d.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://audio/music/precision_parasite.ogg"
|
||||
dest_files=[ "res://.import/precision_parasite.ogg-48c1edc2a47c76aa62b0460e1c85582d.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=16.684
|
|
@ -1,15 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/rev83-wondering-now-short.ogg-6a06f237d6afb85ca00721c00a48a0ef.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://audio/music/rev83-wondering-now-short.ogg"
|
||||
dest_files=[ "res://.import/rev83-wondering-now-short.ogg-6a06f237d6afb85ca00721c00a48a0ef.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=false
|
||||
loop_offset=0
|
BIN
audio/music/rumble_loop.mp3
Normal file
15
audio/music/rumble_loop.mp3.import
Normal file
|
@ -0,0 +1,15 @@
|
|||
[remap]
|
||||
|
||||
importer="mp3"
|
||||
type="AudioStreamMP3"
|
||||
path="res://.import/rumble_loop.mp3-8296079a496312740d286c71cb69f818.mp3str"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://audio/music/rumble_loop.mp3"
|
||||
dest_files=[ "res://.import/rumble_loop.mp3-8296079a496312740d286c71cb69f818.mp3str" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=0
|
|
@ -1,15 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/rumble_loop.ogg-75748d2cd32c4c0b3bc7d4e36971e0ce.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://audio/music/rumble_loop.ogg"
|
||||
dest_files=[ "res://.import/rumble_loop.ogg-75748d2cd32c4c0b3bc7d4e36971e0ce.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=0
|
|
@ -1,15 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/rumble_revolution.ogg-f4caaf13c218d7e4e59d5ae9bc9b9d8a.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://audio/music/rumble_revolution.ogg"
|
||||
dest_files=[ "res://.import/rumble_revolution.ogg-f4caaf13c218d7e4e59d5ae9bc9b9d8a.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=false
|
||||
loop_offset=0
|
|
@ -1,15 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/rumble_revolution_intro.ogg-cb37ff1dd71c64fd16566b212babca20.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://audio/music/rumble_revolution_intro.ogg"
|
||||
dest_files=[ "res://.import/rumble_revolution_intro.ogg-cb37ff1dd71c64fd16566b212babca20.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=false
|
||||
loop_offset=0
|
|
@ -1,15 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/sleet.ogg-dfb9adcbe69bd6791c93c0f86b073746.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://audio/music/sleet.ogg"
|
||||
dest_files=[ "res://.import/sleet.ogg-dfb9adcbe69bd6791c93c0f86b073746.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=0
|
|
@ -1,15 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/sleet0.ogg-89329c21f9cd934500ba65a259d96b96.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://audio/music/sleet0.ogg"
|
||||
dest_files=[ "res://.import/sleet0.ogg-89329c21f9cd934500ba65a259d96b96.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=false
|
||||
loop_offset=0
|
BIN
audio/music/smokestack.mp3
Normal file
15
audio/music/smokestack.mp3.import
Normal file
|
@ -0,0 +1,15 @@
|
|||
[remap]
|
||||
|
||||
importer="mp3"
|
||||
type="AudioStreamMP3"
|
||||
path="res://.import/smokestack.mp3-27e96096ab30e2a396e177e479e12ab9.mp3str"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://audio/music/smokestack.mp3"
|
||||
dest_files=[ "res://.import/smokestack.mp3-27e96096ab30e2a396e177e479e12ab9.mp3str" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=0
|
|
@ -1,15 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/smokestack.ogg-e5ff6f583a64a996a107e20d41fd576d.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://audio/music/smokestack.ogg"
|
||||
dest_files=[ "res://.import/smokestack.ogg-e5ff6f583a64a996a107e20d41fd576d.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=10.519
|
|
@ -1,15 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/spine_v2.ogg-015bf0c6c191c0ae9ad018801a433c92.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://audio/music/spine_v2.ogg"
|
||||
dest_files=[ "res://.import/spine_v2.ogg-015bf0c6c191c0ae9ad018801a433c92.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=0
|
|
@ -1,15 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/the_dirt_under_the_meadow.ogg-ec40b1fe83041819a74174d557b9a8a2.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://audio/music/the_dirt_under_the_meadow.ogg"
|
||||
dest_files=[ "res://.import/the_dirt_under_the_meadow.ogg-ec40b1fe83041819a74174d557b9a8a2.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=false
|
||||
loop_offset=0
|
|
@ -1,15 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/vitreous_squares.ogg-524c15223b7d282c1532fe2fa5032ad4.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://audio/music/vitreous_squares.ogg"
|
||||
dest_files=[ "res://.import/vitreous_squares.ogg-524c15223b7d282c1532fe2fa5032ad4.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=0
|
|
@ -1,15 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/2600_charge.ogg-552c059b733cc8184b757ad5155adbff.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://audio/sounds/2600_charge.ogg"
|
||||
dest_files=[ "res://.import/2600_charge.ogg-552c059b733cc8184b757ad5155adbff.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=false
|
||||
loop_offset=0
|
|
@ -11,5 +11,5 @@ dest_files=[ "res://.import/a_bmilc.ogg-cb786a4aec8fbf031b4e9635d452a4a8.oggstr"
|
|||
|
||||
[params]
|
||||
|
||||
loop=false
|
||||
loop=true
|
||||
loop_offset=0
|
||||
|
|
BIN
audio/sounds/a_bree.wav
Normal file
|
@ -2,12 +2,12 @@
|
|||
|
||||
importer="wav"
|
||||
type="AudioStreamSample"
|
||||
path="res://.import/glass_crack.wav-e7bba5d7d195585aae47530d080ae6b3.sample"
|
||||
path="res://.import/a_bree.wav-6a217455eb3593edcc27ac957b5c6218.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://audio/glass_crack.wav"
|
||||
dest_files=[ "res://.import/glass_crack.wav-e7bba5d7d195585aae47530d080ae6b3.sample" ]
|
||||
source_file="res://audio/sounds/a_bree.wav"
|
||||
dest_files=[ "res://.import/a_bree.wav-6a217455eb3593edcc27ac957b5c6218.sample" ]
|
||||
|
||||
[params]
|
||||
|
|
@ -11,5 +11,5 @@ dest_files=[ "res://.import/a_climb.ogg-478222e5725714de088f1c4b609997c5.oggstr"
|
|||
|
||||
[params]
|
||||
|
||||
loop=false
|
||||
loop=true
|
||||
loop_offset=0
|
||||
|
|