commit ad966789c5c7f8ace71804ecb4557151e236dbcf Author: Joseph Manley Date: Fri May 15 20:02:56 2020 -0400 Intial commit diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..82e3402 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,52 @@ +name: Publish Release + +on: + release: + types: + - created + +jobs: + godot: + runs-on: ubuntu-latest + strategy: + matrix: + platform: [linux, osx, win32, win64] + steps: + - name: Checkout Repo + uses: actions/checkout@v2.1.0 + with: + submodules: 'true' + token: ${{ secrets.GH_SECRET }} + - name: Configure + env: + PLATFORM: ${{ matrix.platform }} + run: | + if [ "$PLATFORM" = "win32" ] || [ "$PLATFORM" = "win64" ] ; then + echo "::set-env name=EXPORT_NAME::the-connection.exe" + else + echo "::set-env name=EXPORT_NAME::the-connection" + fi + - name: Build + id: build + uses: josephbmanley/build-godot-action@v1.4.0 + with: + name: ${{ env.EXPORT_NAME }} + preset: ${{ matrix.platform }} + projectDir: client + - id: get_tag + name: Get Tag + env: + GITHUB_HEAD_REF: $${{ github.head_ref }} + GITHUB_BASE_REF: ${{ github.base_ref }} + run: | + TAG=$(jq --raw-output '.release.tag_name' $GITHUB_EVENT_PATH) + echo ::set-output name=TAG::$TAG + - name: Push to Itch + uses: josephbmanley/butler-publish-itchio-action@v1.0.1 + env: + BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }} + CHANNEL: ${{ matrix.platform }} + ITCH_GAME: the-connection + ITCH_USER: josephbmanley + PACKAGE: ${{ github.workspace }}/${{ steps.build.outputs.build }} + VERSION: ${{ steps.get_tag.outputs.TAG }} \ No newline at end of file diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..07da13e --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "client/Resources/GodotThings"] + path = client/Resources/GodotThings + url = git@github.com:CptPotato/GodotThings.git diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..53d1f3d --- /dev/null +++ b/LICENSE @@ -0,0 +1,675 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. + diff --git a/client/.import/Dark Atmosphere to Synth.ogg-d9cfd7bf9e40aecf5d2dc62376d046c3.md5 b/client/.import/Dark Atmosphere to Synth.ogg-d9cfd7bf9e40aecf5d2dc62376d046c3.md5 new file mode 100644 index 0000000..bed7087 --- /dev/null +++ b/client/.import/Dark Atmosphere to Synth.ogg-d9cfd7bf9e40aecf5d2dc62376d046c3.md5 @@ -0,0 +1,3 @@ +source_md5="3cf24f316c8d5727c99795f5d1714ae9" +dest_md5="e79d943d17bbbb11393065e65e153ef0" + diff --git a/client/.import/Dark Atmosphere to Synth.ogg-d9cfd7bf9e40aecf5d2dc62376d046c3.oggstr b/client/.import/Dark Atmosphere to Synth.ogg-d9cfd7bf9e40aecf5d2dc62376d046c3.oggstr new file mode 100644 index 0000000..749d0ba Binary files /dev/null and b/client/.import/Dark Atmosphere to Synth.ogg-d9cfd7bf9e40aecf5d2dc62376d046c3.oggstr differ diff --git a/client/.import/Dystopian.ogg-fd073bb065643e3b3ae2d76f1795d67d.md5 b/client/.import/Dystopian.ogg-fd073bb065643e3b3ae2d76f1795d67d.md5 new file mode 100644 index 0000000..181b7f7 --- /dev/null +++ b/client/.import/Dystopian.ogg-fd073bb065643e3b3ae2d76f1795d67d.md5 @@ -0,0 +1,3 @@ +source_md5="65f893ad3fbb7d1b71121b4f8198645f" +dest_md5="4592362844e0844a97ab67c73505a728" + diff --git a/client/.import/Dystopian.ogg-fd073bb065643e3b3ae2d76f1795d67d.oggstr b/client/.import/Dystopian.ogg-fd073bb065643e3b3ae2d76f1795d67d.oggstr new file mode 100644 index 0000000..0d25a50 Binary files /dev/null and b/client/.import/Dystopian.ogg-fd073bb065643e3b3ae2d76f1795d67d.oggstr differ diff --git a/client/.import/Empty Streets.ogg-7e9965eb3ca054bd216157ae70233bf9.md5 b/client/.import/Empty Streets.ogg-7e9965eb3ca054bd216157ae70233bf9.md5 new file mode 100644 index 0000000..e3cbbfc --- /dev/null +++ b/client/.import/Empty Streets.ogg-7e9965eb3ca054bd216157ae70233bf9.md5 @@ -0,0 +1,3 @@ +source_md5="f5e89b78f48d3777042d2d9c3bd11093" +dest_md5="e2991fb05ebd1cab6f9aee97129f8e7b" + diff --git a/client/.import/Empty Streets.ogg-7e9965eb3ca054bd216157ae70233bf9.oggstr b/client/.import/Empty Streets.ogg-7e9965eb3ca054bd216157ae70233bf9.oggstr new file mode 100644 index 0000000..2155c2f Binary files /dev/null and b/client/.import/Empty Streets.ogg-7e9965eb3ca054bd216157ae70233bf9.oggstr differ diff --git a/client/.import/Improbable.svg-1121063e74aa3be61f80d041a60183f2.md5 b/client/.import/Improbable.svg-1121063e74aa3be61f80d041a60183f2.md5 new file mode 100644 index 0000000..1bcb5e8 --- /dev/null +++ b/client/.import/Improbable.svg-1121063e74aa3be61f80d041a60183f2.md5 @@ -0,0 +1,3 @@ +source_md5="fb3995b155512a689a0ba6be9b42e018" +dest_md5="7c58a01ac5bd2b2a913ced328423ee6b" + diff --git a/client/.import/Improbable.svg-1121063e74aa3be61f80d041a60183f2.stex b/client/.import/Improbable.svg-1121063e74aa3be61f80d041a60183f2.stex new file mode 100644 index 0000000..9f9ee05 Binary files /dev/null and b/client/.import/Improbable.svg-1121063e74aa3be61f80d041a60183f2.stex differ diff --git a/client/.import/Marksman.svg-ea705490fb024fa3a01a9d341cbbcb55.md5 b/client/.import/Marksman.svg-ea705490fb024fa3a01a9d341cbbcb55.md5 new file mode 100644 index 0000000..7bd30bf --- /dev/null +++ b/client/.import/Marksman.svg-ea705490fb024fa3a01a9d341cbbcb55.md5 @@ -0,0 +1,3 @@ +source_md5="60e8b5d393dc465aea26c876b576dc61" +dest_md5="7c58a01ac5bd2b2a913ced328423ee6b" + diff --git a/client/.import/Marksman.svg-ea705490fb024fa3a01a9d341cbbcb55.stex b/client/.import/Marksman.svg-ea705490fb024fa3a01a9d341cbbcb55.stex new file mode 100644 index 0000000..9f9ee05 Binary files /dev/null and b/client/.import/Marksman.svg-ea705490fb024fa3a01a9d341cbbcb55.stex differ diff --git a/client/.import/Mystery Unsolved.ogg-c3936a0ae548f6e84dcdb0df4b96db96.md5 b/client/.import/Mystery Unsolved.ogg-c3936a0ae548f6e84dcdb0df4b96db96.md5 new file mode 100644 index 0000000..d2ac4ff --- /dev/null +++ b/client/.import/Mystery Unsolved.ogg-c3936a0ae548f6e84dcdb0df4b96db96.md5 @@ -0,0 +1,3 @@ +source_md5="d21a98c9c954889b2be9cb9480270f6c" +dest_md5="8250b881fa1ebafede8150c3f28e28ea" + diff --git a/client/.import/Mystery Unsolved.ogg-c3936a0ae548f6e84dcdb0df4b96db96.oggstr b/client/.import/Mystery Unsolved.ogg-c3936a0ae548f6e84dcdb0df4b96db96.oggstr new file mode 100644 index 0000000..7da8f9c Binary files /dev/null and b/client/.import/Mystery Unsolved.ogg-c3936a0ae548f6e84dcdb0df4b96db96.oggstr differ diff --git a/client/.import/Socket.svg-5cb19872fa6148ad0106260e3817a0ad.md5 b/client/.import/Socket.svg-5cb19872fa6148ad0106260e3817a0ad.md5 new file mode 100644 index 0000000..78898e2 --- /dev/null +++ b/client/.import/Socket.svg-5cb19872fa6148ad0106260e3817a0ad.md5 @@ -0,0 +1,3 @@ +source_md5="6eb3903e82cda586224ce3c9c5ff40da" +dest_md5="7c58a01ac5bd2b2a913ced328423ee6b" + diff --git a/client/.import/Socket.svg-5cb19872fa6148ad0106260e3817a0ad.stex b/client/.import/Socket.svg-5cb19872fa6148ad0106260e3817a0ad.stex new file mode 100644 index 0000000..9f9ee05 Binary files /dev/null and b/client/.import/Socket.svg-5cb19872fa6148ad0106260e3817a0ad.stex differ diff --git a/client/.import/Surveillance.ogg-c5f017c00cb3886d3501ed81386a73cb.md5 b/client/.import/Surveillance.ogg-c5f017c00cb3886d3501ed81386a73cb.md5 new file mode 100644 index 0000000..1a08cf8 --- /dev/null +++ b/client/.import/Surveillance.ogg-c5f017c00cb3886d3501ed81386a73cb.md5 @@ -0,0 +1,3 @@ +source_md5="81c6d4f0d2881b13878ac3be34208bf0" +dest_md5="a9da90b306f1882e4e186ea48c3ca6a7" + diff --git a/client/.import/Surveillance.ogg-c5f017c00cb3886d3501ed81386a73cb.oggstr b/client/.import/Surveillance.ogg-c5f017c00cb3886d3501ed81386a73cb.oggstr new file mode 100644 index 0000000..afbe984 Binary files /dev/null and b/client/.import/Surveillance.ogg-c5f017c00cb3886d3501ed81386a73cb.oggstr differ diff --git a/client/.import/Targets.svg-ff52190d810df9d933e58cfa7929653c.md5 b/client/.import/Targets.svg-ff52190d810df9d933e58cfa7929653c.md5 new file mode 100644 index 0000000..25bff1e --- /dev/null +++ b/client/.import/Targets.svg-ff52190d810df9d933e58cfa7929653c.md5 @@ -0,0 +1,3 @@ +source_md5="b1d6932b616e2e9374e99abcb1f1463f" +dest_md5="7c58a01ac5bd2b2a913ced328423ee6b" + diff --git a/client/.import/Targets.svg-ff52190d810df9d933e58cfa7929653c.stex b/client/.import/Targets.svg-ff52190d810df9d933e58cfa7929653c.stex new file mode 100644 index 0000000..9f9ee05 Binary files /dev/null and b/client/.import/Targets.svg-ff52190d810df9d933e58cfa7929653c.stex differ diff --git a/client/.import/The Nightclub.ogg-10d9ab60ce72a11eb65cbee26cc77e10.md5 b/client/.import/The Nightclub.ogg-10d9ab60ce72a11eb65cbee26cc77e10.md5 new file mode 100644 index 0000000..df7fd1c --- /dev/null +++ b/client/.import/The Nightclub.ogg-10d9ab60ce72a11eb65cbee26cc77e10.md5 @@ -0,0 +1,3 @@ +source_md5="1b789165ff899c0b22369aaa89d5c47d" +dest_md5="4819cd8fd0bc94e219fb0f6286bc4966" + diff --git a/client/.import/The Nightclub.ogg-10d9ab60ce72a11eb65cbee26cc77e10.oggstr b/client/.import/The Nightclub.ogg-10d9ab60ce72a11eb65cbee26cc77e10.oggstr new file mode 100644 index 0000000..2220f9a Binary files /dev/null and b/client/.import/The Nightclub.ogg-10d9ab60ce72a11eb65cbee26cc77e10.oggstr differ diff --git a/client/.import/The Protagonist.ogg-a0896a9cc69920d3556726e88eb9ecc6.md5 b/client/.import/The Protagonist.ogg-a0896a9cc69920d3556726e88eb9ecc6.md5 new file mode 100644 index 0000000..efc3b66 --- /dev/null +++ b/client/.import/The Protagonist.ogg-a0896a9cc69920d3556726e88eb9ecc6.md5 @@ -0,0 +1,3 @@ +source_md5="498238eefc5d435db513c9154102a19a" +dest_md5="945c1e0ce4e4a8b67de3fca31c7f58fb" + diff --git a/client/.import/The Protagonist.ogg-a0896a9cc69920d3556726e88eb9ecc6.oggstr b/client/.import/The Protagonist.ogg-a0896a9cc69920d3556726e88eb9ecc6.oggstr new file mode 100644 index 0000000..9c46c40 Binary files /dev/null and b/client/.import/The Protagonist.ogg-a0896a9cc69920d3556726e88eb9ecc6.oggstr differ diff --git a/client/.import/The Story Continues.ogg-8ba2fc4bd692fc3cc6ccc662d1bde808.md5 b/client/.import/The Story Continues.ogg-8ba2fc4bd692fc3cc6ccc662d1bde808.md5 new file mode 100644 index 0000000..1b8fa03 --- /dev/null +++ b/client/.import/The Story Continues.ogg-8ba2fc4bd692fc3cc6ccc662d1bde808.md5 @@ -0,0 +1,3 @@ +source_md5="ff8aaa595a93dcf41d38c95891c7b66f" +dest_md5="a6eee6ca0d51a4c3561c612ef2078b84" + diff --git a/client/.import/The Story Continues.ogg-8ba2fc4bd692fc3cc6ccc662d1bde808.oggstr b/client/.import/The Story Continues.ogg-8ba2fc4bd692fc3cc6ccc662d1bde808.oggstr new file mode 100644 index 0000000..f7711d4 Binary files /dev/null and b/client/.import/The Story Continues.ogg-8ba2fc4bd692fc3cc6ccc662d1bde808.oggstr differ diff --git a/client/.import/Zapper.svg-db836551c2ec2a359f420a36e8891ee7.md5 b/client/.import/Zapper.svg-db836551c2ec2a359f420a36e8891ee7.md5 new file mode 100644 index 0000000..d18acef --- /dev/null +++ b/client/.import/Zapper.svg-db836551c2ec2a359f420a36e8891ee7.md5 @@ -0,0 +1,3 @@ +source_md5="6163be0d08b0b059797d663c86c55a28" +dest_md5="7c58a01ac5bd2b2a913ced328423ee6b" + diff --git a/client/.import/Zapper.svg-db836551c2ec2a359f420a36e8891ee7.stex b/client/.import/Zapper.svg-db836551c2ec2a359f420a36e8891ee7.stex new file mode 100644 index 0000000..9f9ee05 Binary files /dev/null and b/client/.import/Zapper.svg-db836551c2ec2a359f420a36e8891ee7.stex differ diff --git a/client/.import/animation_reference.png-0380e195c2981cbf6a12a964c592fbc3.md5 b/client/.import/animation_reference.png-0380e195c2981cbf6a12a964c592fbc3.md5 new file mode 100644 index 0000000..724141b --- /dev/null +++ b/client/.import/animation_reference.png-0380e195c2981cbf6a12a964c592fbc3.md5 @@ -0,0 +1,3 @@ +source_md5="e8dabe73b13a84d293485b937c80f448" +dest_md5="4d425793877e102c4abd32ff8888a949" + diff --git a/client/.import/animation_reference.png-0380e195c2981cbf6a12a964c592fbc3.stex b/client/.import/animation_reference.png-0380e195c2981cbf6a12a964c592fbc3.stex new file mode 100644 index 0000000..06861c4 Binary files /dev/null and b/client/.import/animation_reference.png-0380e195c2981cbf6a12a964c592fbc3.stex differ diff --git a/client/.import/basic_light.png-f6c2feae846e115573b4f0af5a2de0c9.md5 b/client/.import/basic_light.png-f6c2feae846e115573b4f0af5a2de0c9.md5 new file mode 100644 index 0000000..c0b2ee3 --- /dev/null +++ b/client/.import/basic_light.png-f6c2feae846e115573b4f0af5a2de0c9.md5 @@ -0,0 +1,3 @@ +source_md5="0f187f924d66394184e7b3e6c957fb8c" +dest_md5="c9bfe92d419f5078052bb89139a81b80" + diff --git a/client/.import/basic_light.png-f6c2feae846e115573b4f0af5a2de0c9.stex b/client/.import/basic_light.png-f6c2feae846e115573b4f0af5a2de0c9.stex new file mode 100644 index 0000000..e395389 Binary files /dev/null and b/client/.import/basic_light.png-f6c2feae846e115573b4f0af5a2de0c9.stex differ diff --git a/client/.import/business.png-ee172fec3f2459cac2a5df444606a464.md5 b/client/.import/business.png-ee172fec3f2459cac2a5df444606a464.md5 new file mode 100644 index 0000000..c3bfe9a --- /dev/null +++ b/client/.import/business.png-ee172fec3f2459cac2a5df444606a464.md5 @@ -0,0 +1,3 @@ +source_md5="8aef6de8412026e94480cc71d8d055b6" +dest_md5="f536ce724bbfd6d3eec9c9b681d8bd87" + diff --git a/client/.import/business.png-ee172fec3f2459cac2a5df444606a464.stex b/client/.import/business.png-ee172fec3f2459cac2a5df444606a464.stex new file mode 100644 index 0000000..8ba56fc Binary files /dev/null and b/client/.import/business.png-ee172fec3f2459cac2a5df444606a464.stex differ diff --git a/client/.import/button1.png-9a2b27dccdcb04e08389f20446276a8d.md5 b/client/.import/button1.png-9a2b27dccdcb04e08389f20446276a8d.md5 new file mode 100644 index 0000000..77c4038 --- /dev/null +++ b/client/.import/button1.png-9a2b27dccdcb04e08389f20446276a8d.md5 @@ -0,0 +1,3 @@ +source_md5="9d92358506b2f630f49d7186a984dda0" +dest_md5="4d5bf56017f00adbc80e9bf5a14a9f50" + diff --git a/client/.import/button1.png-9a2b27dccdcb04e08389f20446276a8d.stex b/client/.import/button1.png-9a2b27dccdcb04e08389f20446276a8d.stex new file mode 100644 index 0000000..8a77409 Binary files /dev/null and b/client/.import/button1.png-9a2b27dccdcb04e08389f20446276a8d.stex differ diff --git a/client/.import/button2.png-2e6607a1cb6150067a64504001ae7fe0.md5 b/client/.import/button2.png-2e6607a1cb6150067a64504001ae7fe0.md5 new file mode 100644 index 0000000..f2c88da --- /dev/null +++ b/client/.import/button2.png-2e6607a1cb6150067a64504001ae7fe0.md5 @@ -0,0 +1,3 @@ +source_md5="08fdfe746696263d9157f46fbf6bcae3" +dest_md5="663720fe7a6ed76fff5d90489304ad6b" + diff --git a/client/.import/button2.png-2e6607a1cb6150067a64504001ae7fe0.stex b/client/.import/button2.png-2e6607a1cb6150067a64504001ae7fe0.stex new file mode 100644 index 0000000..eee0c05 Binary files /dev/null and b/client/.import/button2.png-2e6607a1cb6150067a64504001ae7fe0.stex differ diff --git a/client/.import/button_press.wav-ee1c5209649cc8dfb1f404d8776d0bc7.md5 b/client/.import/button_press.wav-ee1c5209649cc8dfb1f404d8776d0bc7.md5 new file mode 100644 index 0000000..2ceb957 --- /dev/null +++ b/client/.import/button_press.wav-ee1c5209649cc8dfb1f404d8776d0bc7.md5 @@ -0,0 +1,3 @@ +source_md5="4ff64b42a338ac9011ac2780dac74ebe" +dest_md5="0401b34431c28d6655cca2f6c66a187c" + diff --git a/client/.import/button_press.wav-ee1c5209649cc8dfb1f404d8776d0bc7.sample b/client/.import/button_press.wav-ee1c5209649cc8dfb1f404d8776d0bc7.sample new file mode 100644 index 0000000..f7268fd Binary files /dev/null and b/client/.import/button_press.wav-ee1c5209649cc8dfb1f404d8776d0bc7.sample differ diff --git a/client/.import/default.wav-9e65f8cb59e54d70a2ddefa3b607d2c2.md5 b/client/.import/default.wav-9e65f8cb59e54d70a2ddefa3b607d2c2.md5 new file mode 100644 index 0000000..9a96da9 --- /dev/null +++ b/client/.import/default.wav-9e65f8cb59e54d70a2ddefa3b607d2c2.md5 @@ -0,0 +1,3 @@ +source_md5="d0e2434e68cff19d6181dadf78b59476" +dest_md5="4aed22f57f481bdedf014fc66461f2fa" + diff --git a/client/.import/default.wav-9e65f8cb59e54d70a2ddefa3b607d2c2.sample b/client/.import/default.wav-9e65f8cb59e54d70a2ddefa3b607d2c2.sample new file mode 100644 index 0000000..73b436c Binary files /dev/null and b/client/.import/default.wav-9e65f8cb59e54d70a2ddefa3b607d2c2.sample differ diff --git a/client/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.md5 b/client/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.md5 new file mode 100644 index 0000000..7b61c3e --- /dev/null +++ b/client/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.md5 @@ -0,0 +1,3 @@ +source_md5="47313fa4c47a9963fddd764e1ec6e4a8" +dest_md5="2ded9e7f9060e2b530aab678b135fc5b" + diff --git a/client/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex b/client/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex new file mode 100644 index 0000000..3ca6461 Binary files /dev/null and b/client/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex differ diff --git a/client/.import/improbable-v1.png-d0ffd107afe1089c38c36acc4e643301.md5 b/client/.import/improbable-v1.png-d0ffd107afe1089c38c36acc4e643301.md5 new file mode 100644 index 0000000..6c4d2cd --- /dev/null +++ b/client/.import/improbable-v1.png-d0ffd107afe1089c38c36acc4e643301.md5 @@ -0,0 +1,3 @@ +source_md5="22ed25163315999b4a8fa6e0da259678" +dest_md5="a57c4ce258f6040d4351e13ab3edccc9" + diff --git a/client/.import/improbable-v1.png-d0ffd107afe1089c38c36acc4e643301.stex b/client/.import/improbable-v1.png-d0ffd107afe1089c38c36acc4e643301.stex new file mode 100644 index 0000000..56829d5 Binary files /dev/null and b/client/.import/improbable-v1.png-d0ffd107afe1089c38c36acc4e643301.stex differ diff --git a/client/.import/life-tank.png-143866384dac6f26e708efc881d1aeed.etc2.stex b/client/.import/life-tank.png-143866384dac6f26e708efc881d1aeed.etc2.stex new file mode 100644 index 0000000..e13c777 Binary files /dev/null and b/client/.import/life-tank.png-143866384dac6f26e708efc881d1aeed.etc2.stex differ diff --git a/client/.import/life-tank.png-143866384dac6f26e708efc881d1aeed.md5 b/client/.import/life-tank.png-143866384dac6f26e708efc881d1aeed.md5 new file mode 100644 index 0000000..411dec4 --- /dev/null +++ b/client/.import/life-tank.png-143866384dac6f26e708efc881d1aeed.md5 @@ -0,0 +1,3 @@ +source_md5="597fbe9ccf6ea4d6483499e0cf0b03d0" +dest_md5="44096b06df43545f31758f2c690ba4dd" + diff --git a/client/.import/life-tank.png-143866384dac6f26e708efc881d1aeed.s3tc.stex b/client/.import/life-tank.png-143866384dac6f26e708efc881d1aeed.s3tc.stex new file mode 100644 index 0000000..4757349 Binary files /dev/null and b/client/.import/life-tank.png-143866384dac6f26e708efc881d1aeed.s3tc.stex differ diff --git a/client/.import/loading.wav-524816aaced5f1b9f3d89539712c337c.md5 b/client/.import/loading.wav-524816aaced5f1b9f3d89539712c337c.md5 new file mode 100644 index 0000000..03688a6 --- /dev/null +++ b/client/.import/loading.wav-524816aaced5f1b9f3d89539712c337c.md5 @@ -0,0 +1,3 @@ +source_md5="6f3e7e42643abce347b394793b874e42" +dest_md5="0f4e8768ca6ad5fc51ce63901809fe3e" + diff --git a/client/.import/loading.wav-524816aaced5f1b9f3d89539712c337c.sample b/client/.import/loading.wav-524816aaced5f1b9f3d89539712c337c.sample new file mode 100644 index 0000000..02ca7e7 Binary files /dev/null and b/client/.import/loading.wav-524816aaced5f1b9f3d89539712c337c.sample differ diff --git a/client/.import/marksman-v1.png-df443d916651cd767e11b8e9a6991a32.md5 b/client/.import/marksman-v1.png-df443d916651cd767e11b8e9a6991a32.md5 new file mode 100644 index 0000000..9b5ac6d --- /dev/null +++ b/client/.import/marksman-v1.png-df443d916651cd767e11b8e9a6991a32.md5 @@ -0,0 +1,3 @@ +source_md5="e66b0871c7518f20d3c48c769960042f" +dest_md5="ad0afd585fee97559c650d4a772736de" + diff --git a/client/.import/marksman-v1.png-df443d916651cd767e11b8e9a6991a32.stex b/client/.import/marksman-v1.png-df443d916651cd767e11b8e9a6991a32.stex new file mode 100644 index 0000000..8fb23c4 Binary files /dev/null and b/client/.import/marksman-v1.png-df443d916651cd767e11b8e9a6991a32.stex differ diff --git a/client/.import/old.wav-6243dc6f828802754d4671515120a664.md5 b/client/.import/old.wav-6243dc6f828802754d4671515120a664.md5 new file mode 100644 index 0000000..6a10331 --- /dev/null +++ b/client/.import/old.wav-6243dc6f828802754d4671515120a664.md5 @@ -0,0 +1,3 @@ +source_md5="b5e1af5f91a15a6192816d6ce5637421" +dest_md5="ebad3beb99af472070b890b98a0df97e" + diff --git a/client/.import/old.wav-6243dc6f828802754d4671515120a664.sample b/client/.import/old.wav-6243dc6f828802754d4671515120a664.sample new file mode 100644 index 0000000..08d364c Binary files /dev/null and b/client/.import/old.wav-6243dc6f828802754d4671515120a664.sample differ diff --git a/client/.import/player.png-8013e0b9eca040d2b3efcca16491c343.md5 b/client/.import/player.png-8013e0b9eca040d2b3efcca16491c343.md5 new file mode 100644 index 0000000..954b06b --- /dev/null +++ b/client/.import/player.png-8013e0b9eca040d2b3efcca16491c343.md5 @@ -0,0 +1,3 @@ +source_md5="d11fe17c538278732c370ff9a9299c13" +dest_md5="518d32294d74c6b89d656e11ba60fff3" + diff --git a/client/.import/player.png-8013e0b9eca040d2b3efcca16491c343.stex b/client/.import/player.png-8013e0b9eca040d2b3efcca16491c343.stex new file mode 100644 index 0000000..94eedef Binary files /dev/null and b/client/.import/player.png-8013e0b9eca040d2b3efcca16491c343.stex differ diff --git a/client/.import/player.png-83eee27dc74544e997a7b90847866f39.md5 b/client/.import/player.png-83eee27dc74544e997a7b90847866f39.md5 new file mode 100644 index 0000000..1e4bfb0 --- /dev/null +++ b/client/.import/player.png-83eee27dc74544e997a7b90847866f39.md5 @@ -0,0 +1,3 @@ +source_md5="53be14e4ad2f67df62927ebe16450b07" +dest_md5="6d3a87776838f14ee876321be0a815b3" + diff --git a/client/.import/player.png-83eee27dc74544e997a7b90847866f39.stex b/client/.import/player.png-83eee27dc74544e997a7b90847866f39.stex new file mode 100644 index 0000000..013123b Binary files /dev/null and b/client/.import/player.png-83eee27dc74544e997a7b90847866f39.stex differ diff --git a/client/.import/player_parts.png-f69e345f37ad405be3288ca78a4b7531.md5 b/client/.import/player_parts.png-f69e345f37ad405be3288ca78a4b7531.md5 new file mode 100644 index 0000000..3c0e7c5 --- /dev/null +++ b/client/.import/player_parts.png-f69e345f37ad405be3288ca78a4b7531.md5 @@ -0,0 +1,3 @@ +source_md5="4a4e86688ea9e233c2a97d2091f91210" +dest_md5="f46730c502307e961aea5b1794b64187" + diff --git a/client/.import/player_parts.png-f69e345f37ad405be3288ca78a4b7531.stex b/client/.import/player_parts.png-f69e345f37ad405be3288ca78a4b7531.stex new file mode 100644 index 0000000..f651a70 Binary files /dev/null and b/client/.import/player_parts.png-f69e345f37ad405be3288ca78a4b7531.stex differ diff --git a/client/.import/processed.wav-a7a5a075e2f9c8455243537ae0837ba2.md5 b/client/.import/processed.wav-a7a5a075e2f9c8455243537ae0837ba2.md5 new file mode 100644 index 0000000..e1638c6 --- /dev/null +++ b/client/.import/processed.wav-a7a5a075e2f9c8455243537ae0837ba2.md5 @@ -0,0 +1,3 @@ +source_md5="b39186c57feb6aaf1ad83b21f76c0bc0" +dest_md5="9f65e84e6228e534c90c26186cdbac2f" + diff --git a/client/.import/processed.wav-a7a5a075e2f9c8455243537ae0837ba2.sample b/client/.import/processed.wav-a7a5a075e2f9c8455243537ae0837ba2.sample new file mode 100644 index 0000000..ab21673 Binary files /dev/null and b/client/.import/processed.wav-a7a5a075e2f9c8455243537ae0837ba2.sample differ diff --git a/client/.import/scientist.png-ed3195bf022f65d4a0546af474992ee0.md5 b/client/.import/scientist.png-ed3195bf022f65d4a0546af474992ee0.md5 new file mode 100644 index 0000000..8b8f83c --- /dev/null +++ b/client/.import/scientist.png-ed3195bf022f65d4a0546af474992ee0.md5 @@ -0,0 +1,3 @@ +source_md5="41d8c79b5c539a2acf771607432eee6f" +dest_md5="407f96bf098d799f4e6dd801afb37e68" + diff --git a/client/.import/scientist.png-ed3195bf022f65d4a0546af474992ee0.stex b/client/.import/scientist.png-ed3195bf022f65d4a0546af474992ee0.stex new file mode 100644 index 0000000..39ec2d1 Binary files /dev/null and b/client/.import/scientist.png-ed3195bf022f65d4a0546af474992ee0.stex differ diff --git a/client/.import/screenshot.png-7e6fd068016c281094b4ad8b2b340dc2.md5 b/client/.import/screenshot.png-7e6fd068016c281094b4ad8b2b340dc2.md5 new file mode 100644 index 0000000..43e51b4 --- /dev/null +++ b/client/.import/screenshot.png-7e6fd068016c281094b4ad8b2b340dc2.md5 @@ -0,0 +1,3 @@ +source_md5="303f11d3124d1c4e7f84eab94f2eec4e" +dest_md5="c435ad0f5644e639bccd3d8ca358885b" + diff --git a/client/.import/screenshot.png-7e6fd068016c281094b4ad8b2b340dc2.stex b/client/.import/screenshot.png-7e6fd068016c281094b4ad8b2b340dc2.stex new file mode 100644 index 0000000..cb39766 Binary files /dev/null and b/client/.import/screenshot.png-7e6fd068016c281094b4ad8b2b340dc2.stex differ diff --git a/client/.import/screenshot_2d.png-87d91dabaa368245cb9657c3ea8c1190.md5 b/client/.import/screenshot_2d.png-87d91dabaa368245cb9657c3ea8c1190.md5 new file mode 100644 index 0000000..32f968b --- /dev/null +++ b/client/.import/screenshot_2d.png-87d91dabaa368245cb9657c3ea8c1190.md5 @@ -0,0 +1,3 @@ +source_md5="46923f78324d6e9a8e0e4a863d2d42b1" +dest_md5="c9e1f79e69e3f2f812c0be531478bb8e" + diff --git a/client/.import/screenshot_2d.png-87d91dabaa368245cb9657c3ea8c1190.stex b/client/.import/screenshot_2d.png-87d91dabaa368245cb9657c3ea8c1190.stex new file mode 100644 index 0000000..9dd2534 Binary files /dev/null and b/client/.import/screenshot_2d.png-87d91dabaa368245cb9657c3ea8c1190.stex differ diff --git a/client/.import/screenshot_2d_2x.png-bafe835a0eb947c980af261c0e66bf14.md5 b/client/.import/screenshot_2d_2x.png-bafe835a0eb947c980af261c0e66bf14.md5 new file mode 100644 index 0000000..376d15d --- /dev/null +++ b/client/.import/screenshot_2d_2x.png-bafe835a0eb947c980af261c0e66bf14.md5 @@ -0,0 +1,3 @@ +source_md5="62170d933feb1791d33e1fc234209ff0" +dest_md5="841cfe9c8cca9b353975fdeca4a6818d" + diff --git a/client/.import/screenshot_2d_2x.png-bafe835a0eb947c980af261c0e66bf14.stex b/client/.import/screenshot_2d_2x.png-bafe835a0eb947c980af261c0e66bf14.stex new file mode 100644 index 0000000..e73c050 Binary files /dev/null and b/client/.import/screenshot_2d_2x.png-bafe835a0eb947c980af261c0e66bf14.stex differ diff --git a/client/.import/screenshot_3d.png-aa88ee3aedd8e6d3c81005b8be71a791.md5 b/client/.import/screenshot_3d.png-aa88ee3aedd8e6d3c81005b8be71a791.md5 new file mode 100644 index 0000000..65fd607 --- /dev/null +++ b/client/.import/screenshot_3d.png-aa88ee3aedd8e6d3c81005b8be71a791.md5 @@ -0,0 +1,3 @@ +source_md5="ae3bdb1e531d0d500f6d21de544b2067" +dest_md5="8182b7555a30f5839165eafcca9acd9e" + diff --git a/client/.import/screenshot_3d.png-aa88ee3aedd8e6d3c81005b8be71a791.stex b/client/.import/screenshot_3d.png-aa88ee3aedd8e6d3c81005b8be71a791.stex new file mode 100644 index 0000000..473b3a4 Binary files /dev/null and b/client/.import/screenshot_3d.png-aa88ee3aedd8e6d3c81005b8be71a791.stex differ diff --git a/client/.import/socket-v1.1.png-3970210f808984d698660c686a738827.md5 b/client/.import/socket-v1.1.png-3970210f808984d698660c686a738827.md5 new file mode 100644 index 0000000..c923606 --- /dev/null +++ b/client/.import/socket-v1.1.png-3970210f808984d698660c686a738827.md5 @@ -0,0 +1,3 @@ +source_md5="508339a6418ddd3a0049439743246daf" +dest_md5="406b0df125d9b3ddad372c1756a707be" + diff --git a/client/.import/socket-v1.1.png-3970210f808984d698660c686a738827.stex b/client/.import/socket-v1.1.png-3970210f808984d698660c686a738827.stex new file mode 100644 index 0000000..0afefd7 Binary files /dev/null and b/client/.import/socket-v1.1.png-3970210f808984d698660c686a738827.stex differ diff --git a/client/.import/soldier.png-5c437fd605d46cb9f2bfb449beef059e.md5 b/client/.import/soldier.png-5c437fd605d46cb9f2bfb449beef059e.md5 new file mode 100644 index 0000000..491c9a0 --- /dev/null +++ b/client/.import/soldier.png-5c437fd605d46cb9f2bfb449beef059e.md5 @@ -0,0 +1,3 @@ +source_md5="dd34a61f0c64a8b28fbc90958cefa569" +dest_md5="5d38a4263fce6ada9174911d6983e089" + diff --git a/client/.import/soldier.png-5c437fd605d46cb9f2bfb449beef059e.stex b/client/.import/soldier.png-5c437fd605d46cb9f2bfb449beef059e.stex new file mode 100644 index 0000000..7c59703 Binary files /dev/null and b/client/.import/soldier.png-5c437fd605d46cb9f2bfb449beef059e.stex differ diff --git a/client/.import/targets-v3.1.png-bda2163ffcd32c280410bfa8e9697a95.md5 b/client/.import/targets-v3.1.png-bda2163ffcd32c280410bfa8e9697a95.md5 new file mode 100644 index 0000000..5e7d91b --- /dev/null +++ b/client/.import/targets-v3.1.png-bda2163ffcd32c280410bfa8e9697a95.md5 @@ -0,0 +1,3 @@ +source_md5="d0f745eab525332d8bf1664282c7588b" +dest_md5="6d618e905102503651994c62238c44d0" + diff --git a/client/.import/targets-v3.1.png-bda2163ffcd32c280410bfa8e9697a95.stex b/client/.import/targets-v3.1.png-bda2163ffcd32c280410bfa8e9697a95.stex new file mode 100644 index 0000000..5ff27ef Binary files /dev/null and b/client/.import/targets-v3.1.png-bda2163ffcd32c280410bfa8e9697a95.stex differ diff --git a/client/.import/tileset_science_lab.png-ca47a982e43a92e13e08def0fb7cb9a8.md5 b/client/.import/tileset_science_lab.png-ca47a982e43a92e13e08def0fb7cb9a8.md5 new file mode 100644 index 0000000..67f2f9e --- /dev/null +++ b/client/.import/tileset_science_lab.png-ca47a982e43a92e13e08def0fb7cb9a8.md5 @@ -0,0 +1,3 @@ +source_md5="3f9f96bd8fedb148b7290a23ce498f9e" +dest_md5="79058549fdc5214182993096ff2d5289" + diff --git a/client/.import/tileset_science_lab.png-ca47a982e43a92e13e08def0fb7cb9a8.stex b/client/.import/tileset_science_lab.png-ca47a982e43a92e13e08def0fb7cb9a8.stex new file mode 100644 index 0000000..a489bc9 Binary files /dev/null and b/client/.import/tileset_science_lab.png-ca47a982e43a92e13e08def0fb7cb9a8.stex differ diff --git a/client/.import/zapper-v1.1.png-d00f3f4f240f2070fb51577e9d7056da.md5 b/client/.import/zapper-v1.1.png-d00f3f4f240f2070fb51577e9d7056da.md5 new file mode 100644 index 0000000..dc5f67a --- /dev/null +++ b/client/.import/zapper-v1.1.png-d00f3f4f240f2070fb51577e9d7056da.md5 @@ -0,0 +1,3 @@ +source_md5="5abe5405feeddb56fee2a97ddfc92f43" +dest_md5="883c4bca793e696a0f060011aca98363" + diff --git a/client/.import/zapper-v1.1.png-d00f3f4f240f2070fb51577e9d7056da.stex b/client/.import/zapper-v1.1.png-d00f3f4f240f2070fb51577e9d7056da.stex new file mode 100644 index 0000000..6019750 Binary files /dev/null and b/client/.import/zapper-v1.1.png-d00f3f4f240f2070fb51577e9d7056da.stex differ diff --git a/client/Assets/Art/Characters/business.aseprite b/client/Assets/Art/Characters/business.aseprite new file mode 100644 index 0000000..7b37f72 Binary files /dev/null and b/client/Assets/Art/Characters/business.aseprite differ diff --git a/client/Assets/Art/Characters/business.png b/client/Assets/Art/Characters/business.png new file mode 100644 index 0000000..26c29da Binary files /dev/null and b/client/Assets/Art/Characters/business.png differ diff --git a/client/Assets/Art/Characters/business.png.import b/client/Assets/Art/Characters/business.png.import new file mode 100644 index 0000000..61c271e --- /dev/null +++ b/client/Assets/Art/Characters/business.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/business.png-ee172fec3f2459cac2a5df444606a464.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Assets/Art/Characters/business.png" +dest_files=[ "res://.import/business.png-ee172fec3f2459cac2a5df444606a464.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 +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/client/Assets/Art/Characters/player.aseprite b/client/Assets/Art/Characters/player.aseprite new file mode 100644 index 0000000..b9062ca Binary files /dev/null and b/client/Assets/Art/Characters/player.aseprite differ diff --git a/client/Assets/Art/Characters/player.png b/client/Assets/Art/Characters/player.png new file mode 100644 index 0000000..b03531a Binary files /dev/null and b/client/Assets/Art/Characters/player.png differ diff --git a/client/Assets/Art/Characters/player.png.import b/client/Assets/Art/Characters/player.png.import new file mode 100644 index 0000000..e305f5d --- /dev/null +++ b/client/Assets/Art/Characters/player.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/player.png-83eee27dc74544e997a7b90847866f39.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Assets/Art/Characters/player.png" +dest_files=[ "res://.import/player.png-83eee27dc74544e997a7b90847866f39.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=true +flags/filter=false +flags/mipmaps=true +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=true +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=false +svg/scale=1.0 diff --git a/client/Assets/Art/Characters/player_parts.aseprite b/client/Assets/Art/Characters/player_parts.aseprite new file mode 100644 index 0000000..62310d3 Binary files /dev/null and b/client/Assets/Art/Characters/player_parts.aseprite differ diff --git a/client/Assets/Art/Characters/player_parts.png b/client/Assets/Art/Characters/player_parts.png new file mode 100644 index 0000000..adc4d19 Binary files /dev/null and b/client/Assets/Art/Characters/player_parts.png differ diff --git a/client/Assets/Art/Characters/player_parts.png.import b/client/Assets/Art/Characters/player_parts.png.import new file mode 100644 index 0000000..819f3fa --- /dev/null +++ b/client/Assets/Art/Characters/player_parts.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/player_parts.png-f69e345f37ad405be3288ca78a4b7531.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Assets/Art/Characters/player_parts.png" +dest_files=[ "res://.import/player_parts.png-f69e345f37ad405be3288ca78a4b7531.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=true +flags/mipmaps=false +flags/anisotropic=true +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/client/Assets/Art/Characters/scientist.aseprite b/client/Assets/Art/Characters/scientist.aseprite new file mode 100644 index 0000000..d287089 Binary files /dev/null and b/client/Assets/Art/Characters/scientist.aseprite differ diff --git a/client/Assets/Art/Characters/scientist.png b/client/Assets/Art/Characters/scientist.png new file mode 100644 index 0000000..c08f6b9 Binary files /dev/null and b/client/Assets/Art/Characters/scientist.png differ diff --git a/client/Assets/Art/Characters/scientist.png.import b/client/Assets/Art/Characters/scientist.png.import new file mode 100644 index 0000000..f293f75 --- /dev/null +++ b/client/Assets/Art/Characters/scientist.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/scientist.png-ed3195bf022f65d4a0546af474992ee0.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Assets/Art/Characters/scientist.png" +dest_files=[ "res://.import/scientist.png-ed3195bf022f65d4a0546af474992ee0.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 +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/client/Assets/Art/Characters/soldier.aseprite b/client/Assets/Art/Characters/soldier.aseprite new file mode 100644 index 0000000..653e315 Binary files /dev/null and b/client/Assets/Art/Characters/soldier.aseprite differ diff --git a/client/Assets/Art/Characters/soldier.png b/client/Assets/Art/Characters/soldier.png new file mode 100644 index 0000000..2f19e9a Binary files /dev/null and b/client/Assets/Art/Characters/soldier.png differ diff --git a/client/Assets/Art/Characters/soldier.png.import b/client/Assets/Art/Characters/soldier.png.import new file mode 100644 index 0000000..61d6f30 --- /dev/null +++ b/client/Assets/Art/Characters/soldier.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/soldier.png-5c437fd605d46cb9f2bfb449beef059e.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Assets/Art/Characters/soldier.png" +dest_files=[ "res://.import/soldier.png-5c437fd605d46cb9f2bfb449beef059e.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 +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/client/Assets/Art/Objects/life-tank.aseprite b/client/Assets/Art/Objects/life-tank.aseprite new file mode 100644 index 0000000..67d433d Binary files /dev/null and b/client/Assets/Art/Objects/life-tank.aseprite differ diff --git a/client/Assets/Art/Objects/life-tank.png b/client/Assets/Art/Objects/life-tank.png new file mode 100644 index 0000000..2c2bb40 Binary files /dev/null and b/client/Assets/Art/Objects/life-tank.png differ diff --git a/client/Assets/Art/Objects/life-tank.png.import b/client/Assets/Art/Objects/life-tank.png.import new file mode 100644 index 0000000..3a44fb0 --- /dev/null +++ b/client/Assets/Art/Objects/life-tank.png.import @@ -0,0 +1,36 @@ +[remap] + +importer="texture" +type="StreamTexture" +path.s3tc="res://.import/life-tank.png-143866384dac6f26e708efc881d1aeed.s3tc.stex" +path.etc2="res://.import/life-tank.png-143866384dac6f26e708efc881d1aeed.etc2.stex" +metadata={ +"imported_formats": [ "s3tc", "etc2" ], +"vram_texture": true +} + +[deps] + +source_file="res://Assets/Art/Objects/life-tank.png" +dest_files=[ "res://.import/life-tank.png-143866384dac6f26e708efc881d1aeed.s3tc.stex", "res://.import/life-tank.png-143866384dac6f26e708efc881d1aeed.etc2.stex" ] + +[params] + +compress/mode=2 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=true +flags/filter=false +flags/mipmaps=true +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=false +svg/scale=1.0 diff --git a/client/Assets/Art/UI/button1.png b/client/Assets/Art/UI/button1.png new file mode 100644 index 0000000..bd98f61 Binary files /dev/null and b/client/Assets/Art/UI/button1.png differ diff --git a/client/Assets/Art/UI/button1.png.import b/client/Assets/Art/UI/button1.png.import new file mode 100644 index 0000000..91cb891 --- /dev/null +++ b/client/Assets/Art/UI/button1.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/button1.png-9a2b27dccdcb04e08389f20446276a8d.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Assets/Art/UI/button1.png" +dest_files=[ "res://.import/button1.png-9a2b27dccdcb04e08389f20446276a8d.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=true +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 +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/client/Assets/Art/UI/button2.png b/client/Assets/Art/UI/button2.png new file mode 100644 index 0000000..e75fa82 Binary files /dev/null and b/client/Assets/Art/UI/button2.png differ diff --git a/client/Assets/Art/UI/button2.png.import b/client/Assets/Art/UI/button2.png.import new file mode 100644 index 0000000..452ffba --- /dev/null +++ b/client/Assets/Art/UI/button2.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/button2.png-2e6607a1cb6150067a64504001ae7fe0.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Assets/Art/UI/button2.png" +dest_files=[ "res://.import/button2.png-2e6607a1cb6150067a64504001ae7fe0.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=true +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 +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/client/Assets/Art/basic_light.png b/client/Assets/Art/basic_light.png new file mode 100644 index 0000000..445ea2f Binary files /dev/null and b/client/Assets/Art/basic_light.png differ diff --git a/client/Assets/Art/basic_light.png.import b/client/Assets/Art/basic_light.png.import new file mode 100644 index 0000000..2051a73 --- /dev/null +++ b/client/Assets/Art/basic_light.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/basic_light.png-f6c2feae846e115573b4f0af5a2de0c9.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Assets/Art/basic_light.png" +dest_files=[ "res://.import/basic_light.png-f6c2feae846e115573b4f0af5a2de0c9.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=true +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 +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/client/Assets/Art/player.aseprite b/client/Assets/Art/player.aseprite new file mode 100644 index 0000000..3fb3172 Binary files /dev/null and b/client/Assets/Art/player.aseprite differ diff --git a/client/Assets/Art/player.png b/client/Assets/Art/player.png new file mode 100644 index 0000000..206b676 Binary files /dev/null and b/client/Assets/Art/player.png differ diff --git a/client/Assets/Art/player.png.import b/client/Assets/Art/player.png.import new file mode 100644 index 0000000..973aa15 --- /dev/null +++ b/client/Assets/Art/player.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/player.png-8013e0b9eca040d2b3efcca16491c343.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Assets/Art/player.png" +dest_files=[ "res://.import/player.png-8013e0b9eca040d2b3efcca16491c343.stex" ] + +[params] + +compress/mode=3 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=2 +flags/repeat=0 +flags/filter=false +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=0 +process/fix_alpha_border=false +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=false +svg/scale=1.0 diff --git a/client/Assets/Materials/SmoothScaling.tres b/client/Assets/Materials/SmoothScaling.tres new file mode 100644 index 0000000..947c8b8 --- /dev/null +++ b/client/Assets/Materials/SmoothScaling.tres @@ -0,0 +1,6 @@ +[gd_resource type="ShaderMaterial" load_steps=2 format=2] + +[ext_resource path="res://Resources/GodotThings/SmoothPixelFiltering/SmoothPixel.shader" type="Shader" id=1] + +[resource] +shader = ExtResource( 1 ) diff --git a/client/Assets/Music/Dystopian/Dark Atmosphere to Synth.ogg b/client/Assets/Music/Dystopian/Dark Atmosphere to Synth.ogg new file mode 100644 index 0000000..3112248 Binary files /dev/null and b/client/Assets/Music/Dystopian/Dark Atmosphere to Synth.ogg differ diff --git a/client/Assets/Music/Dystopian/Dark Atmosphere to Synth.ogg.import b/client/Assets/Music/Dystopian/Dark Atmosphere to Synth.ogg.import new file mode 100644 index 0000000..68be82a --- /dev/null +++ b/client/Assets/Music/Dystopian/Dark Atmosphere to Synth.ogg.import @@ -0,0 +1,15 @@ +[remap] + +importer="ogg_vorbis" +type="AudioStreamOGGVorbis" +path="res://.import/Dark Atmosphere to Synth.ogg-d9cfd7bf9e40aecf5d2dc62376d046c3.oggstr" + +[deps] + +source_file="res://Assets/Music/Dystopian/Dark Atmosphere to Synth.ogg" +dest_files=[ "res://.import/Dark Atmosphere to Synth.ogg-d9cfd7bf9e40aecf5d2dc62376d046c3.oggstr" ] + +[params] + +loop=true +loop_offset=0 diff --git a/client/Assets/Music/Dystopian/Dystopian.ogg b/client/Assets/Music/Dystopian/Dystopian.ogg new file mode 100644 index 0000000..b6cbffb Binary files /dev/null and b/client/Assets/Music/Dystopian/Dystopian.ogg differ diff --git a/client/Assets/Music/Dystopian/Dystopian.ogg.import b/client/Assets/Music/Dystopian/Dystopian.ogg.import new file mode 100644 index 0000000..3c0795e --- /dev/null +++ b/client/Assets/Music/Dystopian/Dystopian.ogg.import @@ -0,0 +1,15 @@ +[remap] + +importer="ogg_vorbis" +type="AudioStreamOGGVorbis" +path="res://.import/Dystopian.ogg-fd073bb065643e3b3ae2d76f1795d67d.oggstr" + +[deps] + +source_file="res://Assets/Music/Dystopian/Dystopian.ogg" +dest_files=[ "res://.import/Dystopian.ogg-fd073bb065643e3b3ae2d76f1795d67d.oggstr" ] + +[params] + +loop=true +loop_offset=0 diff --git a/client/Assets/Music/Dystopian/Empty Streets.ogg b/client/Assets/Music/Dystopian/Empty Streets.ogg new file mode 100644 index 0000000..c27cb38 Binary files /dev/null and b/client/Assets/Music/Dystopian/Empty Streets.ogg differ diff --git a/client/Assets/Music/Dystopian/Empty Streets.ogg.import b/client/Assets/Music/Dystopian/Empty Streets.ogg.import new file mode 100644 index 0000000..8025599 --- /dev/null +++ b/client/Assets/Music/Dystopian/Empty Streets.ogg.import @@ -0,0 +1,15 @@ +[remap] + +importer="ogg_vorbis" +type="AudioStreamOGGVorbis" +path="res://.import/Empty Streets.ogg-7e9965eb3ca054bd216157ae70233bf9.oggstr" + +[deps] + +source_file="res://Assets/Music/Dystopian/Empty Streets.ogg" +dest_files=[ "res://.import/Empty Streets.ogg-7e9965eb3ca054bd216157ae70233bf9.oggstr" ] + +[params] + +loop=true +loop_offset=0 diff --git a/client/Assets/Music/Dystopian/License.txt b/client/Assets/Music/Dystopian/License.txt new file mode 100644 index 0000000..4ea2113 --- /dev/null +++ b/client/Assets/Music/Dystopian/License.txt @@ -0,0 +1,10 @@ +Music Composed and Produced by Tim Beek + +You can use this work on your personal or commercial projects, no credit required. Just don't redistribute the assets. + +Links + +Support my work at Patreon https://www.patreon.com/timbeek/ +Buy my stuff https://timbeek.itch.io/ +Get more Free Assetslike these at: http://www.timbeek.com +Twitter @timbeekmusic diff --git a/client/Assets/Music/Dystopian/Mystery Unsolved.ogg b/client/Assets/Music/Dystopian/Mystery Unsolved.ogg new file mode 100644 index 0000000..a81d9a9 Binary files /dev/null and b/client/Assets/Music/Dystopian/Mystery Unsolved.ogg differ diff --git a/client/Assets/Music/Dystopian/Mystery Unsolved.ogg.import b/client/Assets/Music/Dystopian/Mystery Unsolved.ogg.import new file mode 100644 index 0000000..de46dec --- /dev/null +++ b/client/Assets/Music/Dystopian/Mystery Unsolved.ogg.import @@ -0,0 +1,15 @@ +[remap] + +importer="ogg_vorbis" +type="AudioStreamOGGVorbis" +path="res://.import/Mystery Unsolved.ogg-c3936a0ae548f6e84dcdb0df4b96db96.oggstr" + +[deps] + +source_file="res://Assets/Music/Dystopian/Mystery Unsolved.ogg" +dest_files=[ "res://.import/Mystery Unsolved.ogg-c3936a0ae548f6e84dcdb0df4b96db96.oggstr" ] + +[params] + +loop=true +loop_offset=0 diff --git a/client/Assets/Music/Dystopian/Surveillance.ogg b/client/Assets/Music/Dystopian/Surveillance.ogg new file mode 100644 index 0000000..d471ef5 Binary files /dev/null and b/client/Assets/Music/Dystopian/Surveillance.ogg differ diff --git a/client/Assets/Music/Dystopian/Surveillance.ogg.import b/client/Assets/Music/Dystopian/Surveillance.ogg.import new file mode 100644 index 0000000..2e62fa1 --- /dev/null +++ b/client/Assets/Music/Dystopian/Surveillance.ogg.import @@ -0,0 +1,15 @@ +[remap] + +importer="ogg_vorbis" +type="AudioStreamOGGVorbis" +path="res://.import/Surveillance.ogg-c5f017c00cb3886d3501ed81386a73cb.oggstr" + +[deps] + +source_file="res://Assets/Music/Dystopian/Surveillance.ogg" +dest_files=[ "res://.import/Surveillance.ogg-c5f017c00cb3886d3501ed81386a73cb.oggstr" ] + +[params] + +loop=true +loop_offset=0 diff --git a/client/Assets/Music/Dystopian/The Nightclub.ogg b/client/Assets/Music/Dystopian/The Nightclub.ogg new file mode 100644 index 0000000..bf7e352 Binary files /dev/null and b/client/Assets/Music/Dystopian/The Nightclub.ogg differ diff --git a/client/Assets/Music/Dystopian/The Nightclub.ogg.import b/client/Assets/Music/Dystopian/The Nightclub.ogg.import new file mode 100644 index 0000000..8393e6d --- /dev/null +++ b/client/Assets/Music/Dystopian/The Nightclub.ogg.import @@ -0,0 +1,15 @@ +[remap] + +importer="ogg_vorbis" +type="AudioStreamOGGVorbis" +path="res://.import/The Nightclub.ogg-10d9ab60ce72a11eb65cbee26cc77e10.oggstr" + +[deps] + +source_file="res://Assets/Music/Dystopian/The Nightclub.ogg" +dest_files=[ "res://.import/The Nightclub.ogg-10d9ab60ce72a11eb65cbee26cc77e10.oggstr" ] + +[params] + +loop=true +loop_offset=0 diff --git a/client/Assets/Music/Dystopian/The Protagonist.ogg b/client/Assets/Music/Dystopian/The Protagonist.ogg new file mode 100644 index 0000000..8277369 Binary files /dev/null and b/client/Assets/Music/Dystopian/The Protagonist.ogg differ diff --git a/client/Assets/Music/Dystopian/The Protagonist.ogg.import b/client/Assets/Music/Dystopian/The Protagonist.ogg.import new file mode 100644 index 0000000..dcfc0b5 --- /dev/null +++ b/client/Assets/Music/Dystopian/The Protagonist.ogg.import @@ -0,0 +1,15 @@ +[remap] + +importer="ogg_vorbis" +type="AudioStreamOGGVorbis" +path="res://.import/The Protagonist.ogg-a0896a9cc69920d3556726e88eb9ecc6.oggstr" + +[deps] + +source_file="res://Assets/Music/Dystopian/The Protagonist.ogg" +dest_files=[ "res://.import/The Protagonist.ogg-a0896a9cc69920d3556726e88eb9ecc6.oggstr" ] + +[params] + +loop=true +loop_offset=0 diff --git a/client/Assets/Music/Dystopian/The Story Continues.ogg b/client/Assets/Music/Dystopian/The Story Continues.ogg new file mode 100644 index 0000000..7c8a795 Binary files /dev/null and b/client/Assets/Music/Dystopian/The Story Continues.ogg differ diff --git a/client/Assets/Music/Dystopian/The Story Continues.ogg.import b/client/Assets/Music/Dystopian/The Story Continues.ogg.import new file mode 100644 index 0000000..b508eb6 --- /dev/null +++ b/client/Assets/Music/Dystopian/The Story Continues.ogg.import @@ -0,0 +1,15 @@ +[remap] + +importer="ogg_vorbis" +type="AudioStreamOGGVorbis" +path="res://.import/The Story Continues.ogg-8ba2fc4bd692fc3cc6ccc662d1bde808.oggstr" + +[deps] + +source_file="res://Assets/Music/Dystopian/The Story Continues.ogg" +dest_files=[ "res://.import/The Story Continues.ogg-8ba2fc4bd692fc3cc6ccc662d1bde808.oggstr" ] + +[params] + +loop=true +loop_offset=0 diff --git a/client/Assets/Sfx/Speakers/default.wav b/client/Assets/Sfx/Speakers/default.wav new file mode 100644 index 0000000..87c6480 Binary files /dev/null and b/client/Assets/Sfx/Speakers/default.wav differ diff --git a/client/Assets/Sfx/Speakers/default.wav.import b/client/Assets/Sfx/Speakers/default.wav.import new file mode 100644 index 0000000..03a5868 --- /dev/null +++ b/client/Assets/Sfx/Speakers/default.wav.import @@ -0,0 +1,21 @@ +[remap] + +importer="wav" +type="AudioStreamSample" +path="res://.import/default.wav-9e65f8cb59e54d70a2ddefa3b607d2c2.sample" + +[deps] + +source_file="res://Assets/Sfx/Speakers/default.wav" +dest_files=[ "res://.import/default.wav-9e65f8cb59e54d70a2ddefa3b607d2c2.sample" ] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop=false +compress/mode=0 diff --git a/client/Assets/Sfx/Speakers/old.wav b/client/Assets/Sfx/Speakers/old.wav new file mode 100644 index 0000000..250dbfb Binary files /dev/null and b/client/Assets/Sfx/Speakers/old.wav differ diff --git a/client/Assets/Sfx/Speakers/old.wav.import b/client/Assets/Sfx/Speakers/old.wav.import new file mode 100644 index 0000000..8480708 --- /dev/null +++ b/client/Assets/Sfx/Speakers/old.wav.import @@ -0,0 +1,21 @@ +[remap] + +importer="wav" +type="AudioStreamSample" +path="res://.import/old.wav-6243dc6f828802754d4671515120a664.sample" + +[deps] + +source_file="res://Assets/Sfx/Speakers/old.wav" +dest_files=[ "res://.import/old.wav-6243dc6f828802754d4671515120a664.sample" ] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop=false +compress/mode=0 diff --git a/client/Assets/Sfx/button_press.wav b/client/Assets/Sfx/button_press.wav new file mode 100644 index 0000000..92e6244 Binary files /dev/null and b/client/Assets/Sfx/button_press.wav differ diff --git a/client/Assets/Sfx/button_press.wav.import b/client/Assets/Sfx/button_press.wav.import new file mode 100644 index 0000000..3e75e99 --- /dev/null +++ b/client/Assets/Sfx/button_press.wav.import @@ -0,0 +1,21 @@ +[remap] + +importer="wav" +type="AudioStreamSample" +path="res://.import/button_press.wav-ee1c5209649cc8dfb1f404d8776d0bc7.sample" + +[deps] + +source_file="res://Assets/Sfx/button_press.wav" +dest_files=[ "res://.import/button_press.wav-ee1c5209649cc8dfb1f404d8776d0bc7.sample" ] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop=false +compress/mode=0 diff --git a/client/Assets/Sfx/intro/loading.wav b/client/Assets/Sfx/intro/loading.wav new file mode 100644 index 0000000..7479ce9 Binary files /dev/null and b/client/Assets/Sfx/intro/loading.wav differ diff --git a/client/Assets/Sfx/intro/loading.wav.import b/client/Assets/Sfx/intro/loading.wav.import new file mode 100644 index 0000000..15e05a5 --- /dev/null +++ b/client/Assets/Sfx/intro/loading.wav.import @@ -0,0 +1,21 @@ +[remap] + +importer="wav" +type="AudioStreamSample" +path="res://.import/loading.wav-524816aaced5f1b9f3d89539712c337c.sample" + +[deps] + +source_file="res://Assets/Sfx/intro/loading.wav" +dest_files=[ "res://.import/loading.wav-524816aaced5f1b9f3d89539712c337c.sample" ] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop=false +compress/mode=0 diff --git a/client/Assets/Sfx/intro/processed.wav b/client/Assets/Sfx/intro/processed.wav new file mode 100644 index 0000000..1d15347 Binary files /dev/null and b/client/Assets/Sfx/intro/processed.wav differ diff --git a/client/Assets/Sfx/intro/processed.wav.import b/client/Assets/Sfx/intro/processed.wav.import new file mode 100644 index 0000000..d209e46 --- /dev/null +++ b/client/Assets/Sfx/intro/processed.wav.import @@ -0,0 +1,21 @@ +[remap] + +importer="wav" +type="AudioStreamSample" +path="res://.import/processed.wav-a7a5a075e2f9c8455243537ae0837ba2.sample" + +[deps] + +source_file="res://Assets/Sfx/intro/processed.wav" +dest_files=[ "res://.import/processed.wav-a7a5a075e2f9c8455243537ae0837ba2.sample" ] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop=false +compress/mode=0 diff --git a/client/Assets/Stories/english_story.tres b/client/Assets/Stories/english_story.tres new file mode 100644 index 0000000..11679a2 --- /dev/null +++ b/client/Assets/Stories/english_story.tres @@ -0,0 +1,293 @@ +[gd_resource type="Resource" load_steps=2 format=2] + +[ext_resource path="res://addons/EXP-System-Dialog/Resource_EditorStory/EXP_EditorStory.gd" type="Script" id=1] + +[resource] +script = ExtResource( 1 ) +TYPE = "EXP_Story_editor" +names = { +"intro_science": 1, +"intro_science_followup": 3, +"intro_text": 2 +} +story = { +1: { +"available_nid": [ ], +"groups": [ "Introduction" ], +"human_readable_description": "Scientist's Introduction following cinematic", +"name": "intro_science", +"nodes": { +1: { +"graph_offset": Vector2( 0, 80 ), +"links": { +0: 2 +}, +"rect_size": Vector2( 324, 137 ), +"slot_amount": 1, +"text": "Welcome to Ravenworks.", +"type": "line" +}, +2: { +"graph_offset": Vector2( 520, 80 ), +"links": { +0: 6, +1: 4, +2: 3 +}, +"rect_size": Vector2( 324, 137 ), +"slot_amount": 3, +"text": "Are you ready to furfill your function? +Yes +No +Where am I?", +"type": "line" +}, +3: { +"graph_offset": Vector2( 520, 320 ), +"links": { +0: 2, +1: 5 +}, +"rect_size": Vector2( 324, 137 ), +"slot_amount": 2, +"text": "You are in Ravenworks cloining facility in Central City. +Okay +Central City?", +"type": "line" +}, +4: { +"graph_offset": Vector2( 520, -120 ), +"links": { +0: 2 +}, +"rect_size": Vector2( 324, 137 ), +"slot_amount": 1, +"text": "Hmmm... The obidence chip must be malfunctioning.", +"type": "line" +}, +5: { +"graph_offset": Vector2( 520, 540 ), +"links": { +0: 8 +}, +"rect_size": Vector2( 441, 165 ), +"slot_amount": 1, +"text": "Central City is the location of the five corporate seats of power.", +"type": "line" +}, +6: { +"graph_offset": Vector2( 1000, 80 ), +"links": { +0: 7 +}, +"rect_size": Vector2( 324, 137 ), +"slot_amount": 1, +"text": "Excellent.", +"type": "line" +}, +7: { +"graph_offset": Vector2( 1480, 80 ), +"links": { +0: 10 +}, +"rect_size": Vector2( 324, 137 ), +"slot_amount": 1, +"text": "There are reports that an executive here at Ravenworks is +working against the company's interests.", +"type": "line" +}, +8: { +"graph_offset": Vector2( 1020, 540 ), +"links": { +0: 2 +}, +"rect_size": Vector2( 324, 137 ), +"slot_amount": 1, +"text": "You died hundreds of years ago and I do not have time to explain +to you over 100 years of history.", +"type": "line" +}, +9: { +"graph_offset": Vector2( 2440, 80 ), +"links": { +0: 12 +}, +"rect_size": Vector2( 324, 137 ), +"slot_amount": 1, +"text": "Do you accept this programming? +Yes", +"type": "line" +}, +10: { +"graph_offset": Vector2( 1960, 80 ), +"links": { +0: 9, +1: 11 +}, +"rect_size": Vector2( 324, 137 ), +"slot_amount": 2, +"text": "The CEO of Ravenworks has decided to task you with finding +and killing this individual. +Okay +Why me?", +"type": "line" +}, +11: { +"graph_offset": Vector2( 1960, 300 ), +"links": { +0: 9 +}, +"rect_size": Vector2( 324, 137 ), +"slot_amount": 1, +"text": "I do not know.", +"type": "line" +}, +12: { +"graph_offset": Vector2( 2920, 80 ), +"links": { +0: 13 +}, +"rect_size": Vector2( 324, 137 ), +"slot_amount": 1, +"text": "Good. You have been given Level 3 security clearance +in Ravenwork facilities.", +"type": "line" +}, +13: { +"graph_offset": Vector2( 3400, 80 ), +"links": { + +}, +"rect_size": Vector2( 324, 137 ), +"slot_amount": 1, +"text": "CEO Grant Blevins would like to speak to you about the +investigation. His office is located at the top of +Central Tower.", +"type": "line" +} +} +}, +2: { +"available_nid": [ ], +"groups": [ "Introduction" ], +"human_readable_description": "Cinematic Intro Text", +"name": "intro_text", +"nodes": { +1: { +"graph_offset": Vector2( 60, -300 ), +"links": { +0: 2 +}, +"rect_size": Vector2( 324, 137 ), +"slot_amount": 1, +"text": "Name: Veronica Dohwns", +"type": "line" +}, +2: { +"graph_offset": Vector2( 540, -300 ), +"links": { +0: 3 +}, +"rect_size": Vector2( 324, 137 ), +"slot_amount": 1, +"text": "Occupation: Private Investigator", +"type": "line" +}, +3: { +"graph_offset": Vector2( 1020, -300 ), +"links": { +0: 4 +}, +"rect_size": Vector2( 324, 137 ), +"slot_amount": 1, +"text": "Day of Death: 8-21-2032", +"type": "line" +}, +4: { +"graph_offset": Vector2( 1500, -300 ), +"links": { +0: 5 +}, +"rect_size": Vector2( 324, 137 ), +"slot_amount": 1, +"text": "Intializing...", +"type": "line" +}, +5: { +"graph_offset": Vector2( 1980, -300 ), +"links": { +0: 6 +}, +"rect_size": Vector2( 324, 137 ), +"slot_amount": 1, +"text": "Welcome Veroinica!", +"type": "line" +}, +6: { +"graph_offset": Vector2( 2460, -300 ), +"links": { +0: 7 +}, +"rect_size": Vector2( 324, 137 ), +"slot_amount": 1, +"text": "In correspondance with HR 53151 +Ravenetworks has repurposed your mind +for our services.", +"type": "line" +}, +7: { +"graph_offset": Vector2( 2940, -300 ), +"links": { +0: 8 +}, +"rect_size": Vector2( 324, 137 ), +"slot_amount": 1, +"text": "Transfering to physical system...", +"type": "line" +}, +8: { +"graph_offset": Vector2( 3420, -300 ), +"links": { + +}, +"rect_size": Vector2( 324, 137 ), +"slot_amount": 1, +"text": "Caution: Extreme pain is likely.", +"type": "line" +} +} +}, +3: { +"available_nid": [ ], +"groups": [ "Introduction" ], +"human_readable_description": "Interacting with scientist after intro", +"name": "intro_science_followup", +"nodes": { +1: { +"graph_offset": Vector2( -1300, -880 ), +"links": { +1: 2 +}, +"rect_size": Vector2( 441, 172 ), +"slot_amount": 2, +"text": "Did you need something? +No +You are the traitor!", +"type": "line" +}, +2: { +"graph_offset": Vector2( -780, -840 ), +"links": { + +}, +"rect_size": Vector2( 324, 137 ), +"slot_amount": 1, +"text": "Don't make such false accusations. Get back to your job +and find the real culpurit.", +"type": "line" +} +} +} +} +available_dids = [ ] +groups = [ "Introduction" ] diff --git a/client/Assets/Themes/default.tres b/client/Assets/Themes/default.tres new file mode 100644 index 0000000..281d901 --- /dev/null +++ b/client/Assets/Themes/default.tres @@ -0,0 +1,50 @@ +[gd_resource type="Theme" load_steps=10 format=2] + +[ext_resource path="res://Assets/Proprietary/hf-scifi-complete/marksman-v1/Marksman.ttf" type="DynamicFontData" id=1] + +[sub_resource type="StyleBoxEmpty" id=1] + +[sub_resource type="StyleBoxEmpty" id=2] + +[sub_resource type="StyleBoxEmpty" id=3] + +[sub_resource type="StyleBoxEmpty" id=4] + +[sub_resource type="StyleBoxEmpty" id=5] + +[sub_resource type="StyleBoxEmpty" id=6] + +[sub_resource type="StyleBoxEmpty" id=7] + +[sub_resource type="DynamicFont" id=8] +size = 32 +outline_size = 1 +outline_color = Color( 0.243137, 0.858824, 0.815686, 0.498039 ) +font_data = ExtResource( 1 ) + +[resource] +default_font = SubResource( 8 ) +Button/colors/font_color = Color( 0.203922, 0.760784, 0.819608, 0.54902 ) +Button/colors/font_color_disabled = Color( 0.901961, 0.901961, 0.901961, 0.2 ) +Button/colors/font_color_hover = Color( 0.203922, 0.760784, 0.819608, 0.784314 ) +Button/colors/font_color_pressed = Color( 0.6, 0.835294, 0.858824, 0.784314 ) +Button/constants/hseparation = 16 +Button/fonts/font = null +Button/styles/ = SubResource( 1 ) +Button/styles/disabled = SubResource( 2 ) +Button/styles/focus = SubResource( 3 ) +Button/styles/hover = SubResource( 4 ) +Button/styles/normal = SubResource( 5 ) +Button/styles/pressed = SubResource( 6 ) +HBoxContainer/constants/separation = 64 +Label/colors/font_color = Color( 0.203922, 0.760784, 0.819608, 0.54902 ) +Label/colors/font_color_shadow = Color( 0, 0, 0, 0 ) +Label/colors/font_outline_modulate = Color( 0.243137, 0.858824, 0.815686, 0.498039 ) +Label/constants/line_spacing = 3 +Label/constants/shadow_as_outline = 0 +Label/constants/shadow_offset_x = 1 +Label/constants/shadow_offset_y = 1 +Label/fonts/font = null +Label/icons/ = null +Label/styles/normal = null +Panel/styles/panel = SubResource( 7 ) diff --git a/client/Nodes/Player.tscn b/client/Nodes/Player.tscn new file mode 100644 index 0000000..28bbfe4 --- /dev/null +++ b/client/Nodes/Player.tscn @@ -0,0 +1,882 @@ +[gd_scene load_steps=25 format=2] + +[ext_resource path="res://Assets/Materials/SmoothScaling.tres" type="Material" id=1] +[ext_resource path="res://Assets/Art/Characters/player_parts.png" type="Texture" id=2] +[ext_resource path="res://animation_reference.png" type="Texture" id=3] +[ext_resource path="res://Scripts/Entities/Player.gd" type="Script" id=4] + +[sub_resource type="AtlasTexture" id=1] +flags = 12 +atlas = ExtResource( 2 ) +region = Rect2( 1, 7, 3, 4 ) + +[sub_resource type="AtlasTexture" id=2] +flags = 12 +atlas = ExtResource( 2 ) +region = Rect2( 2, 6, 1, 1 ) + +[sub_resource type="AtlasTexture" id=3] +flags = 12 +atlas = ExtResource( 2 ) +region = Rect2( 1, 1, 3, 4 ) + +[sub_resource type="AtlasTexture" id=4] +flags = 12 +atlas = ExtResource( 2 ) +region = Rect2( 7, 8, 1, 2 ) + +[sub_resource type="AtlasTexture" id=5] +flags = 12 +atlas = ExtResource( 2 ) +region = Rect2( 6, 10, 1, 2 ) + +[sub_resource type="AtlasTexture" id=6] +flags = 12 +atlas = ExtResource( 2 ) +region = Rect2( 6, 12, 1, 1 ) + +[sub_resource type="AtlasTexture" id=7] +flags = 12 +atlas = ExtResource( 2 ) +region = Rect2( 9, 8, 1, 2 ) + +[sub_resource type="AtlasTexture" id=8] +flags = 12 +atlas = ExtResource( 2 ) +region = Rect2( 10, 10, 1, 2 ) + +[sub_resource type="AtlasTexture" id=9] +flags = 12 +atlas = ExtResource( 2 ) +region = Rect2( 1, 11, 3, 2 ) + +[sub_resource type="AtlasTexture" id=10] +flags = 12 +atlas = ExtResource( 2 ) +region = Rect2( 1, 13, 3, 1 ) + +[sub_resource type="AtlasTexture" id=11] +flags = 12 +atlas = ExtResource( 2 ) +region = Rect2( 1, 14, 3, 1 ) + +[sub_resource type="AtlasTexture" id=12] +flags = 12 +atlas = ExtResource( 2 ) +region = Rect2( 1, 15, 3, 1 ) + +[sub_resource type="AtlasTexture" id=13] +flags = 12 +atlas = ExtResource( 2 ) +region = Rect2( 1, 17, 1, 2 ) + +[sub_resource type="AtlasTexture" id=14] +flags = 12 +atlas = ExtResource( 2 ) +region = Rect2( 1, 19, 1, 2 ) + +[sub_resource type="AtlasTexture" id=15] +flags = 12 +atlas = ExtResource( 2 ) +region = Rect2( 3, 17, 1, 2 ) + +[sub_resource type="AtlasTexture" id=16] +flags = 12 +atlas = ExtResource( 2 ) +region = Rect2( 3, 19, 1, 2 ) + +[sub_resource type="Animation" id=17] +resource_name = "Idle" +length = 2.0 +loop = true +tracks/0/type = "bezier" +tracks/0/path = NodePath("Torso/RightArm:position:x") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/keys = { +"points": PoolRealArray( 2, -0.25, 0, 0.25, 0, 2, -0.25, 0, 0.25, 0, 2, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 0, 1, 2 ) +} +tracks/1/type = "bezier" +tracks/1/path = NodePath("Torso/RightArm:position:y") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/keys = { +"points": PoolRealArray( 0, -0.25, 0, 0.25, 0, -0.25, -0.25, 0, 0.25, 0, 0, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 0, 1, 2 ) +} +tracks/2/type = "bezier" +tracks/2/path = NodePath("Torso/RightArm:rotation_degrees") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/keys = { +"points": PoolRealArray( 0, -0.25, 0, 0.25, 0, 0, -0.25, 0, 0.25, 0, 0, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 0, 1, 2 ) +} +tracks/3/type = "bezier" +tracks/3/path = NodePath("Torso/LeftArm:position:x") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/keys = { +"points": PoolRealArray( -2, -0.25, 0, 0.25, 0, -2, -0.25, 0, 0.25, 0, -2, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 0, 1, 2 ) +} +tracks/4/type = "bezier" +tracks/4/path = NodePath("Torso/LeftArm:position:y") +tracks/4/interp = 1 +tracks/4/loop_wrap = true +tracks/4/imported = false +tracks/4/enabled = true +tracks/4/keys = { +"points": PoolRealArray( 0, -0.25, 0, 0.25, 0, -0.25, -0.25, 0, 0.25, 0, 0, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 0, 1, 2 ) +} +tracks/5/type = "bezier" +tracks/5/path = NodePath("Torso/LeftArm:rotation_degrees") +tracks/5/interp = 1 +tracks/5/loop_wrap = true +tracks/5/imported = false +tracks/5/enabled = true +tracks/5/keys = { +"points": PoolRealArray( 0, -0.25, 0, 0.25, 0, 0, -0.25, 0, 0.25, 0, 0, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 0, 1, 2 ) +} +tracks/6/type = "bezier" +tracks/6/path = NodePath("Torso/LeftArm/LeftForearm:position:x") +tracks/6/interp = 1 +tracks/6/loop_wrap = true +tracks/6/imported = false +tracks/6/enabled = true +tracks/6/keys = { +"points": PoolRealArray( -0.5, -0.25, 0, 0.25, 0, -0.68338, -0.25, 0, 0.25, 0, -0.5, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 0, 1, 2 ) +} +tracks/7/type = "bezier" +tracks/7/path = NodePath("Torso/LeftArm/LeftForearm:position:y") +tracks/7/interp = 1 +tracks/7/loop_wrap = true +tracks/7/imported = false +tracks/7/enabled = true +tracks/7/keys = { +"points": PoolRealArray( 1.75, -0.25, 0, 0.25, 0, 1.44437, -0.25, 0, 0.25, 0, 1.75, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 0, 1, 2 ) +} +tracks/8/type = "bezier" +tracks/8/path = NodePath("Torso/LeftArm/LeftForearm:rotation_degrees") +tracks/8/interp = 1 +tracks/8/loop_wrap = true +tracks/8/imported = false +tracks/8/enabled = true +tracks/8/keys = { +"points": PoolRealArray( 0, -0.25, 0, 0.25, 0, 11.166, -0.25, 0, 0.25, 0, 0, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 0, 1, 2 ) +} +tracks/9/type = "bezier" +tracks/9/path = NodePath("Torso/RightArm/RightForearm:position:x") +tracks/9/interp = 1 +tracks/9/loop_wrap = true +tracks/9/imported = false +tracks/9/enabled = true +tracks/9/keys = { +"points": PoolRealArray( 0.5, -0.25, 0, 0.25, 0, 0.683, -0.25, 0, 0.25, 0, 0.5, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 0, 1, 2 ) +} +tracks/10/type = "bezier" +tracks/10/path = NodePath("Torso/RightArm/RightForearm:position:y") +tracks/10/interp = 1 +tracks/10/loop_wrap = true +tracks/10/imported = false +tracks/10/enabled = true +tracks/10/keys = { +"points": PoolRealArray( 1.75, -0.25, 0, 0.25, 0, 1.444, -0.25, 0, 0.25, 0, 1.75, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 0, 1, 2 ) +} +tracks/11/type = "bezier" +tracks/11/path = NodePath("Torso/RightArm/RightForearm:rotation_degrees") +tracks/11/interp = 1 +tracks/11/loop_wrap = true +tracks/11/imported = false +tracks/11/enabled = true +tracks/11/keys = { +"points": PoolRealArray( 0, -0.25, 0, 0.25, 0, -11.2, -0.25, 0, 0.25, 0, 0, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 0, 1, 2 ) +} +tracks/12/type = "bezier" +tracks/12/path = NodePath("Torso/Hips:position:x") +tracks/12/interp = 1 +tracks/12/loop_wrap = true +tracks/12/imported = false +tracks/12/enabled = true +tracks/12/keys = { +"points": PoolRealArray( 0, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 1 ) +} +tracks/13/type = "bezier" +tracks/13/path = NodePath("Torso/Hips:position:y") +tracks/13/interp = 1 +tracks/13/loop_wrap = true +tracks/13/imported = false +tracks/13/enabled = true +tracks/13/keys = { +"points": PoolRealArray( 2.75, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 1 ) +} +tracks/14/type = "bezier" +tracks/14/path = NodePath("Torso/Hips:rotation_degrees") +tracks/14/interp = 1 +tracks/14/loop_wrap = true +tracks/14/imported = false +tracks/14/enabled = true +tracks/14/keys = { +"points": PoolRealArray( 0, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 1 ) +} +tracks/15/type = "bezier" +tracks/15/path = NodePath("Torso/Hips/LeftLeg:position:x") +tracks/15/interp = 1 +tracks/15/loop_wrap = true +tracks/15/imported = false +tracks/15/enabled = true +tracks/15/keys = { +"points": PoolRealArray( -1, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 1 ) +} +tracks/16/type = "bezier" +tracks/16/path = NodePath("Torso/Hips/LeftLeg:position:y") +tracks/16/interp = 1 +tracks/16/loop_wrap = true +tracks/16/imported = false +tracks/16/enabled = true +tracks/16/keys = { +"points": PoolRealArray( 1.75, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 1 ) +} +tracks/17/type = "bezier" +tracks/17/path = NodePath("Torso/Hips/LeftLeg:rotation_degrees") +tracks/17/interp = 1 +tracks/17/loop_wrap = true +tracks/17/imported = false +tracks/17/enabled = true +tracks/17/keys = { +"points": PoolRealArray( 0, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 1 ) +} +tracks/18/type = "bezier" +tracks/18/path = NodePath("Torso/Hips/LeftLeg/LeftLeg2:position:x") +tracks/18/interp = 1 +tracks/18/loop_wrap = true +tracks/18/imported = false +tracks/18/enabled = true +tracks/18/keys = { +"points": PoolRealArray( 0, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 1 ) +} +tracks/19/type = "bezier" +tracks/19/path = NodePath("Torso/Hips/LeftLeg/LeftLeg2:position:y") +tracks/19/interp = 1 +tracks/19/loop_wrap = true +tracks/19/imported = false +tracks/19/enabled = true +tracks/19/keys = { +"points": PoolRealArray( 1.75, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 1 ) +} +tracks/20/type = "bezier" +tracks/20/path = NodePath("Torso/Hips/LeftLeg/LeftLeg2:rotation_degrees") +tracks/20/interp = 1 +tracks/20/loop_wrap = true +tracks/20/imported = false +tracks/20/enabled = true +tracks/20/keys = { +"points": PoolRealArray( 0, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 1 ) +} +tracks/21/type = "bezier" +tracks/21/path = NodePath("Torso/Hips/LeftLeg/LeftLeg2/Node2D:position:x") +tracks/21/interp = 1 +tracks/21/loop_wrap = true +tracks/21/imported = false +tracks/21/enabled = true +tracks/21/keys = { +"points": PoolRealArray( 0, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 1 ) +} +tracks/22/type = "bezier" +tracks/22/path = NodePath("Torso/Hips/LeftLeg/LeftLeg2/Node2D:position:y") +tracks/22/interp = 1 +tracks/22/loop_wrap = true +tracks/22/imported = false +tracks/22/enabled = true +tracks/22/keys = { +"points": PoolRealArray( 0.91716, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 1 ) +} +tracks/23/type = "bezier" +tracks/23/path = NodePath("Torso/Hips/LeftLeg/LeftLeg2/Node2D:rotation_degrees") +tracks/23/interp = 1 +tracks/23/loop_wrap = true +tracks/23/imported = false +tracks/23/enabled = true +tracks/23/keys = { +"points": PoolRealArray( 0, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 1 ) +} +tracks/24/type = "bezier" +tracks/24/path = NodePath("Torso/Hips/RightLeg:position:x") +tracks/24/interp = 1 +tracks/24/loop_wrap = true +tracks/24/imported = false +tracks/24/enabled = true +tracks/24/keys = { +"points": PoolRealArray( 1, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 1 ) +} +tracks/25/type = "bezier" +tracks/25/path = NodePath("Torso/Hips/RightLeg:position:y") +tracks/25/interp = 1 +tracks/25/loop_wrap = true +tracks/25/imported = false +tracks/25/enabled = true +tracks/25/keys = { +"points": PoolRealArray( 1.75, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 1 ) +} +tracks/26/type = "bezier" +tracks/26/path = NodePath("Torso/Hips/RightLeg:rotation_degrees") +tracks/26/interp = 1 +tracks/26/loop_wrap = true +tracks/26/imported = false +tracks/26/enabled = true +tracks/26/keys = { +"points": PoolRealArray( 0, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 1 ) +} +tracks/27/type = "bezier" +tracks/27/path = NodePath("Torso/Hips/RightLeg/RightLeg2:position:x") +tracks/27/interp = 1 +tracks/27/loop_wrap = true +tracks/27/imported = false +tracks/27/enabled = true +tracks/27/keys = { +"points": PoolRealArray( 0, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 1 ) +} +tracks/28/type = "bezier" +tracks/28/path = NodePath("Torso/Hips/RightLeg/RightLeg2:position:y") +tracks/28/interp = 1 +tracks/28/loop_wrap = true +tracks/28/imported = false +tracks/28/enabled = true +tracks/28/keys = { +"points": PoolRealArray( 1.75, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 1 ) +} +tracks/29/type = "bezier" +tracks/29/path = NodePath("Torso/Hips/RightLeg/RightLeg2:rotation_degrees") +tracks/29/interp = 1 +tracks/29/loop_wrap = true +tracks/29/imported = false +tracks/29/enabled = true +tracks/29/keys = { +"points": PoolRealArray( 0, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 1 ) +} +tracks/30/type = "bezier" +tracks/30/path = NodePath("Torso/Hips/RightLeg/RightLeg2/Node2D:position:x") +tracks/30/interp = 1 +tracks/30/loop_wrap = true +tracks/30/imported = false +tracks/30/enabled = true +tracks/30/keys = { +"points": PoolRealArray( 0, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 1 ) +} +tracks/31/type = "bezier" +tracks/31/path = NodePath("Torso/Hips/RightLeg/RightLeg2/Node2D:position:y") +tracks/31/interp = 1 +tracks/31/loop_wrap = true +tracks/31/imported = false +tracks/31/enabled = true +tracks/31/keys = { +"points": PoolRealArray( 0.91716, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 1 ) +} +tracks/32/type = "bezier" +tracks/32/path = NodePath("Torso/Hips/RightLeg/RightLeg2/Node2D:rotation_degrees") +tracks/32/interp = 1 +tracks/32/loop_wrap = true +tracks/32/imported = false +tracks/32/enabled = true +tracks/32/keys = { +"points": PoolRealArray( 0, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 1 ) +} + +[sub_resource type="Animation" id=18] +resource_name = "RunLeft" +length = 0.9 +loop = true +tracks/0/type = "bezier" +tracks/0/path = NodePath("Torso/Hips/LeftLeg:position:x") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/keys = { +"points": PoolRealArray( 1.07832, -0.25, 0, 0.25, 0, 0.528183, -0.25, 0, 0.25, 0, -0.877747, -0.25, 0, 0.25, 0, -1.15282, -0.25, 0, 0.25, 0, -1.06113, -0.25, 0, 0.25, 0, -0.847183, -0.25, 0, 0.25, 0, -0.388733, -0.25, 0, 0.25, 0, 0.436493, -0.25, 0, 0.25, 0, 0.86438, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8 ) +} +tracks/1/type = "bezier" +tracks/1/path = NodePath("Torso/Hips/LeftLeg:position:y") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/keys = { +"points": PoolRealArray( 1.59718, -0.25, 0, 0.25, 0, 1.65831, -0.25, 0, 0.25, 0, 1.4138, -0.25, 0, 0.25, 0, 1.75, -0.25, 0, 0.25, 0, 1.78056, -0.25, 0, 0.25, 0, 1.75, -0.25, 0, 0.25, 0, 1.71944, -0.25, 0, 0.25, 0, 1.68887, -0.25, 0, 0.25, 0, 1.71944, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8 ) +} +tracks/2/type = "bezier" +tracks/2/path = NodePath("Torso/Hips/LeftLeg:rotation_degrees") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/keys = { +"points": PoolRealArray( -36.5111, -0.25, 0, 0.25, 0, -12.2064, -0.25, 0, 0.25, 0, 41.5685, -0.25, 0, 0.25, 0, 41.5685, -0.25, 0, 0.25, 0, 38.0287, -0.25, 0, 0.25, 0, 27.6439, -0.25, 0, 0.25, 0, 15.1961, -0.25, 0, 0.25, 0, -0.812915, -0.25, 0, 0.25, 0, -21.9051, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8 ) +} +tracks/3/type = "bezier" +tracks/3/path = NodePath("Torso/Hips/LeftLeg/LeftLeg2:position:x") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/keys = { +"points": PoolRealArray( 0.476654, -0.25, 0, 0.25, 0, 0.605057, -0.25, 0, 0.25, 0, 0.65596, -0.25, 0, 0.25, 0, 0.328079, -0.25, 0, 0.25, 0, 0.448471, -0.25, 0, 0.25, 0, 0.808167, -0.25, 0, 0.25, 0, 0.969482, -0.25, 0, 0.25, 0, 0.969482, -0.25, 0, 0.25, 0, 0.713074, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8 ) +} +tracks/4/type = "bezier" +tracks/4/path = NodePath("Torso/Hips/LeftLeg/LeftLeg2:position:y") +tracks/4/interp = 1 +tracks/4/loop_wrap = true +tracks/4/imported = false +tracks/4/enabled = true +tracks/4/keys = { +"points": PoolRealArray( 1.72253, -0.25, 0, 0.25, 0, 1.56268, -0.25, 0, 0.25, 0, 1.43582, -0.25, 0, 0.25, 0, 1.84917, -0.25, 0, 0.25, 0, 1.75505, -0.25, 0, 0.25, 0, 1.25613, -0.25, 0, 0.25, 0, 0.800583, -0.25, 0, 0.25, 0, 0.800583, -0.25, 0, 0.25, 0, 1.35634, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8 ) +} +tracks/5/type = "bezier" +tracks/5/path = NodePath("Torso/Hips/LeftLeg/LeftLeg2:rotation_degrees") +tracks/5/interp = 1 +tracks/5/loop_wrap = true +tracks/5/imported = false +tracks/5/enabled = true +tracks/5/keys = { +"points": PoolRealArray( -39.322, -0.25, 0, 0.25, 0, -39.322, -0.25, 0, 0.25, 0, -52.2255, -0.25, 0, 0.25, 0, -20.5029, -0.25, 0, 0.25, 0, -37.9949, -0.25, 0, 0.25, 0, -70.2937, -0.25, 0, 0.25, 0, -84.8923, -0.25, 0, 0.25, 0, -105.176, -0.25, 0, 0.25, 0, -69.9995, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8 ) +} +tracks/6/type = "bezier" +tracks/6/path = NodePath("Torso/Hips/RightLeg:position:x") +tracks/6/interp = 1 +tracks/6/loop_wrap = true +tracks/6/imported = false +tracks/6/enabled = true +tracks/6/keys = { +"points": PoolRealArray( -1.35341, -0.25, 0, 0.25, 0, -1.01721, -0.25, 0, 0.25, 0, -0.0697479, -0.25, 0, 0.25, 0, 0.572098, -0.25, 0, 0.25, 0, 0.724899, -0.25, 0, 0.25, 0, 0.724899, -0.25, 0, 0.25, 0, -0.405975, -0.25, 0, 0.25, 0, -0.925552, -0.25, 0, 0.25, 0, -0.803299, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8 ) +} +tracks/7/type = "bezier" +tracks/7/path = NodePath("Torso/Hips/RightLeg:position:y") +tracks/7/interp = 1 +tracks/7/loop_wrap = true +tracks/7/imported = false +tracks/7/enabled = true +tracks/7/keys = { +"points": PoolRealArray( 1.47493, -0.25, 0, 0.25, 0, 1.47493, -0.25, 0, 0.25, 0, 1.90283, -0.25, 0, 0.25, 0, 1.78058, -0.25, 0, 0.25, 0, 1.68889, -0.25, 0, 0.25, 0, 1.68889, -0.25, 0, 0.25, 0, 1.65833, -0.25, 0, 0.25, 0, 1.62776, -0.25, 0, 0.25, 0, 1.71944, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8 ) +} +tracks/8/type = "bezier" +tracks/8/path = NodePath("Torso/Hips/RightLeg:rotation_degrees") +tracks/8/interp = 1 +tracks/8/loop_wrap = true +tracks/8/imported = false +tracks/8/enabled = true +tracks/8/keys = { +"points": PoolRealArray( 43.3471, -0.25, 0, 0.25, 0, 43.3471, -0.25, 0, 0.25, 0, 10.8124, -0.25, 0, 0.25, 0, -15.1987, -0.25, 0, 0.25, 0, -39.0684, -0.25, 0, 0.25, 0, -45.2035, -0.25, 0, 0.25, 0, 19.567, -0.25, 0, 0.25, 0, 37.8934, -0.25, 0, 0.25, 0, 37.8934, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8 ) +} +tracks/9/type = "bezier" +tracks/9/path = NodePath("Torso/Hips/RightLeg/RightLeg2:position:x") +tracks/9/interp = 1 +tracks/9/loop_wrap = true +tracks/9/imported = false +tracks/9/enabled = true +tracks/9/keys = { +"points": PoolRealArray( 0.506195, -0.25, 0, 0.25, 0, 1.0878, -0.25, 0, 0.25, 0, 1.12491, -0.25, 0, 0.25, 0, 1.03677, -0.25, 0, 0.25, 0, 0.478149, -0.25, 0, 0.25, 0, 0.152969, -0.25, 0, 0.25, 0, 0.949799, -0.25, 0, 0.25, 0, 0.716675, -0.25, 0, 0.25, 0, 0.344177, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8 ) +} +tracks/10/type = "bezier" +tracks/10/path = NodePath("Torso/Hips/RightLeg/RightLeg2:position:y") +tracks/10/interp = 1 +tracks/10/loop_wrap = true +tracks/10/imported = false +tracks/10/enabled = true +tracks/10/keys = { +"points": PoolRealArray( 1.44029, -0.25, 0, 0.25, 0, 0.765198, -0.25, 0, 0.25, 0, 0.633652, -0.25, 0, 0.25, 0, 0.958115, -0.25, 0, 0.25, 0, 1.64626, -0.25, 0, 0.25, 0, 1.92607, -0.25, 0, 0.25, 0, 1.1563, -0.25, 0, 0.25, 0, 1.45392, -0.25, 0, 0.25, 0, 1.82128, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8 ) +} +tracks/11/type = "bezier" +tracks/11/path = NodePath("Torso/Hips/RightLeg/RightLeg2:rotation_degrees") +tracks/11/interp = 1 +tracks/11/loop_wrap = true +tracks/11/imported = false +tracks/11/enabled = true +tracks/11/keys = { +"points": PoolRealArray( -43.0657, -0.25, 0, 0.25, 0, -86.9422, -0.25, 0, 0.25, 0, -86.9422, -0.25, 0, 0.25, 0, -89.5198, -0.25, 0, 0.25, 0, -37.435, -0.25, 0, 0.25, 0, -5.33336, -0.25, 0, 0.25, 0, -64.9182, -0.25, 0, 0.25, 0, -48.1674, -0.25, 0, 0.25, 0, -19.3847, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8 ) +} + +[sub_resource type="Animation" id=19] +length = 0.9 +loop = true +tracks/0/type = "bezier" +tracks/0/path = NodePath("Torso/Hips/LeftLeg:position:x") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/keys = { +"points": PoolRealArray( 1.04134, -0.25, 0, 0.25, 0, 0.518555, -0.25, 0, 0.25, 0, 0.319397, -0.25, 0, 0.25, 0, -0.626587, -0.25, 0, 0.25, 0, -0.900421, -0.25, 0, 0.25, 0, -0.651474, -0.25, 0, 0.25, 0, -0.203384, -0.25, 0, 0.25, 0, 0.618134, -0.25, 0, 0.25, 0, 1.36496, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8 ) +} +tracks/1/type = "bezier" +tracks/1/path = NodePath("Torso/Hips/LeftLeg:position:y") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/keys = { +"points": PoolRealArray( 1.67531, -0.25, 0, 0.25, 0, 1.77489, -0.25, 0, 0.25, 0, 1.77489, -0.25, 0, 0.25, 0, 1.62552, -0.25, 0, 0.25, 0, 1.77487, -0.25, 0, 0.25, 0, 1.77487, -0.25, 0, 0.25, 0, 1.79977, -0.25, 0, 0.25, 0, 1.60065, -0.25, 0, 0.25, 0, 1.45128, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8 ) +} +tracks/2/type = "bezier" +tracks/2/path = NodePath("Torso/Hips/LeftLeg:rotation_degrees") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/keys = { +"points": PoolRealArray( -18.5702, -0.25, 0, 0.25, 0, -38.5768, -0.25, 0, 0.25, 0, -17.9135, -0.25, 0, 0.25, 0, 27.345, -0.25, 0, 0.25, 0, 35.3847, -0.25, 0, 0.25, 0, 10.0679, -0.25, 0, 0.25, 0, -14.8415, -0.25, 0, 0.25, 0, -37.666, -0.25, 0, 0.25, 0, -52.8765, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8 ) +} +tracks/3/type = "bezier" +tracks/3/path = NodePath("Torso/Hips/LeftLeg/LeftLeg2:position:x") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/keys = { +"points": PoolRealArray( 0, -0.25, 0, 0.25, 0, -0.610504, -0.25, 0, 0.25, 0, -0.832764, -0.25, 0, 0.25, 0, -0.59491, -0.25, 0, 0.25, 0, -0.59491, -0.25, 0, 0.25, 0, -0.932556, -0.25, 0, 0.25, 0, -0.83197, -0.25, 0, 0.25, 0, -0.854431, -0.25, 0, 0.25, 0, -0.773911, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8 ) +} +tracks/4/type = "bezier" +tracks/4/path = NodePath("Torso/Hips/LeftLeg/LeftLeg2:position:y") +tracks/4/interp = 1 +tracks/4/loop_wrap = true +tracks/4/imported = false +tracks/4/enabled = true +tracks/4/keys = { +"points": PoolRealArray( 1.75, -0.25, 0, 0.25, 0, 1.677, -0.25, 0, 0.25, 0, 1.47433, -0.25, 0, 0.25, 0, 1.77173, -0.25, 0, 0.25, 0, 1.77173, -0.25, 0, 0.25, 0, 1.57886, -0.25, 0, 0.25, 0, 1.29642, -0.25, 0, 0.25, 0, 1.1218, -0.25, 0, 0.25, 0, 1.31067, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8 ) +} +tracks/5/type = "bezier" +tracks/5/path = NodePath("Torso/Hips/LeftLeg/LeftLeg2:rotation_degrees") +tracks/5/interp = 1 +tracks/5/loop_wrap = true +tracks/5/imported = false +tracks/5/enabled = true +tracks/5/keys = { +"points": PoolRealArray( 0, -0.25, 0, 0.25, 0, 54.6344, -0.25, 0, 0.25, 0, 68.1557, -0.25, 0, 0.25, 0, 34.1175, -0.25, 0, 0.25, 0, 43.7221, -0.25, 0, 0.25, 0, 80.3745, -0.25, 0, 0.25, 0, 91.6715, -0.25, 0, 0.25, 0, 88.8735, -0.25, 0, 0.25, 0, 53.5431, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8 ) +} +tracks/6/type = "bezier" +tracks/6/path = NodePath("Torso/Hips/RightLeg:position:x") +tracks/6/interp = 1 +tracks/6/loop_wrap = true +tracks/6/imported = false +tracks/6/enabled = true +tracks/6/keys = { +"points": PoolRealArray( -1.14091, -0.25, 0, 0.25, 0, -0.618134, -0.25, 0, 0.25, 0, 0.10379, -0.25, 0, 0.25, 0, 0.55191, -0.25, 0, 0.25, 0, 0.850647, -0.25, 0, 0.25, 0, 0.651489, -0.25, 0, 0.25, 0, 0.651489, -0.25, 0, 0.25, 0, -0.643021, -0.25, 0, 0.25, 0, -1.11601, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8 ) +} +tracks/7/type = "bezier" +tracks/7/path = NodePath("Torso/Hips/RightLeg:position:y") +tracks/7/interp = 1 +tracks/7/loop_wrap = true +tracks/7/imported = false +tracks/7/enabled = true +tracks/7/keys = { +"points": PoolRealArray( 1.77489, -0.25, 0, 0.25, 0, 1.89935, -0.25, 0, 0.25, 0, 1.84956, -0.25, 0, 0.25, 0, 1.77487, -0.25, 0, 0.25, 0, 1.70018, -0.25, 0, 0.25, 0, 1.94913, -0.25, 0, 0.25, 0, 1.79976, -0.25, 0, 0.25, 0, 1.84955, -0.25, 0, 0.25, 0, 1.65039, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8 ) +} +tracks/8/type = "bezier" +tracks/8/path = NodePath("Torso/Hips/RightLeg:rotation_degrees") +tracks/8/interp = 1 +tracks/8/loop_wrap = true +tracks/8/imported = false +tracks/8/enabled = true +tracks/8/keys = { +"points": PoolRealArray( 25.5676, -0.25, 0, 0.25, 0, 1.13555, -0.25, 0, 0.25, 0, 335.661, -0.25, 0, 0.25, 0, 320.489, -0.25, 0, 0.25, 0, 313.394, -0.25, 0, 0.25, 0, 313.694, -0.25, 0, 0.25, 0, 315.147, -0.25, 0, 0.25, 0, 379.202, -0.25, 0, 0.25, 0, 393.788, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8 ) +} +tracks/9/type = "bezier" +tracks/9/path = NodePath("Torso/Hips/RightLeg/RightLeg2:position:x") +tracks/9/interp = 1 +tracks/9/loop_wrap = true +tracks/9/imported = false +tracks/9/enabled = true +tracks/9/keys = { +"points": PoolRealArray( -0.771408, -0.25, 0, 0.25, 0, -0.972992, -0.25, 0, 0.25, 0, -0.972992, -0.25, 0, 0.25, 0, -0.908661, -0.25, 0, 0.25, 0, -0.657059, -0.25, 0, 0.25, 0, -0.397499, -0.25, 0, 0.25, 0, -0.76767, -0.25, 0, 0.25, 0, -0.508026, -0.25, 0, 0.25, 0, -0.687546, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8 ) +} +tracks/10/type = "bezier" +tracks/10/path = NodePath("Torso/Hips/RightLeg/RightLeg2:position:y") +tracks/10/interp = 1 +tracks/10/loop_wrap = true +tracks/10/imported = false +tracks/10/enabled = true +tracks/10/keys = { +"points": PoolRealArray( 1.29114, -0.25, 0, 0.25, 0, 1.17062, -0.25, 0, 0.25, 0, 1.17062, -0.25, 0, 0.25, 0, 1.28824, -0.25, 0, 0.25, 0, 1.73553, -0.25, 0, 0.25, 0, 1.93512, -0.25, 0, 0.25, 0, 1.74243, -0.25, 0, 0.25, 0, 1.73108, -0.25, 0, 0.25, 0, 1.73137, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8 ) +} +tracks/11/type = "bezier" +tracks/11/path = NodePath("Torso/Hips/RightLeg/RightLeg2:rotation_degrees") +tracks/11/interp = 1 +tracks/11/loop_wrap = true +tracks/11/imported = false +tracks/11/enabled = true +tracks/11/keys = { +"points": PoolRealArray( 78.2623, -0.25, 0, 0.25, 0, 100.236, -0.25, 0, 0.25, 0, 100.236, -0.25, 0, 0.25, 0, 77.8788, -0.25, 0, 0.25, 0, 44.5188, -0.25, 0, 0.25, 0, 22.9561, -0.25, 0, 0.25, 0, 61.848, -0.25, 0, 0.25, 0, 31.9824, -0.25, 0, 0.25, 0, 48.0522, -0.25, 0, 0.25, 0 ), +"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8 ) +} + +[sub_resource type="CapsuleShape2D" id=20] +radius = 1.5 +height = 10.5 + +[node name="Player" type="KinematicBody2D"] +position = Vector2( 141.465, 231.585 ) +script = ExtResource( 4 ) + +[node name="Torso" type="Sprite" parent="."] +material = ExtResource( 1 ) +z_index = 10 +texture = SubResource( 1 ) + +[node name="Neck" type="Sprite" parent="Torso"] +material = ExtResource( 1 ) +position = Vector2( 0, -2.5 ) +z_index = -1 +texture = SubResource( 2 ) +__meta__ = { +"_edit_bone_": true, +"_edit_ik_": true +} + +[node name="Head" type="Sprite" parent="Torso/Neck"] +material = ExtResource( 1 ) +position = Vector2( 0, -2.25 ) +texture = SubResource( 3 ) +__meta__ = { +"_edit_bone_": true +} + +[node name="Node2D" type="Node2D" parent="Torso/Neck/Head"] +position = Vector2( -0.0449371, -1.88724 ) + +[node name="LeftArm" type="Sprite" parent="Torso"] +material = ExtResource( 1 ) +position = Vector2( -2, 0 ) +z_index = 1 +texture = SubResource( 4 ) +__meta__ = { +"_edit_bone_": true +} + +[node name="LeftForearm" type="Sprite" parent="Torso/LeftArm"] +material = ExtResource( 1 ) +position = Vector2( -0.5, 1.75 ) +texture = SubResource( 5 ) +__meta__ = { +"_edit_bone_": true +} + +[node name="LeftHand" type="Sprite" parent="Torso/LeftArm/LeftForearm"] +material = ExtResource( 1 ) +position = Vector2( 0, 1.35 ) +texture = SubResource( 6 ) +__meta__ = { +"_edit_bone_": true +} + +[node name="Node2D" type="Node2D" parent="Torso/LeftArm/LeftForearm/LeftHand"] +position = Vector2( 0.0249023, 0.423203 ) +__meta__ = { +"_edit_bone_": true +} + +[node name="RightArm" type="Sprite" parent="Torso"] +material = ExtResource( 1 ) +position = Vector2( 2, 0 ) +z_index = -2 +texture = SubResource( 7 ) +__meta__ = { +"_edit_bone_": true +} + +[node name="RightForearm" type="Sprite" parent="Torso/RightArm"] +material = ExtResource( 1 ) +position = Vector2( 0.5, 1.75 ) +texture = SubResource( 8 ) +__meta__ = { +"_edit_bone_": true +} + +[node name="LeftHand" type="Sprite" parent="Torso/RightArm/RightForearm"] +material = ExtResource( 1 ) +position = Vector2( 0, 1.35 ) +rotation = 0.0242677 +texture = SubResource( 6 ) +__meta__ = { +"_edit_bone_": true +} + +[node name="Node2D" type="Node2D" parent="Torso/RightArm/RightForearm/LeftHand"] +position = Vector2( 0.0249023, 0.423203 ) +__meta__ = { +"_edit_bone_": true +} + +[node name="Hips" type="Sprite" parent="Torso"] +material = ExtResource( 1 ) +position = Vector2( 0, 2.75 ) +texture = SubResource( 9 ) +__meta__ = { +"_edit_bone_": true +} + +[node name="Cape" type="Sprite" parent="Torso/Hips"] +material = ExtResource( 1 ) +position = Vector2( 0, 1 ) +z_index = -2 +texture = SubResource( 10 ) +__meta__ = { +"_edit_bone_": true, +"_edit_ik_": true +} + +[node name="Cape2" type="Sprite" parent="Torso/Hips/Cape"] +material = ExtResource( 1 ) +position = Vector2( 0, 0.75 ) +z_index = -2 +texture = SubResource( 11 ) +__meta__ = { +"_edit_bone_": true +} + +[node name="Cape3" type="Sprite" parent="Torso/Hips/Cape/Cape2"] +material = ExtResource( 1 ) +position = Vector2( 0, 0.75 ) +z_index = -2 +texture = SubResource( 12 ) +__meta__ = { +"_edit_bone_": true +} + +[node name="Node2D" type="Node2D" parent="Torso/Hips/Cape/Cape2/Cape3"] +position = Vector2( 0.0497894, 0.472992 ) +__meta__ = { +"_edit_bone_": true +} + +[node name="LeftLeg" type="Sprite" parent="Torso/Hips"] +material = ExtResource( 1 ) +position = Vector2( -0.380144, 1.71912 ) +rotation = 0.262314 +z_index = -2 +texture = SubResource( 13 ) +__meta__ = { +"_edit_bone_": true +} + +[node name="LeftLeg2" type="Sprite" parent="Torso/Hips/LeftLeg"] +material = ExtResource( 1 ) +position = Vector2( 0.969482, 0.800583 ) +rotation = -1.48533 +z_index = -2 +texture = SubResource( 14 ) +__meta__ = { +"_edit_bone_": true +} + +[node name="Node2D" type="Node2D" parent="Torso/Hips/LeftLeg/LeftLeg2"] +position = Vector2( 0, 0.91716 ) +__meta__ = { +"_edit_bone_": true +} + +[node name="RightLeg" type="Sprite" parent="Torso/Hips"] +material = ExtResource( 1 ) +position = Vector2( -0.411383, 1.65801 ) +rotation = 0.344838 +z_index = -2 +texture = SubResource( 15 ) +__meta__ = { +"_edit_bone_": true +} + +[node name="RightLeg2" type="Sprite" parent="Torso/Hips/RightLeg"] +material = ExtResource( 1 ) +position = Vector2( 0.947372, 1.15939 ) +rotation = -1.12999 +z_index = -2 +texture = SubResource( 16 ) +__meta__ = { +"_edit_bone_": true +} + +[node name="Node2D" type="Node2D" parent="Torso/Hips/RightLeg/RightLeg2"] +position = Vector2( 0, 0.91716 ) +__meta__ = { +"_edit_bone_": true +} + +[node name="Camera2D" type="Camera2D" parent="."] +current = true +zoom = Vector2( 0.187, 0.187 ) + +[node name="AnimationPlayer" type="AnimationPlayer" parent="."] +autoplay = "Idle" +anims/Idle = SubResource( 17 ) +anims/RunLeft = SubResource( 18 ) +anims/RunRight = SubResource( 19 ) + +[node name="Sprite" type="Sprite" parent="."] +visible = false +modulate = Color( 1, 1, 1, 0.423529 ) +position = Vector2( -28.5601, 3.4707 ) +scale = Vector2( 0.055, 0.055 ) +texture = ExtResource( 3 ) +flip_h = true + +[node name="CollisionShape2D" type="CollisionShape2D" parent="."] +shape = SubResource( 20 ) diff --git a/client/Nodes/Tiles/tileset_science_lab.png b/client/Nodes/Tiles/tileset_science_lab.png new file mode 100644 index 0000000..925cdde Binary files /dev/null and b/client/Nodes/Tiles/tileset_science_lab.png differ diff --git a/client/Nodes/Tiles/tileset_science_lab.png.import b/client/Nodes/Tiles/tileset_science_lab.png.import new file mode 100644 index 0000000..af967e0 --- /dev/null +++ b/client/Nodes/Tiles/tileset_science_lab.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/tileset_science_lab.png-ca47a982e43a92e13e08def0fb7cb9a8.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Nodes/Tiles/tileset_science_lab.png" +dest_files=[ "res://.import/tileset_science_lab.png-ca47a982e43a92e13e08def0fb7cb9a8.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 +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/client/Nodes/Tiles/tileset_science_lab.tres b/client/Nodes/Tiles/tileset_science_lab.tres new file mode 100644 index 0000000..4682400 --- /dev/null +++ b/client/Nodes/Tiles/tileset_science_lab.tres @@ -0,0 +1,593 @@ +[gd_resource type="TileSet" load_steps=96 format=2] + +[ext_resource path="res://Nodes/Tiles/tileset_science_lab.png" type="Texture" id=1] + +[sub_resource type="OccluderPolygon2D" id=1] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=2] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=3] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=4] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=5] +polygon = PoolVector2Array( 16, 0, 0, 0, 0, 16, 16, 16 ) + +[sub_resource type="OccluderPolygon2D" id=6] +polygon = PoolVector2Array( 16, 0, 0, 0, 0, 16, 16, 16 ) + +[sub_resource type="OccluderPolygon2D" id=7] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=8] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=9] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=10] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=11] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=12] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=13] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=14] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=15] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=16] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=17] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=18] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=19] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=20] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=21] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=22] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=23] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=24] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=25] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=26] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=27] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=28] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=29] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=30] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=31] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=32] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=33] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=34] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=35] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=36] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=37] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=38] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=39] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=40] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=41] +polygon = PoolVector2Array( 0, 0, 16, 0, 16, 16, 0, 16 ) + +[sub_resource type="OccluderPolygon2D" id=42] +polygon = PoolVector2Array( 0, 0, 16, 0, 16, 16, 0, 16 ) + +[sub_resource type="OccluderPolygon2D" id=43] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=44] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=45] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=46] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="OccluderPolygon2D" id=47] +polygon = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=48] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=49] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=50] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=51] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=52] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=53] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=54] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=55] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=56] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=57] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=58] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=59] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=60] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=61] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=62] +points = PoolVector2Array( 0, 0, 16, 0, 16, 16, 0, 16 ) + +[sub_resource type="ConvexPolygonShape2D" id=63] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=64] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=65] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=66] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=67] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=68] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=69] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=70] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=71] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=72] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=73] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=74] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=75] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=76] +points = PoolVector2Array( 0, 0, 16, 0, 16, 16, 0, 16 ) + +[sub_resource type="ConvexPolygonShape2D" id=77] +points = PoolVector2Array( 0, 0, 16, 0, 16, 16, 0, 16 ) + +[sub_resource type="ConvexPolygonShape2D" id=78] +points = PoolVector2Array( 0, 0, 16, 0, 16, 16, 0, 16 ) + +[sub_resource type="ConvexPolygonShape2D" id=79] +points = PoolVector2Array( 0, 0, 16, 0, 16, 16, 0, 16 ) + +[sub_resource type="ConvexPolygonShape2D" id=80] +points = PoolVector2Array( 0, 0, 16, 0, 16, 16, 0, 16 ) + +[sub_resource type="ConvexPolygonShape2D" id=81] +points = PoolVector2Array( 0, 0, 16, 0, 16, 16, 0, 16 ) + +[sub_resource type="ConvexPolygonShape2D" id=82] +points = PoolVector2Array( 0, 0, 16, 0, 16, 16, 0, 16 ) + +[sub_resource type="ConvexPolygonShape2D" id=83] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=84] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=85] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=86] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=87] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=88] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=89] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=90] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=91] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=92] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=93] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=94] +points = PoolVector2Array( 16, 16, 0, 16, 0, 0, 16, 0 ) + +[resource] +47/name = "tileset_science_lab.png 47" +47/texture = ExtResource( 1 ) +47/tex_offset = Vector2( 0, 0 ) +47/modulate = Color( 1, 1, 1, 1 ) +47/region = Rect2( 0, 0, 176, 80 ) +47/tile_mode = 1 +47/autotile/bitmask_mode = 1 +47/autotile/bitmask_flags = [ Vector2( 0, 0 ), 432, Vector2( 0, 1 ), 438, Vector2( 0, 2 ), 54, Vector2( 0, 3 ), 48, Vector2( 1, 0 ), 504, Vector2( 1, 1 ), 511, Vector2( 1, 2 ), 63, Vector2( 1, 3 ), 56, Vector2( 2, 0 ), 216, Vector2( 2, 1 ), 219, Vector2( 2, 2 ), 27, Vector2( 2, 3 ), 24, Vector2( 3, 0 ), 144, Vector2( 3, 1 ), 146, Vector2( 3, 2 ), 18, Vector2( 3, 3 ), 16, Vector2( 4, 0 ), 176, Vector2( 4, 1 ), 182, Vector2( 4, 2 ), 434, Vector2( 4, 3 ), 50, Vector2( 4, 4 ), 178, Vector2( 5, 0 ), 248, Vector2( 5, 1 ), 255, Vector2( 5, 2 ), 507, Vector2( 5, 3 ), 59, Vector2( 5, 4 ), 251, Vector2( 6, 0 ), 440, Vector2( 6, 1 ), 447, Vector2( 6, 2 ), 510, Vector2( 6, 3 ), 62, Vector2( 6, 4 ), 446, Vector2( 7, 0 ), 152, Vector2( 7, 1 ), 155, Vector2( 7, 2 ), 218, Vector2( 7, 3 ), 26, Vector2( 7, 4 ), 154, Vector2( 8, 0 ), 184, Vector2( 8, 1 ), 191, Vector2( 8, 2 ), 506, Vector2( 8, 3 ), 58, Vector2( 8, 4 ), 186, Vector2( 9, 0 ), 443, Vector2( 9, 1 ), 254, Vector2( 9, 2 ), 442, Vector2( 9, 3 ), 190, Vector2( 10, 2 ), 250, Vector2( 10, 3 ), 187 ] +47/autotile/icon_coordinate = Vector2( 3, 3 ) +47/autotile/tile_size = Vector2( 16, 16 ) +47/autotile/spacing = 0 +47/autotile/occluder_map = [ Vector2( 0, 0 ), SubResource( 1 ), Vector2( 0, 1 ), SubResource( 2 ), Vector2( 0, 2 ), SubResource( 3 ), Vector2( 0, 3 ), SubResource( 4 ), Vector2( 1, 0 ), SubResource( 5 ), Vector2( 1, 1 ), SubResource( 6 ), Vector2( 1, 2 ), SubResource( 7 ), Vector2( 1, 3 ), SubResource( 8 ), Vector2( 2, 0 ), SubResource( 9 ), Vector2( 2, 1 ), SubResource( 10 ), Vector2( 2, 2 ), SubResource( 11 ), Vector2( 2, 3 ), SubResource( 12 ), Vector2( 3, 0 ), SubResource( 13 ), Vector2( 3, 1 ), SubResource( 14 ), Vector2( 3, 2 ), SubResource( 15 ), Vector2( 3, 3 ), SubResource( 16 ), Vector2( 4, 0 ), SubResource( 17 ), Vector2( 4, 1 ), SubResource( 18 ), Vector2( 4, 2 ), SubResource( 19 ), Vector2( 4, 3 ), SubResource( 20 ), Vector2( 4, 4 ), SubResource( 21 ), Vector2( 5, 0 ), SubResource( 22 ), Vector2( 5, 1 ), SubResource( 23 ), Vector2( 5, 2 ), SubResource( 24 ), Vector2( 5, 3 ), SubResource( 25 ), Vector2( 5, 4 ), SubResource( 26 ), Vector2( 6, 0 ), SubResource( 27 ), Vector2( 6, 1 ), SubResource( 28 ), Vector2( 6, 2 ), SubResource( 29 ), Vector2( 6, 3 ), SubResource( 30 ), Vector2( 6, 4 ), SubResource( 31 ), Vector2( 7, 0 ), SubResource( 32 ), Vector2( 7, 1 ), SubResource( 33 ), Vector2( 7, 2 ), SubResource( 34 ), Vector2( 7, 3 ), SubResource( 35 ), Vector2( 7, 4 ), SubResource( 36 ), Vector2( 8, 0 ), SubResource( 37 ), Vector2( 8, 1 ), SubResource( 38 ), Vector2( 8, 2 ), SubResource( 39 ), Vector2( 8, 3 ), SubResource( 40 ), Vector2( 8, 4 ), SubResource( 41 ), Vector2( 9, 0 ), SubResource( 42 ), Vector2( 9, 1 ), SubResource( 43 ), Vector2( 9, 2 ), SubResource( 44 ), Vector2( 9, 3 ), SubResource( 45 ), Vector2( 10, 2 ), SubResource( 46 ), Vector2( 10, 3 ), SubResource( 47 ) ] +47/autotile/navpoly_map = [ ] +47/autotile/priority_map = [ ] +47/autotile/z_index_map = [ ] +47/occluder_offset = Vector2( 0, 0 ) +47/navigation_offset = Vector2( 0, 0 ) +47/shape_offset = Vector2( 0, 0 ) +47/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 ) +47/shape = SubResource( 48 ) +47/shape_one_way = false +47/shape_one_way_margin = 1.0 +47/shapes = [ { +"autotile_coord": Vector2( 0, 0 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 48 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 1, 0 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 49 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 2, 0 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 50 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 0, 1 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 51 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 1, 1 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 52 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 2, 1 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 53 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 0, 2 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 54 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 1, 2 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 55 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 2, 2 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 56 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 3, 0 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 57 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 3, 1 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 58 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 3, 2 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 59 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 0, 3 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 60 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 1, 3 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 61 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 2, 3 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 62 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 3, 3 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 63 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 4, 0 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 64 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 5, 0 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 65 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 6, 0 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 66 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 7, 0 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 67 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 8, 0 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 68 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 9, 0 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 69 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 4, 1 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 70 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 5, 1 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 71 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 6, 1 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 72 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 7, 1 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 73 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 8, 1 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 74 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 9, 1 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 75 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 10, 2 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 76 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 9, 2 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 77 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 8, 2 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 78 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 7, 2 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 79 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 6, 2 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 80 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 5, 2 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 81 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 4, 2 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 82 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 4, 3 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 83 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 5, 3 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 84 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 6, 3 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 85 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 7, 3 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 86 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 8, 3 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 87 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 9, 3 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 88 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 10, 3 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 89 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 4, 4 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 90 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 5, 4 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 91 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 6, 4 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 92 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 7, 4 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 93 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 8, 4 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 94 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +} ] +47/z_index = 0 diff --git a/client/Scenes/Intro.scn b/client/Scenes/Intro.scn new file mode 100644 index 0000000..dca9eb7 Binary files /dev/null and b/client/Scenes/Intro.scn differ diff --git a/client/Scenes/Title.scn b/client/Scenes/Title.scn new file mode 100644 index 0000000..978a6e0 Binary files /dev/null and b/client/Scenes/Title.scn differ diff --git a/client/Scenes/World.scn b/client/Scenes/World.scn new file mode 100644 index 0000000..a3872ab Binary files /dev/null and b/client/Scenes/World.scn differ diff --git a/client/Scripts/Component/Speaker.gd b/client/Scripts/Component/Speaker.gd new file mode 100644 index 0000000..70377de --- /dev/null +++ b/client/Scripts/Component/Speaker.gd @@ -0,0 +1,67 @@ +extends Node + +signal updated_text +signal finished_text +signal message_list_empty + +func speak(message): + spoken_text = "" + for character in message: + soundQueue.append(character) + play_audio() + +var message_list = [] +func speak_lines(list_of_messages : Array = []): + message_list = message_list + list_of_messages + if len(message_list) > 0: + speak(message_list.pop_front()) + else: + emit_signal("message_list_empty") + +var audio_player : AudioStreamPlayer +var speaking_timer : Timer +var speaker = "default" +var soundQueue = [] +var spoken_text = "" +var playing_speech = false +export var voice_pitch : float = 1 + +func play_audio(): + playing_speech = true + if not audio_player: + audio_player = AudioStreamPlayer.new() + add_child(audio_player) + if not speaking_timer: + speaking_timer = Timer.new() + speaking_timer.connect("timeout", self, "play_audio") + add_child(speaking_timer) + + audio_player.pitch_scale = voice_pitch + + if len(soundQueue) > 0: + var letter = soundQueue.pop_front() + var audio_file = "res://Assets/Sfx/Speakers/" + speaker + ".wav" + var track : AudioStream + + spoken_text = spoken_text + letter + emit_signal("updated_text") + + if letter in " ,-'\"\n": + speaking_timer.start(0.05) + return + elif letter in ".!": + speaking_timer.start(0.15) + return + elif File.new().file_exists(audio_file): + track = load(audio_file) + audio_player.stream = track + audio_player.play() + speaking_timer.start(track.get_length()) + else: + print("No sound for: " + str(speaker)) + else: + playing_speech = false + emit_signal("finished_text") + +func del_obj(obj): + obj.queue_free() diff --git a/client/Scripts/Component/StorySpeaker.gd b/client/Scripts/Component/StorySpeaker.gd new file mode 100644 index 0000000..536ac4b --- /dev/null +++ b/client/Scripts/Component/StorySpeaker.gd @@ -0,0 +1,76 @@ +extends "res://Scripts/Component/Speaker.gd" + +const Story_Reader_Class = preload("res://addons/EXP-System-Dialog/Reference_StoryReader/EXP_StoryReader.gd") +const story_file = preload("res://Assets/Stories/english_story.tres") +var story_reader = Story_Reader_Class.new() + +var gui + +var nid : int = 1 +var did : int +var choices : int = 1 +var selected_choice : int = -1 +export var speaker_name = "" + + +func _ready(): + story_reader.read(story_file) + + connect("updated_text", self, "_on_text_update") + connect("finished_text", self, "_on_finish_text") + +func _on_finish_text(): + gui.show_choices() + +func _on_text_update(): + gui.set_dialog(spoken_text, speaker_name) + +func start_dialog(record : String): + start_dialog_did(story_reader.get_did_via_record_name(record)) + +func start_dialog_did(dialog_id : int): + gui = get_node("/root/World/GUI") + + nid = 1 + did = dialog_id + + process_message(story_reader.get_text(did, nid)) + +func has_next_node(): + return story_reader.has_slot(did, nid, 0) + +func process_message(message): + gui.clear_choices() + selected_choice = -1 + choices = message.count("") + if choices > 0: + var i = 0 + var last = "" + while i < choices: + var start = message.find("") + var end = message.find("") + if start != -1 and end != -1: + var choice_text = message.substr( start+len(""), end-start-len("")+1 ) + if choice_text == last: + printerr("Choice in did " + str(did) + ", nid " + str(nid) + " not closed!") + break + else: + gui.add_choice(self, i, choice_text) + message = message.replace(""+choice_text+"", "") + i = i + 1 + + speak(message) + +func _on_choice(decision): + move_dialog_forward(decision) + +func move_dialog_forward(decision = 0): + if has_next_node(): + nid = story_reader.get_nid_from_slot(did, nid, decision) + process_message(story_reader.get_text(did, nid)) + else: + gui.finish_dialog() + +func _process(delta): + if(Input.is_action_just_pressed("ui_accept") and choices == 0 and playing_speech == false): + move_dialog_forward(0) diff --git a/client/Scripts/Entities/Fader.gd b/client/Scripts/Entities/Fader.gd new file mode 100644 index 0000000..95478e8 --- /dev/null +++ b/client/Scripts/Entities/Fader.gd @@ -0,0 +1,59 @@ +extends ColorRect + +signal fade_complete + +export var fade_on_start : bool = false +export var start_with_fade_in : bool = true +export var fade_time : float = 1 + +func _ready(): + + if fade_on_start: + # Fade on start, if enabled + fade(fade_time, start_with_fade_in) + else: + # Retain visibility + if self.visible: + modulate.a = 1 + else: + modulate.a = 0 + + self.show() + +var timePassed = 0 #Current amount of time spend displaying te +const CHECK_LENGTH = 0.05 #Interval to check for updates +var timeNeeded = 0 #Time it takes to fade out +var fadeTimer #Timer object + +var fading_in = false + +func fade(seconds, fade_in = false): + fading_in = fade_in + + # Set timer values + timeNeeded = seconds + timePassed = 0 + + # Create timer if needed + if(!fadeTimer): + fadeTimer = Timer.new() + add_child(fadeTimer) + fadeTimer.connect("timeout", self, "on_fade_timeout") + + # Start fader with tick speed of `CHECK_LENGTH` + fadeTimer.start(CHECK_LENGTH) + +func on_fade_timeout(): + timePassed += CHECK_LENGTH + + # Set modulate + if fading_in: + modulate.a = 1 - abs(timePassed/timeNeeded) + else: + modulate.a = abs(timePassed/timeNeeded) + + if(timePassed >= timeNeeded): + fadeTimer.stop() + emit_signal("fade_complete") + else: + fadeTimer.start(CHECK_LENGTH) diff --git a/client/Scripts/Entities/NPCs/IntroScientist.gd b/client/Scripts/Entities/NPCs/IntroScientist.gd new file mode 100644 index 0000000..93052ea --- /dev/null +++ b/client/Scripts/Entities/NPCs/IntroScientist.gd @@ -0,0 +1,7 @@ +extends "res://Scripts/Component/StorySpeaker.gd" + +func _ready(): + start_dialog("intro_science") + +func _on_interact(): + start_dialog("intro_science_followup") diff --git a/client/Scripts/Entities/Player.gd b/client/Scripts/Entities/Player.gd new file mode 100644 index 0000000..74cdf19 --- /dev/null +++ b/client/Scripts/Entities/Player.gd @@ -0,0 +1,59 @@ +extends KinematicBody2D + +# Environment variables +export var baseGravity : float = 9.8 + +# Player movment variables +export var maxMoveVelocity : float = 300 +export var moveAcceleration : float = 15 +export var moveFriction : float = 45 +export var jumpVelocity : float = -150 + +var moveMotion : float = 0 # Player Input ( <- & -> ) +var motion : Vector2 = Vector2(0,0) # Player's current velocity + + +func _physics_process(delta): + + # Gravity + motion.y += baseGravity + if is_on_floor(): + motion.y = 0 + + user_input() + + # Apply velocity limits + moveMotion = clamp(moveMotion, -maxMoveVelocity, maxMoveVelocity) + + # Apply velocity to frame + motion.x = moveMotion + animation_manager(moveMotion) + move_and_slide(motion, Vector2(0,-1)) + + +func user_input(): + if(Input.is_action_pressed("ui_left")): + moveMotion -= moveAcceleration + if(Input.is_action_pressed("ui_right")): + moveMotion += moveAcceleration + + if(is_on_floor() and Input.is_action_just_pressed("ui_up")): + motion.y = jumpVelocity + + if is_on_floor() and (!Input.is_action_pressed("ui_left") and !Input.is_action_pressed("ui_right")): + if moveMotion > 0: + moveMotion = clamp(moveMotion - moveFriction, 0, moveMotion) + elif moveMotion < 0: + moveMotion = clamp(moveMotion + moveFriction, moveMotion, 0) + +func animation_manager(motion : float): + + if moveMotion > 0: + $AnimationPlayer.playback_speed = abs(motion)/200 + $AnimationPlayer.play("RunRight") + elif moveMotion < 0: + $AnimationPlayer.playback_speed = abs(motion)/200 + $AnimationPlayer.play("RunLeft") + else: + $AnimationPlayer.playback_speed = 1 + $AnimationPlayer.play("Idle") diff --git a/client/Scripts/Singletons/IntroManager.gd b/client/Scripts/Singletons/IntroManager.gd new file mode 100644 index 0000000..6149ece --- /dev/null +++ b/client/Scripts/Singletons/IntroManager.gd @@ -0,0 +1,51 @@ +extends "res://Scripts/Component/Speaker.gd" + + +var Story_Reader_Class = preload("res://addons/EXP-System-Dialog/Reference_StoryReader/EXP_StoryReader.gd") +var story_reader = Story_Reader_Class.new() + + +var loading_game : bool = false +var audio_clip_player : AudioStreamPlayer +var audio_clip_one = preload("res://Assets/Sfx/intro/loading.wav") +var audio_clip_two = preload("res://Assets/Sfx/intro/processed.wav") + +var story_nid = 1 +const STORY_DID = 2 + + + +func _ready(): + var file = load("res://Assets/Stories/english_story.tres") + story_reader.read(file) + + + audio_clip_player = AudioStreamPlayer.new() + add_child(audio_clip_player) + + connect("updated_text", self, "update_text") + + speak(story_reader.get_text(STORY_DID, story_nid)) + +func update_text(): + $CanvasLayer/Control/Label.text = spoken_text + +func _process(delta): + if(Input.is_action_just_pressed("ui_accept") and playing_speech == false): + if story_reader.has_nid(STORY_DID, story_nid + 1): + story_nid = story_nid + 1 + speak(story_reader.get_text(STORY_DID, story_nid)) + else: + $CanvasLayer/Control/Label.text = "" + if not loading_game: + start_load_game() + +func start_load_game(): + loading_game = true + $"/root/MusicManager".stop_music() + audio_clip_player.stream = audio_clip_one + audio_clip_player.connect("finished", self, "_load_next_scene") + audio_clip_player.play() + +func _load_next_scene(): + get_tree().change_scene("res://Scenes/World.scn") diff --git a/client/Scripts/Singletons/MusicManager.gd b/client/Scripts/Singletons/MusicManager.gd new file mode 100644 index 0000000..167a6ef --- /dev/null +++ b/client/Scripts/Singletons/MusicManager.gd @@ -0,0 +1,18 @@ +extends AudioStreamPlayer + +var main_player : AudioStreamPlayer +var looping : bool = false + +func _ready(): + main_player = self + +func play_music(song, loop=true): + var audio_file = "res://Assets/Music/" + song + ".ogg" + if File.new().file_exists(audio_file): + var track = load(audio_file) + looping = loop + main_player.stream = track + main_player.play() + +func stop_music(): + main_player.stop() diff --git a/client/Scripts/Singletons/TitleManager.tres.gd b/client/Scripts/Singletons/TitleManager.tres.gd new file mode 100644 index 0000000..e19a58b --- /dev/null +++ b/client/Scripts/Singletons/TitleManager.tres.gd @@ -0,0 +1,6 @@ +extends Node + +func _ready(): + $"/root/MusicManager".play_music("Dystopian/Dystopian") + $Environment/AnimationPlayer.playback_speed = 0.25 + $Environment/AnimationPlayer.play("Floating") diff --git a/client/Scripts/Singletons/WorldManager.gd b/client/Scripts/Singletons/WorldManager.gd new file mode 100644 index 0000000..b135c00 --- /dev/null +++ b/client/Scripts/Singletons/WorldManager.gd @@ -0,0 +1,17 @@ +extends Node + +var audio_player : AudioStreamPlayer +var gui_manager + +#$"/root/MusicManager".play_music("Dystopian/The Protagonist") + +func _ready(): + gui_manager = $GUI + audio_player = AudioStreamPlayer.new() + add_child(audio_player) + $CanvasLayer/ColorRect.show() + play_sound(preload("res://Assets/Sfx/intro/processed.wav")) + +func play_sound(audio_stream): + audio_player.stream = audio_stream + audio_player.play() diff --git a/client/Scripts/Systems/GameGui.gd b/client/Scripts/Systems/GameGui.gd new file mode 100644 index 0000000..d72d9a1 --- /dev/null +++ b/client/Scripts/Systems/GameGui.gd @@ -0,0 +1,33 @@ +extends CanvasLayer + + +# Declare member variables here. Examples: +# var a = 2 +# var b = "text" + + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + +func set_dialog(message, speaker=""): + $Dialog.show() + $Dialog/Textbox/Speaker.text = speaker + $Dialog/Textbox/Body.text = message + +func finish_dialog(): + $Dialog.hide() + +func clear_choices(): + $Dialog/Choices.hide() + for i in range($Dialog/Choices.get_child_count()): + $Dialog/Choices.get_child(i).queue_free() + +func add_choice(speaker : Node, choice_id : int, choice_text : String): + var button = Button.new() + button.text = choice_text + button.connect("button_down", speaker, "_on_choice", [choice_id]) + $Dialog/Choices.add_child(button) + +func show_choices(): + $Dialog/Choices.show() diff --git a/client/Scripts/Systems/TitleButtons.gd b/client/Scripts/Systems/TitleButtons.gd new file mode 100644 index 0000000..e399b0a --- /dev/null +++ b/client/Scripts/Systems/TitleButtons.gd @@ -0,0 +1,31 @@ +extends Node + +var audio_player : AudioStreamPlayer +var audio_clip = preload("res://Assets/Sfx/button_press.wav") + + +func _ready(): + audio_player = AudioStreamPlayer.new() + add_child(audio_player) + audio_player.stream = audio_clip + + $StartButton.connect("button_down", self, "_on_button_press", ["start"]) + $QuitButton.connect("button_down", self, "_on_button_press", ["quit"]) + $CreditsButton.connect("button_down", self, "_on_button_press", ["credits"]) + $OptionsButton.connect("button_down", self, "_on_button_press", ["options"]) + $BugButton.connect("button_down", self, "_on_button_press", ["bug"]) + + +func _on_button_press(button): + audio_player.play() + match(button): + "start": + get_tree().change_scene("res://Scenes/Intro.scn") + "quit": + get_tree().quit(0) + "credits": + get_parent().get_parent().get_node("CreditsDialog").popup_centered() + "options": + get_parent().get_parent().get_node("OptionsDialog").popup_centered() + "bug": + OS.shell_open("https://github.com/josephbmanley") diff --git a/client/addons/.import/Dark Atmosphere to Synth.ogg-d9cfd7bf9e40aecf5d2dc62376d046c3.md5 b/client/addons/.import/Dark Atmosphere to Synth.ogg-d9cfd7bf9e40aecf5d2dc62376d046c3.md5 new file mode 100644 index 0000000..bed7087 --- /dev/null +++ b/client/addons/.import/Dark Atmosphere to Synth.ogg-d9cfd7bf9e40aecf5d2dc62376d046c3.md5 @@ -0,0 +1,3 @@ +source_md5="3cf24f316c8d5727c99795f5d1714ae9" +dest_md5="e79d943d17bbbb11393065e65e153ef0" + diff --git a/client/addons/.import/Dark Atmosphere to Synth.ogg-d9cfd7bf9e40aecf5d2dc62376d046c3.oggstr b/client/addons/.import/Dark Atmosphere to Synth.ogg-d9cfd7bf9e40aecf5d2dc62376d046c3.oggstr new file mode 100644 index 0000000..749d0ba Binary files /dev/null and b/client/addons/.import/Dark Atmosphere to Synth.ogg-d9cfd7bf9e40aecf5d2dc62376d046c3.oggstr differ diff --git a/client/addons/.import/Dystopian.ogg-fd073bb065643e3b3ae2d76f1795d67d.md5 b/client/addons/.import/Dystopian.ogg-fd073bb065643e3b3ae2d76f1795d67d.md5 new file mode 100644 index 0000000..181b7f7 --- /dev/null +++ b/client/addons/.import/Dystopian.ogg-fd073bb065643e3b3ae2d76f1795d67d.md5 @@ -0,0 +1,3 @@ +source_md5="65f893ad3fbb7d1b71121b4f8198645f" +dest_md5="4592362844e0844a97ab67c73505a728" + diff --git a/client/addons/.import/Dystopian.ogg-fd073bb065643e3b3ae2d76f1795d67d.oggstr b/client/addons/.import/Dystopian.ogg-fd073bb065643e3b3ae2d76f1795d67d.oggstr new file mode 100644 index 0000000..0d25a50 Binary files /dev/null and b/client/addons/.import/Dystopian.ogg-fd073bb065643e3b3ae2d76f1795d67d.oggstr differ diff --git a/client/addons/.import/Empty Streets.ogg-7e9965eb3ca054bd216157ae70233bf9.md5 b/client/addons/.import/Empty Streets.ogg-7e9965eb3ca054bd216157ae70233bf9.md5 new file mode 100644 index 0000000..e3cbbfc --- /dev/null +++ b/client/addons/.import/Empty Streets.ogg-7e9965eb3ca054bd216157ae70233bf9.md5 @@ -0,0 +1,3 @@ +source_md5="f5e89b78f48d3777042d2d9c3bd11093" +dest_md5="e2991fb05ebd1cab6f9aee97129f8e7b" + diff --git a/client/addons/.import/Empty Streets.ogg-7e9965eb3ca054bd216157ae70233bf9.oggstr b/client/addons/.import/Empty Streets.ogg-7e9965eb3ca054bd216157ae70233bf9.oggstr new file mode 100644 index 0000000..2155c2f Binary files /dev/null and b/client/addons/.import/Empty Streets.ogg-7e9965eb3ca054bd216157ae70233bf9.oggstr differ diff --git a/client/addons/.import/Improbable.svg-1121063e74aa3be61f80d041a60183f2.md5 b/client/addons/.import/Improbable.svg-1121063e74aa3be61f80d041a60183f2.md5 new file mode 100644 index 0000000..1bcb5e8 --- /dev/null +++ b/client/addons/.import/Improbable.svg-1121063e74aa3be61f80d041a60183f2.md5 @@ -0,0 +1,3 @@ +source_md5="fb3995b155512a689a0ba6be9b42e018" +dest_md5="7c58a01ac5bd2b2a913ced328423ee6b" + diff --git a/client/addons/.import/Improbable.svg-1121063e74aa3be61f80d041a60183f2.stex b/client/addons/.import/Improbable.svg-1121063e74aa3be61f80d041a60183f2.stex new file mode 100644 index 0000000..9f9ee05 Binary files /dev/null and b/client/addons/.import/Improbable.svg-1121063e74aa3be61f80d041a60183f2.stex differ diff --git a/client/addons/.import/Marksman.svg-ea705490fb024fa3a01a9d341cbbcb55.md5 b/client/addons/.import/Marksman.svg-ea705490fb024fa3a01a9d341cbbcb55.md5 new file mode 100644 index 0000000..7bd30bf --- /dev/null +++ b/client/addons/.import/Marksman.svg-ea705490fb024fa3a01a9d341cbbcb55.md5 @@ -0,0 +1,3 @@ +source_md5="60e8b5d393dc465aea26c876b576dc61" +dest_md5="7c58a01ac5bd2b2a913ced328423ee6b" + diff --git a/client/addons/.import/Marksman.svg-ea705490fb024fa3a01a9d341cbbcb55.stex b/client/addons/.import/Marksman.svg-ea705490fb024fa3a01a9d341cbbcb55.stex new file mode 100644 index 0000000..9f9ee05 Binary files /dev/null and b/client/addons/.import/Marksman.svg-ea705490fb024fa3a01a9d341cbbcb55.stex differ diff --git a/client/addons/.import/Mystery Unsolved.ogg-c3936a0ae548f6e84dcdb0df4b96db96.md5 b/client/addons/.import/Mystery Unsolved.ogg-c3936a0ae548f6e84dcdb0df4b96db96.md5 new file mode 100644 index 0000000..d2ac4ff --- /dev/null +++ b/client/addons/.import/Mystery Unsolved.ogg-c3936a0ae548f6e84dcdb0df4b96db96.md5 @@ -0,0 +1,3 @@ +source_md5="d21a98c9c954889b2be9cb9480270f6c" +dest_md5="8250b881fa1ebafede8150c3f28e28ea" + diff --git a/client/addons/.import/Mystery Unsolved.ogg-c3936a0ae548f6e84dcdb0df4b96db96.oggstr b/client/addons/.import/Mystery Unsolved.ogg-c3936a0ae548f6e84dcdb0df4b96db96.oggstr new file mode 100644 index 0000000..7da8f9c Binary files /dev/null and b/client/addons/.import/Mystery Unsolved.ogg-c3936a0ae548f6e84dcdb0df4b96db96.oggstr differ diff --git a/client/addons/.import/Socket.svg-5cb19872fa6148ad0106260e3817a0ad.md5 b/client/addons/.import/Socket.svg-5cb19872fa6148ad0106260e3817a0ad.md5 new file mode 100644 index 0000000..78898e2 --- /dev/null +++ b/client/addons/.import/Socket.svg-5cb19872fa6148ad0106260e3817a0ad.md5 @@ -0,0 +1,3 @@ +source_md5="6eb3903e82cda586224ce3c9c5ff40da" +dest_md5="7c58a01ac5bd2b2a913ced328423ee6b" + diff --git a/client/addons/.import/Socket.svg-5cb19872fa6148ad0106260e3817a0ad.stex b/client/addons/.import/Socket.svg-5cb19872fa6148ad0106260e3817a0ad.stex new file mode 100644 index 0000000..9f9ee05 Binary files /dev/null and b/client/addons/.import/Socket.svg-5cb19872fa6148ad0106260e3817a0ad.stex differ diff --git a/client/addons/.import/Surveillance.ogg-c5f017c00cb3886d3501ed81386a73cb.md5 b/client/addons/.import/Surveillance.ogg-c5f017c00cb3886d3501ed81386a73cb.md5 new file mode 100644 index 0000000..1a08cf8 --- /dev/null +++ b/client/addons/.import/Surveillance.ogg-c5f017c00cb3886d3501ed81386a73cb.md5 @@ -0,0 +1,3 @@ +source_md5="81c6d4f0d2881b13878ac3be34208bf0" +dest_md5="a9da90b306f1882e4e186ea48c3ca6a7" + diff --git a/client/addons/.import/Surveillance.ogg-c5f017c00cb3886d3501ed81386a73cb.oggstr b/client/addons/.import/Surveillance.ogg-c5f017c00cb3886d3501ed81386a73cb.oggstr new file mode 100644 index 0000000..afbe984 Binary files /dev/null and b/client/addons/.import/Surveillance.ogg-c5f017c00cb3886d3501ed81386a73cb.oggstr differ diff --git a/client/addons/.import/Targets.svg-ff52190d810df9d933e58cfa7929653c.md5 b/client/addons/.import/Targets.svg-ff52190d810df9d933e58cfa7929653c.md5 new file mode 100644 index 0000000..25bff1e --- /dev/null +++ b/client/addons/.import/Targets.svg-ff52190d810df9d933e58cfa7929653c.md5 @@ -0,0 +1,3 @@ +source_md5="b1d6932b616e2e9374e99abcb1f1463f" +dest_md5="7c58a01ac5bd2b2a913ced328423ee6b" + diff --git a/client/addons/.import/Targets.svg-ff52190d810df9d933e58cfa7929653c.stex b/client/addons/.import/Targets.svg-ff52190d810df9d933e58cfa7929653c.stex new file mode 100644 index 0000000..9f9ee05 Binary files /dev/null and b/client/addons/.import/Targets.svg-ff52190d810df9d933e58cfa7929653c.stex differ diff --git a/client/addons/.import/The Nightclub.ogg-10d9ab60ce72a11eb65cbee26cc77e10.md5 b/client/addons/.import/The Nightclub.ogg-10d9ab60ce72a11eb65cbee26cc77e10.md5 new file mode 100644 index 0000000..df7fd1c --- /dev/null +++ b/client/addons/.import/The Nightclub.ogg-10d9ab60ce72a11eb65cbee26cc77e10.md5 @@ -0,0 +1,3 @@ +source_md5="1b789165ff899c0b22369aaa89d5c47d" +dest_md5="4819cd8fd0bc94e219fb0f6286bc4966" + diff --git a/client/addons/.import/The Nightclub.ogg-10d9ab60ce72a11eb65cbee26cc77e10.oggstr b/client/addons/.import/The Nightclub.ogg-10d9ab60ce72a11eb65cbee26cc77e10.oggstr new file mode 100644 index 0000000..2220f9a Binary files /dev/null and b/client/addons/.import/The Nightclub.ogg-10d9ab60ce72a11eb65cbee26cc77e10.oggstr differ diff --git a/client/addons/.import/The Protagonist.ogg-a0896a9cc69920d3556726e88eb9ecc6.md5 b/client/addons/.import/The Protagonist.ogg-a0896a9cc69920d3556726e88eb9ecc6.md5 new file mode 100644 index 0000000..efc3b66 --- /dev/null +++ b/client/addons/.import/The Protagonist.ogg-a0896a9cc69920d3556726e88eb9ecc6.md5 @@ -0,0 +1,3 @@ +source_md5="498238eefc5d435db513c9154102a19a" +dest_md5="945c1e0ce4e4a8b67de3fca31c7f58fb" + diff --git a/client/addons/.import/The Protagonist.ogg-a0896a9cc69920d3556726e88eb9ecc6.oggstr b/client/addons/.import/The Protagonist.ogg-a0896a9cc69920d3556726e88eb9ecc6.oggstr new file mode 100644 index 0000000..9c46c40 Binary files /dev/null and b/client/addons/.import/The Protagonist.ogg-a0896a9cc69920d3556726e88eb9ecc6.oggstr differ diff --git a/client/addons/.import/The Story Continues.ogg-8ba2fc4bd692fc3cc6ccc662d1bde808.md5 b/client/addons/.import/The Story Continues.ogg-8ba2fc4bd692fc3cc6ccc662d1bde808.md5 new file mode 100644 index 0000000..1b8fa03 --- /dev/null +++ b/client/addons/.import/The Story Continues.ogg-8ba2fc4bd692fc3cc6ccc662d1bde808.md5 @@ -0,0 +1,3 @@ +source_md5="ff8aaa595a93dcf41d38c95891c7b66f" +dest_md5="a6eee6ca0d51a4c3561c612ef2078b84" + diff --git a/client/addons/.import/The Story Continues.ogg-8ba2fc4bd692fc3cc6ccc662d1bde808.oggstr b/client/addons/.import/The Story Continues.ogg-8ba2fc4bd692fc3cc6ccc662d1bde808.oggstr new file mode 100644 index 0000000..f7711d4 Binary files /dev/null and b/client/addons/.import/The Story Continues.ogg-8ba2fc4bd692fc3cc6ccc662d1bde808.oggstr differ diff --git a/client/addons/.import/Zapper.svg-db836551c2ec2a359f420a36e8891ee7.md5 b/client/addons/.import/Zapper.svg-db836551c2ec2a359f420a36e8891ee7.md5 new file mode 100644 index 0000000..d18acef --- /dev/null +++ b/client/addons/.import/Zapper.svg-db836551c2ec2a359f420a36e8891ee7.md5 @@ -0,0 +1,3 @@ +source_md5="6163be0d08b0b059797d663c86c55a28" +dest_md5="7c58a01ac5bd2b2a913ced328423ee6b" + diff --git a/client/addons/.import/Zapper.svg-db836551c2ec2a359f420a36e8891ee7.stex b/client/addons/.import/Zapper.svg-db836551c2ec2a359f420a36e8891ee7.stex new file mode 100644 index 0000000..9f9ee05 Binary files /dev/null and b/client/addons/.import/Zapper.svg-db836551c2ec2a359f420a36e8891ee7.stex differ diff --git a/client/addons/.import/animation_reference.png-0380e195c2981cbf6a12a964c592fbc3.md5 b/client/addons/.import/animation_reference.png-0380e195c2981cbf6a12a964c592fbc3.md5 new file mode 100644 index 0000000..724141b --- /dev/null +++ b/client/addons/.import/animation_reference.png-0380e195c2981cbf6a12a964c592fbc3.md5 @@ -0,0 +1,3 @@ +source_md5="e8dabe73b13a84d293485b937c80f448" +dest_md5="4d425793877e102c4abd32ff8888a949" + diff --git a/client/addons/.import/animation_reference.png-0380e195c2981cbf6a12a964c592fbc3.stex b/client/addons/.import/animation_reference.png-0380e195c2981cbf6a12a964c592fbc3.stex new file mode 100644 index 0000000..06861c4 Binary files /dev/null and b/client/addons/.import/animation_reference.png-0380e195c2981cbf6a12a964c592fbc3.stex differ diff --git a/client/addons/.import/basic_light.png-f6c2feae846e115573b4f0af5a2de0c9.md5 b/client/addons/.import/basic_light.png-f6c2feae846e115573b4f0af5a2de0c9.md5 new file mode 100644 index 0000000..c0b2ee3 --- /dev/null +++ b/client/addons/.import/basic_light.png-f6c2feae846e115573b4f0af5a2de0c9.md5 @@ -0,0 +1,3 @@ +source_md5="0f187f924d66394184e7b3e6c957fb8c" +dest_md5="c9bfe92d419f5078052bb89139a81b80" + diff --git a/client/addons/.import/basic_light.png-f6c2feae846e115573b4f0af5a2de0c9.stex b/client/addons/.import/basic_light.png-f6c2feae846e115573b4f0af5a2de0c9.stex new file mode 100644 index 0000000..e395389 Binary files /dev/null and b/client/addons/.import/basic_light.png-f6c2feae846e115573b4f0af5a2de0c9.stex differ diff --git a/client/addons/.import/business.png-ee172fec3f2459cac2a5df444606a464.md5 b/client/addons/.import/business.png-ee172fec3f2459cac2a5df444606a464.md5 new file mode 100644 index 0000000..c3bfe9a --- /dev/null +++ b/client/addons/.import/business.png-ee172fec3f2459cac2a5df444606a464.md5 @@ -0,0 +1,3 @@ +source_md5="8aef6de8412026e94480cc71d8d055b6" +dest_md5="f536ce724bbfd6d3eec9c9b681d8bd87" + diff --git a/client/addons/.import/business.png-ee172fec3f2459cac2a5df444606a464.stex b/client/addons/.import/business.png-ee172fec3f2459cac2a5df444606a464.stex new file mode 100644 index 0000000..8ba56fc Binary files /dev/null and b/client/addons/.import/business.png-ee172fec3f2459cac2a5df444606a464.stex differ diff --git a/client/addons/.import/button1.png-9a2b27dccdcb04e08389f20446276a8d.md5 b/client/addons/.import/button1.png-9a2b27dccdcb04e08389f20446276a8d.md5 new file mode 100644 index 0000000..77c4038 --- /dev/null +++ b/client/addons/.import/button1.png-9a2b27dccdcb04e08389f20446276a8d.md5 @@ -0,0 +1,3 @@ +source_md5="9d92358506b2f630f49d7186a984dda0" +dest_md5="4d5bf56017f00adbc80e9bf5a14a9f50" + diff --git a/client/addons/.import/button1.png-9a2b27dccdcb04e08389f20446276a8d.stex b/client/addons/.import/button1.png-9a2b27dccdcb04e08389f20446276a8d.stex new file mode 100644 index 0000000..8a77409 Binary files /dev/null and b/client/addons/.import/button1.png-9a2b27dccdcb04e08389f20446276a8d.stex differ diff --git a/client/addons/.import/button2.png-2e6607a1cb6150067a64504001ae7fe0.md5 b/client/addons/.import/button2.png-2e6607a1cb6150067a64504001ae7fe0.md5 new file mode 100644 index 0000000..f2c88da --- /dev/null +++ b/client/addons/.import/button2.png-2e6607a1cb6150067a64504001ae7fe0.md5 @@ -0,0 +1,3 @@ +source_md5="08fdfe746696263d9157f46fbf6bcae3" +dest_md5="663720fe7a6ed76fff5d90489304ad6b" + diff --git a/client/addons/.import/button2.png-2e6607a1cb6150067a64504001ae7fe0.stex b/client/addons/.import/button2.png-2e6607a1cb6150067a64504001ae7fe0.stex new file mode 100644 index 0000000..eee0c05 Binary files /dev/null and b/client/addons/.import/button2.png-2e6607a1cb6150067a64504001ae7fe0.stex differ diff --git a/client/addons/.import/button_press.wav-ee1c5209649cc8dfb1f404d8776d0bc7.md5 b/client/addons/.import/button_press.wav-ee1c5209649cc8dfb1f404d8776d0bc7.md5 new file mode 100644 index 0000000..2ceb957 --- /dev/null +++ b/client/addons/.import/button_press.wav-ee1c5209649cc8dfb1f404d8776d0bc7.md5 @@ -0,0 +1,3 @@ +source_md5="4ff64b42a338ac9011ac2780dac74ebe" +dest_md5="0401b34431c28d6655cca2f6c66a187c" + diff --git a/client/addons/.import/button_press.wav-ee1c5209649cc8dfb1f404d8776d0bc7.sample b/client/addons/.import/button_press.wav-ee1c5209649cc8dfb1f404d8776d0bc7.sample new file mode 100644 index 0000000..f7268fd Binary files /dev/null and b/client/addons/.import/button_press.wav-ee1c5209649cc8dfb1f404d8776d0bc7.sample differ diff --git a/client/addons/.import/default.wav-9e65f8cb59e54d70a2ddefa3b607d2c2.md5 b/client/addons/.import/default.wav-9e65f8cb59e54d70a2ddefa3b607d2c2.md5 new file mode 100644 index 0000000..9a96da9 --- /dev/null +++ b/client/addons/.import/default.wav-9e65f8cb59e54d70a2ddefa3b607d2c2.md5 @@ -0,0 +1,3 @@ +source_md5="d0e2434e68cff19d6181dadf78b59476" +dest_md5="4aed22f57f481bdedf014fc66461f2fa" + diff --git a/client/addons/.import/default.wav-9e65f8cb59e54d70a2ddefa3b607d2c2.sample b/client/addons/.import/default.wav-9e65f8cb59e54d70a2ddefa3b607d2c2.sample new file mode 100644 index 0000000..73b436c Binary files /dev/null and b/client/addons/.import/default.wav-9e65f8cb59e54d70a2ddefa3b607d2c2.sample differ diff --git a/client/addons/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.md5 b/client/addons/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.md5 new file mode 100644 index 0000000..7b61c3e --- /dev/null +++ b/client/addons/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.md5 @@ -0,0 +1,3 @@ +source_md5="47313fa4c47a9963fddd764e1ec6e4a8" +dest_md5="2ded9e7f9060e2b530aab678b135fc5b" + diff --git a/client/addons/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex b/client/addons/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex new file mode 100644 index 0000000..3ca6461 Binary files /dev/null and b/client/addons/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex differ diff --git a/client/addons/.import/icon_distraction_free.svg-5120bf5545890a3868c1108c903f7cd9.md5 b/client/addons/.import/icon_distraction_free.svg-5120bf5545890a3868c1108c903f7cd9.md5 new file mode 100644 index 0000000..88de53c --- /dev/null +++ b/client/addons/.import/icon_distraction_free.svg-5120bf5545890a3868c1108c903f7cd9.md5 @@ -0,0 +1,3 @@ +source_md5="b3201b4a918ebdf71950def66ed04a26" +dest_md5="6933bf8594f7d4f42a6f76b544d7c1f1" + diff --git a/client/addons/.import/icon_distraction_free.svg-5120bf5545890a3868c1108c903f7cd9.stex b/client/addons/.import/icon_distraction_free.svg-5120bf5545890a3868c1108c903f7cd9.stex new file mode 100644 index 0000000..c35a9e9 Binary files /dev/null and b/client/addons/.import/icon_distraction_free.svg-5120bf5545890a3868c1108c903f7cd9.stex differ diff --git a/client/addons/.import/improbable-v1.png-d0ffd107afe1089c38c36acc4e643301.md5 b/client/addons/.import/improbable-v1.png-d0ffd107afe1089c38c36acc4e643301.md5 new file mode 100644 index 0000000..6c4d2cd --- /dev/null +++ b/client/addons/.import/improbable-v1.png-d0ffd107afe1089c38c36acc4e643301.md5 @@ -0,0 +1,3 @@ +source_md5="22ed25163315999b4a8fa6e0da259678" +dest_md5="a57c4ce258f6040d4351e13ab3edccc9" + diff --git a/client/addons/.import/improbable-v1.png-d0ffd107afe1089c38c36acc4e643301.stex b/client/addons/.import/improbable-v1.png-d0ffd107afe1089c38c36acc4e643301.stex new file mode 100644 index 0000000..56829d5 Binary files /dev/null and b/client/addons/.import/improbable-v1.png-d0ffd107afe1089c38c36acc4e643301.stex differ diff --git a/client/addons/.import/life-tank.png-143866384dac6f26e708efc881d1aeed.etc2.stex b/client/addons/.import/life-tank.png-143866384dac6f26e708efc881d1aeed.etc2.stex new file mode 100644 index 0000000..e13c777 Binary files /dev/null and b/client/addons/.import/life-tank.png-143866384dac6f26e708efc881d1aeed.etc2.stex differ diff --git a/client/addons/.import/life-tank.png-143866384dac6f26e708efc881d1aeed.md5 b/client/addons/.import/life-tank.png-143866384dac6f26e708efc881d1aeed.md5 new file mode 100644 index 0000000..411dec4 --- /dev/null +++ b/client/addons/.import/life-tank.png-143866384dac6f26e708efc881d1aeed.md5 @@ -0,0 +1,3 @@ +source_md5="597fbe9ccf6ea4d6483499e0cf0b03d0" +dest_md5="44096b06df43545f31758f2c690ba4dd" + diff --git a/client/addons/.import/life-tank.png-143866384dac6f26e708efc881d1aeed.s3tc.stex b/client/addons/.import/life-tank.png-143866384dac6f26e708efc881d1aeed.s3tc.stex new file mode 100644 index 0000000..4757349 Binary files /dev/null and b/client/addons/.import/life-tank.png-143866384dac6f26e708efc881d1aeed.s3tc.stex differ diff --git a/client/addons/.import/life-tank.png-143866384dac6f26e708efc881d1aeed.stex b/client/addons/.import/life-tank.png-143866384dac6f26e708efc881d1aeed.stex new file mode 100644 index 0000000..44f1e5f Binary files /dev/null and b/client/addons/.import/life-tank.png-143866384dac6f26e708efc881d1aeed.stex differ diff --git a/client/addons/.import/loading.wav-524816aaced5f1b9f3d89539712c337c.md5 b/client/addons/.import/loading.wav-524816aaced5f1b9f3d89539712c337c.md5 new file mode 100644 index 0000000..03688a6 --- /dev/null +++ b/client/addons/.import/loading.wav-524816aaced5f1b9f3d89539712c337c.md5 @@ -0,0 +1,3 @@ +source_md5="6f3e7e42643abce347b394793b874e42" +dest_md5="0f4e8768ca6ad5fc51ce63901809fe3e" + diff --git a/client/addons/.import/loading.wav-524816aaced5f1b9f3d89539712c337c.sample b/client/addons/.import/loading.wav-524816aaced5f1b9f3d89539712c337c.sample new file mode 100644 index 0000000..02ca7e7 Binary files /dev/null and b/client/addons/.import/loading.wav-524816aaced5f1b9f3d89539712c337c.sample differ diff --git a/client/addons/.import/marksman-v1.png-df443d916651cd767e11b8e9a6991a32.md5 b/client/addons/.import/marksman-v1.png-df443d916651cd767e11b8e9a6991a32.md5 new file mode 100644 index 0000000..9b5ac6d --- /dev/null +++ b/client/addons/.import/marksman-v1.png-df443d916651cd767e11b8e9a6991a32.md5 @@ -0,0 +1,3 @@ +source_md5="e66b0871c7518f20d3c48c769960042f" +dest_md5="ad0afd585fee97559c650d4a772736de" + diff --git a/client/addons/.import/marksman-v1.png-df443d916651cd767e11b8e9a6991a32.stex b/client/addons/.import/marksman-v1.png-df443d916651cd767e11b8e9a6991a32.stex new file mode 100644 index 0000000..8fb23c4 Binary files /dev/null and b/client/addons/.import/marksman-v1.png-df443d916651cd767e11b8e9a6991a32.stex differ diff --git a/client/addons/.import/menu_section_9patch.png-beceadcf40f205d430547faaab724953.md5 b/client/addons/.import/menu_section_9patch.png-beceadcf40f205d430547faaab724953.md5 new file mode 100644 index 0000000..3cc6260 --- /dev/null +++ b/client/addons/.import/menu_section_9patch.png-beceadcf40f205d430547faaab724953.md5 @@ -0,0 +1,3 @@ +source_md5="e2e68243dd9cef72d87b59c5a22d69dc" +dest_md5="4eff7f79f4ab2f0bcc59fef50f7b3a14" + diff --git a/client/addons/.import/menu_section_9patch.png-beceadcf40f205d430547faaab724953.stex b/client/addons/.import/menu_section_9patch.png-beceadcf40f205d430547faaab724953.stex new file mode 100644 index 0000000..4575f98 Binary files /dev/null and b/client/addons/.import/menu_section_9patch.png-beceadcf40f205d430547faaab724953.stex differ diff --git a/client/addons/.import/old.wav-6243dc6f828802754d4671515120a664.md5 b/client/addons/.import/old.wav-6243dc6f828802754d4671515120a664.md5 new file mode 100644 index 0000000..6a10331 --- /dev/null +++ b/client/addons/.import/old.wav-6243dc6f828802754d4671515120a664.md5 @@ -0,0 +1,3 @@ +source_md5="b5e1af5f91a15a6192816d6ce5637421" +dest_md5="ebad3beb99af472070b890b98a0df97e" + diff --git a/client/addons/.import/old.wav-6243dc6f828802754d4671515120a664.sample b/client/addons/.import/old.wav-6243dc6f828802754d4671515120a664.sample new file mode 100644 index 0000000..08d364c Binary files /dev/null and b/client/addons/.import/old.wav-6243dc6f828802754d4671515120a664.sample differ diff --git a/client/addons/.import/player.png-8013e0b9eca040d2b3efcca16491c343.etc2.stex b/client/addons/.import/player.png-8013e0b9eca040d2b3efcca16491c343.etc2.stex new file mode 100644 index 0000000..8c2a795 Binary files /dev/null and b/client/addons/.import/player.png-8013e0b9eca040d2b3efcca16491c343.etc2.stex differ diff --git a/client/addons/.import/player.png-8013e0b9eca040d2b3efcca16491c343.md5 b/client/addons/.import/player.png-8013e0b9eca040d2b3efcca16491c343.md5 new file mode 100644 index 0000000..954b06b --- /dev/null +++ b/client/addons/.import/player.png-8013e0b9eca040d2b3efcca16491c343.md5 @@ -0,0 +1,3 @@ +source_md5="d11fe17c538278732c370ff9a9299c13" +dest_md5="518d32294d74c6b89d656e11ba60fff3" + diff --git a/client/addons/.import/player.png-8013e0b9eca040d2b3efcca16491c343.s3tc.stex b/client/addons/.import/player.png-8013e0b9eca040d2b3efcca16491c343.s3tc.stex new file mode 100644 index 0000000..53c55b5 Binary files /dev/null and b/client/addons/.import/player.png-8013e0b9eca040d2b3efcca16491c343.s3tc.stex differ diff --git a/client/addons/.import/player.png-8013e0b9eca040d2b3efcca16491c343.stex b/client/addons/.import/player.png-8013e0b9eca040d2b3efcca16491c343.stex new file mode 100644 index 0000000..94eedef Binary files /dev/null and b/client/addons/.import/player.png-8013e0b9eca040d2b3efcca16491c343.stex differ diff --git a/client/addons/.import/player.png-83eee27dc74544e997a7b90847866f39.etc2.stex b/client/addons/.import/player.png-83eee27dc74544e997a7b90847866f39.etc2.stex new file mode 100644 index 0000000..2b7bb28 Binary files /dev/null and b/client/addons/.import/player.png-83eee27dc74544e997a7b90847866f39.etc2.stex differ diff --git a/client/addons/.import/player.png-83eee27dc74544e997a7b90847866f39.md5 b/client/addons/.import/player.png-83eee27dc74544e997a7b90847866f39.md5 new file mode 100644 index 0000000..1e4bfb0 --- /dev/null +++ b/client/addons/.import/player.png-83eee27dc74544e997a7b90847866f39.md5 @@ -0,0 +1,3 @@ +source_md5="53be14e4ad2f67df62927ebe16450b07" +dest_md5="6d3a87776838f14ee876321be0a815b3" + diff --git a/client/addons/.import/player.png-83eee27dc74544e997a7b90847866f39.s3tc.stex b/client/addons/.import/player.png-83eee27dc74544e997a7b90847866f39.s3tc.stex new file mode 100644 index 0000000..46826cb Binary files /dev/null and b/client/addons/.import/player.png-83eee27dc74544e997a7b90847866f39.s3tc.stex differ diff --git a/client/addons/.import/player.png-83eee27dc74544e997a7b90847866f39.stex b/client/addons/.import/player.png-83eee27dc74544e997a7b90847866f39.stex new file mode 100644 index 0000000..013123b Binary files /dev/null and b/client/addons/.import/player.png-83eee27dc74544e997a7b90847866f39.stex differ diff --git a/client/addons/.import/player_parts.png-f69e345f37ad405be3288ca78a4b7531.md5 b/client/addons/.import/player_parts.png-f69e345f37ad405be3288ca78a4b7531.md5 new file mode 100644 index 0000000..3c0e7c5 --- /dev/null +++ b/client/addons/.import/player_parts.png-f69e345f37ad405be3288ca78a4b7531.md5 @@ -0,0 +1,3 @@ +source_md5="4a4e86688ea9e233c2a97d2091f91210" +dest_md5="f46730c502307e961aea5b1794b64187" + diff --git a/client/addons/.import/player_parts.png-f69e345f37ad405be3288ca78a4b7531.stex b/client/addons/.import/player_parts.png-f69e345f37ad405be3288ca78a4b7531.stex new file mode 100644 index 0000000..f651a70 Binary files /dev/null and b/client/addons/.import/player_parts.png-f69e345f37ad405be3288ca78a4b7531.stex differ diff --git a/client/addons/.import/processed.wav-a7a5a075e2f9c8455243537ae0837ba2.md5 b/client/addons/.import/processed.wav-a7a5a075e2f9c8455243537ae0837ba2.md5 new file mode 100644 index 0000000..e1638c6 --- /dev/null +++ b/client/addons/.import/processed.wav-a7a5a075e2f9c8455243537ae0837ba2.md5 @@ -0,0 +1,3 @@ +source_md5="b39186c57feb6aaf1ad83b21f76c0bc0" +dest_md5="9f65e84e6228e534c90c26186cdbac2f" + diff --git a/client/addons/.import/processed.wav-a7a5a075e2f9c8455243537ae0837ba2.sample b/client/addons/.import/processed.wav-a7a5a075e2f9c8455243537ae0837ba2.sample new file mode 100644 index 0000000..ab21673 Binary files /dev/null and b/client/addons/.import/processed.wav-a7a5a075e2f9c8455243537ae0837ba2.sample differ diff --git a/client/addons/.import/scientist.png-ed3195bf022f65d4a0546af474992ee0.md5 b/client/addons/.import/scientist.png-ed3195bf022f65d4a0546af474992ee0.md5 new file mode 100644 index 0000000..8b8f83c --- /dev/null +++ b/client/addons/.import/scientist.png-ed3195bf022f65d4a0546af474992ee0.md5 @@ -0,0 +1,3 @@ +source_md5="41d8c79b5c539a2acf771607432eee6f" +dest_md5="407f96bf098d799f4e6dd801afb37e68" + diff --git a/client/addons/.import/scientist.png-ed3195bf022f65d4a0546af474992ee0.stex b/client/addons/.import/scientist.png-ed3195bf022f65d4a0546af474992ee0.stex new file mode 100644 index 0000000..39ec2d1 Binary files /dev/null and b/client/addons/.import/scientist.png-ed3195bf022f65d4a0546af474992ee0.stex differ diff --git a/client/addons/.import/screenshot.png-7e6fd068016c281094b4ad8b2b340dc2.md5 b/client/addons/.import/screenshot.png-7e6fd068016c281094b4ad8b2b340dc2.md5 new file mode 100644 index 0000000..43e51b4 --- /dev/null +++ b/client/addons/.import/screenshot.png-7e6fd068016c281094b4ad8b2b340dc2.md5 @@ -0,0 +1,3 @@ +source_md5="303f11d3124d1c4e7f84eab94f2eec4e" +dest_md5="c435ad0f5644e639bccd3d8ca358885b" + diff --git a/client/addons/.import/screenshot.png-7e6fd068016c281094b4ad8b2b340dc2.stex b/client/addons/.import/screenshot.png-7e6fd068016c281094b4ad8b2b340dc2.stex new file mode 100644 index 0000000..cb39766 Binary files /dev/null and b/client/addons/.import/screenshot.png-7e6fd068016c281094b4ad8b2b340dc2.stex differ diff --git a/client/addons/.import/screenshot_2d.png-87d91dabaa368245cb9657c3ea8c1190.md5 b/client/addons/.import/screenshot_2d.png-87d91dabaa368245cb9657c3ea8c1190.md5 new file mode 100644 index 0000000..32f968b --- /dev/null +++ b/client/addons/.import/screenshot_2d.png-87d91dabaa368245cb9657c3ea8c1190.md5 @@ -0,0 +1,3 @@ +source_md5="46923f78324d6e9a8e0e4a863d2d42b1" +dest_md5="c9e1f79e69e3f2f812c0be531478bb8e" + diff --git a/client/addons/.import/screenshot_2d.png-87d91dabaa368245cb9657c3ea8c1190.stex b/client/addons/.import/screenshot_2d.png-87d91dabaa368245cb9657c3ea8c1190.stex new file mode 100644 index 0000000..9dd2534 Binary files /dev/null and b/client/addons/.import/screenshot_2d.png-87d91dabaa368245cb9657c3ea8c1190.stex differ diff --git a/client/addons/.import/screenshot_2d_2x.png-bafe835a0eb947c980af261c0e66bf14.md5 b/client/addons/.import/screenshot_2d_2x.png-bafe835a0eb947c980af261c0e66bf14.md5 new file mode 100644 index 0000000..376d15d --- /dev/null +++ b/client/addons/.import/screenshot_2d_2x.png-bafe835a0eb947c980af261c0e66bf14.md5 @@ -0,0 +1,3 @@ +source_md5="62170d933feb1791d33e1fc234209ff0" +dest_md5="841cfe9c8cca9b353975fdeca4a6818d" + diff --git a/client/addons/.import/screenshot_2d_2x.png-bafe835a0eb947c980af261c0e66bf14.stex b/client/addons/.import/screenshot_2d_2x.png-bafe835a0eb947c980af261c0e66bf14.stex new file mode 100644 index 0000000..e73c050 Binary files /dev/null and b/client/addons/.import/screenshot_2d_2x.png-bafe835a0eb947c980af261c0e66bf14.stex differ diff --git a/client/addons/.import/screenshot_3d.png-aa88ee3aedd8e6d3c81005b8be71a791.md5 b/client/addons/.import/screenshot_3d.png-aa88ee3aedd8e6d3c81005b8be71a791.md5 new file mode 100644 index 0000000..65fd607 --- /dev/null +++ b/client/addons/.import/screenshot_3d.png-aa88ee3aedd8e6d3c81005b8be71a791.md5 @@ -0,0 +1,3 @@ +source_md5="ae3bdb1e531d0d500f6d21de544b2067" +dest_md5="8182b7555a30f5839165eafcca9acd9e" + diff --git a/client/addons/.import/screenshot_3d.png-aa88ee3aedd8e6d3c81005b8be71a791.stex b/client/addons/.import/screenshot_3d.png-aa88ee3aedd8e6d3c81005b8be71a791.stex new file mode 100644 index 0000000..473b3a4 Binary files /dev/null and b/client/addons/.import/screenshot_3d.png-aa88ee3aedd8e6d3c81005b8be71a791.stex differ diff --git a/client/addons/.import/socket-v1.1.png-3970210f808984d698660c686a738827.md5 b/client/addons/.import/socket-v1.1.png-3970210f808984d698660c686a738827.md5 new file mode 100644 index 0000000..c923606 --- /dev/null +++ b/client/addons/.import/socket-v1.1.png-3970210f808984d698660c686a738827.md5 @@ -0,0 +1,3 @@ +source_md5="508339a6418ddd3a0049439743246daf" +dest_md5="406b0df125d9b3ddad372c1756a707be" + diff --git a/client/addons/.import/socket-v1.1.png-3970210f808984d698660c686a738827.stex b/client/addons/.import/socket-v1.1.png-3970210f808984d698660c686a738827.stex new file mode 100644 index 0000000..0afefd7 Binary files /dev/null and b/client/addons/.import/socket-v1.1.png-3970210f808984d698660c686a738827.stex differ diff --git a/client/addons/.import/soldier.png-5c437fd605d46cb9f2bfb449beef059e.md5 b/client/addons/.import/soldier.png-5c437fd605d46cb9f2bfb449beef059e.md5 new file mode 100644 index 0000000..491c9a0 --- /dev/null +++ b/client/addons/.import/soldier.png-5c437fd605d46cb9f2bfb449beef059e.md5 @@ -0,0 +1,3 @@ +source_md5="dd34a61f0c64a8b28fbc90958cefa569" +dest_md5="5d38a4263fce6ada9174911d6983e089" + diff --git a/client/addons/.import/soldier.png-5c437fd605d46cb9f2bfb449beef059e.stex b/client/addons/.import/soldier.png-5c437fd605d46cb9f2bfb449beef059e.stex new file mode 100644 index 0000000..7c59703 Binary files /dev/null and b/client/addons/.import/soldier.png-5c437fd605d46cb9f2bfb449beef059e.stex differ diff --git a/client/addons/.import/targets-v3.1.png-bda2163ffcd32c280410bfa8e9697a95.md5 b/client/addons/.import/targets-v3.1.png-bda2163ffcd32c280410bfa8e9697a95.md5 new file mode 100644 index 0000000..5e7d91b --- /dev/null +++ b/client/addons/.import/targets-v3.1.png-bda2163ffcd32c280410bfa8e9697a95.md5 @@ -0,0 +1,3 @@ +source_md5="d0f745eab525332d8bf1664282c7588b" +dest_md5="6d618e905102503651994c62238c44d0" + diff --git a/client/addons/.import/targets-v3.1.png-bda2163ffcd32c280410bfa8e9697a95.stex b/client/addons/.import/targets-v3.1.png-bda2163ffcd32c280410bfa8e9697a95.stex new file mode 100644 index 0000000..5ff27ef Binary files /dev/null and b/client/addons/.import/targets-v3.1.png-bda2163ffcd32c280410bfa8e9697a95.stex differ diff --git a/client/addons/.import/tileset_intial.png-fc4b8756aa492a789b9ab3fda1f70171.md5 b/client/addons/.import/tileset_intial.png-fc4b8756aa492a789b9ab3fda1f70171.md5 new file mode 100644 index 0000000..67f2f9e --- /dev/null +++ b/client/addons/.import/tileset_intial.png-fc4b8756aa492a789b9ab3fda1f70171.md5 @@ -0,0 +1,3 @@ +source_md5="3f9f96bd8fedb148b7290a23ce498f9e" +dest_md5="79058549fdc5214182993096ff2d5289" + diff --git a/client/addons/.import/tileset_intial.png-fc4b8756aa492a789b9ab3fda1f70171.stex b/client/addons/.import/tileset_intial.png-fc4b8756aa492a789b9ab3fda1f70171.stex new file mode 100644 index 0000000..a489bc9 Binary files /dev/null and b/client/addons/.import/tileset_intial.png-fc4b8756aa492a789b9ab3fda1f70171.stex differ diff --git a/client/addons/.import/tileset_science_lab.png-ca47a982e43a92e13e08def0fb7cb9a8.md5 b/client/addons/.import/tileset_science_lab.png-ca47a982e43a92e13e08def0fb7cb9a8.md5 new file mode 100644 index 0000000..67f2f9e --- /dev/null +++ b/client/addons/.import/tileset_science_lab.png-ca47a982e43a92e13e08def0fb7cb9a8.md5 @@ -0,0 +1,3 @@ +source_md5="3f9f96bd8fedb148b7290a23ce498f9e" +dest_md5="79058549fdc5214182993096ff2d5289" + diff --git a/client/addons/.import/tileset_science_lab.png-ca47a982e43a92e13e08def0fb7cb9a8.stex b/client/addons/.import/tileset_science_lab.png-ca47a982e43a92e13e08def0fb7cb9a8.stex new file mode 100644 index 0000000..a489bc9 Binary files /dev/null and b/client/addons/.import/tileset_science_lab.png-ca47a982e43a92e13e08def0fb7cb9a8.stex differ diff --git a/client/addons/.import/zapper-v1.1.png-d00f3f4f240f2070fb51577e9d7056da.md5 b/client/addons/.import/zapper-v1.1.png-d00f3f4f240f2070fb51577e9d7056da.md5 new file mode 100644 index 0000000..dc5f67a --- /dev/null +++ b/client/addons/.import/zapper-v1.1.png-d00f3f4f240f2070fb51577e9d7056da.md5 @@ -0,0 +1,3 @@ +source_md5="5abe5405feeddb56fee2a97ddfc92f43" +dest_md5="883c4bca793e696a0f060011aca98363" + diff --git a/client/addons/.import/zapper-v1.1.png-d00f3f4f240f2070fb51577e9d7056da.stex b/client/addons/.import/zapper-v1.1.png-d00f3f4f240f2070fb51577e9d7056da.stex new file mode 100644 index 0000000..6019750 Binary files /dev/null and b/client/addons/.import/zapper-v1.1.png-d00f3f4f240f2070fb51577e9d7056da.stex differ diff --git a/client/addons/EXP-System-Dialog/Dialog Editor/Dialog_Editor.tscn b/client/addons/EXP-System-Dialog/Dialog Editor/Dialog_Editor.tscn new file mode 100644 index 0000000..edcb417 --- /dev/null +++ b/client/addons/EXP-System-Dialog/Dialog Editor/Dialog_Editor.tscn @@ -0,0 +1,76 @@ +[gd_scene load_steps=2 format=2] + +[ext_resource path="res://addons/EXP-System-Dialog/Dialog Editor/dialog_editor.gd" type="Script" id=1] + +[node name="Dialog_Editor" type="Control"] +anchor_right = 1.0 +anchor_bottom = 1.0 +rect_min_size = Vector2( 0, 256 ) +script = ExtResource( 1 ) +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="VBoxContainer" type="VBoxContainer" parent="."] +anchor_right = 1.0 +anchor_bottom = 1.0 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="VBoxContainer" type="HBoxContainer" parent="VBoxContainer"] +margin_right = 1024.0 +margin_bottom = 20.0 + +[node name="Close_BTN" type="Button" parent="VBoxContainer/VBoxContainer"] +margin_right = 47.0 +margin_bottom = 20.0 +hint_tooltip = "Close the Dialog Editor." +text = "Close" + +[node name="Back_BTN" type="Button" parent="VBoxContainer/VBoxContainer"] +margin_left = 51.0 +margin_right = 93.0 +margin_bottom = 20.0 +hint_tooltip = "Return to the Story Editor." +text = "Back" + +[node name="VSeparator" type="VSeparator" parent="VBoxContainer/VBoxContainer"] +margin_left = 97.0 +margin_right = 101.0 +margin_bottom = 20.0 + +[node name="Add_Node_BTN" type="Button" parent="VBoxContainer/VBoxContainer"] +margin_left = 105.0 +margin_right = 180.0 +margin_bottom = 20.0 +hint_tooltip = "Add a new node to the graph." +text = "Add Node" + +[node name="VSeparator2" type="VSeparator" parent="VBoxContainer/VBoxContainer"] +margin_left = 184.0 +margin_right = 188.0 +margin_bottom = 20.0 + +[node name="Human_Readable_LBL" type="Label" parent="VBoxContainer/VBoxContainer"] +margin_left = 192.0 +margin_top = 3.0 +margin_right = 378.0 +margin_bottom = 17.0 +text = "Human Readable Description" + +[node name="GraphEdit" type="GraphEdit" parent="VBoxContainer"] +margin_top = 24.0 +margin_right = 1024.0 +margin_bottom = 600.0 +size_flags_horizontal = 3 +size_flags_vertical = 3 +right_disconnects = true +__meta__ = { +"_edit_use_anchors_": false +} +[connection signal="pressed" from="VBoxContainer/VBoxContainer/Close_BTN" to="." method="_on_Close_BTN_pressed"] +[connection signal="pressed" from="VBoxContainer/VBoxContainer/Back_BTN" to="." method="_on_Back_BTN_pressed"] +[connection signal="pressed" from="VBoxContainer/VBoxContainer/Add_Node_BTN" to="." method="_on_Add_Node_BTN_pressed"] +[connection signal="connection_request" from="VBoxContainer/GraphEdit" to="." method="_on_GraphEdit_connection_request"] +[connection signal="disconnection_request" from="VBoxContainer/GraphEdit" to="." method="_on_GraphEdit_disconnection_request"] diff --git a/client/addons/EXP-System-Dialog/Dialog Editor/Editor/Editor.tscn b/client/addons/EXP-System-Dialog/Dialog Editor/Editor/Editor.tscn new file mode 100644 index 0000000..1a1d12f --- /dev/null +++ b/client/addons/EXP-System-Dialog/Dialog Editor/Editor/Editor.tscn @@ -0,0 +1,52 @@ +[gd_scene load_steps=2 format=2] + +[ext_resource path="res://addons/EXP-System-Dialog/Dialog Editor/Editor/editor.gd" type="Script" id=1] + +[node name="WindowDialog" type="WindowDialog"] +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +margin_left = -540.0 +margin_top = -384.0 +margin_right = 540.0 +margin_bottom = 384.0 +window_title = "Node Editor" +resizable = true +script = ExtResource( 1 ) +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="VBoxContainer" type="VBoxContainer" parent="."] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 13.0 +margin_top = 13.0 +margin_right = -13.0 +margin_bottom = -13.0 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="TextEdit" type="TextEdit" parent="VBoxContainer"] +margin_right = 1054.0 +margin_bottom = 718.0 +size_flags_horizontal = 3 +size_flags_vertical = 3 +smooth_scrolling = true +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="OK_BTN" type="Button" parent="VBoxContainer"] +margin_left = 503.0 +margin_top = 722.0 +margin_right = 550.0 +margin_bottom = 742.0 +hint_tooltip = "Close the node editor." +size_flags_horizontal = 4 +size_flags_vertical = 0 +text = "Close" +[connection signal="text_changed" from="VBoxContainer/TextEdit" to="." method="_on_TextEdit_text_changed"] +[connection signal="pressed" from="VBoxContainer/OK_BTN" to="." method="_on_OK_BTN_pressed"] diff --git a/client/addons/EXP-System-Dialog/Dialog Editor/Editor/editor.gd b/client/addons/EXP-System-Dialog/Dialog Editor/Editor/editor.gd new file mode 100644 index 0000000..99781f9 --- /dev/null +++ b/client/addons/EXP-System-Dialog/Dialog Editor/Editor/editor.gd @@ -0,0 +1,21 @@ +tool +extends WindowDialog + +onready var _Text_Editor = self.get_node("VBoxContainer/TextEdit") + +var _Target_Node + +#Public Methods + +func set_target_node(node): + self._Target_Node = node + self._Text_Editor.text = node.get_text() + +#Callback Methods + +func _on_OK_BTN_pressed(): + self.visible = false + + +func _on_TextEdit_text_changed(): + self._Target_Node.set_text(self._Text_Editor.text) diff --git a/client/addons/EXP-System-Dialog/Dialog Editor/Nodes/Line/Line_Node.tscn b/client/addons/EXP-System-Dialog/Dialog Editor/Nodes/Line/Line_Node.tscn new file mode 100644 index 0000000..f775f09 --- /dev/null +++ b/client/addons/EXP-System-Dialog/Dialog Editor/Nodes/Line/Line_Node.tscn @@ -0,0 +1,111 @@ +[gd_scene load_steps=3 format=2] + +[ext_resource path="res://addons/EXP-System-Dialog/Dialog Editor/Nodes/Line/line_node.gd" type="Script" id=1] +[ext_resource path="res://addons/EXP-System-Dialog/Dialog Editor/Nodes/Line/icon_distraction_free.svg" type="Texture" id=2] + + +[node name="Line" type="GraphNode"] +margin_right = 324.0 +margin_bottom = 137.0 +rect_min_size = Vector2( 324, 137 ) +title = "Line" +offset = Vector2( 40, 40 ) +show_close = true +resizable = true +slot/0/left_enabled = true +slot/0/left_type = 0 +slot/0/left_color = Color( 1, 1, 1, 1 ) +slot/0/right_enabled = true +slot/0/right_type = 0 +slot/0/right_color = Color( 1, 1, 1, 1 ) +slot/1/left_enabled = false +slot/1/left_type = 0 +slot/1/left_color = Color( 1, 1, 1, 1 ) +slot/1/right_enabled = false +slot/1/right_type = 0 +slot/1/right_color = Color( 1, 1, 1, 1 ) +script = ExtResource( 1 ) +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="VBoxContainer" type="VBoxContainer" parent="."] +margin_left = 16.0 +margin_top = 39.0 +margin_right = 380.0 +margin_bottom = 131.0 +size_flags_horizontal = 3 +size_flags_vertical = 3 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="HBoxContainer2" type="HBoxContainer" parent="VBoxContainer"] +margin_right = 364.0 +margin_bottom = 64.0 + +[node name="TextEdit" type="TextEdit" parent="VBoxContainer/HBoxContainer2"] +margin_right = 328.0 +margin_bottom = 64.0 +rect_min_size = Vector2( 256, 64 ) +size_flags_horizontal = 3 +size_flags_vertical = 3 +smooth_scrolling = true + +[node name="Editor_BTN" type="Button" parent="VBoxContainer/HBoxContainer2"] +margin_left = 332.0 +margin_right = 364.0 +margin_bottom = 64.0 +rect_min_size = Vector2( 32, 0 ) +hint_tooltip = "Expand this node's text editor." +icon = ExtResource( 2 ) +expand_icon = true + +[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"] +margin_top = 68.0 +margin_right = 364.0 +margin_bottom = 92.0 +alignment = 1 + +[node name="Save_BTN" type="Button" parent="VBoxContainer/HBoxContainer"] +margin_right = 125.0 +margin_bottom = 24.0 +hint_tooltip = "Save the current text as a template that can quickly loaded into new nodes." +text = "Save Template As" + +[node name="Load_BTN" type="Button" parent="VBoxContainer/HBoxContainer"] +margin_left = 129.0 +margin_right = 235.0 +margin_bottom = 24.0 +hint_tooltip = "Load a template from file." +text = "Load Template" + +[node name="VSeparator" type="VSeparator" parent="VBoxContainer/HBoxContainer"] +margin_left = 239.0 +margin_right = 243.0 +margin_bottom = 24.0 + +[node name="Link_LBL" type="Label" parent="VBoxContainer/HBoxContainer"] +margin_left = 247.0 +margin_top = 5.0 +margin_right = 286.0 +margin_bottom = 19.0 +text = "Slots: " + +[node name="Link_SpinBox" type="SpinBox" parent="VBoxContainer/HBoxContainer"] +margin_left = 290.0 +margin_right = 364.0 +margin_bottom = 24.0 +hint_tooltip = "Change the number of output slots on this node." +min_value = 1.0 +value = 1.0 +rounded = true +allow_greater = true +[connection signal="close_request" from="." to="." method="_on_Line_close_request"] +[connection signal="offset_changed" from="." to="." method="_on_Line_offset_changed"] +[connection signal="resize_request" from="." to="." method="_on_Line_resize_request"] +[connection signal="text_changed" from="VBoxContainer/HBoxContainer2/TextEdit" to="." method="_on_TextEdit_text_changed"] +[connection signal="pressed" from="VBoxContainer/HBoxContainer2/Editor_BTN" to="." method="_on_Editor_BTN_pressed"] +[connection signal="pressed" from="VBoxContainer/HBoxContainer/Save_BTN" to="." method="_on_Save_BTN_pressed"] +[connection signal="pressed" from="VBoxContainer/HBoxContainer/Load_BTN" to="." method="_on_Load_BTN_pressed"] +[connection signal="value_changed" from="VBoxContainer/HBoxContainer/Link_SpinBox" to="." method="_on_Link_SpinBox_value_changed"] diff --git a/client/addons/EXP-System-Dialog/Dialog Editor/Nodes/Line/icon_distraction_free.svg b/client/addons/EXP-System-Dialog/Dialog Editor/Nodes/Line/icon_distraction_free.svg new file mode 100644 index 0000000..8608b33 --- /dev/null +++ b/client/addons/EXP-System-Dialog/Dialog Editor/Nodes/Line/icon_distraction_free.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/client/addons/EXP-System-Dialog/Dialog Editor/Nodes/Line/icon_distraction_free.svg.import b/client/addons/EXP-System-Dialog/Dialog Editor/Nodes/Line/icon_distraction_free.svg.import new file mode 100644 index 0000000..4a8edd8 --- /dev/null +++ b/client/addons/EXP-System-Dialog/Dialog Editor/Nodes/Line/icon_distraction_free.svg.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/icon_distraction_free.svg-5120bf5545890a3868c1108c903f7cd9.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://addons/EXP-System-Dialog/Dialog Editor/Nodes/Line/icon_distraction_free.svg" +dest_files=[ "res://.import/icon_distraction_free.svg-5120bf5545890a3868c1108c903f7cd9.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=true +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 +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/client/addons/EXP-System-Dialog/Dialog Editor/Nodes/Line/line_node.gd b/client/addons/EXP-System-Dialog/Dialog Editor/Nodes/Line/line_node.gd new file mode 100644 index 0000000..f097c01 --- /dev/null +++ b/client/addons/EXP-System-Dialog/Dialog Editor/Nodes/Line/line_node.gd @@ -0,0 +1,114 @@ +tool +extends GraphNode + +signal changed_offset(nid, vec2) +signal changed_size(this) +signal changed_slots(this) +signal erased(this) +signal pressed_editor(this) +signal pressed_load(this) +signal pressed_save(this) +signal text_changed(nid, new_text) + +onready var _Link_SpinBox = self.get_node("VBoxContainer/HBoxContainer/Link_SpinBox") +onready var _Text_Editor = self.get_node("VBoxContainer/HBoxContainer2/TextEdit") + +var _nid : int = 0 +var _slot_amount : int = 1 + +#Virtual Methods + +func _ready(): + self._update_slots() + +#Callback Methods + +func _on_Editor_BTN_pressed(): + self.emit_signal("pressed_editor", self) + + +func _on_Line_close_request(): + self.emit_signal("erased", self) + + +func _on_Line_offset_changed(): + self.emit_signal("changed_offset", self._nid, self.offset) + + +func _on_Line_resize_request(new_minsize): + self.rect_size = new_minsize + self.emit_signal("changed_size", self) + + +func _on_Link_SpinBox_value_changed(value): + self._slot_amount = int(self._Link_SpinBox.value) + self._update_slots() + self.emit_signal("changed_slots", self) + + +func _on_Load_BTN_pressed(): + self.emit_signal("pressed_load", self) + + +func _on_Save_BTN_pressed(): + self.emit_signal("pressed_save", self) + + +func _on_TextEdit_text_changed(): + self.emit_signal("text_changed", self._nid, self._Text_Editor.text) + +#Public Methods + +func get_nid() -> int: + return self._nid + + +func get_slot_amount() -> int: + return self._slot_amount + + +func get_text() -> String: + return self._Text_Editor.text + + +func set_nid(new_nid): + self._nid = new_nid + var new_name = "NID " + str(new_nid) + self.title = new_name + self.name = new_name + + +func set_slot_amount(new_amount : int): + self._slot_amount = new_amount + + +func set_text(new_text : String): + self._Text_Editor.text = new_text + self.emit_signal("text_changed", self._nid, new_text) + +#Private Methods + +func _clear_link_labels(): + var children = self.get_children() + for child in children: + if child is Label: + child.free() + + +func _update_slots(): + self.clear_all_slots() + self._clear_link_labels() + self.set_slot(0, true, 0, Color(1.0, 1.0, 1.0, 1.0), true, 0, Color(1.0, 1.0, 1.0, 1.0), null, null) + var base_link_label = Label.new() + base_link_label.text = "0" + base_link_label.align = Label.ALIGN_RIGHT + self.add_child(base_link_label) + self.move_child(base_link_label, 0) + var last_output_link_label = base_link_label + for slot in range(1, self._slot_amount): + self.set_slot(slot, false, 0, Color(1.0, 1.0, 1.0, 1.0), true, 0, Color(1.0, 1.0, 1.0, 1.0), null, null) + var output_link_label = Label.new() + output_link_label.text = str(slot) + output_link_label.align = Label.ALIGN_RIGHT + self.add_child_below_node(last_output_link_label, output_link_label) + last_output_link_label = output_link_label diff --git a/client/addons/EXP-System-Dialog/Dialog Editor/dialog_editor.gd b/client/addons/EXP-System-Dialog/Dialog Editor/dialog_editor.gd new file mode 100644 index 0000000..ed36175 --- /dev/null +++ b/client/addons/EXP-System-Dialog/Dialog Editor/dialog_editor.gd @@ -0,0 +1,224 @@ +tool +extends Control + +signal back_BTN_pressed +signal close_BTN_pressed + +onready var _Graph = self.get_node("VBoxContainer/GraphEdit") +onready var _Human_Readable_LBL = self.get_node("VBoxContainer/VBoxContainer/Human_Readable_LBL") + +var _Editor_TSCN = preload("res://addons/EXP-System-Dialog/Dialog Editor/Editor/Editor.tscn") +var _LineNode = preload("res://addons/EXP-System-Dialog/Dialog Editor/Nodes/Line/Line_Node.tscn") +var _NodeTemplate= preload("res://addons/EXP-System-Dialog/Resource_NodeTemplate/EXP_NodeTemplate.gd") + +var _did : int = -1 +var _Editor +var _Load_Template : EditorFileDialog +var _Save_Template_As : EditorFileDialog +var _Story_Editor +var _Target_Node + +#Virtual Methods + +func _ready(): + self._setup_dialogs() + self._Editor = _Editor_TSCN.instance() + self.add_child(self._Editor) + +#Callback Methods + +func _on_Add_Node_BTN_pressed(): + var new_nid = self._Story_Editor.create_node(self._did, "line") + var new_line_node = self._LineNode.instance() + new_line_node.offset += self._Graph.scroll_offset + new_line_node.set_nid(new_nid) + new_line_node.connect("erased", self, "_on_Node_erased") + new_line_node.connect("changed_offset", self, "_on_Node_changed_offset") + new_line_node.connect("text_changed", self, "_on_Node_text_changed") + new_line_node.connect("pressed_save", self, "_on_Node_pressed_save") + new_line_node.connect("pressed_load", self, "_on_Node_pressed_load") + new_line_node.connect("pressed_editor", self, "_on_Node_pressed_editor") + new_line_node.connect("changed_slots", self, "_on_Node_changed_slots") + new_line_node.connect("changed_size", self, "_on_Node_changed_size") + var slot_count = self._Story_Editor.get_node_property(self._did, new_nid, "slot_amount") + self._Story_Editor.set_node_property(self._did, new_nid, "rect_size", new_line_node.rect_size) + new_line_node.set_slot_amount(slot_count) + self._Graph.add_child(new_line_node) + + +func _on_Back_BTN_pressed(): + self.emit_signal("back_BTN_pressed") + + +func _on_Close_BTN_pressed(): + self.emit_signal("close_BTN_pressed") + + +func _on_GraphEdit_connection_request(from, from_slot, to, to_slot): + self._Graph.connect_node(from, from_slot, to, to_slot) + var from_node = self._Graph.get_node(from) + var to_node = self._Graph.get_node(to) + var from_node_nid = from_node.get_nid() + var to_node_nid = to_node.get_nid() + self._Story_Editor.set_link(self._did, from_node_nid, from_slot, to_node_nid) + + +func _on_GraphEdit_disconnection_request(from, from_slot, to, to_slot): + self._Graph.disconnect_node(from, from_slot, to, to_slot) + var from_node = self._Graph.get_node(from) + var from_node_nid = from_node.get_nid() + self._Story_Editor.erase_link(self._did, from_node_nid, from_slot) + + +func _on_Load_Template_file_selected(filename): + var file_data = load(filename) + if not file_data.TYPE == "EXP_Dialog_Node_Template_editor": + return + + self._Target_Node.set_text(file_data.template) + + +func _on_Node_changed_offset(nid, new_offset): + self._Story_Editor.set_node_property(self._did, nid, "graph_offset", new_offset) + + +func _on_Node_changed_size(changed_node): + var changed_node_nid = changed_node.get_nid() + self._Story_Editor.set_node_property(self._did, changed_node_nid, "rect_size", changed_node.rect_size) + + +func _on_Node_changed_slots(changed_node): + var changed_node_nid = changed_node.get_nid() + self._unlink_nid_from_story(changed_node_nid) + self._disconnect_all_from(changed_node) + self._Story_Editor.set_node_property(self._did, changed_node_nid, "slot_amount", + changed_node.get_slot_amount()) + + +func _on_Node_erased(deleted_node): + var deleted_nid = deleted_node.get_nid() + self._unlink_nid_from_story(deleted_nid) + self._Story_Editor.erase_node(self._did, deleted_nid) + self._disconnect_all_from(deleted_node) + deleted_node.queue_free() + + +func _on_Node_pressed_editor(node): + self._Editor.set_target_node(node) + self._Editor.visible = true + + +func _on_Node_pressed_load(node): + self._Target_Node = node + self._Load_Template.popup_centered_ratio(0.7) + + +func _on_Node_pressed_save(node): + self._Target_Node = node + self._Save_Template_As.popup_centered_ratio(0.7) + + +func _on_Node_text_changed(nid, new_text): + self._Story_Editor.set_node_property(self._did, nid, "text", new_text) + + +func _on_Save_Template_As_file_selected(filename): + var save_file = _NodeTemplate.new() + save_file.template = self._Target_Node.get_text() + ResourceSaver.save(filename, save_file) + + +func _on_Story_Editor_dialog_edit_pressed(story_editor, did : int): + self._Story_Editor = story_editor + self._did = did + self._Human_Readable_LBL.text = self._Story_Editor.get_dialog_property(self._did, "human_readable_description") + self._clear_nodes() + self._populate_graph() + self._link_node_connections() + +#Private Methods + +func _clear_nodes(): + self._Graph.clear_connections() + var children = self._Graph.get_children() + for child in children: + if child is GraphNode: + child.free() + + +func _disconnect_all_from(node): + var node_name = node.name + var connection_list = self._Graph.get_connection_list() + for connection in connection_list: + if connection["from"] == node.name or connection["to"] == node.name: + self._Graph.disconnect_node(connection["from"], connection["from_port"], + connection["to"], connection["to_port"]) + + +func _link_node_connections(): + var node_IDs = self._Story_Editor.get_nids(self._did) + for nID in node_IDs: + var slots = self._Story_Editor.get_link_slots(self._did, nID) + for slot in slots: + var to_node_nid = self._Story_Editor.get_nid_link_from(self._did, nID, slot) + var to = "NID " + str(to_node_nid) + var from = "NID " + str(nID) + self._Graph.connect_node(from, slot, to, 0) + + +func _populate_graph(): + var node_IDs = self._Story_Editor.get_nids(self._did) + for nID in node_IDs: + var new_node : GraphNode + match self._Story_Editor.get_node_property(self._did, nID, "type"): + "line": + new_node = _LineNode.instance() + var slot_count = self._Story_Editor.get_node_property(self._did, nID, "slot_amount") + new_node.set_slot_amount(slot_count) + self._Graph.add_child(new_node) + new_node.connect("erased", self, "_on_Node_erased") + var new_text = self._Story_Editor.get_node_property(self._did, nID, "text") + var new_rect_size = self._Story_Editor.get_node_property(self._did, nID, "rect_size") + new_node.rect_size = new_rect_size + new_node.set_text(new_text) + new_node.connect("text_changed", self, "_on_Node_text_changed") + new_node.connect("pressed_save", self, "_on_Node_pressed_save") + new_node.connect("pressed_load", self, "_on_Node_pressed_load") + new_node.connect("pressed_editor", self, "_on_Node_pressed_editor") + new_node.connect("changed_slots", self, "_on_Node_changed_slots") + new_node.connect("changed_size", self, "_on_Node_changed_size") + + new_node.set_nid(nID) + new_node.offset = self._Story_Editor.get_node_property(self._did, nID, "graph_offset") + new_node.connect("changed_offset", self, "_on_Node_changed_offset") + + +func _setup_dialogs(): + self._Load_Template = EditorFileDialog.new() + self._Load_Template.mode = EditorFileDialog.MODE_OPEN_FILE + self._Load_Template.add_filter("*.res ; Template files") + self._Load_Template.resizable = true + self._Load_Template.access = EditorFileDialog.ACCESS_RESOURCES + self._Load_Template.current_dir = "res://" + self._Load_Template.connect("file_selected", self, "_on_Load_Template_file_selected") + self.add_child(self._Load_Template) + + self._Save_Template_As = EditorFileDialog.new() + self._Save_Template_As.mode = EditorFileDialog.MODE_SAVE_FILE + self._Save_Template_As.add_filter("*.res ; Template files") + self._Save_Template_As.resizable = true + self._Save_Template_As.access = EditorFileDialog.ACCESS_RESOURCES + self._Save_Template_As.current_dir = "res://" + self._Save_Template_As.connect("file_selected", self, "_on_Save_Template_As_file_selected") + self.add_child(self._Save_Template_As) + + +func _unlink_nid_from_story(removed_nid): + self._Story_Editor.erase_all_links(self._did, removed_nid) + var nIDs = self._Story_Editor.get_nids(self._did) + for nID in nIDs: + var node_slots = self._Story_Editor.get_link_slots(self._did, nID) + for slot in node_slots: + var to_node_nid = self._Story_Editor.get_nid_link_from(self._did, nID, slot) + if to_node_nid == removed_nid: + self._Story_Editor.erase_link(self._did, nID, slot) diff --git a/client/addons/EXP-System-Dialog/LICENSE.txt b/client/addons/EXP-System-Dialog/LICENSE.txt new file mode 100644 index 0000000..7d97c77 --- /dev/null +++ b/client/addons/EXP-System-Dialog/LICENSE.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 David E Lipps + +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. diff --git a/client/addons/EXP-System-Dialog/Reference_StoryReader/EXP_StoryReader.gd b/client/addons/EXP-System-Dialog/Reference_StoryReader/EXP_StoryReader.gd new file mode 100644 index 0000000..32d08f5 --- /dev/null +++ b/client/addons/EXP-System-Dialog/Reference_StoryReader/EXP_StoryReader.gd @@ -0,0 +1,84 @@ +extends Reference + +var _story : Dictionary = {} +var _names : Dictionary = {} + + +func get_dids() -> Array: + return self._story.keys() + + +func get_did_via_record_name(name : String) -> int: + assert(self._names.has(name)) + return self._names[name] + + +func get_nid_from_slot(did : int, nid : int, slot : int) -> int: + assert(self.has_did(did)) + assert(self.has_nid(did, nid)) + assert(self.has_slot(did, nid, slot)) + return self._story[did]["nodes"][nid]["links"][slot] + + +func get_nid_via_exact_text(did : int, query : String) -> int: + assert(self.has_did(did)) + + for nid in self._story[did]["nodes"].keys(): + if self._story[did]["nodes"][nid]["text"] == query: + return nid + return -1 + + +func get_nids(did : int) -> Array: + assert(self.has_did(did)) + return self._story[did]["nodes"].keys() + + +func get_slot_count(did : int, nid : int) -> int: + assert(self.has_did(did)) + assert(self.has_nid(did, nid)) + return self._story[did]["nodes"][nid]["links"].size() + + +func get_slots(did : int, nid : int) -> Array: + assert(self.has_did(did)) + assert(self.has_nid(did, nid)) + return self._story[did]["nodes"][nid]["links"].keys() + + +func get_text(did : int, nid : int) -> String: + assert(self.has_did(did)) + assert(self.has_nid(did, nid)) + return self._story[did]["nodes"][nid]["text"] + + +func has_did(did : int) -> bool: + return self._story.has(did) + + +func has_nid(did : int, nid : int) -> bool: + assert(self.has_did(did)) + return self._story[did]["nodes"].has(nid) + + +func has_record_name(name : String) -> bool: + return self._names.has(name) + + +func has_slot(did: int, nid : int, slot : int) -> bool: + assert(self.has_did(did)) + assert(self.has_nid(did, nid)) + return self._story[did]["nodes"][nid]["links"].has(slot) + + +func read(file): + if not "TYPE" in file: + print_debug("Story reader failed to open file: ", str(file.filename)) + return + if file.TYPE == "EXP_Story_editor": + print("WARNING: Using editor story, this is not recommended in production!") + elif not file.TYPE == "EXP_Baked_Story": + print_debug("Story reader failed to open file: ", str(file.filename)) + return + self._story = file.story + self._names = file.names diff --git a/client/addons/EXP-System-Dialog/Resource_BakedStory/EXP_BakedStory.gd b/client/addons/EXP-System-Dialog/Resource_BakedStory/EXP_BakedStory.gd new file mode 100644 index 0000000..53c929c --- /dev/null +++ b/client/addons/EXP-System-Dialog/Resource_BakedStory/EXP_BakedStory.gd @@ -0,0 +1,6 @@ +tool +extends Resource + +export(String) var TYPE = "EXP_Baked_Story" +export(Dictionary) var story : Dictionary +export(Dictionary) var names : Dictionary diff --git a/client/addons/EXP-System-Dialog/Resource_EditorStory/EXP_EditorStory.gd b/client/addons/EXP-System-Dialog/Resource_EditorStory/EXP_EditorStory.gd new file mode 100644 index 0000000..ec28dae --- /dev/null +++ b/client/addons/EXP-System-Dialog/Resource_EditorStory/EXP_EditorStory.gd @@ -0,0 +1,9 @@ +tool +extends Resource + +export(String) var TYPE = "EXP_Story_editor" + +export(Dictionary) var names : Dictionary +export(Dictionary) var story : Dictionary +export(Array) var available_dids : Array +export(Array) var groups : Array diff --git a/client/addons/EXP-System-Dialog/Resource_NodeTemplate/EXP_NodeTemplate.gd b/client/addons/EXP-System-Dialog/Resource_NodeTemplate/EXP_NodeTemplate.gd new file mode 100644 index 0000000..799b585 --- /dev/null +++ b/client/addons/EXP-System-Dialog/Resource_NodeTemplate/EXP_NodeTemplate.gd @@ -0,0 +1,6 @@ +tool +extends Resource + +var TYPE = "EXP_Dialog_Node_Template_editor" + +export(String) var template diff --git a/client/addons/EXP-System-Dialog/Story Editor/Dialog Record/Dialog_Record.tscn b/client/addons/EXP-System-Dialog/Story Editor/Dialog Record/Dialog_Record.tscn new file mode 100644 index 0000000..aee1865 --- /dev/null +++ b/client/addons/EXP-System-Dialog/Story Editor/Dialog Record/Dialog_Record.tscn @@ -0,0 +1,109 @@ +[gd_scene load_steps=4 format=2] + +[ext_resource path="res://addons/EXP-System-Dialog/Story Editor/Dialog Record/dialog_record.gd" type="Script" id=1] + +[sub_resource type="StyleBoxFlat" id=1] +bg_color = Color( 0.6, 0.6, 0.6, 0 ) +border_color = Color( 0.8, 0.8, 0.8, 0 ) +shadow_color = Color( 0, 0, 0, 0 ) + +[sub_resource type="StyleBoxFlat" id=2] +bg_color = Color( 0.6, 0.6, 0.6, 0 ) +border_color = Color( 0.8, 0.8, 0.8, 0 ) +shadow_color = Color( 0, 0, 0, 0 ) + +[node name="Dialog_Record" type="Control"] +anchor_right = 1.0 +rect_min_size = Vector2( 0, 28 ) +script = ExtResource( 1 ) +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="ColorRect" type="ColorRect" parent="."] +anchor_right = 1.0 +anchor_bottom = 1.0 +rect_min_size = Vector2( 0, 24 ) +size_flags_horizontal = 3 +color = Color( 1, 1, 1, 0.12549 ) +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="HBoxContainer" type="HBoxContainer" parent="ColorRect"] +anchor_right = 1.0 +anchor_bottom = 1.0 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="CheckBox" type="CheckBox" parent="ColorRect/HBoxContainer"] +margin_right = 24.0 +margin_bottom = 28.0 + +[node name="DID_LBL" type="Label" parent="ColorRect/HBoxContainer"] +margin_left = 28.0 +margin_top = 7.0 +margin_right = 85.0 +margin_bottom = 21.0 +text = "DID: 101" + +[node name="VSeparator" type="VSeparator" parent="ColorRect/HBoxContainer"] +margin_left = 89.0 +margin_right = 93.0 +margin_bottom = 28.0 + +[node name="Edit_BTN" type="Button" parent="ColorRect/HBoxContainer"] +margin_left = 97.0 +margin_right = 138.0 +margin_bottom = 28.0 +hint_tooltip = "Edit this dialog record in the Dialog Editor." +text = "EDIT" +flat = true + +[node name="VSeparator4" type="VSeparator" parent="ColorRect/HBoxContainer"] +margin_left = 142.0 +margin_right = 146.0 +margin_bottom = 28.0 + +[node name="Name_BTN" type="Button" parent="ColorRect/HBoxContainer"] +margin_left = 150.0 +margin_right = 200.0 +margin_bottom = 28.0 +hint_tooltip = "Edit this dialog record in the Dialog Editor." +text = "NAME" +flat = true + +[node name="VSeparator2" type="VSeparator" parent="ColorRect/HBoxContainer"] +margin_left = 204.0 +margin_right = 208.0 +margin_bottom = 28.0 + +[node name="Group_BTN" type="OptionButton" parent="ColorRect/HBoxContainer"] +margin_left = 212.0 +margin_right = 274.0 +margin_bottom = 28.0 +hint_tooltip = "View groups applied to this dialog record." +text = "TAGS" +flat = true + +[node name="VSeparator3" type="VSeparator" parent="ColorRect/HBoxContainer"] +margin_left = 278.0 +margin_right = 282.0 +margin_bottom = 28.0 + +[node name="Human_Readable_LineEdit" type="LineEdit" parent="ColorRect/HBoxContainer"] +margin_left = 286.0 +margin_right = 476.0 +margin_bottom = 28.0 +custom_styles/focus = SubResource( 1 ) +custom_styles/normal = SubResource( 2 ) +text = "Human Readable Description" +expand_to_text_length = true +context_menu_enabled = false +[connection signal="toggled" from="ColorRect/HBoxContainer/CheckBox" to="." method="_on_CheckBox_toggled"] +[connection signal="pressed" from="ColorRect/HBoxContainer/Edit_BTN" to="." method="_on_Edit_BTN_pressed"] +[connection signal="pressed" from="ColorRect/HBoxContainer/Name_BTN" to="." method="_on_Name_BTN_pressed"] +[connection signal="pressed" from="ColorRect/HBoxContainer/Group_BTN" to="." method="_on_Group_BTN_pressed"] +[connection signal="focus_exited" from="ColorRect/HBoxContainer/Human_Readable_LineEdit" to="." method="_on_Human_Readable_LineEdit_focus_exited"] +[connection signal="text_changed" from="ColorRect/HBoxContainer/Human_Readable_LineEdit" to="." method="_on_Human_Readable_LineEdit_text_changed"] diff --git a/client/addons/EXP-System-Dialog/Story Editor/Dialog Record/dialog_record.gd b/client/addons/EXP-System-Dialog/Story Editor/Dialog Record/dialog_record.gd new file mode 100644 index 0000000..b31f117 --- /dev/null +++ b/client/addons/EXP-System-Dialog/Story Editor/Dialog Record/dialog_record.gd @@ -0,0 +1,91 @@ +tool +extends Control + +signal changed_human_readable_text(did, text) +signal checked(this) +signal edit_pressed(did) +signal rename_pressed(this) +signal unchecked(this) + +onready var _DID_LBL = self.get_node("ColorRect/HBoxContainer/DID_LBL") +onready var _Human_Readable_LineEdit = self.get_node("ColorRect/HBoxContainer/Human_Readable_LineEdit") +onready var _Group_List = self.get_node("ColorRect/HBoxContainer/Group_BTN") +onready var _Name_BTN = self.get_node("ColorRect/HBoxContainer/Name_BTN") +onready var _Select_CheckBox = self.get_node("ColorRect/HBoxContainer/CheckBox") + +var _did : int = -1 +var _Story_Editor + +#Virtual Methods + +func _ready(): + self.update_human_readable_description("Human Readable Description") + +#Callback Methods + +func _on_CheckBox_toggled(button_pressed): + if button_pressed: + self.emit_signal("checked", self) + else: + self.emit_signal("unchecked", self) + + +func _on_Edit_BTN_pressed(): + self.emit_signal("edit_pressed", self._did) + + +func _on_Group_BTN_pressed(): + var groups = self._Story_Editor.dialog_get_groups(self._did) + self._Group_List.clear() + self._Group_List.text = "TAGS" + for group in groups: + self._Group_List.get_popup().add_item(group) + for idx in range(self._Group_List.get_item_count()): + self._Group_List.set_item_disabled(idx, true) + + +func _on_Human_Readable_LineEdit_focus_exited(): + self._Human_Readable_LineEdit.deselect() + + +func _on_Human_Readable_LineEdit_text_changed(new_text): + self.emit_signal("changed_human_readable_text", self._did, new_text) + + +func _on_Name_BTN_pressed(): + emit_signal("rename_pressed", self) + +#Public Methods + +func check(): + self._Select_CheckBox.pressed = true + + +func get_did(): + return self._did + + +func get_record_name(): + return self._Name_BTN.text + + +func set_did(new_did : int): + self._did = new_did + self._DID_LBL.text = "DID: " + str(new_did) + + +func set_record_name(rename : String): + self._Name_BTN.text = rename + + +func set_story_editor(editor): + self._Story_Editor = editor + + +func uncheck(): + self._Select_CheckBox.pressed = false + + +func update_human_readable_description(new_text): + self._Human_Readable_LineEdit.text = new_text + self.emit_signal("changed_human_readable_text", self._did, new_text) diff --git a/client/addons/EXP-System-Dialog/Story Editor/Rename Record Box/Rename_Record_Box.tscn b/client/addons/EXP-System-Dialog/Story Editor/Rename Record Box/Rename_Record_Box.tscn new file mode 100644 index 0000000..c9e6cbe --- /dev/null +++ b/client/addons/EXP-System-Dialog/Story Editor/Rename Record Box/Rename_Record_Box.tscn @@ -0,0 +1,92 @@ +[gd_scene load_steps=2 format=2] + +[ext_resource path="res://addons/EXP-System-Dialog/Story Editor/Rename Record Box/rename_record_box.gd" type="Script" id=1] + +[node name="Record_Rename_Box" type="WindowDialog"] +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +margin_left = -193.0 +margin_top = -64.0 +margin_right = 193.0 +margin_bottom = 52.0 +rect_min_size = Vector2( 386, 116 ) +size_flags_horizontal = 3 +size_flags_vertical = 3 +window_title = "Rename Dialog Record" +script = ExtResource( 1 ) +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="MarginContainer" type="MarginContainer" parent="."] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 8.0 +margin_top = 8.0 +margin_right = -8.0 +margin_bottom = -8.0 +size_flags_horizontal = 3 +size_flags_vertical = 3 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"] +margin_right = 370.0 +margin_bottom = 100.0 +size_flags_horizontal = 3 +size_flags_vertical = 3 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="Name_LBL" type="Label" parent="MarginContainer/VBoxContainer"] +margin_right = 370.0 +margin_bottom = 14.0 +text = "Name:" + +[node name="Spacer2" type="Control" parent="MarginContainer/VBoxContainer"] +margin_top = 18.0 +margin_right = 370.0 +margin_bottom = 22.0 +rect_min_size = Vector2( 0, 4 ) + +[node name="Name_LineEdit" type="LineEdit" parent="MarginContainer/VBoxContainer"] +margin_top = 26.0 +margin_right = 370.0 +margin_bottom = 50.0 + +[node name="Spacer3" type="Control" parent="MarginContainer/VBoxContainer"] +margin_top = 54.0 +margin_right = 370.0 +margin_bottom = 58.0 +rect_min_size = Vector2( 0, 4 ) + +[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/VBoxContainer"] +margin_top = 62.0 +margin_right = 370.0 +margin_bottom = 82.0 +alignment = 1 + +[node name="Cancel_BTN" type="Button" parent="MarginContainer/VBoxContainer/HBoxContainer"] +margin_left = 106.0 +margin_right = 160.0 +margin_bottom = 20.0 +text = "Cancel" + +[node name="Spacer" type="Control" parent="MarginContainer/VBoxContainer/HBoxContainer"] +margin_left = 164.0 +margin_right = 196.0 +margin_bottom = 20.0 +rect_min_size = Vector2( 32, 0 ) + +[node name="Rename_BTN" type="Button" parent="MarginContainer/VBoxContainer/HBoxContainer"] +margin_left = 200.0 +margin_right = 264.0 +margin_bottom = 20.0 +text = "Rename" +[connection signal="text_entered" from="MarginContainer/VBoxContainer/Name_LineEdit" to="." method="_on_Name_LineEdit_text_entered"] +[connection signal="pressed" from="MarginContainer/VBoxContainer/HBoxContainer/Cancel_BTN" to="." method="_on_Cancel_BTN_pressed"] +[connection signal="pressed" from="MarginContainer/VBoxContainer/HBoxContainer/Rename_BTN" to="." method="_on_Rename_BTN_pressed"] diff --git a/client/addons/EXP-System-Dialog/Story Editor/Rename Record Box/rename_record_box.gd b/client/addons/EXP-System-Dialog/Story Editor/Rename Record Box/rename_record_box.gd new file mode 100644 index 0000000..1550532 --- /dev/null +++ b/client/addons/EXP-System-Dialog/Story Editor/Rename Record Box/rename_record_box.gd @@ -0,0 +1,32 @@ +tool +extends WindowDialog + +signal rename_BTN_pressed(text) + +onready var _Name_LineEdit = self.get_node("MarginContainer/VBoxContainer/Name_LineEdit") + +var _Target_Record = null + +#Public Methods + +func get_target_record(): + return self._Target_Record + + +func set_target_record(record): + self._Target_Record = record + self._Name_LineEdit.text = record.get_record_name() + +#Callback Methods + +func _on_Cancel_BTN_pressed(): + self.visible = false + + +func _on_Rename_BTN_pressed(): + self.visible = false + self.emit_signal("rename_BTN_pressed", self._Name_LineEdit.text) + + +func _on_Name_LineEdit_text_entered(new_text): + self._on_Rename_BTN_pressed() diff --git a/client/addons/EXP-System-Dialog/Story Editor/Story_Editor.tscn b/client/addons/EXP-System-Dialog/Story Editor/Story_Editor.tscn new file mode 100644 index 0000000..5f5dafa --- /dev/null +++ b/client/addons/EXP-System-Dialog/Story Editor/Story_Editor.tscn @@ -0,0 +1,268 @@ +[gd_scene load_steps=2 format=2] + +[ext_resource path="res://addons/EXP-System-Dialog/Story Editor/story_editor.gd" type="Script" id=1] + +[node name="Story_Editor" type="Control"] +anchor_right = 1.0 +anchor_bottom = 1.0 +rect_min_size = Vector2( 0, 256 ) +script = ExtResource( 1 ) +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="VBoxContainer" type="VBoxContainer" parent="."] +anchor_right = 1.0 +anchor_bottom = 1.0 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"] +margin_right = 1024.0 +margin_bottom = 20.0 + +[node name="Close_BTN" type="Button" parent="VBoxContainer/HBoxContainer"] +margin_right = 47.0 +margin_bottom = 20.0 +text = "Close" + +[node name="VSeparator5" type="VSeparator" parent="VBoxContainer/HBoxContainer"] +margin_left = 51.0 +margin_right = 55.0 +margin_bottom = 20.0 + +[node name="Story" type="MenuButton" parent="VBoxContainer/HBoxContainer"] +margin_left = 59.0 +margin_right = 103.0 +margin_bottom = 20.0 +text = "Story" +items = [ "New Story", null, 0, false, false, 0, 0, null, "", false, "Load Story", null, 0, false, false, 1, 0, null, "", false, "Save Story As", null, 0, false, false, 2, 0, null, "", false, "Bake Story As", null, 0, false, false, 3, 0, null, "", false, "Save CSV As", null, 0, false, false, 4, 0, null, "", false, "Load CSV", null, 0, false, false, 5, 0, null, "", false ] + +[node name="VSeparator" type="VSeparator" parent="VBoxContainer/HBoxContainer"] +margin_left = 107.0 +margin_right = 111.0 +margin_bottom = 20.0 + +[node name="Label2" type="Label" parent="VBoxContainer/HBoxContainer"] +margin_left = 115.0 +margin_top = 3.0 +margin_right = 163.0 +margin_bottom = 17.0 +text = "Dialog: " + +[node name="Create_Dialog_BTN" type="Button" parent="VBoxContainer/HBoxContainer"] +margin_left = 167.0 +margin_right = 220.0 +margin_bottom = 20.0 +hint_tooltip = "Create a new dialog record." +text = "Create" + +[node name="Delete_Dialog_BTN" type="Button" parent="VBoxContainer/HBoxContainer"] +margin_left = 224.0 +margin_right = 279.0 +margin_bottom = 20.0 +hint_tooltip = "Delete all checked dialog records." +text = "Delete" + +[node name="Check_All_BTN" type="Button" parent="VBoxContainer/HBoxContainer"] +margin_left = 283.0 +margin_right = 354.0 +margin_bottom = 20.0 +hint_tooltip = "Check all currently visible dialog records." +text = "Check All" + +[node name="UnCheck_All_BTN" type="Button" parent="VBoxContainer/HBoxContainer"] +margin_left = 358.0 +margin_right = 447.0 +margin_bottom = 20.0 +hint_tooltip = "Uncheck all currently visible dialog records." +text = "UnCheck All" + +[node name="VSeparator2" type="VSeparator" parent="VBoxContainer/HBoxContainer"] +margin_left = 451.0 +margin_right = 455.0 +margin_bottom = 20.0 + +[node name="Label3" type="Label" parent="VBoxContainer/HBoxContainer"] +margin_left = 459.0 +margin_top = 3.0 +margin_right = 495.0 +margin_bottom = 17.0 +text = "Tags: " + +[node name="Group_Manager_BTN" type="Button" parent="VBoxContainer/HBoxContainer"] +margin_left = 499.0 +margin_right = 590.0 +margin_bottom = 20.0 +hint_tooltip = "Toggles the Group Manager open and closed. Use the Group Manager to add and delete groups that can be applied to dialog records in this story project." +toggle_mode = true +text = "Tag Manager" + +[node name="VSeparator3" type="VSeparator" parent="VBoxContainer/HBoxContainer"] +margin_left = 594.0 +margin_right = 598.0 +margin_bottom = 20.0 + +[node name="Apply_Group_BTN" type="Button" parent="VBoxContainer/HBoxContainer"] +margin_left = 602.0 +margin_right = 650.0 +margin_bottom = 20.0 +hint_tooltip = "Apply the group selected in the Group selector menu to all checked dialog records." +text = "Apply" + +[node name="Remove_Group_BTN" type="Button" parent="VBoxContainer/HBoxContainer"] +margin_left = 654.0 +margin_right = 718.0 +margin_bottom = 20.0 +hint_tooltip = "Remove the group selected in the Group selector menu from all checked dialog records if the group is applied to them." +text = "Remove" + +[node name="Group_Selector_BTN" type="OptionButton" parent="VBoxContainer/HBoxContainer"] +margin_left = 722.0 +margin_right = 779.0 +margin_bottom = 20.0 +hint_tooltip = "Select a group to apply or remove from dialog records." +text = "Tags" + +[node name="VSeparator4" type="VSeparator" parent="VBoxContainer/HBoxContainer"] +margin_left = 783.0 +margin_right = 787.0 +margin_bottom = 20.0 + +[node name="HBoxContainer3" type="HBoxContainer" parent="VBoxContainer"] +margin_top = 24.0 +margin_right = 1024.0 +margin_bottom = 572.0 +size_flags_horizontal = 3 +size_flags_vertical = 3 + +[node name="Panel" type="Panel" parent="VBoxContainer/HBoxContainer3"] +margin_right = 1024.0 +margin_bottom = 548.0 +size_flags_horizontal = 3 +size_flags_vertical = 3 + +[node name="VScrollBar" type="ScrollContainer" parent="VBoxContainer/HBoxContainer3/Panel"] +anchor_right = 1.0 +anchor_bottom = 1.0 +rect_min_size = Vector2( 0, 128 ) +size_flags_vertical = 3 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="Dialog_Record_Root" type="VBoxContainer" parent="VBoxContainer/HBoxContainer3/Panel/VScrollBar"] +margin_right = 1024.0 +margin_bottom = 548.0 +rect_min_size = Vector2( 0, 128 ) +size_flags_horizontal = 3 +size_flags_vertical = 3 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="Group_Manager" type="VBoxContainer" parent="VBoxContainer/HBoxContainer3"] +visible = false +margin_left = 824.0 +margin_right = 1080.0 +margin_bottom = 716.0 +rect_min_size = Vector2( 256, 0 ) +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/HBoxContainer3/Group_Manager"] +margin_right = 256.0 +margin_bottom = 24.0 + +[node name="Add_Group_LineEdit" type="LineEdit" parent="VBoxContainer/HBoxContainer3/Group_Manager/HBoxContainer"] +margin_right = 156.0 +margin_bottom = 24.0 +rect_min_size = Vector2( 128, 0 ) +size_flags_horizontal = 3 + +[node name="Add_Group_BTN" type="Button" parent="VBoxContainer/HBoxContainer3/Group_Manager/HBoxContainer"] +margin_left = 160.0 +margin_right = 197.0 +margin_bottom = 24.0 +hint_tooltip = "Add a group to this story project." +text = "Add" +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="Delete_Group_BTN" type="Button" parent="VBoxContainer/HBoxContainer3/Group_Manager/HBoxContainer"] +margin_left = 201.0 +margin_right = 256.0 +margin_bottom = 24.0 +hint_tooltip = "Remove the selected group from this story project." +text = "Delete" + +[node name="Group_ItemList" type="ItemList" parent="VBoxContainer/HBoxContainer3/Group_Manager"] +margin_top = 28.0 +margin_right = 256.0 +margin_bottom = 716.0 +size_flags_vertical = 3 + +[node name="HBoxContainer2" type="HBoxContainer" parent="VBoxContainer"] +margin_top = 576.0 +margin_right = 1024.0 +margin_bottom = 600.0 +rect_min_size = Vector2( 0, 24 ) + +[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer2"] +margin_top = 5.0 +margin_right = 65.0 +margin_bottom = 19.0 +text = "Search by " + +[node name="Search_OptionButton" type="OptionButton" parent="VBoxContainer/HBoxContainer2"] +margin_left = 69.0 +margin_right = 233.0 +margin_bottom = 24.0 +text = "Human Readable LBL" +items = [ "Human Readable LBL", null, false, 0, null, "DID", null, false, 1, null ] +selected = 0 + +[node name="Search_LineEdit" type="LineEdit" parent="VBoxContainer/HBoxContainer2"] +margin_left = 237.0 +margin_right = 493.0 +margin_bottom = 24.0 +rect_min_size = Vector2( 256, 0 ) + +[node name="Filter_MenuButton" type="MenuButton" parent="VBoxContainer/HBoxContainer2"] +margin_left = 497.0 +margin_right = 537.0 +margin_bottom = 24.0 +hint_tooltip = "Select the groups that appear listed in the story editor." +keep_pressed_outside = true +text = "Tags" +flat = false +items = [ "-No Tags-", null, 1, true, false, 0, 0, null, "", false ] + +[node name="VSeparator" type="VSeparator" parent="VBoxContainer/HBoxContainer2"] +margin_left = 541.0 +margin_right = 545.0 +margin_bottom = 24.0 + +[node name="Filename_LBL" type="Label" parent="VBoxContainer/HBoxContainer2"] +margin_left = 549.0 +margin_top = 5.0 +margin_right = 640.0 +margin_bottom = 19.0 +text = "Unsaved Story" +[connection signal="pressed" from="VBoxContainer/HBoxContainer/Close_BTN" to="." method="_on_Close_BTN_pressed"] +[connection signal="pressed" from="VBoxContainer/HBoxContainer/Create_Dialog_BTN" to="." method="_on_Create_Dialog_BTN_pressed"] +[connection signal="pressed" from="VBoxContainer/HBoxContainer/Delete_Dialog_BTN" to="." method="_on_Delete_Dialog_BTN_pressed"] +[connection signal="pressed" from="VBoxContainer/HBoxContainer/Check_All_BTN" to="." method="_on_Check_All_BTN_pressed"] +[connection signal="pressed" from="VBoxContainer/HBoxContainer/UnCheck_All_BTN" to="." method="_on_Uncheck_All_BTN_pressed"] +[connection signal="toggled" from="VBoxContainer/HBoxContainer/Group_Manager_BTN" to="." method="_on_Group_Manager_BTN_toggled"] +[connection signal="pressed" from="VBoxContainer/HBoxContainer/Apply_Group_BTN" to="." method="_on_Apply_Group_BTN_pressed"] +[connection signal="pressed" from="VBoxContainer/HBoxContainer/Remove_Group_BTN" to="." method="_on_Remove_Group_BTN_pressed"] +[connection signal="pressed" from="VBoxContainer/HBoxContainer/Group_Selector_BTN" to="." method="_on_Group_Selector_BTN_pressed"] +[connection signal="text_entered" from="VBoxContainer/HBoxContainer3/Group_Manager/HBoxContainer/Add_Group_LineEdit" to="." method="_on_Add_Group_LineEdit_text_entered"] +[connection signal="pressed" from="VBoxContainer/HBoxContainer3/Group_Manager/HBoxContainer/Add_Group_BTN" to="." method="_on_Add_Group_BTN_pressed"] +[connection signal="pressed" from="VBoxContainer/HBoxContainer3/Group_Manager/HBoxContainer/Delete_Group_BTN" to="." method="_on_Delete_Group_BTN_pressed"] +[connection signal="item_selected" from="VBoxContainer/HBoxContainer2/Search_OptionButton" to="." method="_on_Search_OptionButton_item_selected"] +[connection signal="text_changed" from="VBoxContainer/HBoxContainer2/Search_LineEdit" to="." method="_on_Search_LineEdit_text_changed"] diff --git a/client/addons/EXP-System-Dialog/Story Editor/story_editor.gd b/client/addons/EXP-System-Dialog/Story Editor/story_editor.gd new file mode 100644 index 0000000..030a6b2 --- /dev/null +++ b/client/addons/EXP-System-Dialog/Story Editor/story_editor.gd @@ -0,0 +1,753 @@ +tool +extends Control + +signal changed_story +signal close_pressed +signal dialog_edit_pressed(story, did) + +onready var _Dialog_Record_Root = self.get_node("VBoxContainer/HBoxContainer3/Panel/VScrollBar/Dialog_Record_Root") +onready var _Dir = Directory.new() +onready var _Filename_LBL = self.get_node("VBoxContainer/HBoxContainer2/Filename_LBL") +onready var _Filter_Menu = self.get_node("VBoxContainer/HBoxContainer2/Filter_MenuButton") +onready var _Group_List = self.get_node("VBoxContainer/HBoxContainer3/Group_Manager/Group_ItemList") +onready var _Group_Manager_Panel = self.get_node("VBoxContainer/HBoxContainer3/Group_Manager") +onready var _Group_Selector = self.get_node("VBoxContainer/HBoxContainer/Group_Selector_BTN") +onready var _New_Group_LineEdit = self.get_node("VBoxContainer/HBoxContainer3/Group_Manager/HBoxContainer/Add_Group_LineEdit") +onready var _Search_LineEdit = self.get_node("VBoxContainer/HBoxContainer2/Search_LineEdit") +onready var _Search_Option_BTN = self.get_node("VBoxContainer/HBoxContainer2/Search_OptionButton") +onready var _Story_Menu = self.get_node("VBoxContainer/HBoxContainer/Story") + +var _Dialog_Record = preload("res://addons/EXP-System-Dialog/Story Editor/Dialog Record/Dialog_Record.tscn") +var _EXP_Baked_Story = preload("res://addons/EXP-System-Dialog/Resource_BakedStory/EXP_BakedStory.gd") +var _EXP_Story = preload("res://addons/EXP-System-Dialog/Resource_EditorStory/EXP_EditorStory.gd") +var _Record_Rename_Box_TSCN = preload("res://addons/EXP-System-Dialog/Story Editor/Rename Record Box/Rename_Record_Box.tscn") + +var _available_dids : Array +var _Bake_Story_As : EditorFileDialog +var _checked_dialogs : Array = [] +var _groups : Array +var _Load_CSV : EditorFileDialog +var _Load_Story : EditorFileDialog +var _record_names : Dictionary +var _Record_Rename_Box +var _Save_CSV_As : EditorFileDialog +var _Save_Story_As : EditorFileDialog +var _story : Dictionary + +#Virtual Methods + +func _ready(): + self._create_rename_box() + self._populate_story_menu() + self._setup_dialogs() + self._Filter_Menu.get_popup().connect("index_pressed", self, "_on_Filter_Menu_index_pressed") + self._Filter_Menu.get_popup().hide_on_checkable_item_selection = false + self._populate_filter_menu() + self._populate_searchby_menu() + +#Callback Methods + +func _on_Add_Group_BTN_pressed(): + self._add_group() + + +func _on_Add_Group_LineEdit_text_entered(new_text): + self._add_group() + + +func _on_Apply_Group_BTN_pressed(): + var id = self._Group_Selector.get_selected_id() + if id == -1: + return + + var idx = self._Group_Selector.get_item_index(id) + var group = self._Group_Selector.get_popup().get_item_text(idx) + for record in self._checked_dialogs.duplicate(): + var did = record.get_did() + self._dialog_apply_group(did, group) + record.uncheck() + self.emit_signal("changed_story") + + +func _on_Bake_Story_As_file_selected(filename : String): + self._bake_data_to(filename) + + +func _on_Bake_Story_BTN_pressed(): + self._Bake_Story_As.popup_centered_ratio(0.7) + + +func _on_Check_All_BTN_pressed(): + var records = self._Dialog_Record_Root.get_children() + for record in records: + if record.visible: + record.check() + + +func _on_Close_BTN_pressed(): + self.emit_signal("close_pressed") + + +func _on_Create_Dialog_BTN_pressed(): + self._create_dialog_record() + + +func _on_Delete_Dialog_BTN_pressed(): + self._delete_checked_dialogs() + + +func _on_Delete_Group_BTN_pressed(): + var idxs = self._Group_List.get_selected_items() + var group + for idx in idxs: + group = self._Group_List.get_item_text(idx) + self._Group_List.remove_item(idx) + self._delete_group(group) + self._populate_group_selector() + self._populate_filter_menu() + + +func _on_Dialog_changed_human_readable_text(did : int, new_text : String): + self.set_dialog_property(did, "human_readable_description", new_text) + self.emit_signal("changed_story") + + +func _on_Dialog_checked(dialog): + self._checked_dialogs.push_front(dialog) + + +func _on_Dialog_edit_pressed(did : int): + self.emit_signal("dialog_edit_pressed", self, did) + + +func _on_Dialog_unchecked(dialog): + self._checked_dialogs.erase(dialog) + + +func _on_Filter_Menu_index_pressed(idx): + var checked = self._Filter_Menu.get_popup().is_item_checked(idx) + if not checked: + self._Filter_Menu.get_popup().set_item_checked(idx, true) + else: + self._Filter_Menu.get_popup().set_item_checked(idx, false) + self._update_filter() + + +func _on_Group_Manager_BTN_toggled(button_pressed : bool): + if button_pressed: + self._Group_Manager_Panel.visible = true + else: + self._Group_Manager_Panel.visible = false + + +func _on_Group_Selector_BTN_pressed(): + self._populate_group_selector() + + +func _on_Load_CSV_BTN_pressed(): + self._Load_CSV.popup_centered_ratio(0.7) + + +func _on_Load_CSV_file_selected(filepath : String): + var csv_file = File.new() + var status = csv_file.open(filepath, File.READ) + + if not status == OK: + print_debug("EXP_Story_Editor: Error loading file \"" + filepath + "\".") + return + + csv_file.get_csv_line() + + while not csv_file.eof_reached(): + var line = csv_file.get_csv_line() + + if line.empty(): + continue + + var did = int(line[0]) + var nid = int(line[1]) + var dialog = String(line[2]) + + if not self._story.has(did): + continue + if not self._story[did]["nodes"].has(nid): + continue + + self._story[did]["nodes"][nid]["text"] = dialog + + csv_file.close() + + +func _on_Load_Story_BTN_pressed(): + self._Load_Story.popup_centered_ratio(0.7) + + +func _on_Load_Story_file_selected(filename : String): + var file_data = load(filename) + if not file_data.TYPE == "EXP_Story_editor": + return + + self._clear_story() + self._load_data_from(file_data) + self._Filename_LBL.text = filename.get_file() + + for group in self._groups: + self._Group_List.add_item(group) + self._populate_filter_menu() + + for did in self.get_dids(): + var new_dialog_record = _Dialog_Record.instance() + self._Dialog_Record_Root.add_child(new_dialog_record) + new_dialog_record.set_story_editor(self) + new_dialog_record.connect("checked", self, "_on_Dialog_checked") + new_dialog_record.connect("unchecked", self, "_on_Dialog_unchecked") + new_dialog_record.connect("changed_human_readable_text", self, + "_on_Dialog_changed_human_readable_text") + new_dialog_record.connect("edit_pressed", self, "_on_Dialog_edit_pressed") + new_dialog_record.connect("rename_pressed", self, "_on_Record_Rename_pressed") + + new_dialog_record.set_did(did) + var human_readable_description = self.get_dialog_property(did, "human_readable_description") + new_dialog_record.update_human_readable_description(human_readable_description) + + if self._story[did].has("name"): + var record_name = self._story[did]["name"] + new_dialog_record.set_record_name(record_name) + + +func _on_New_Story_BTN_pressed(): + self._clear_story() + + +func _on_Record_Rename_pressed(record): + self._Record_Rename_Box.set_target_record(record) + self._Record_Rename_Box.visible = true + + +func _on_Remove_Group_BTN_pressed(): + var id = self._Group_Selector.get_selected_id() + if id == -1: + return + + var idx = self._Group_Selector.get_item_index(id) + var group = self._Group_Selector.get_popup().get_item_text(idx) + for record in self._checked_dialogs.duplicate(): + var did = record.get_did() + self._dialog_remove_group(did, group) + record.uncheck() + self.emit_signal("changed_story") + + +func _on_Rename_Box_Rename(rename : String): + var record = self._Record_Rename_Box.get_target_record() + var old_name = record.get_record_name() + var record_did = record.get_did() + + if rename.empty() or rename == "NAME": + record.set_record_name("NAME") + self._story[record_did].erase("name") + self._record_names.erase(old_name) + return + + if self._record_names.has(rename): + return + + self._record_names.erase(old_name) + + self._record_names[rename] = record_did + self._story[record_did]["name"] = rename + record.set_record_name(rename) + + +func _on_Save_CSV_BTN_pressed(): + self._Save_CSV_As.popup_centered_ratio(0.7) + + +func _on_Save_CVS_As_file_selected(filepath : String): + var csv_file = File.new() + var status = csv_file.open(filepath, File.WRITE) + + if not status == OK: + print_debug("EXP_Story_Editor: Error saving csv file \"" + filepath + "\".") + return + + csv_file.store_csv_line(["DID", "NID", "Dialog"], ",") + + for did in self._story.keys(): + for nid in self._story[did]["nodes"].keys(): + var dialog = self._story[did]["nodes"][nid]["text"] + csv_file.store_csv_line([did, nid, dialog], ",") + + csv_file.close() + + +func _on_Save_Story_As_file_selected(filename : String): + self._save_data_to(filename) + self._Filename_LBL.text = filename.get_file() + + +func _on_Save_Story_BTN_pressed(): + self._Save_Story_As.popup_centered_ratio(0.7) + + +func _on_Search_LineEdit_text_changed(new_text : String): + self._update_filter() + + +func _on_Search_OptionButton_item_selected(id): + self._update_filter() + + +func _on_story_menu_option_pressed(id): + match id: + 0: + self._on_New_Story_BTN_pressed() + 1: + self._on_Load_Story_BTN_pressed() + 2: + self._on_Save_Story_BTN_pressed() + 3: + self._on_Bake_Story_BTN_pressed() + 4: + self._on_Save_CSV_BTN_pressed() + 5: + self._on_Load_CSV_BTN_pressed() + + +func _on_Uncheck_All_BTN_pressed(): + var records = self._Dialog_Record_Root.get_children() + for record in records: + if record.visible: + record.uncheck() + +#Public Methods + +func create_node(did : int, type : String) -> int: + var new_nid = self._generate_nid(did) + var node_data = {"type": type, "text": "", "graph_offset": Vector2(40, 40), + "rect_size": Vector2(0,0) ,"links": {}, "slot_amount": 1} + self._story[did]["nodes"][new_nid] = node_data + return new_nid + +func dialog_get_groups(did : int): + return self._story[did]["groups"] + + +func erase_all_links(did: int, nid : int): + self._story[did]["nodes"][nid]["links"].clear() + + +func erase_dialog(did : int): + self._story.erase(did) + self._make_did_available(did) + + +func erase_link(did : int, nid : int, slot : int): + self._story[did]["nodes"][nid]["links"].erase(slot) + + +func erase_node(did :int, nid :int): + self._story[did]["nodes"].erase(nid) + self._make_nid_available(did, nid) + + +func get_dialog_property(did : int, property: String): + return self._story[did][property] + + +func get_dids(): + return self._story.keys() + + +func get_link_slots(did : int, nid : int): + return self._story[did]["nodes"][nid]["links"].keys() + + +func get_nid_link_from(did : int, nid: int, slot : int): + return self._story[did]["nodes"][nid]["links"][slot] + + +func get_nids(did : int): + return self._story[did]["nodes"].keys() + + +func get_node_property(did : int, nid : int, property: String): + return self._story[did]["nodes"][nid][property] + + +func set_dialog_property(did : int, property : String , data): + self._story[did][property] = data + + +func set_link(did : int, this_nid : int, slot : int, that_nid : int): + self._story[did]["nodes"][this_nid]["links"][slot] = that_nid + + +func set_node_property(did : int, nid : int, property : String , data): + self._story[did]["nodes"][nid][property] = data + + +func set_node_slot_count(did : int, nid : int, amount : int): + self._story[did]["nodes"][nid]["slot_amount"] = amount + +#Private Methods + +func _add_group(): + var new_group_name = self._New_Group_LineEdit.text + if new_group_name == "" or self._groups.has(new_group_name): + return + + self._groups.push_back(new_group_name) + self._New_Group_LineEdit.text = "" + self._Group_List.add_item(new_group_name) + self._populate_filter_menu() + + var sort_list : Array + for idx in range(self._Group_List.get_item_count()): + var group = self._Group_List.get_item_text(idx) + sort_list.push_back(group) + sort_list.sort() + self._Group_List.clear() + for group in sort_list: + self._Group_List.add_item(group) + + +func _bake_data() : + var baked_story = self._story.duplicate(true) + for did in baked_story.keys(): + baked_story[did].erase("name") + baked_story[did].erase("groups") + baked_story[did].erase("available_nid") + baked_story[did].erase("human_readable_description") + for nid in baked_story[did]["nodes"].keys(): + baked_story[did]["nodes"][nid].erase("type") + baked_story[did]["nodes"][nid].erase("graph_offset") + baked_story[did]["nodes"][nid].erase("rect_size") + baked_story[did]["nodes"][nid].erase("slot_amount") + return baked_story.duplicate(true) + + +func _bake_data_to(filename): + var file_data + if self._Dir.file_exists(filename): + file_data = load(filename) + if file_data.TYPE == "EXP_Baked_Story": + file_data.story = self._bake_data() + file_data.names = self._record_names.duplicate(true) + ResourceSaver.save(filename, file_data) + else: + file_data = _EXP_Baked_Story.new() + file_data.story = self._bake_data() + file_data.names = self._record_names.duplicate(true) + ResourceSaver.save(filename, file_data) + + +func _clear_group_manager(): + self._groups.clear() + for idx in range(self._Group_List.get_item_count()): + self._Group_List.remove_item(0) + self._populate_group_selector() + self._Filter_Menu.get_popup().clear() + + +func _clear_story(): + self._remove_all_records() + self._clear_group_manager() + self._populate_filter_menu() + self._story.clear() + self._available_dids.clear() + self._checked_dialogs.clear() + self._record_names.clear() + self._Filename_LBL.text = "Unsaved Story" + self.emit_signal("changed_story") + + +func _create_dialog() -> int: + var new_did = self._generate_did() + var dialog_data = {"human_readable_description": + "New Dialog - Enter Human Readable Description", + "groups": [], + "available_nid": [], + "nodes": {}} + self._story[new_did] = dialog_data + return new_did + + +func _create_dialog_record(): + var new_did = self._create_dialog() + + var new_dialog_record = _Dialog_Record.instance() + self._Dialog_Record_Root.add_child(new_dialog_record) + new_dialog_record.set_story_editor(self) + + new_dialog_record.connect("checked", self, "_on_Dialog_checked") + new_dialog_record.connect("unchecked", self, "_on_Dialog_unchecked") + new_dialog_record.connect("changed_human_readable_text", self, + "_on_Dialog_changed_human_readable_text") + new_dialog_record.connect("edit_pressed", self, "_on_Dialog_edit_pressed") + new_dialog_record.connect("rename_pressed", self, "_on_Record_Rename_pressed") + + new_dialog_record.set_did(new_did) + new_dialog_record.update_human_readable_description( + "New Dialog - Enter Human Readable Description.") + + +func _create_rename_box(): + self._Record_Rename_Box = _Record_Rename_Box_TSCN.instance() + self._Record_Rename_Box.connect("rename_BTN_pressed", self, "_on_Rename_Box_Rename") + self.add_child(self._Record_Rename_Box) + + +func _delete_checked_dialogs(): + for dialog in self._checked_dialogs: + self._delete_dialog(dialog) + self._checked_dialogs.clear() + self.emit_signal("changed_story") + + +func _delete_dialog(dialog): + var did = dialog.get_did() + self.erase_dialog(did) + self._remove_record(dialog) + + +func _delete_group(group): + self._groups.erase(group) + self._remove_group_from_story(group) + + +func _dialog_apply_group(did : int, group : String): + if not self._story[did]["groups"].has(group): + self._story[did]["groups"].push_back(group) + + +func _dialog_remove_group(did : int, group : String): + if self._story[did]["groups"].has(group): + self._story[did]["groups"].erase(group) + + +func _generate_did() -> int: + if not self._available_dids.empty(): + return self._available_dids.pop_front() + else: + return self._story.size() + 1 + + +func _generate_nid(did : int) -> int: + if not self._story[did]["available_nid"].empty(): + return self._story[did]["available_nid"].pop_front() + else: + return self._story[did]["nodes"].size() + 1 + + +func _load_data_from(new_story): + self._story = new_story.story.duplicate(true) + self._available_dids = new_story.available_dids.duplicate(true) + self._groups = new_story.groups.duplicate(true) + self._record_names = new_story.names.duplicate(true) + + + +func _make_did_available(did : int): + self._available_dids.push_front(did) + self._available_dids.sort() + + +func _make_nid_available(did : int, nid : int): + self._story[did]["available_nid"].push_front(nid) + self._story[did]["available_nid"].sort() + + +func _make_records_visible(): + var children = self._Dialog_Record_Root.get_children() + for child in children: + child.visible = true + + +func _populate_filter_menu(): + self._Filter_Menu.get_popup().clear() + self._Filter_Menu.get_popup().add_check_item("-No Tags-") + for group in self._groups: + self._Filter_Menu.get_popup().add_check_item(group) + for idx in range(self._Filter_Menu.get_popup().get_item_count()): + self._Filter_Menu.get_popup().set_item_checked(idx, true) + + +func _populate_group_selector(): + self._Group_Selector.clear() + self._Group_Selector.text = "Tags" + for group in self._groups: + self._Group_Selector.get_popup().add_item(group) + + +func _populate_searchby_menu(): + self._Search_Option_BTN.clear() + self._Search_Option_BTN.get_popup().add_item("Human Readable LBL", 0) + self._Search_Option_BTN.get_popup().add_item("DID", 1) + self._Search_Option_BTN.get_popup().add_item("Record Name", 2) + self._Search_Option_BTN.select(0) + +func _populate_story_menu(): + self._Story_Menu.get_popup().clear() + self._Story_Menu.get_popup().add_item("New Story", 0) + self._Story_Menu.get_popup().add_item("Load Story", 1) + self._Story_Menu.get_popup().add_item("Save Story As", 2) + self._Story_Menu.get_popup().add_item("Bake Story As", 3) + self._Story_Menu.get_popup().add_item("Save CSV As", 4) + self._Story_Menu.get_popup().add_item("Load CSV", 5) + self._Story_Menu.get_popup().connect("id_pressed", self, "_on_story_menu_option_pressed") + + +func _remove_all_records(): + var dialog_records = self._Dialog_Record_Root.get_children() + for record in dialog_records: + self._remove_record(record) + + +func _remove_group_from_story(group : String): + for did in self._story: + if self._story[did]["groups"].has(group): + self._story[did]["groups"].erase(group) + + +func _remove_record(dialog_record): + dialog_record.disconnect("checked", self, "_on_Dialog_checked") + dialog_record.disconnect("unchecked", self, "_on_Dialog_unchecked") + dialog_record.disconnect("changed_human_readable_text", self, + "_on_Dialog_changed_human_readable_text") + dialog_record.disconnect("rename_pressed", self, "_on_Record_Rename_pressed") + var record_name = dialog_record.get_record_name() + if not record_name == "NAME": + self._record_names.erase(record_name) + + dialog_record.free() + + +func _save_data_to(filename): + var file_data + if self._Dir.file_exists(filename): + file_data = load(filename) + if file_data.TYPE == "EXP_Story_editor": + file_data.names = self._record_names.duplicate(true) + file_data.story = self._story.duplicate(true) + file_data.available_dids = self._available_dids.duplicate(true) + file_data.groups = self._groups.duplicate(true) + ResourceSaver.save(filename, file_data) + else: + file_data = _EXP_Story.new() + file_data.names = self._record_names.duplicate(true) + file_data.story = self._story.duplicate(true) + file_data.available_dids = self._available_dids.duplicate(true) + file_data.groups = self._groups.duplicate(true) + ResourceSaver.save(filename, file_data) + + +func _setup_dialogs(): + self._Load_Story = EditorFileDialog.new() + self._Load_Story.mode = EditorFileDialog.MODE_OPEN_FILE + self._Load_Story.add_filter("*.tres ; Story files") + self._Load_Story.resizable = true + self._Load_Story.access = EditorFileDialog.ACCESS_RESOURCES + self._Load_Story.current_dir = "res://" + self._Load_Story.connect("file_selected", self, "_on_Load_Story_file_selected") + self.add_child(self._Load_Story) + + self._Save_Story_As = EditorFileDialog.new() + self._Save_Story_As.mode = EditorFileDialog.MODE_SAVE_FILE + self._Save_Story_As.add_filter("*.tres ; Story files") + self._Save_Story_As.resizable = true + self._Save_Story_As.access = EditorFileDialog.ACCESS_RESOURCES + self._Save_Story_As.current_dir = "res://" + self._Save_Story_As.connect("file_selected", self, "_on_Save_Story_As_file_selected") + self.add_child(self._Save_Story_As) + + self._Bake_Story_As = EditorFileDialog.new() + self._Bake_Story_As.mode = EditorFileDialog.MODE_SAVE_FILE + self._Bake_Story_As.add_filter("*.tres ; Baked Story files") + self._Bake_Story_As.resizable = true + self._Bake_Story_As.access = EditorFileDialog.ACCESS_RESOURCES + self._Bake_Story_As.current_dir = "res://" + self._Bake_Story_As.connect("file_selected", self, "_on_Bake_Story_As_file_selected") + self.add_child(self._Bake_Story_As) + + self._Save_CSV_As = EditorFileDialog.new() + self._Save_CSV_As.mode = EditorFileDialog.MODE_SAVE_FILE + self._Save_CSV_As.add_filter("*.csv ; CSV files") + self._Save_CSV_As.resizable = true + self._Save_CSV_As.access = EditorFileDialog.ACCESS_FILESYSTEM + self._Save_CSV_As.current_dir = "res://" + self._Save_CSV_As.connect("file_selected", self, "_on_Save_CVS_As_file_selected") + self.add_child(self._Save_CSV_As) + + self._Load_CSV = EditorFileDialog.new() + self._Load_CSV .mode = EditorFileDialog.MODE_OPEN_FILE + self._Load_CSV .add_filter("*.csv ; CSV files") + self._Load_CSV .resizable = true + self._Load_CSV .access = EditorFileDialog.ACCESS_FILESYSTEM + self._Load_CSV .current_dir = "res://" + self._Load_CSV .connect("file_selected", self, "_on_Load_CSV_file_selected") + self.add_child(self._Load_CSV) + + +func _update_filter(): + var new_text = self._Search_LineEdit.text + self._make_records_visible() + + var filter_groups : Array + for idx in range(self._Filter_Menu.get_popup().get_item_count()): + if self._Filter_Menu.get_popup().is_item_checked(idx): + var group = self._Filter_Menu.get_popup().get_item_text(idx) + filter_groups.push_back(group) + + var children = self._Dialog_Record_Root.get_children() + + var search_option = self._Search_Option_BTN.selected + + match search_option: + 0: #Human Readable Search + for child in children: + var did = child.get_did() + var human_readable_description = self.get_dialog_property(did, "human_readable_description") + if human_readable_description.find(new_text) == -1 and not new_text.empty(): + child.visible = false + else: + child.visible = false + if self._Filter_Menu.get_popup().get_item_count() == 0: + child.visible = true + var dialog_groups = self.dialog_get_groups(did) + if dialog_groups.empty() and filter_groups.has("-No Tags-"): + child.visible = true + for group in dialog_groups: + if filter_groups.has(group): + child.visible = true + 1: #DID Search + for child in children: + var did = child.get_did() + if not new_text == str(did) and not new_text.empty(): + child.visible = false + else: + child.visible = false + if self._Filter_Menu.get_popup().get_item_count() == 0: + child.visible = true + var dialog_groups = self.dialog_get_groups(did) + if dialog_groups.empty() and filter_groups.has("-No Tags-"): + child.visible = true + for group in dialog_groups: + if filter_groups.has(group): + child.visible = true + 2: #Record Name Search + for child in children: + var did = child.get_did() + var record_name = child.get_record_name() + if record_name.find(new_text) == -1 and not new_text.empty(): + child.visible = false + else: + child.visible = false + if self._Filter_Menu.get_popup().get_item_count() == 0: + child.visible = true + var dialog_groups = self.dialog_get_groups(did) + if dialog_groups.empty() and filter_groups.has("-No Tags-"): + child.visible = true + for group in dialog_groups: + if filter_groups.has(group): + child.visible = true diff --git a/client/addons/EXP-System-Dialog/plugin.cfg b/client/addons/EXP-System-Dialog/plugin.cfg new file mode 100644 index 0000000..0c6b026 --- /dev/null +++ b/client/addons/EXP-System-Dialog/plugin.cfg @@ -0,0 +1,7 @@ +[plugin] + +name="EXP_Dialog" +description="EXPWorld's dialog technology." +author="David Lipps @ EXPWorlds" +version="1.1.0" +script="plugin.gd" diff --git a/client/addons/EXP-System-Dialog/plugin.gd b/client/addons/EXP-System-Dialog/plugin.gd new file mode 100644 index 0000000..5df9e39 --- /dev/null +++ b/client/addons/EXP-System-Dialog/plugin.gd @@ -0,0 +1,87 @@ +tool +extends EditorPlugin + +var _Story_Editor = preload("res://addons/EXP-System-Dialog/Story Editor/Story_Editor.tscn") +var _Story_Editor_Instance +var _Story_Editor_BTN : ToolButton +var _Dialog_Editor = preload("res://addons/EXP-System-Dialog/Dialog Editor/Dialog_Editor.tscn") +var _Dialog_Editor_Instance +var _Dialog_Editor_BTN : ToolButton + + +func _enter_tree(): + + self._Story_Editor_Instance = self._Story_Editor.instance() + self._Story_Editor_Instance.connect("close_pressed", self, "_on_StoryFile_Editor_close_pressed") + self._Story_Editor_BTN = self.add_control_to_bottom_panel(self._Story_Editor_Instance, "EXP StoryFile Editor") + self._Story_Editor_Instance.visible = false + self._Story_Editor_BTN.visible = false + self.add_tool_menu_item("EXP StoryFile Editor", self, "_on_StoryFile_Editor_opened") + + self._Dialog_Editor_Instance = self._Dialog_Editor.instance() + self._Dialog_Editor_BTN = self.add_control_to_bottom_panel(self._Dialog_Editor_Instance, "EXP Dialog Editor") + self._Dialog_Editor_BTN.visible = false + + self._Story_Editor_Instance.connect("dialog_edit_pressed", + self, "_on_Story_Editor_dialog_edit_pressed") + self._Story_Editor_Instance.connect("dialog_edit_pressed", + self._Dialog_Editor_Instance, "_on_Story_Editor_dialog_edit_pressed") + self._Dialog_Editor_Instance.connect("close_BTN_pressed", self, + "_on_Dialog_Editor_close_BTN_pressed") + self._Dialog_Editor_Instance.connect("back_BTN_pressed", self, + "_on_Dialog_Editor_back_BTN_pressed") + self._Story_Editor_Instance.connect("changed_story", self, + "_on_Story_Editor_changed_story") + + +func _exit_tree(): + + self._Story_Editor_Instance.disconnect("dialog_edit_pressed", + self, "_on_Story_Editor_dialog_edit_pressed") + self._Story_Editor_Instance.disconnect("dialog_edit_pressed", + self._Dialog_Editor_Instance, "_on_Story_Editor_dialog_edit_pressed") + self._Dialog_Editor_Instance.disconnect("close_BTN_pressed", self, + "_on_Dialog_Editor_close_BTN_pressed") + self._Dialog_Editor_Instance.disconnect("back_BTN_pressed", self, + "_on_Dialog_Editor_back_BTN_pressed") + self._Story_Editor_Instance.disconnect("changed_story", self, + "_on_Story_Editor_changed_story") + + self.remove_control_from_bottom_panel(self._Story_Editor_Instance) + self._Story_Editor_Instance.queue_free() + self.remove_control_from_bottom_panel(self._Dialog_Editor_Instance) + self._Dialog_Editor_Instance.queue_free() + self.remove_tool_menu_item("EXP StoryFile Editor") + + +func _on_Story_Editor_dialog_edit_pressed(story, did): + self._Dialog_Editor_BTN.visible = true + self._Story_Editor_BTN.pressed = false + self._Dialog_Editor_BTN.pressed = true + self._Dialog_Editor_BTN.emit_signal("pressed") + + +func _on_Dialog_Editor_close_BTN_pressed(): + self._Dialog_Editor_BTN.pressed = false + self._Dialog_Editor_BTN.visible = false + + +func _on_Story_Editor_changed_story(): + self._Dialog_Editor_BTN.visible = false + + +func _on_Dialog_Editor_back_BTN_pressed(): + self._Story_Editor_BTN.pressed = true + self._Dialog_Editor_BTN.pressed = false + self._Story_Editor_BTN.emit_signal("pressed") + + +func _on_StoryFile_Editor_opened(trash_parameter): + self._Story_Editor_BTN.visible = true + + +func _on_StoryFile_Editor_close_pressed(): + self._Story_Editor_Instance.visible = false + self._Story_Editor_BTN.visible = false + self._Dialog_Editor_Instance.visible = false + self._Dialog_Editor_BTN.visible = false diff --git a/client/addons/default_env.tres b/client/addons/default_env.tres new file mode 100644 index 0000000..20207a4 --- /dev/null +++ b/client/addons/default_env.tres @@ -0,0 +1,7 @@ +[gd_resource type="Environment" load_steps=2 format=2] + +[sub_resource type="ProceduralSky" id=1] + +[resource] +background_mode = 2 +background_sky = SubResource( 1 ) diff --git a/client/addons/export_presets.cfg b/client/addons/export_presets.cfg new file mode 100644 index 0000000..e83c66d --- /dev/null +++ b/client/addons/export_presets.cfg @@ -0,0 +1,165 @@ +[preset.0] + +name="win32" +platform="Windows Desktop" +runnable=true +custom_features="" +export_filter="all_resources" +include_filter="" +exclude_filter="" +export_path="" +patch_list=PoolStringArray( ) +script_export_mode=1 +script_encryption_key="" + +[preset.0.options] + +texture_format/bptc=false +texture_format/s3tc=true +texture_format/etc=false +texture_format/etc2=false +texture_format/no_bptc_fallbacks=true +binary_format/64_bits=false +binary_format/embed_pck=false +custom_template/release="" +custom_template/debug="" +codesign/enable=false +codesign/identity="" +codesign/password="" +codesign/timestamp=true +codesign/timestamp_server_url="" +codesign/digest_algorithm=1 +codesign/description="" +codesign/custom_options=PoolStringArray( ) +application/icon="" +application/file_version="" +application/product_version="" +application/company_name="" +application/product_name="" +application/file_description="" +application/copyright="" +application/trademarks="" + +[preset.1] + +name="win64" +platform="Windows Desktop" +runnable=false +custom_features="" +export_filter="all_resources" +include_filter="" +exclude_filter="" +export_path="" +patch_list=PoolStringArray( ) +script_export_mode=1 +script_encryption_key="" + +[preset.1.options] + +texture_format/bptc=false +texture_format/s3tc=true +texture_format/etc=false +texture_format/etc2=false +texture_format/no_bptc_fallbacks=true +binary_format/64_bits=false +binary_format/embed_pck=false +custom_template/release="" +custom_template/debug="" +codesign/enable=false +codesign/identity="" +codesign/password="" +codesign/timestamp=true +codesign/timestamp_server_url="" +codesign/digest_algorithm=1 +codesign/description="" +codesign/custom_options=PoolStringArray( ) +application/icon="" +application/file_version="" +application/product_version="" +application/company_name="" +application/product_name="" +application/file_description="" +application/copyright="" +application/trademarks="" + +[preset.2] + +name="linux" +platform="Linux/X11" +runnable=true +custom_features="" +export_filter="all_resources" +include_filter="" +exclude_filter="" +export_path="" +patch_list=PoolStringArray( ) +script_export_mode=1 +script_encryption_key="" + +[preset.2.options] + +texture_format/bptc=false +texture_format/s3tc=true +texture_format/etc=false +texture_format/etc2=false +texture_format/no_bptc_fallbacks=true +binary_format/64_bits=true +binary_format/embed_pck=false +custom_template/release="" +custom_template/debug="" + +[preset.3] + +name="html5" +platform="HTML5" +runnable=true +custom_features="" +export_filter="all_resources" +include_filter="" +exclude_filter="" +export_path="" +patch_list=PoolStringArray( ) +script_export_mode=1 +script_encryption_key="" + +[preset.3.options] + +vram_texture_compression/for_desktop=true +vram_texture_compression/for_mobile=false +html/custom_html_shell="" +html/head_include="" +custom_template/release="" +custom_template/debug="" + +[preset.4] + +name="osx" +platform="Mac OSX" +runnable=true +custom_features="" +export_filter="all_resources" +include_filter="" +exclude_filter="" +export_path="" +patch_list=PoolStringArray( ) +script_export_mode=1 +script_encryption_key="" + +[preset.4.options] + +custom_template/debug="" +custom_template/release="" +application/name="The Connection" +application/info="Made with Godot Engine" +application/icon="" +application/identifier="" +application/signature="" +application/short_version="1.0" +application/version="1.0" +application/copyright="" +display/high_res=false +privacy/camera_usage_description="" +privacy/microphone_usage_description="" +texture_format/s3tc=true +texture_format/etc=false +texture_format/etc2=false diff --git a/client/addons/icon.png b/client/addons/icon.png new file mode 100644 index 0000000..c98fbb6 Binary files /dev/null and b/client/addons/icon.png differ diff --git a/client/addons/icon.png.import b/client/addons/icon.png.import new file mode 100644 index 0000000..96cbf46 --- /dev/null +++ b/client/addons/icon.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://icon.png" +dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.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=true +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 +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/client/addons/project.godot b/client/addons/project.godot new file mode 100644 index 0000000..f39137e --- /dev/null +++ b/client/addons/project.godot @@ -0,0 +1,32 @@ +; Engine configuration file. +; It's best edited using the editor UI and not directly, +; since the parameters that go here are not all obvious. +; +; Format: +; [section] ; section goes between [] +; param=value ; assign values to parameters + +config_version=4 + +_global_script_classes=[ ] +_global_script_class_icons={ + +} + +[application] + +config/name="the-connection" +run/main_scene="res://Scenes/Title.scn" +config/icon="res://icon.png" + +[autoload] + +MusicManager="*res://Scripts/Singletons/MusicManager.gd" + +[editor_plugins] + +enabled=PoolStringArray( "EXP-System-Dialog" ) + +[rendering] + +environment/default_environment="res://default_env.tres" diff --git a/client/animation_reference.png b/client/animation_reference.png new file mode 100644 index 0000000..f59a433 Binary files /dev/null and b/client/animation_reference.png differ diff --git a/client/animation_reference.png.import b/client/animation_reference.png.import new file mode 100644 index 0000000..5a0686f --- /dev/null +++ b/client/animation_reference.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/animation_reference.png-0380e195c2981cbf6a12a964c592fbc3.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://animation_reference.png" +dest_files=[ "res://.import/animation_reference.png-0380e195c2981cbf6a12a964c592fbc3.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=true +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 +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/client/default_env.tres b/client/default_env.tres new file mode 100644 index 0000000..20207a4 --- /dev/null +++ b/client/default_env.tres @@ -0,0 +1,7 @@ +[gd_resource type="Environment" load_steps=2 format=2] + +[sub_resource type="ProceduralSky" id=1] + +[resource] +background_mode = 2 +background_sky = SubResource( 1 ) diff --git a/client/export_presets.cfg b/client/export_presets.cfg new file mode 100644 index 0000000..e83c66d --- /dev/null +++ b/client/export_presets.cfg @@ -0,0 +1,165 @@ +[preset.0] + +name="win32" +platform="Windows Desktop" +runnable=true +custom_features="" +export_filter="all_resources" +include_filter="" +exclude_filter="" +export_path="" +patch_list=PoolStringArray( ) +script_export_mode=1 +script_encryption_key="" + +[preset.0.options] + +texture_format/bptc=false +texture_format/s3tc=true +texture_format/etc=false +texture_format/etc2=false +texture_format/no_bptc_fallbacks=true +binary_format/64_bits=false +binary_format/embed_pck=false +custom_template/release="" +custom_template/debug="" +codesign/enable=false +codesign/identity="" +codesign/password="" +codesign/timestamp=true +codesign/timestamp_server_url="" +codesign/digest_algorithm=1 +codesign/description="" +codesign/custom_options=PoolStringArray( ) +application/icon="" +application/file_version="" +application/product_version="" +application/company_name="" +application/product_name="" +application/file_description="" +application/copyright="" +application/trademarks="" + +[preset.1] + +name="win64" +platform="Windows Desktop" +runnable=false +custom_features="" +export_filter="all_resources" +include_filter="" +exclude_filter="" +export_path="" +patch_list=PoolStringArray( ) +script_export_mode=1 +script_encryption_key="" + +[preset.1.options] + +texture_format/bptc=false +texture_format/s3tc=true +texture_format/etc=false +texture_format/etc2=false +texture_format/no_bptc_fallbacks=true +binary_format/64_bits=false +binary_format/embed_pck=false +custom_template/release="" +custom_template/debug="" +codesign/enable=false +codesign/identity="" +codesign/password="" +codesign/timestamp=true +codesign/timestamp_server_url="" +codesign/digest_algorithm=1 +codesign/description="" +codesign/custom_options=PoolStringArray( ) +application/icon="" +application/file_version="" +application/product_version="" +application/company_name="" +application/product_name="" +application/file_description="" +application/copyright="" +application/trademarks="" + +[preset.2] + +name="linux" +platform="Linux/X11" +runnable=true +custom_features="" +export_filter="all_resources" +include_filter="" +exclude_filter="" +export_path="" +patch_list=PoolStringArray( ) +script_export_mode=1 +script_encryption_key="" + +[preset.2.options] + +texture_format/bptc=false +texture_format/s3tc=true +texture_format/etc=false +texture_format/etc2=false +texture_format/no_bptc_fallbacks=true +binary_format/64_bits=true +binary_format/embed_pck=false +custom_template/release="" +custom_template/debug="" + +[preset.3] + +name="html5" +platform="HTML5" +runnable=true +custom_features="" +export_filter="all_resources" +include_filter="" +exclude_filter="" +export_path="" +patch_list=PoolStringArray( ) +script_export_mode=1 +script_encryption_key="" + +[preset.3.options] + +vram_texture_compression/for_desktop=true +vram_texture_compression/for_mobile=false +html/custom_html_shell="" +html/head_include="" +custom_template/release="" +custom_template/debug="" + +[preset.4] + +name="osx" +platform="Mac OSX" +runnable=true +custom_features="" +export_filter="all_resources" +include_filter="" +exclude_filter="" +export_path="" +patch_list=PoolStringArray( ) +script_export_mode=1 +script_encryption_key="" + +[preset.4.options] + +custom_template/debug="" +custom_template/release="" +application/name="The Connection" +application/info="Made with Godot Engine" +application/icon="" +application/identifier="" +application/signature="" +application/short_version="1.0" +application/version="1.0" +application/copyright="" +display/high_res=false +privacy/camera_usage_description="" +privacy/microphone_usage_description="" +texture_format/s3tc=true +texture_format/etc=false +texture_format/etc2=false diff --git a/client/icon.png b/client/icon.png new file mode 100644 index 0000000..c98fbb6 Binary files /dev/null and b/client/icon.png differ diff --git a/client/icon.png.import b/client/icon.png.import new file mode 100644 index 0000000..96cbf46 --- /dev/null +++ b/client/icon.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://icon.png" +dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.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=true +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 +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/client/project.godot b/client/project.godot new file mode 100644 index 0000000..f39137e --- /dev/null +++ b/client/project.godot @@ -0,0 +1,32 @@ +; Engine configuration file. +; It's best edited using the editor UI and not directly, +; since the parameters that go here are not all obvious. +; +; Format: +; [section] ; section goes between [] +; param=value ; assign values to parameters + +config_version=4 + +_global_script_classes=[ ] +_global_script_class_icons={ + +} + +[application] + +config/name="the-connection" +run/main_scene="res://Scenes/Title.scn" +config/icon="res://icon.png" + +[autoload] + +MusicManager="*res://Scripts/Singletons/MusicManager.gd" + +[editor_plugins] + +enabled=PoolStringArray( "EXP-System-Dialog" ) + +[rendering] + +environment/default_environment="res://default_env.tres"