commit 1bae9f78bdbb73c3ef8a1724c3f1eea37e2a42ed Author: megamichi Date: Tue Feb 11 19:47:33 2025 +0100 init diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..e04f599 --- /dev/null +++ b/.clang-format @@ -0,0 +1,114 @@ +--- +Language: Cpp +BasedOnStyle: Google +AccessModifierOffset: -4 +AlignAfterOpenBracket: Align +AlignConsecutiveAssignments: false +AlignConsecutiveDeclarations: false +AlignEscapedNewlines: Left +AlignOperands: true +AlignTrailingComments: true +AllowAllParametersOfDeclarationOnNextLine: false +AllowShortBlocksOnASingleLine: false +AllowShortCaseLabelsOnASingleLine: false +AllowShortFunctionsOnASingleLine: Empty +AllowShortIfStatementsOnASingleLine: false +AllowShortLoopsOnASingleLine: false +AlwaysBreakAfterDefinitionReturnType: None +AlwaysBreakAfterReturnType: None +AlwaysBreakBeforeMultilineStrings: false +AlwaysBreakTemplateDeclarations: Yes +BinPackArguments: false +BinPackParameters: false +BraceWrapping: + AfterClass: true + AfterControlStatement: true + AfterEnum: true + AfterFunction: true + AfterNamespace: false + AfterObjCDeclaration: true + AfterStruct: true + AfterUnion: true + BeforeCatch: true + BeforeElse: true + IndentBraces: false +BreakBeforeBinaryOperators: None +BreakBeforeBraces: Custom +BreakBeforeInheritanceComma: false +BreakInheritanceList: BeforeColon +BreakBeforeTernaryOperators: true +BreakConstructorInitializersBeforeComma: false +BreakConstructorInitializers: BeforeColon +BreakAfterJavaFieldAnnotations: false +BreakStringLiterals: true +ColumnLimit: 80 +CommentPragmas: '^ IWYU pragma:' +CompactNamespaces: false +ConstructorInitializerAllOnOneLineOrOnePerLine: true +ConstructorInitializerIndentWidth: 4 +ContinuationIndentWidth: 4 +Cpp11BracedListStyle: true +DerivePointerAlignment: false +DisableFormat: false +ExperimentalAutoDetectBinPacking: false +FixNamespaceComments: true +ForEachMacros: + - foreach + - Q_FOREACH + - BOOST_FOREACH +IncludeBlocks: Preserve +IncludeCategories: + - Regex: '^"(llvm|llvm-c|clang|clang-c)/' + Priority: 2 + - Regex: '^(<|"(gtest|gmock|isl|json)/)' + Priority: 3 + - Regex: '.*' + Priority: 1 +IncludeIsMainRegex: '(Test)?$' +IndentCaseLabels: true +IndentPPDirectives: AfterHash +IndentWidth: 4 +IndentWrappedFunctionNames: false +JavaScriptQuotes: Leave +JavaScriptWrapImports: true +KeepEmptyLinesAtTheStartOfBlocks: false +MacroBlockBegin: '' +MacroBlockEnd: '' +MaxEmptyLinesToKeep: 1 +NamespaceIndentation: None +ObjCBinPackProtocolList: Auto +ObjCBlockIndentWidth: 2 +ObjCSpaceAfterProperty: false +ObjCSpaceBeforeProtocolList: true +PenaltyBreakAssignment: 2 +PenaltyBreakBeforeFirstCallParameter: 19 +PenaltyBreakComment: 300 +PenaltyBreakFirstLessLess: 120 +PenaltyBreakString: 1000 +PenaltyBreakTemplateDeclaration: 10 +PenaltyExcessCharacter: 1000000 +PenaltyReturnTypeOnItsOwnLine: 60 +PointerAlignment: Left +ReflowComments: true +SortIncludes: true +SortUsingDeclarations: true +SpaceAfterCStyleCast: false +SpaceAfterTemplateKeyword: true +SpaceBeforeAssignmentOperators: true +SpaceBeforeCpp11BracedList: false +SpaceBeforeCtorInitializerColon: true +SpaceBeforeInheritanceColon: false +EmptyLineBeforeAccessModifier: Always +EmptyLineAfterAccessModifier: Always +SpaceBeforeParens: ControlStatements +SpaceBeforeRangeBasedForLoopColon: true +SpaceInEmptyParentheses: false +SpacesBeforeTrailingComments: 1 +SpacesInAngles: false +SpacesInContainerLiterals: false +SpacesInCStyleCastParentheses: false +SpacesInParentheses: false +SpacesInSquareBrackets: false +Standard: Cpp11 +TabWidth: 4 +UseTab: Never \ No newline at end of file diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..8ad74f7 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Normalize EOL for all files that Git considers text files. +* text=auto eol=lf diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0af181c --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +# Godot 4+ specific ignores +.godot/ +/android/ diff --git a/Floppy Bort.apk b/Floppy Bort.apk new file mode 100644 index 0000000..a6f5743 Binary files /dev/null and b/Floppy Bort.apk differ diff --git a/addons/godot-git-plugin/LICENSE b/addons/godot-git-plugin/LICENSE new file mode 100644 index 0000000..f153fb8 --- /dev/null +++ b/addons/godot-git-plugin/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2016-2023 The Godot Engine community + +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/addons/godot-git-plugin/THIRDPARTY.md b/addons/godot-git-plugin/THIRDPARTY.md new file mode 100644 index 0000000..837488f --- /dev/null +++ b/addons/godot-git-plugin/THIRDPARTY.md @@ -0,0 +1,1349 @@ +# Third-Party Notices + +The Godot Git Plugin source code uses the following third-party source code: + +1. godotengine/godot-cpp - MIT License - https://github.com/godotengine/godot-cpp/tree/02336831735fd6affbe0a6fa252ec98d3e78120c +2. libgit2/libgit2 - GPLv2 with a special Linking Exception - https://github.com/libgit2/libgit2/tree/b7bad55e4bb0a285b073ba5e02b01d3f522fc95d +3. libssh2/libssh2 - BSD-3-Clause License - https://github.com/libssh2/libssh2/tree/635caa90787220ac3773c1d5ba11f1236c22eae8 + +We also link to these third-party libraries (only in the compiled binary form): + +1. OpenSSL - Only on Linux and MacOS - OpenSSL License - http://www.openssl.org/source/openssl-1.1.1s.tar.gz + +## License Texts + +### godotengine/godot-cpp + +``` +# MIT License + +Copyright (c) 2017-2022 Godot Engine contributors. + +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. +``` + +### libgit2/libgit2 + +``` + libgit2 is Copyright (C) the libgit2 contributors, + unless otherwise stated. See the AUTHORS file for details. + + Note that the only valid version of the GPL as far as this project + is concerned is _this_ particular version of the license (ie v2, not + v2.2 or v3.x or whatever), unless explicitly otherwise stated. + +---------------------------------------------------------------------- + + LINKING EXCEPTION + + In addition to the permissions in the GNU General Public License, + the authors give you unlimited permission to link the compiled + version of this library into combinations with other programs, + and to distribute those combinations without any restriction + coming from the use of this file. (The General Public License + restrictions do apply in other respects; for example, they cover + modification of the file, and distribution when not linked into + a combined executable.) + +---------------------------------------------------------------------- + + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) 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 +this service 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 make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. 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. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute 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 and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +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 +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the 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 a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, 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. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE 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. + + 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 +convey 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 2 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, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision 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, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This 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 Library General +Public License instead of this License. + +---------------------------------------------------------------------- + +The bundled ZLib code is licensed under the ZLib license: + +Copyright (C) 1995-2010 Jean-loup Gailly and Mark Adler + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. + + Jean-loup Gailly Mark Adler + jloup@gzip.org madler@alumni.caltech.edu + +---------------------------------------------------------------------- + +The Clar framework is licensed under the ISC license: + +Copyright (c) 2011-2015 Vicent Marti + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +---------------------------------------------------------------------- + +The regex library (deps/regex/) is licensed under the GNU LGPL +(available at the end of this file). + +Definitions for data structures and routines for the regular +expression library. + +Copyright (C) 1985,1989-93,1995-98,2000,2001,2002,2003,2005,2006,2008 +Free Software Foundation, Inc. +This file is part of the GNU C Library. + +The GNU C Library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +The GNU C Library 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 +Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with the GNU C Library; if not, write to the Free +Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +02110-1301 USA. + +---------------------------------------------------------------------- + +The bundled winhttp definition files (deps/winhttp/) are licensed under +the GNU LGPL (available at the end of this file). + +Copyright (C) 2007 Francois Gouget + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +This library 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 +Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with this library; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + +---------------------------------------------------------------------- + + GNU LESSER GENERAL PUBLIC LICENSE + Version 2.1, February 1999 + + Copyright (C) 1991, 1999 Free Software Foundation, Inc. + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the Lesser GPL. It also counts + as the successor of the GNU Library Public License, version 2, hence + the version number 2.1.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Lesser General Public License, applies to some +specially designated software packages--typically libraries--of the +Free Software Foundation and other authors who decide to use it. You +can use it too, but we suggest you first think carefully about whether +this license or the ordinary General Public License is the better +strategy to use in any particular case, based on the explanations below. + + When we speak of free software, we are referring to freedom of use, +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 this service if you wish); that you receive source code or can get +it if you want it; that you can change the software and use pieces of +it in new free programs; and that you are informed that you can do +these things. + + To protect your rights, we need to make restrictions that forbid +distributors to deny you these rights or to ask you to surrender these +rights. These restrictions translate to certain responsibilities for +you if you distribute copies of the library or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link other code with the library, you must provide +complete object files to the recipients, so that they can relink them +with the library after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + We protect your rights with a two-step method: (1) we copyright the +library, and (2) we offer you this license, which gives you legal +permission to copy, distribute and/or modify the library. + + To protect each distributor, we want to make it very clear that +there is no warranty for the free library. Also, if the library is +modified by someone else and passed on, the recipients should know +that what they have is not the original version, so that the original +author's reputation will not be affected by problems that might be +introduced by others. + + Finally, software patents pose a constant threat to the existence of +any free program. We wish to make sure that a company cannot +effectively restrict the users of a free program by obtaining a +restrictive license from a patent holder. Therefore, we insist that +any patent license obtained for a version of the library must be +consistent with the full freedom of use specified in this license. + + Most GNU software, including some libraries, is covered by the +ordinary GNU General Public License. This license, the GNU Lesser +General Public License, applies to certain designated libraries, and +is quite different from the ordinary General Public License. We use +this license for certain libraries in order to permit linking those +libraries into non-free programs. + + When a program is linked with a library, whether statically or using +a shared library, the combination of the two is legally speaking a +combined work, a derivative of the original library. The ordinary +General Public License therefore permits such linking only if the +entire combination fits its criteria of freedom. The Lesser General +Public License permits more lax criteria for linking other code with +the library. + + We call this license the "Lesser" General Public License because it +does Less to protect the user's freedom than the ordinary General +Public License. It also provides other free software developers Less +of an advantage over competing non-free programs. These disadvantages +are the reason we use the ordinary General Public License for many +libraries. However, the Lesser license provides advantages in certain +special circumstances. + + For example, on rare occasions, there may be a special need to +encourage the widest possible use of a certain library, so that it becomes +a de-facto standard. To achieve this, non-free programs must be +allowed to use the library. A more frequent case is that a free +library does the same job as widely used non-free libraries. In this +case, there is little to gain by limiting the free library to free +software only, so we use the Lesser General Public License. + + In other cases, permission to use a particular library in non-free +programs enables a greater number of people to use a large body of +free software. For example, permission to use the GNU C Library in +non-free programs enables many more people to use the whole GNU +operating system, as well as its variant, the GNU/Linux operating +system. + + Although the Lesser General Public License is Less protective of the +users' freedom, it does ensure that the user of a program that is +linked with the Library has the freedom and the wherewithal to run +that program using a modified version of the Library. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, whereas the latter must +be combined with the library in order to run. + + GNU LESSER GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library or other +program which contains a notice placed by the copyright holder or +other authorized party saying it may be distributed under the terms of +this Lesser General Public License (also called "this License"). +Each licensee is addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + 6. As an exception to the Sections above, you may also combine or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (1) uses at run time a + copy of the library already present on the user's computer system, + rather than copying library functions into the executable, and (2) + will operate properly with a modified version of the library, if + the user installs one, as long as the modified version is + interface-compatible with the version that the work was made with. + + c) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + d) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + e) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the materials to be distributed need not include anything that is +normally distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties with +this License. + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +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 +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License may add +an explicit geographical distribution limitation excluding those countries, +so that distribution is permitted only in or among countries not thus +excluded. In such case, this License incorporates the limitation as if +written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Lesser 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 Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "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 +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY 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 +LIBRARY (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 LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Libraries + + If you develop a new library, and you want it to be of the greatest +possible use to the public, we recommend making it free software that +everyone can redistribute and change. You can do so by permitting +redistribution under these terms (or, alternatively, under the terms of the +ordinary General Public License). + + To apply these terms, attach the following notices to the library. It is +safest to attach them to the start of each source file to most effectively +convey 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 library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library 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 + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +Also add information on how to contact you by electronic and paper mail. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the library, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + library `Frob' (a library for tweaking knobs) written by James Random Hacker. + + , 1 April 1990 + Ty Coon, President of Vice + +That's all there is to it! + +---------------------------------------------------------------------- + +The bundled SHA1 collision detection code is licensed under the MIT license: + +MIT License + +Copyright (c) 2017: + Marc Stevens + Cryptology Group + Centrum Wiskunde & Informatica + P.O. Box 94079, 1090 GB Amsterdam, Netherlands + marc@marc-stevens.nl + + Dan Shumow + Microsoft Research + danshu@microsoft.com + +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. + +---------------------------------------------------------------------- + +The bundled wildmatch code is licensed under the BSD license: + +Copyright Rich Salz. +All rights reserved. + +Redistribution and use in any form are permitted provided that the +following restrictions are are met: + +1. Source distributions must retain this entire copyright notice + and comment. +2. Binary distributions must include the acknowledgement ``This + product includes software developed by Rich Salz'' in the + documentation or other materials provided with the + distribution. This must not be represented as an endorsement + or promotion without specific prior written permission. +3. The origin of this software must not be misrepresented, either + by explicit claim or by omission. Credits must appear in the + source and documentation. +4. Altered versions must be plainly marked as such in the source + and documentation and must not be misrepresented as being the + original software. + +THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + +---------------------------------------------------------------------- + +Portions of the OpenSSL headers are included under the OpenSSL license: + +Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) +All rights reserved. + +This package is an SSL implementation written +by Eric Young (eay@cryptsoft.com). +The implementation was written so as to conform with Netscapes SSL. + +This library is free for commercial and non-commercial use as long as +the following conditions are aheared to. The following conditions +apply to all code found in this distribution, be it the RC4, RSA, +lhash, DES, etc., code; not just the SSL code. The SSL documentation +included with this distribution is covered by the same copyright terms +except that the holder is Tim Hudson (tjh@cryptsoft.com). + +Copyright remains Eric Young's, and as such any Copyright notices in +the code are not to be removed. +If this package is used in a product, Eric Young should be given attribution +as the author of the parts of the library used. +This can be in the form of a textual message at program startup or +in documentation (online or textual) provided with the package. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +3. All advertising materials mentioning features or use of this software + must display the following acknowledgement: + "This product includes cryptographic software written by + Eric Young (eay@cryptsoft.com)" + The word 'cryptographic' can be left out if the rouines from the library + being used are not cryptographic related :-). +4. If you include any Windows specific code (or a derivative thereof) from + the apps directory (application code) you must include an acknowledgement: + "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" + +THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +SUCH DAMAGE. + +The licence and distribution terms for any publically available version or +derivative of this code cannot be changed. i.e. this code cannot simply be +copied and put under another distribution licence +[including the GNU Public Licence.] + +==================================================================== +Copyright (c) 1998-2007 The OpenSSL Project. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. + +3. All advertising materials mentioning features or use of this + software must display the following acknowledgment: + "This product includes software developed by the OpenSSL Project + for use in the OpenSSL Toolkit. (http://www.openssl.org/)" + +4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to + endorse or promote products derived from this software without + prior written permission. For written permission, please contact + openssl-core@openssl.org. + +5. Products derived from this software may not be called "OpenSSL" + nor may "OpenSSL" appear in their names without prior written + permission of the OpenSSL Project. + +6. Redistributions of any form whatsoever must retain the following + acknowledgment: + "This product includes software developed by the OpenSSL Project + for use in the OpenSSL Toolkit (http://www.openssl.org/)" + +THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY +EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR +ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, +STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED +OF THE POSSIBILITY OF SUCH DAMAGE. +``` + +### libssh2/libssh2 + +``` +/* Copyright (c) 2004-2007 Sara Golemon + * Copyright (c) 2005,2006 Mikhail Gusarov + * Copyright (c) 2006-2007 The Written Word, Inc. + * Copyright (c) 2007 Eli Fant + * Copyright (c) 2009-2021 Daniel Stenberg + * Copyright (C) 2008, 2009 Simon Josefsson + * Copyright (c) 2000 Markus Friedl + * Copyright (c) 2015 Microsoft Corp. + * All rights reserved. + * + * Redistribution and use in source and binary forms, + * with or without modification, are permitted provided + * that the following conditions are met: + * + * Redistributions of source code must retain the above + * copyright notice, this list of conditions and the + * following disclaimer. + * + * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials + * provided with the distribution. + * + * Neither the name of the copyright holder nor the names + * of any other contributors may be used to endorse or + * promote products derived from this software without + * specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND + * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, + * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE + * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY + * OF SUCH DAMAGE. + */ +``` + +### OpenSSL + +``` + + LICENSE ISSUES + ============== + + The OpenSSL toolkit stays under a double license, i.e. both the conditions of + the OpenSSL License and the original SSLeay license apply to the toolkit. + See below for the actual license texts. + + OpenSSL License + --------------- + +/* ==================================================================== + * Copyright (c) 1998-2019 The OpenSSL Project. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. All advertising materials mentioning features or use of this + * software must display the following acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" + * + * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to + * endorse or promote products derived from this software without + * prior written permission. For written permission, please contact + * openssl-core@openssl.org. + * + * 5. Products derived from this software may not be called "OpenSSL" + * nor may "OpenSSL" appear in their names without prior written + * permission of the OpenSSL Project. + * + * 6. Redistributions of any form whatsoever must retain the following + * acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit (http://www.openssl.org/)" + * + * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY + * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * ==================================================================== + * + * This product includes cryptographic software written by Eric Young + * (eay@cryptsoft.com). This product includes software written by Tim + * Hudson (tjh@cryptsoft.com). + * + */ + + Original SSLeay License + ----------------------- + +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) + * All rights reserved. + * + * This package is an SSL implementation written + * by Eric Young (eay@cryptsoft.com). + * The implementation was written so as to conform with Netscapes SSL. + * + * This library is free for commercial and non-commercial use as long as + * the following conditions are aheared to. The following conditions + * apply to all code found in this distribution, be it the RC4, RSA, + * lhash, DES, etc., code; not just the SSL code. The SSL documentation + * included with this distribution is covered by the same copyright terms + * except that the holder is Tim Hudson (tjh@cryptsoft.com). + * + * Copyright remains Eric Young's, and as such any Copyright notices in + * the code are not to be removed. + * If this package is used in a product, Eric Young should be given attribution + * as the author of the parts of the library used. + * This can be in the form of a textual message at program startup or + * in documentation (online or textual) provided with the package. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * "This product includes cryptographic software written by + * Eric Young (eay@cryptsoft.com)" + * The word 'cryptographic' can be left out if the rouines from the library + * being used are not cryptographic related :-). + * 4. If you include any Windows specific code (or a derivative thereof) from + * the apps directory (application code) you must include an acknowledgement: + * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" + * + * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * The licence and distribution terms for any publically available version or + * derivative of this code cannot be changed. i.e. this code cannot simply be + * copied and put under another distribution licence + * [including the GNU Public Licence.] + */ +``` diff --git a/addons/godot-git-plugin/git_plugin.gdextension b/addons/godot-git-plugin/git_plugin.gdextension new file mode 100644 index 0000000..49fffbf --- /dev/null +++ b/addons/godot-git-plugin/git_plugin.gdextension @@ -0,0 +1,12 @@ +[configuration] + +entry_symbol = "git_plugin_init" +compatibility_minimum = "4.1.0" + +[libraries] + +macos.editor = "macos/libgit_plugin.macos.editor.universal.dylib" +windows.editor.x86_64 = "win64/libgit_plugin.windows.editor.x86_64.dll" +linux.editor.x86_64 = "linux/libgit_plugin.linux.editor.x86_64.so" +linux.editor.arm64 = "linux/libgit_plugin.linux.editor.arm64.so" +linux.editor.rv64 = "" diff --git a/addons/godot-git-plugin/linux/libgit_plugin.linux.editor.x86_64.so b/addons/godot-git-plugin/linux/libgit_plugin.linux.editor.x86_64.so new file mode 100644 index 0000000..8dab6db Binary files /dev/null and b/addons/godot-git-plugin/linux/libgit_plugin.linux.editor.x86_64.so differ diff --git a/addons/godot-git-plugin/macos/libgit_plugin.macos.editor.universal.dylib b/addons/godot-git-plugin/macos/libgit_plugin.macos.editor.universal.dylib new file mode 100644 index 0000000..644aa2a Binary files /dev/null and b/addons/godot-git-plugin/macos/libgit_plugin.macos.editor.universal.dylib differ diff --git a/addons/godot-git-plugin/plugin.cfg b/addons/godot-git-plugin/plugin.cfg new file mode 100644 index 0000000..9c4e36f --- /dev/null +++ b/addons/godot-git-plugin/plugin.cfg @@ -0,0 +1,7 @@ +[plugin] + +name="Godot Git Plugin" +description="This plugin lets you interact with Git without leaving the Godot editor. More information can be found at https://github.com/godotengine/godot-git-plugin/wiki" +author="twaritwaikar" +version="v3.1.1" +script="godot-git-plugin.gd" diff --git a/addons/godot-git-plugin/win64/libgit_plugin.windows.editor.x86_64.dll b/addons/godot-git-plugin/win64/libgit_plugin.windows.editor.x86_64.dll new file mode 100644 index 0000000..47bbb1d Binary files /dev/null and b/addons/godot-git-plugin/win64/libgit_plugin.windows.editor.x86_64.dll differ diff --git a/addons/godot-git-plugin/win64/libgit_plugin.windows.editor.x86_64.exp b/addons/godot-git-plugin/win64/libgit_plugin.windows.editor.x86_64.exp new file mode 100644 index 0000000..6c68d89 Binary files /dev/null and b/addons/godot-git-plugin/win64/libgit_plugin.windows.editor.x86_64.exp differ diff --git a/addons/godot-git-plugin/win64/libgit_plugin.windows.editor.x86_64.lib b/addons/godot-git-plugin/win64/libgit_plugin.windows.editor.x86_64.lib new file mode 100644 index 0000000..4537929 Binary files /dev/null and b/addons/godot-git-plugin/win64/libgit_plugin.windows.editor.x86_64.lib differ diff --git a/assets/Knewave-Regular.ttf b/assets/Knewave-Regular.ttf new file mode 100644 index 0000000..a98f750 Binary files /dev/null and b/assets/Knewave-Regular.ttf differ diff --git a/assets/Knewave-Regular.ttf.import b/assets/Knewave-Regular.ttf.import new file mode 100644 index 0000000..7710f19 --- /dev/null +++ b/assets/Knewave-Regular.ttf.import @@ -0,0 +1,34 @@ +[remap] + +importer="font_data_dynamic" +type="FontFile" +uid="uid://dobwqduhr1aav" +path="res://.godot/imported/Knewave-Regular.ttf-61192dea59d9e0bb6d56163e9dd01041.fontdata" + +[deps] + +source_file="res://assets/Knewave-Regular.ttf" +dest_files=["res://.godot/imported/Knewave-Regular.ttf-61192dea59d9e0bb6d56163e9dd01041.fontdata"] + +[params] + +Rendering=null +antialiasing=1 +generate_mipmaps=false +disable_embedded_bitmaps=true +multichannel_signed_distance_field=false +msdf_pixel_range=8 +msdf_size=48 +allow_system_fallback=true +force_autohinter=false +hinting=1 +subpixel_positioning=1 +oversampling=0.0 +Fallbacks=null +fallbacks=[] +Compress=null +compress=true +preload=[] +language_support={} +script_support={} +opentype_features={} diff --git a/assets/images/bird/1.png b/assets/images/bird/1.png new file mode 100644 index 0000000..8446ac9 Binary files /dev/null and b/assets/images/bird/1.png differ diff --git a/assets/images/bird/1.png.import b/assets/images/bird/1.png.import new file mode 100644 index 0000000..3355b84 --- /dev/null +++ b/assets/images/bird/1.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cg2pfy0xiqc2n" +path="res://.godot/imported/1.png-908270f64a3de74f7ebe475367915368.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/images/bird/1.png" +dest_files=["res://.godot/imported/1.png-908270f64a3de74f7ebe475367915368.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/images/bird/2.png b/assets/images/bird/2.png new file mode 100644 index 0000000..8656603 Binary files /dev/null and b/assets/images/bird/2.png differ diff --git a/assets/images/bird/2.png.import b/assets/images/bird/2.png.import new file mode 100644 index 0000000..bc26bac --- /dev/null +++ b/assets/images/bird/2.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://db8a4y650lxxq" +path="res://.godot/imported/2.png-241a33c53cd9c0ddbb860cfc32338050.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/images/bird/2.png" +dest_files=["res://.godot/imported/2.png-241a33c53cd9c0ddbb860cfc32338050.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/images/bird/traurig.png b/assets/images/bird/traurig.png new file mode 100644 index 0000000..57107a3 Binary files /dev/null and b/assets/images/bird/traurig.png differ diff --git a/assets/images/bird/traurig.png.import b/assets/images/bird/traurig.png.import new file mode 100644 index 0000000..589196c --- /dev/null +++ b/assets/images/bird/traurig.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bcsmsauyx5snh" +path="res://.godot/imported/traurig.png-5b911f23f851b823e94f455a92a83c23.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/images/bird/traurig.png" +dest_files=["res://.godot/imported/traurig.png-5b911f23f851b823e94f455a92a83c23.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/images/clouds/clouds.png b/assets/images/clouds/clouds.png new file mode 100644 index 0000000..2acf82e Binary files /dev/null and b/assets/images/clouds/clouds.png differ diff --git a/assets/images/clouds/clouds.png.import b/assets/images/clouds/clouds.png.import new file mode 100644 index 0000000..8184fbf --- /dev/null +++ b/assets/images/clouds/clouds.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cfks34adpcdyi" +path="res://.godot/imported/clouds.png-84a329442ee23525065a28cf3f3d3734.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/images/clouds/clouds.png" +dest_files=["res://.godot/imported/clouds.png-84a329442ee23525065a28cf3f3d3734.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/images/clouds/w1.png b/assets/images/clouds/w1.png new file mode 100644 index 0000000..2ce2d8c Binary files /dev/null and b/assets/images/clouds/w1.png differ diff --git a/assets/images/clouds/w1.png.import b/assets/images/clouds/w1.png.import new file mode 100644 index 0000000..2166d79 --- /dev/null +++ b/assets/images/clouds/w1.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://e7r6j5iktkup" +path="res://.godot/imported/w1.png-f56f56d9f0e2e6380a3a59021e49d8f1.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/images/clouds/w1.png" +dest_files=["res://.godot/imported/w1.png-f56f56d9f0e2e6380a3a59021e49d8f1.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/images/clouds/w2.png b/assets/images/clouds/w2.png new file mode 100644 index 0000000..849c65d Binary files /dev/null and b/assets/images/clouds/w2.png differ diff --git a/assets/images/clouds/w2.png.import b/assets/images/clouds/w2.png.import new file mode 100644 index 0000000..cf67464 --- /dev/null +++ b/assets/images/clouds/w2.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dbjajw8m740yl" +path="res://.godot/imported/w2.png-469468627d3e20e707acc93174b275d5.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/images/clouds/w2.png" +dest_files=["res://.godot/imported/w2.png-469468627d3e20e707acc93174b275d5.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/images/clouds/w3.png b/assets/images/clouds/w3.png new file mode 100644 index 0000000..68fc18d Binary files /dev/null and b/assets/images/clouds/w3.png differ diff --git a/assets/images/clouds/w3.png.import b/assets/images/clouds/w3.png.import new file mode 100644 index 0000000..3b31c99 --- /dev/null +++ b/assets/images/clouds/w3.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://pt2pxrk4105t" +path="res://.godot/imported/w3.png-0c294efaad2ccf2901c5e1cbc62655c7.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/images/clouds/w3.png" +dest_files=["res://.godot/imported/w3.png-0c294efaad2ccf2901c5e1cbc62655c7.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/images/clouds/w4.png b/assets/images/clouds/w4.png new file mode 100644 index 0000000..a2a553c Binary files /dev/null and b/assets/images/clouds/w4.png differ diff --git a/assets/images/clouds/w4.png.import b/assets/images/clouds/w4.png.import new file mode 100644 index 0000000..2615065 --- /dev/null +++ b/assets/images/clouds/w4.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://c2ty5xty0mk3t" +path="res://.godot/imported/w4.png-72cda81f6e99a6c75f2a81cfb329a747.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/images/clouds/w4.png" +dest_files=["res://.godot/imported/w4.png-72cda81f6e99a6c75f2a81cfb329a747.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/images/gui/exit.png b/assets/images/gui/exit.png new file mode 100644 index 0000000..27dc1bf Binary files /dev/null and b/assets/images/gui/exit.png differ diff --git a/assets/images/gui/exit.png.import b/assets/images/gui/exit.png.import new file mode 100644 index 0000000..c7f2cd7 --- /dev/null +++ b/assets/images/gui/exit.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bgqpcw6t22djf" +path="res://.godot/imported/exit.png-cbea6eb3f7dcd3f37dc034d993e13608.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/images/gui/exit.png" +dest_files=["res://.godot/imported/exit.png-cbea6eb3f7dcd3f37dc034d993e13608.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/images/gui/play.png b/assets/images/gui/play.png new file mode 100644 index 0000000..2bb9bb9 Binary files /dev/null and b/assets/images/gui/play.png differ diff --git a/assets/images/gui/play.png.import b/assets/images/gui/play.png.import new file mode 100644 index 0000000..f843f3a --- /dev/null +++ b/assets/images/gui/play.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://iuwyotlo7766" +path="res://.godot/imported/play.png-c21e5891f81ca38b2b714d92e8a5574c.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/images/gui/play.png" +dest_files=["res://.godot/imported/play.png-c21e5891f81ca38b2b714d92e8a5574c.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/images/gui/retry.png b/assets/images/gui/retry.png new file mode 100644 index 0000000..66d53d2 Binary files /dev/null and b/assets/images/gui/retry.png differ diff --git a/assets/images/gui/retry.png.import b/assets/images/gui/retry.png.import new file mode 100644 index 0000000..e61949f --- /dev/null +++ b/assets/images/gui/retry.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cpxhuqsntjjbf" +path="res://.godot/imported/retry.png-4f0066dc14f7b37838a2be25ffc7e445.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/images/gui/retry.png" +dest_files=["res://.godot/imported/retry.png-4f0066dc14f7b37838a2be25ffc7e445.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/images/icon.svg b/assets/images/icon.svg new file mode 100644 index 0000000..01e817c --- /dev/null +++ b/assets/images/icon.svg @@ -0,0 +1,360 @@ + +FloppyBortFloppyBort + + diff --git a/assets/images/icon.svg.import b/assets/images/icon.svg.import new file mode 100644 index 0000000..f993418 --- /dev/null +++ b/assets/images/icon.svg.import @@ -0,0 +1,37 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dcnjdj315cib4" +path="res://.godot/imported/icon.svg-2a379f463509f41fc5e90a1cd52fdb6b.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/images/icon.svg" +dest_files=["res://.godot/imported/icon.svg-2a379f463509f41fc5e90a1cd52fdb6b.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 +svg/scale=1.0 +editor/scale_with_editor_scale=false +editor/convert_colors_with_editor_theme=false diff --git a/assets/images/pipe.png b/assets/images/pipe.png new file mode 100644 index 0000000..063786a Binary files /dev/null and b/assets/images/pipe.png differ diff --git a/assets/images/pipe.png.import b/assets/images/pipe.png.import new file mode 100644 index 0000000..be930e5 --- /dev/null +++ b/assets/images/pipe.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bmcn41xuywnm5" +path="res://.godot/imported/pipe.png-b588f9471292fa6de2b11fdeac68598f.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/images/pipe.png" +dest_files=["res://.godot/imported/pipe.png-b588f9471292fa6de2b11fdeac68598f.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/sounds/jump.wav b/assets/sounds/jump.wav new file mode 100644 index 0000000..5e4e46f Binary files /dev/null and b/assets/sounds/jump.wav differ diff --git a/assets/sounds/jump.wav.import b/assets/sounds/jump.wav.import new file mode 100644 index 0000000..8d881b2 --- /dev/null +++ b/assets/sounds/jump.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://3ubywe0tisu" +path="res://.godot/imported/jump.wav-395b727cde98999423d5c020c9c3492f.sample" + +[deps] + +source_file="res://assets/sounds/jump.wav" +dest_files=["res://.godot/imported/jump.wav-395b727cde98999423d5c020c9c3492f.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_mode=0 +edit/loop_begin=0 +edit/loop_end=-1 +compress/mode=0 diff --git a/assets/sounds/over.wav b/assets/sounds/over.wav new file mode 100644 index 0000000..47d43f0 Binary files /dev/null and b/assets/sounds/over.wav differ diff --git a/assets/sounds/over.wav.import b/assets/sounds/over.wav.import new file mode 100644 index 0000000..cee5873 --- /dev/null +++ b/assets/sounds/over.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://omt6wktm4pnv" +path="res://.godot/imported/over.wav-a2c4b3f36cfe57fed9a5b3a95454c021.sample" + +[deps] + +source_file="res://assets/sounds/over.wav" +dest_files=["res://.godot/imported/over.wav-a2c4b3f36cfe57fed9a5b3a95454c021.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_mode=0 +edit/loop_begin=0 +edit/loop_end=-1 +compress/mode=0 diff --git a/assets/sounds/popcorn.wav b/assets/sounds/popcorn.wav new file mode 100644 index 0000000..3643c2a Binary files /dev/null and b/assets/sounds/popcorn.wav differ diff --git a/assets/sounds/popcorn.wav.import b/assets/sounds/popcorn.wav.import new file mode 100644 index 0000000..1eadd74 --- /dev/null +++ b/assets/sounds/popcorn.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://qjevjhqvykkg" +path="res://.godot/imported/popcorn.wav-ee4835cf74470d49647e63774bd8706d.sample" + +[deps] + +source_file="res://assets/sounds/popcorn.wav" +dest_files=["res://.godot/imported/popcorn.wav-ee4835cf74470d49647e63774bd8706d.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_mode=2 +edit/loop_begin=0 +edit/loop_end=-1 +compress/mode=0 diff --git a/builds/Floppy_Bort_v0.2.apk b/builds/Floppy_Bort_v0.2.apk new file mode 100644 index 0000000..e9756cc Binary files /dev/null and b/builds/Floppy_Bort_v0.2.apk differ diff --git a/default_bus_layout.tres b/default_bus_layout.tres new file mode 100644 index 0000000..74d71b4 --- /dev/null +++ b/default_bus_layout.tres @@ -0,0 +1,16 @@ +[gd_resource type="AudioBusLayout" format=3 uid="uid://7i8qvoyp7now"] + +[resource] +bus/0/volume_db = 6.02 +bus/1/name = &"Music" +bus/1/solo = false +bus/1/mute = false +bus/1/bypass_fx = false +bus/1/volume_db = 6.02 +bus/1/send = &"Master" +bus/2/name = &"Effects" +bus/2/solo = false +bus/2/mute = false +bus/2/bypass_fx = false +bus/2/volume_db = 6.02 +bus/2/send = &"Master" diff --git a/export_presets.cfg b/export_presets.cfg new file mode 100644 index 0000000..5221ccf --- /dev/null +++ b/export_presets.cfg @@ -0,0 +1,207 @@ +[preset.0] + +name="Android" +platform="Android" +runnable=true +advanced_options=false +dedicated_server=false +custom_features="" +export_filter="all_resources" +include_filter="" +exclude_filter="" +export_path="builds/Floppy_Bort_v0.2.apk" +encryption_include_filters="" +encryption_exclude_filters="" +encrypt_pck=false +encrypt_directory=false +script_export_mode=2 + +[preset.0.options] + +custom_template/debug="" +custom_template/release="" +gradle_build/use_gradle_build=true +gradle_build/gradle_build_directory="" +gradle_build/android_source_template="" +gradle_build/compress_native_libraries=false +gradle_build/export_format=0 +gradle_build/min_sdk="" +gradle_build/target_sdk="" +architectures/armeabi-v7a=false +architectures/arm64-v8a=true +architectures/x86=false +architectures/x86_64=false +version/code=1 +version/name="" +package/unique_name="at.megamich.$genname" +package/name="Floppy Bort" +package/signed=false +package/app_category=2 +package/retain_data_on_uninstall=false +package/exclude_from_recents=false +package/show_in_android_tv=true +package/show_in_app_library=true +package/show_as_launcher_app=false +launcher_icons/main_192x192="" +launcher_icons/adaptive_foreground_432x432="" +launcher_icons/adaptive_background_432x432="" +graphics/opengl_debug=false +xr_features/xr_mode=0 +screen/immersive_mode=true +screen/support_small=true +screen/support_normal=true +screen/support_large=true +screen/support_xlarge=true +user_data_backup/allow=false +command_line/extra_args="" +apk_expansion/enable=false +apk_expansion/SALT="" +apk_expansion/public_key="" +permissions/custom_permissions=PackedStringArray() +permissions/access_checkin_properties=false +permissions/access_coarse_location=false +permissions/access_fine_location=false +permissions/access_location_extra_commands=false +permissions/access_mock_location=false +permissions/access_network_state=false +permissions/access_surface_flinger=false +permissions/access_wifi_state=false +permissions/account_manager=false +permissions/add_voicemail=false +permissions/authenticate_accounts=false +permissions/battery_stats=false +permissions/bind_accessibility_service=false +permissions/bind_appwidget=false +permissions/bind_device_admin=false +permissions/bind_input_method=false +permissions/bind_nfc_service=false +permissions/bind_notification_listener_service=false +permissions/bind_print_service=false +permissions/bind_remoteviews=false +permissions/bind_text_service=false +permissions/bind_vpn_service=false +permissions/bind_wallpaper=false +permissions/bluetooth=false +permissions/bluetooth_admin=false +permissions/bluetooth_privileged=false +permissions/brick=false +permissions/broadcast_package_removed=false +permissions/broadcast_sms=false +permissions/broadcast_sticky=false +permissions/broadcast_wap_push=false +permissions/call_phone=false +permissions/call_privileged=false +permissions/camera=false +permissions/capture_audio_output=false +permissions/capture_secure_video_output=false +permissions/capture_video_output=false +permissions/change_component_enabled_state=false +permissions/change_configuration=false +permissions/change_network_state=false +permissions/change_wifi_multicast_state=false +permissions/change_wifi_state=false +permissions/clear_app_cache=false +permissions/clear_app_user_data=false +permissions/control_location_updates=false +permissions/delete_cache_files=false +permissions/delete_packages=false +permissions/device_power=false +permissions/diagnostic=false +permissions/disable_keyguard=false +permissions/dump=false +permissions/expand_status_bar=false +permissions/factory_test=false +permissions/flashlight=false +permissions/force_back=false +permissions/get_accounts=false +permissions/get_package_size=false +permissions/get_tasks=false +permissions/get_top_activity_info=false +permissions/global_search=false +permissions/hardware_test=false +permissions/inject_events=false +permissions/install_location_provider=false +permissions/install_packages=false +permissions/install_shortcut=false +permissions/internal_system_window=false +permissions/internet=false +permissions/kill_background_processes=false +permissions/location_hardware=false +permissions/manage_accounts=false +permissions/manage_app_tokens=false +permissions/manage_documents=false +permissions/manage_external_storage=false +permissions/master_clear=false +permissions/media_content_control=false +permissions/modify_audio_settings=false +permissions/modify_phone_state=false +permissions/mount_format_filesystems=false +permissions/mount_unmount_filesystems=false +permissions/nfc=false +permissions/persistent_activity=false +permissions/post_notifications=false +permissions/process_outgoing_calls=false +permissions/read_calendar=false +permissions/read_call_log=false +permissions/read_contacts=false +permissions/read_external_storage=false +permissions/read_frame_buffer=false +permissions/read_history_bookmarks=false +permissions/read_input_state=false +permissions/read_logs=false +permissions/read_phone_state=false +permissions/read_profile=false +permissions/read_sms=false +permissions/read_social_stream=false +permissions/read_sync_settings=false +permissions/read_sync_stats=false +permissions/read_user_dictionary=false +permissions/reboot=false +permissions/receive_boot_completed=false +permissions/receive_mms=false +permissions/receive_sms=false +permissions/receive_wap_push=false +permissions/record_audio=false +permissions/reorder_tasks=false +permissions/restart_packages=false +permissions/send_respond_via_message=false +permissions/send_sms=false +permissions/set_activity_watcher=false +permissions/set_alarm=false +permissions/set_always_finish=false +permissions/set_animation_scale=false +permissions/set_debug_app=false +permissions/set_orientation=false +permissions/set_pointer_speed=false +permissions/set_preferred_applications=false +permissions/set_process_limit=false +permissions/set_time=false +permissions/set_time_zone=false +permissions/set_wallpaper=false +permissions/set_wallpaper_hints=false +permissions/signal_persistent_processes=false +permissions/status_bar=false +permissions/subscribed_feeds_read=false +permissions/subscribed_feeds_write=false +permissions/system_alert_window=false +permissions/transmit_ir=false +permissions/uninstall_shortcut=false +permissions/update_device_stats=false +permissions/use_credentials=false +permissions/use_sip=false +permissions/vibrate=false +permissions/wake_lock=false +permissions/write_apn_settings=false +permissions/write_calendar=false +permissions/write_call_log=false +permissions/write_contacts=false +permissions/write_external_storage=false +permissions/write_gservices=false +permissions/write_history_bookmarks=false +permissions/write_profile=false +permissions/write_secure_settings=false +permissions/write_settings=false +permissions/write_sms=false +permissions/write_social_stream=false +permissions/write_sync_settings=false +permissions/write_user_dictionary=false diff --git a/icon.png b/icon.png new file mode 100644 index 0000000..b9a3b53 Binary files /dev/null and b/icon.png differ diff --git a/icon.png.import b/icon.png.import new file mode 100644 index 0000000..30f4473 --- /dev/null +++ b/icon.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://chkpw3t1i4il1" +path="res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://icon.png" +dest_files=["res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/project.godot b/project.godot new file mode 100644 index 0000000..1a33ee1 --- /dev/null +++ b/project.godot @@ -0,0 +1,62 @@ +; 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=5 + +[application] + +config/name="Floppy Bort" +config/description="N plappy Bird Clon in Godot" +config/version="0.2" +run/main_scene="res://scenes/gui/startscreen/startscreen.tscn" +config/features=PackedStringArray("4.3", "Mobile") +boot_splash/bg_color=Color(0.796078, 0.960784, 0.996078, 1) +boot_splash/image="res://icon.png" +config/icon="res://icon.png" + +[display] + +window/size/viewport_width=1200 +window/size/viewport_height=700 +window/stretch/mode="viewport" +window/stretch/aspect="keep_height" +window/handheld/orientation=4 + +[file_customization] + +folder_colors={ +"res://addons/": "gray", +"res://android/": "gray", +"res://assets/": "green", +"res://scenes/": "blue" +} + +[input] + +jump={ +"deadzone": 0.5, +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":32,"key_label":0,"unicode":32,"location":0,"echo":false,"script":null) +, Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"button_mask":1,"position":Vector2(240, 21),"global_position":Vector2(249, 67),"factor":1.0,"button_index":1,"canceled":false,"pressed":true,"double_click":false,"script":null) +] +} +mouse_click={ +"deadzone": 0.5, +"events": [Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"button_mask":1,"position":Vector2(170, 26),"global_position":Vector2(179, 72),"factor":1.0,"button_index":1,"canceled":false,"pressed":true,"double_click":false,"script":null) +] +} + +[orchestrator] + +settings/notify_about_pre-releases=false +settings/action_favorites=PackedStringArray("Methods/Node/_process", "Methods/Node/_physics_process") + +[rendering] + +textures/canvas_textures/default_texture_filter=0 +renderer/rendering_method="mobile" +textures/vram_compression/import_etc2_astc=true diff --git a/scenes/background/background.tscn b/scenes/background/background.tscn new file mode 100644 index 0000000..ca00c7a --- /dev/null +++ b/scenes/background/background.tscn @@ -0,0 +1,29 @@ +[gd_scene load_steps=2 format=3 uid="uid://pkc0xylwcsvx"] + +[ext_resource type="Script" path="res://scenes/background/cloud_spawner.gd" id="1_luuon"] + +[node name="Background" type="CanvasLayer"] +layer = -1 + +[node name="clouds" type="Node2D" parent="."] +position = Vector2(1568, 0) + +[node name="cloud spawner" type="Marker2D" parent="."] +position = Vector2(1568, 0) +script = ExtResource("1_luuon") + +[node name="spawn" type="Timer" parent="cloud spawner"] +wait_time = 1.5 +autostart = true + +[node name="ColorRect" type="ColorRect" parent="."] +z_index = -1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +color = Color(0.815686, 0.964706, 1, 1) +metadata/_edit_lock_ = true + +[connection signal="timeout" from="cloud spawner/spawn" to="cloud spawner" method="_on_spawn_timeout"] diff --git a/scenes/background/cloud_spawner.gd b/scenes/background/cloud_spawner.gd new file mode 100644 index 0000000..a1fb0d8 --- /dev/null +++ b/scenes/background/cloud_spawner.gd @@ -0,0 +1,9 @@ +extends Marker2D + + + +const cloud = preload("res://scenes/cloud/cloud.tscn") +func _on_spawn_timeout() -> void: + var instance = cloud.instantiate() + instance.global_position = Vector2(0,randi_range(0,600)) + $"../clouds".add_child(instance) diff --git a/scenes/bird/bird.gd b/scenes/bird/bird.gd new file mode 100644 index 0000000..0f248bc --- /dev/null +++ b/scenes/bird/bird.gd @@ -0,0 +1,18 @@ +extends CharacterBody2D + +var gravity = Vector2(0,960) +var jump_power = -400 + +func _ready() -> void: + $AnimatedSprite2D.play("fly") + +func _physics_process(delta: float) -> void: + velocity += gravity*delta + move_and_slide() + rotate(deg_to_rad(1)) + +func _process(_delta: float) -> void: + if Input.is_action_just_pressed("jump"): + velocity.y = jump_power + global_rotation_degrees = -20 + $Jump.play() diff --git a/scenes/bird/bird.torch b/scenes/bird/bird.torch new file mode 100644 index 0000000..b95bd7b --- /dev/null +++ b/scenes/bird/bird.torch @@ -0,0 +1,700 @@ +[orchestration type="OScript" load_steps=35 format=3 uid="uid://ww1ngor7ja6d"] + +[obj type="OScriptFunction" id="OScriptFunction_wacfw"] +guid = "1031B61B-76FF-40DD-B385-F9B26B7C8CDC" +method = { +"name": &"_physics_process", +"flags": 8, +"args": [{ +"name": &"delta", +"type": 3 +}] +} +id = 1 + +[obj type="OScriptFunction" id="OScriptFunction_h5uke"] +guid = "610292FB-E2A2-493E-81FB-62E3435DC01D" +method = { +"name": &"jump" +} +user_defined = true +id = 32 + +[obj type="OScriptFunction" id="OScriptFunction_ldnlh"] +guid = "2269B6A6-E34A-4025-9D29-185AA4F130F7" +method = { +"name": &"_process", +"flags": 8, +"args": [{ +"name": &"delta", +"type": 3 +}] +} +id = 39 + +[obj type="OScriptFunction" id="OScriptFunction_ymphy"] +guid = "87A9D0AC-71D1-40A8-93A0-8FD28A66B5F5" +method = { +"name": &"_ready", +"flags": 8 +} +id = 40 + +[obj type="OScriptGraph" id="OScriptGraph_vnwp4"] +graph_name = &"EventGraph" +offset = Vector2(93.2317, -555.105) +zoom = 0.309548 +flags = 8 +nodes = Array[int]([1, 2, 4, 8, 10, 11, 12, 17, 35, 36, 39, 40, 41, 42, 43, 47]) +functions = Array[int]([1, 39, 40]) + +[obj type="OScriptGraph" id="OScriptGraph_rdlud"] +graph_name = &"jump" +offset = Vector2(441.83, -230.321) +zoom = 0.548383 +flags = 22 +nodes = Array[int]([27, 28, 29, 30, 31, 32, 37, 38, 50, 51]) +functions = Array[int]([32]) + +[obj type="OScriptNodeEvent" id="OScriptNodeEvent_r0lqa"] +function_id = "1031B61B-76FF-40DD-B385-F9B26B7C8CDC" +id = 1 +position = Vector2(640, -880) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"delta", +"type": 3, +"dir": 1, +"flags": 2 +}]) + +[obj type="OScriptNodeCallMemberFunction" id="OScriptNodeCallMemberFunction_rfkh0"] +function_name = &"move_and_slide" +target_class_name = "CharacterBody2D" +target_type = 24 +flags = 520 +method = { +"name": &"move_and_slide", +"return": { +"type": 1 +} +} +chain = false +id = 2 +position = Vector2(1840, -880) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 4 +}, { +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"target", +"type": 24, +"flags": 2050, +"label": "CharacterBody2D", +"target_class": "CharacterBody2D" +}, { +"pin_name": &"return_value", +"type": 1, +"dir": 1, +"flags": 1026 +}]) + +[obj type="OScriptNodeCallMemberFunction" id="OScriptNodeCallMemberFunction_b3n7e"] +function_name = &"set_velocity" +target_class_name = "CharacterBody2D" +target_type = 24 +flags = 520 +method = { +"name": &"set_velocity", +"args": [{ +"name": &"velocity", +"type": 5 +}] +} +chain = false +id = 4 +position = Vector2(1600, -880) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 4 +}, { +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"target", +"type": 24, +"flags": 2050, +"label": "CharacterBody2D", +"target_class": "CharacterBody2D" +}, { +"pin_name": &"velocity", +"type": 5, +"flags": 2, +"dv": Vector2(0, 0) +}]) + +[obj type="OScriptNodeVariableGet" id="OScriptNodeVariableGet_1du6l"] +variable_name = &"gravity" +id = 8 +position = Vector2(980, -680) +pin_data = Array[Dictionary]([{ +"pin_name": &"value", +"type": 5, +"dir": 1, +"flags": 2050, +"label": "gravity", +"usage": 4102 +}]) + +[obj type="OScriptNodeCallMemberFunction" id="OScriptNodeCallMemberFunction_anne1"] +function_name = &"get_velocity" +target_class_name = "CharacterBody2D" +target_type = 24 +flags = 522 +method = { +"name": &"get_velocity", +"return": { +"type": 5 +}, +"flags": 5 +} +chain = false +id = 10 +position = Vector2(1200, -820) +pin_data = Array[Dictionary]([{ +"pin_name": &"target", +"type": 24, +"flags": 2050, +"label": "CharacterBody2D", +"target_class": "CharacterBody2D" +}, { +"pin_name": &"return_value", +"type": 5, +"dir": 1, +"flags": 1026 +}]) + +[obj type="OScriptNodeOperator" id="OScriptNodeOperator_22rt0"] +op = 6 +code = &"+" +name = &"Addition" +left_type = 5 +left_type_name = &"Vector2" +right_type = 5 +right_type_name = &"Vector2" +return_type = 5 +id = 11 +position = Vector2(1380, -700) +pin_data = Array[Dictionary]([{ +"pin_name": &"a", +"type": 5, +"flags": 2 +}, { +"pin_name": &"b", +"type": 5, +"flags": 2 +}, { +"pin_name": &"result", +"type": 5, +"dir": 1, +"flags": 2 +}]) + +[obj type="OScriptNodeOperator" id="OScriptNodeOperator_383al"] +op = 8 +code = &"*" +name = &"Multiply" +left_type = 5 +left_type_name = &"Vector2" +right_type = 3 +right_type_name = &"float" +return_type = 5 +id = 12 +position = Vector2(1180, -680) +pin_data = Array[Dictionary]([{ +"pin_name": &"a", +"type": 5, +"flags": 2 +}, { +"pin_name": &"b", +"type": 3, +"flags": 2 +}, { +"pin_name": &"result", +"type": 5, +"dir": 1, +"flags": 2 +}]) + +[obj type="OScriptNodeBranch" id="OScriptNodeBranch_5iqlh"] +id = 17 +position = Vector2(1040, -540) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 516, +"label": "if [condition]" +}, { +"pin_name": &"condition", +"type": 1, +"flags": 2, +"dv": false +}, { +"pin_name": &"true", +"dir": 1, +"flags": 516 +}, { +"pin_name": &"false", +"dir": 1, +"flags": 516 +}]) + +[obj type="OScriptNodeCallMemberFunction" id="OScriptNodeCallMemberFunction_tcko8"] +function_name = &"set_velocity" +target_class_name = "CharacterBody2D" +target_type = 24 +flags = 520 +method = { +"name": &"set_velocity", +"args": [{ +"name": &"velocity", +"type": 5 +}] +} +chain = false +id = 27 +position = Vector2(1440, -420) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 4 +}, { +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"target", +"type": 24, +"flags": 2050, +"label": "CharacterBody2D", +"target_class": "CharacterBody2D" +}, { +"pin_name": &"velocity", +"type": 5, +"flags": 2, +"dv": Vector2(0, 0) +}]) + +[obj type="OScriptNodeCallMemberFunction" id="OScriptNodeCallMemberFunction_7eptu"] +function_name = &"get_velocity" +target_class_name = "CharacterBody2D" +target_type = 24 +flags = 522 +method = { +"name": &"get_velocity", +"return": { +"type": 5 +}, +"flags": 5 +} +chain = false +id = 28 +position = Vector2(880, -340) +pin_data = Array[Dictionary]([{ +"pin_name": &"target", +"type": 24, +"flags": 2050, +"label": "CharacterBody2D", +"target_class": "CharacterBody2D" +}, { +"pin_name": &"return_value", +"type": 5, +"dir": 1, +"flags": 1026 +}]) + +[obj type="OScriptNodeComposeFrom" id="OScriptNodeComposeFrom_rt7wi"] +id = 29 +position = Vector2(1060, -220) +pin_data = Array[Dictionary]([{ +"pin_name": &"x", +"type": 3, +"flags": 2 +}, { +"pin_name": &"y", +"type": 3, +"flags": 2, +"dv": 0.0 +}, { +"pin_name": &"value", +"type": 5, +"dir": 1, +"flags": 2, +"dv": Vector2(0, 0) +}]) + +[obj type="OScriptNodeOperator" id="OScriptNodeOperator_ygt6u"] +op = 8 +code = &"*" +name = &"Multiply" +left_type = 5 +left_type_name = &"Vector2" +right_type = 3 +right_type_name = &"float" +return_type = 5 +id = 30 +position = Vector2(1060, -340) +pin_data = Array[Dictionary]([{ +"pin_name": &"a", +"type": 5, +"flags": 2 +}, { +"pin_name": &"b", +"type": 3, +"flags": 2 +}, { +"pin_name": &"result", +"type": 5, +"dir": 1, +"flags": 2 +}]) + +[obj type="OScriptNodeOperator" id="OScriptNodeOperator_trt2o"] +op = 6 +code = &"+" +name = &"Addition" +left_type = 5 +left_type_name = &"Vector2" +right_type = 5 +right_type_name = &"Vector2" +return_type = 5 +id = 31 +position = Vector2(1260, -340) +pin_data = Array[Dictionary]([{ +"pin_name": &"a", +"type": 5, +"flags": 2 +}, { +"pin_name": &"b", +"type": 5, +"flags": 2 +}, { +"pin_name": &"result", +"type": 5, +"dir": 1, +"flags": 2 +}]) + +[obj type="OScriptNodeFunctionEntry" id="OScriptNodeFunctionEntry_e8ych"] +function_id = "610292FB-E2A2-493E-81FB-62E3435DC01D" +id = 32 +position = Vector2(880, -420) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}]) + +[obj type="OScriptNodeInputAction" id="OScriptNodeInputAction_pvc4a"] +action = "jump" +mode = 2 +id = 35 +position = Vector2(860, -480) +pin_data = Array[Dictionary]([{ +"pin_name": &"state", +"type": 1, +"dir": 1, +"flags": 2, +"label": "Just Pressed" +}]) + +[obj type="OScriptNodeCallScriptFunction" id="OScriptNodeCallScriptFunction_ixi38"] +guid = "610292FB-E2A2-493E-81FB-62E3435DC01D" +function_name = &"jump" +flags = 8 +id = 36 +position = Vector2(1300, -540) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 4 +}, { +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}]) + +[obj type="OScriptNodeCallMemberFunction" id="OScriptNodeCallMemberFunction_fmhbm"] +function_name = &"set_global_rotation_degrees" +target_class_name = "Node2D" +target_type = 24 +flags = 520 +method = { +"name": &"set_global_rotation_degrees", +"args": [{ +"name": &"degrees", +"type": 3 +}] +} +chain = false +id = 37 +position = Vector2(1660, -420) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 4 +}, { +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"target", +"type": 24, +"flags": 2050, +"label": "Node2D", +"target_class": "Node2D" +}, { +"pin_name": &"degrees", +"type": 3, +"flags": 2, +"dv": -20.0 +}]) + +[obj type="OScriptNodeVariableGet" id="OScriptNodeVariableGet_v87hg"] +variable_name = &"jumppower" +id = 38 +position = Vector2(820, -220) +pin_data = Array[Dictionary]([{ +"pin_name": &"value", +"type": 3, +"dir": 1, +"flags": 2050, +"label": "jumppower", +"usage": 4102 +}]) + +[obj type="OScriptNodeEvent" id="OScriptNodeEvent_7kgk0"] +function_id = "2269B6A6-E34A-4025-9D29-185AA4F130F7" +id = 39 +position = Vector2(640, -540) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"delta", +"type": 3, +"dir": 1, +"flags": 2 +}]) + +[obj type="OScriptNodeEvent" id="OScriptNodeEvent_6iwbn"] +function_id = "87A9D0AC-71D1-40A8-93A0-8FD28A66B5F5" +id = 40 +position = Vector2(640, -260) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}]) + +[obj type="OScriptNodeSceneNode" id="OScriptNodeSceneNode_ibax8"] +node_path = NodePath("AnimatedSprite2D") +target_class_name = "AnimatedSprite2D" +id = 41 +position = Vector2(620, -180) +pin_data = Array[Dictionary]([{ +"pin_name": &"AnimatedSprite2D", +"type": 24, +"dir": 1, +"flags": 2050, +"target_class": "AnimatedSprite2D" +}]) + +[obj type="OScriptNodeCallMemberFunction" id="OScriptNodeCallMemberFunction_57klu"] +function_name = &"play" +target_class_name = "AnimatedSprite2D" +target_type = 24 +flags = 520 +method = { +"name": &"play", +"default_args": [&"", 1.0, false], +"args": [{ +"name": &"name", +"type": 21 +}, { +"name": &"custom_speed", +"type": 3 +}, { +"name": &"from_end", +"type": 1 +}] +} +chain = false +id = 42 +position = Vector2(900, -260) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 4 +}, { +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"target", +"type": 24, +"flags": 2050, +"label": "AnimatedSprite2D", +"target_class": "AnimatedSprite2D" +}, { +"pin_name": &"name", +"type": 21, +"flags": 2, +"dv": "fly" +}, { +"pin_name": &"custom_speed", +"type": 3, +"flags": 2, +"dv": 1.0, +"gdv": 1.0 +}, { +"pin_name": &"from_end", +"type": 1, +"flags": 2, +"dv": false +}]) + +[obj type="OScriptNodeCallMemberFunction" id="OScriptNodeCallMemberFunction_34or8"] +function_name = &"rotate" +target_class_name = "Node2D" +target_type = 24 +flags = 520 +method = { +"name": &"rotate", +"args": [{ +"name": &"radians", +"type": 3 +}] +} +chain = false +id = 43 +position = Vector2(2100, -820) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 4 +}, { +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"target", +"type": 24, +"flags": 2050, +"label": "Node2D", +"target_class": "Node2D" +}, { +"pin_name": &"radians", +"type": 3, +"flags": 2, +"dv": 0.0 +}]) + +[obj type="OScriptNodeCallBuiltinFunction" id="OScriptNodeCallBuiltinFunction_yeao5"] +function_name = &"deg_to_rad" +method = { +"name": &"deg_to_rad", +"return": { +"type": 3 +}, +"args": [{ +"name": &"deg", +"type": 3 +}] +} +id = 47 +position = Vector2(1880, -760) +pin_data = Array[Dictionary]([{ +"pin_name": &"deg", +"type": 3, +"flags": 2, +"dv": 1.0 +}, { +"pin_name": &"return_value", +"type": 3, +"dir": 1, +"flags": 1026 +}]) + +[obj type="OScriptNodeSceneNode" id="OScriptNodeSceneNode_qgbbb"] +node_path = NodePath("Jump") +target_class_name = "AudioStreamPlayer" +id = 50 +position = Vector2(1980, -360) +pin_data = Array[Dictionary]([{ +"pin_name": &"Jump", +"type": 24, +"dir": 1, +"flags": 2050, +"target_class": "AudioStreamPlayer" +}]) + +[obj type="OScriptNodeCallMemberFunction" id="OScriptNodeCallMemberFunction_baiiq"] +function_name = &"play" +target_class_name = "AudioStreamPlayer" +target_type = 24 +flags = 520 +method = { +"name": &"play", +"default_args": [0.0], +"args": [{ +"name": &"from_position", +"type": 3 +}] +} +chain = false +id = 51 +position = Vector2(2200, -420) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 4 +}, { +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"target", +"type": 24, +"flags": 2050, +"label": "AudioStreamPlayer", +"target_class": "AudioStreamPlayer" +}, { +"pin_name": &"from_position", +"type": 3, +"flags": 2, +"dv": 0.0 +}]) + +[obj type="OScriptVariable" id="OScriptVariable_76gxp"] +name = "gravity" +category = "Default" +classification = "type:Vector2" +type = 5 +default_value = Vector2(0, 960) + +[obj type="OScriptVariable" id="OScriptVariable_sqwey"] +name = "jumppower" +category = "Default" +classification = "type:float" +type = 3 +default_value = -400.0 + +[resource] +base_type = &"CharacterBody2D" +variables = Array[OScriptVariable]([SubResource("OScriptVariable_76gxp"), SubResource("OScriptVariable_sqwey")]) +functions = Array[OScriptFunction]([SubResource("OScriptFunction_wacfw"), SubResource("OScriptFunction_h5uke"), SubResource("OScriptFunction_ldnlh"), SubResource("OScriptFunction_ymphy")]) +connections = Array[int]([4, 0, 2, 0, 1, 0, 4, 0, 10, 0, 11, 0, 8, 0, 12, 0, 39, 0, 17, 0, 32, 0, 27, 0, 28, 0, 30, 0, 30, 0, 31, 0, 17, 0, 36, 0, 27, 0, 37, 0, 40, 0, 42, 0, 2, 0, 43, 0, 37, 0, 51, 0, 12, 0, 11, 1, 1, 1, 12, 1, 35, 0, 17, 1, 38, 0, 29, 1, 29, 0, 31, 1, 41, 0, 42, 1, 50, 0, 51, 1, 11, 0, 4, 2, 31, 0, 27, 2, 47, 0, 43, 2]) +nodes = Array[OScriptNode]([SubResource("OScriptNodeEvent_r0lqa"), SubResource("OScriptNodeCallMemberFunction_rfkh0"), SubResource("OScriptNodeCallMemberFunction_b3n7e"), SubResource("OScriptNodeVariableGet_1du6l"), SubResource("OScriptNodeCallMemberFunction_anne1"), SubResource("OScriptNodeOperator_22rt0"), SubResource("OScriptNodeOperator_383al"), SubResource("OScriptNodeBranch_5iqlh"), SubResource("OScriptNodeCallMemberFunction_tcko8"), SubResource("OScriptNodeCallMemberFunction_7eptu"), SubResource("OScriptNodeComposeFrom_rt7wi"), SubResource("OScriptNodeOperator_ygt6u"), SubResource("OScriptNodeOperator_trt2o"), SubResource("OScriptNodeFunctionEntry_e8ych"), SubResource("OScriptNodeInputAction_pvc4a"), SubResource("OScriptNodeCallScriptFunction_ixi38"), SubResource("OScriptNodeCallMemberFunction_fmhbm"), SubResource("OScriptNodeVariableGet_v87hg"), SubResource("OScriptNodeEvent_7kgk0"), SubResource("OScriptNodeEvent_6iwbn"), SubResource("OScriptNodeSceneNode_ibax8"), SubResource("OScriptNodeCallMemberFunction_57klu"), SubResource("OScriptNodeCallMemberFunction_34or8"), SubResource("OScriptNodeCallBuiltinFunction_yeao5"), SubResource("OScriptNodeSceneNode_qgbbb"), SubResource("OScriptNodeCallMemberFunction_baiiq")]) +graphs = Array[OScriptGraph]([SubResource("OScriptGraph_vnwp4"), SubResource("OScriptGraph_rdlud")]) diff --git a/scenes/bird/bird.tscn b/scenes/bird/bird.tscn new file mode 100644 index 0000000..261c2cf --- /dev/null +++ b/scenes/bird/bird.tscn @@ -0,0 +1,50 @@ +[gd_scene load_steps=8 format=3 uid="uid://p4ok7pbb7jks"] + +[ext_resource type="Texture2D" uid="uid://cg2pfy0xiqc2n" path="res://assets/images/bird/1.png" id="1_bfb63"] +[ext_resource type="Script" path="res://scenes/bird/bird.gd" id="1_qkdre"] +[ext_resource type="Texture2D" uid="uid://bcsmsauyx5snh" path="res://assets/images/bird/traurig.png" id="2_vjjeb"] +[ext_resource type="Texture2D" uid="uid://db8a4y650lxxq" path="res://assets/images/bird/2.png" id="4_yix81"] +[ext_resource type="AudioStream" uid="uid://3ubywe0tisu" path="res://assets/sounds/jump.wav" id="5_bp6ee"] + +[sub_resource type="SpriteFrames" id="SpriteFrames_lt608"] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": ExtResource("2_vjjeb") +}], +"loop": true, +"name": &"die", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": ExtResource("1_bfb63") +}, { +"duration": 1.0, +"texture": ExtResource("4_yix81") +}], +"loop": true, +"name": &"fly", +"speed": 3.0 +}] + +[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_er0y6"] +radius = 23.0 +height = 68.0 + +[node name="bird" type="CharacterBody2D"] +script = ExtResource("1_qkdre") + +[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] +scale = Vector2(4, 4) +sprite_frames = SubResource("SpriteFrames_lt608") +animation = &"fly" +frame_progress = 0.779322 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="."] +rotation = 1.5708 +shape = SubResource("CapsuleShape2D_er0y6") + +[node name="Jump" type="AudioStreamPlayer" parent="."] +stream = ExtResource("5_bp6ee") +bus = &"Effects" diff --git a/scenes/cloud/cloud.gd b/scenes/cloud/cloud.gd new file mode 100644 index 0000000..16d7023 --- /dev/null +++ b/scenes/cloud/cloud.gd @@ -0,0 +1,15 @@ +extends Sprite2D + +var speed:int + +# Called when the node enters the scene tree for the first time. +func _ready() -> void: + frame = randi_range(0,3) + var sc = randi_range(1,6) + scale = Vector2(sc,sc) + speed = randi_range(-1,-4) + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(_delta: float) -> void: + global_position.x += speed diff --git a/scenes/cloud/cloud.torch b/scenes/cloud/cloud.torch new file mode 100644 index 0000000..e750e1d --- /dev/null +++ b/scenes/cloud/cloud.torch @@ -0,0 +1,470 @@ +[orchestration type="OScript" load_steps=23 format=3 uid="uid://dk1fj1b34j6oe"] + +[obj type="OScriptFunction" id="OScriptFunction_ngs18"] +guid = "4E93ED4F-1566-4AD5-885A-21A5B25A0020" +method = { +"name": &"_ready", +"flags": 8 +} +id = 0 + +[obj type="OScriptFunction" id="OScriptFunction_hl67t"] +guid = "68015AFE-F296-4A95-AF87-0D2149ABD799" +method = { +"name": &"_process", +"flags": 8, +"args": [{ +"name": &"delta", +"type": 3 +}] +} +id = 4 + +[obj type="OScriptFunction" id="OScriptFunction_hy1i5"] +guid = "C9480AC5-8F88-4F12-8CBD-26C8D5EEA0D8" +method = { +"name": &"_on_visible_on_screen_notifier_2d_screen_exited" +} +id = 14 + +[obj type="OScriptGraph" id="OScriptGraph_qvaj1"] +graph_name = &"EventGraph" +offset = Vector2(118.151, 35.7418) +zoom = 1.21 +flags = 8 +nodes = Array[int]([0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17]) +functions = Array[int]([0, 4, 14]) + +[obj type="OScriptNodeEvent" id="OScriptNodeEvent_d0t27"] +function_id = "4E93ED4F-1566-4AD5-885A-21A5B25A0020" +id = 0 +position = Vector2(320, 200) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}]) + +[obj type="OScriptNodePropertySet" id="OScriptNodePropertySet_5xg6c"] +mode = 2 +property_name = &"frame" +property_hint = "0,3,1" +node_path = NodePath(".") +property = { +"name": &"frame", +"type": 2, +"class_name": &"", +"hint": 1, +"hint_string": "0,3,1", +"usage": 16777222 +} +id = 1 +position = Vector2(640, 200) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 4 +}, { +"pin_name": &"frame", +"type": 2, +"flags": 2, +"dv": 0, +"hint": 1, +"hint_string": "0,3,1", +"usage": 16777222 +}, { +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}]) + +[obj type="OScriptNodeCallBuiltinFunction" id="OScriptNodeCallBuiltinFunction_i7flf"] +function_name = &"randi_range" +method = { +"name": &"randi_range", +"return": { +"type": 2 +}, +"args": [{ +"name": &"from", +"type": 2 +}, { +"name": &"to", +"type": 2 +}] +} +id = 2 +position = Vector2(440, 280) +pin_data = Array[Dictionary]([{ +"pin_name": &"from", +"type": 2, +"flags": 2 +}, { +"pin_name": &"to", +"type": 2, +"flags": 2, +"dv": 4 +}, { +"pin_name": &"return_value", +"type": 2, +"dir": 1, +"flags": 1026 +}]) + +[obj type="OScriptNodeEvent" id="OScriptNodeEvent_3043m"] +function_id = "68015AFE-F296-4A95-AF87-0D2149ABD799" +id = 4 +position = Vector2(320, 420) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"delta", +"type": 3, +"dir": 1, +"flags": 2 +}]) + +[obj type="OScriptNodeCallMemberFunction" id="OScriptNodeCallMemberFunction_waa14"] +function_name = &"get_global_position" +target_class_name = "Node2D" +target_type = 24 +flags = 522 +method = { +"name": &"get_global_position", +"return": { +"type": 5 +}, +"flags": 5 +} +chain = false +id = 5 +position = Vector2(340, 600) +pin_data = Array[Dictionary]([{ +"pin_name": &"target", +"type": 24, +"flags": 2050, +"label": "Node2D", +"target_class": "Node2D" +}, { +"pin_name": &"return_value", +"type": 5, +"dir": 1, +"flags": 1026 +}]) + +[obj type="OScriptNodeCallMemberFunction" id="OScriptNodeCallMemberFunction_tovmh"] +function_name = &"set_global_position" +target_class_name = "Node2D" +target_type = 24 +flags = 520 +method = { +"name": &"set_global_position", +"args": [{ +"name": &"position", +"type": 5 +}] +} +chain = false +id = 6 +position = Vector2(1180, 420) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 4 +}, { +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"target", +"type": 24, +"flags": 2050, +"label": "Node2D", +"target_class": "Node2D" +}, { +"pin_name": &"position", +"type": 5, +"flags": 2, +"dv": Vector2(0, 0) +}]) + +[obj type="OScriptNodeOperator" id="OScriptNodeOperator_y6f7j"] +op = 6 +code = &"+" +name = &"Addition" +left_type = 2 +left_type_name = &"int" +right_type = 2 +right_type_name = &"int" +return_type = 2 +id = 7 +position = Vector2(800, 560) +pin_data = Array[Dictionary]([{ +"pin_name": &"a", +"type": 2, +"flags": 2 +}, { +"pin_name": &"b", +"type": 2, +"flags": 2 +}, { +"pin_name": &"result", +"type": 2, +"dir": 1, +"flags": 2 +}]) + +[obj type="OScriptNodeDecompose" id="OScriptNodeDecompose_oqbno"] +id = 8 +position = Vector2(580, 600) +pin_data = Array[Dictionary]([{ +"pin_name": &"value", +"type": 5, +"flags": 10, +"dv": Vector2(0, 0) +}, { +"pin_name": &"x", +"type": 3, +"dir": 1, +"flags": 2, +"dv": 0.0 +}, { +"pin_name": &"y", +"type": 3, +"dir": 1, +"flags": 2, +"dv": 0.0 +}]) + +[obj type="OScriptNodeComposeFrom" id="OScriptNodeComposeFrom_wxgaa"] +id = 9 +position = Vector2(980, 600) +pin_data = Array[Dictionary]([{ +"pin_name": &"x", +"type": 3, +"flags": 2, +"dv": 0.0 +}, { +"pin_name": &"y", +"type": 3, +"flags": 2, +"dv": 0.0 +}, { +"pin_name": &"value", +"type": 5, +"dir": 1, +"flags": 2, +"dv": Vector2(0, 0) +}]) + +[obj type="OScriptNodeCallBuiltinFunction" id="OScriptNodeCallBuiltinFunction_1b54s"] +function_name = &"randi_range" +method = { +"name": &"randi_range", +"return": { +"type": 2 +}, +"args": [{ +"name": &"from", +"type": 2 +}, { +"name": &"to", +"type": 2 +}] +} +id = 10 +position = Vector2(1440, 260) +pin_data = Array[Dictionary]([{ +"pin_name": &"from", +"type": 2, +"flags": 2, +"dv": -1 +}, { +"pin_name": &"to", +"type": 2, +"flags": 2, +"dv": -4 +}, { +"pin_name": &"return_value", +"type": 2, +"dir": 1, +"flags": 1026 +}]) + +[obj type="OScriptNodeCallMemberFunction" id="OScriptNodeCallMemberFunction_34soe"] +function_name = &"set_global_scale" +target_class_name = "Node2D" +target_type = 24 +flags = 520 +method = { +"name": &"set_global_scale", +"args": [{ +"name": &"scale", +"type": 5 +}] +} +chain = false +id = 11 +position = Vector2(1220, 200) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 4 +}, { +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"target", +"type": 24, +"flags": 2050, +"label": "Node2D", +"target_class": "Node2D" +}, { +"pin_name": &"scale", +"type": 5, +"flags": 2, +"dv": Vector2(0, 0) +}]) + +[obj type="OScriptNodeComposeFrom" id="OScriptNodeComposeFrom_r8ki6"] +id = 12 +position = Vector2(1020, 280) +pin_data = Array[Dictionary]([{ +"pin_name": &"x", +"type": 3, +"flags": 2, +"dv": 0.0 +}, { +"pin_name": &"y", +"type": 3, +"flags": 2, +"dv": 0.0 +}, { +"pin_name": &"value", +"type": 5, +"dir": 1, +"flags": 2, +"dv": Vector2(0, 0) +}]) + +[obj type="OScriptNodeCallBuiltinFunction" id="OScriptNodeCallBuiltinFunction_a637r"] +function_name = &"randf_range" +method = { +"name": &"randf_range", +"return": { +"type": 3 +}, +"args": [{ +"name": &"from", +"type": 3 +}, { +"name": &"to", +"type": 3 +}] +} +id = 13 +position = Vector2(820, 280) +pin_data = Array[Dictionary]([{ +"pin_name": &"from", +"type": 3, +"flags": 2, +"dv": 1.0 +}, { +"pin_name": &"to", +"type": 3, +"flags": 2, +"dv": 6.0 +}, { +"pin_name": &"return_value", +"type": 3, +"dir": 1, +"flags": 1026 +}]) + +[obj type="OScriptNodeEvent" id="OScriptNodeEvent_euhco"] +function_id = "C9480AC5-8F88-4F12-8CBD-26C8D5EEA0D8" +id = 14 +position = Vector2(340, 760) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}]) + +[obj type="OScriptNodeCallMemberFunction" id="OScriptNodeCallMemberFunction_55fjp"] +function_name = &"queue_free" +target_class_name = "Node" +target_type = 24 +flags = 520 +method = { +"name": &"queue_free" +} +chain = false +id = 15 +position = Vector2(860, 760) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 4 +}, { +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"target", +"type": 24, +"flags": 2050, +"label": "Node", +"target_class": "Node" +}]) + +[obj type="OScriptNodeVariableGet" id="OScriptNodeVariableGet_imnbl"] +variable_name = &"speed" +id = 16 +position = Vector2(600, 480) +pin_data = Array[Dictionary]([{ +"pin_name": &"value", +"type": 3, +"dir": 1, +"flags": 2050, +"label": "speed", +"usage": 4102 +}]) + +[obj type="OScriptNodeVariableSet" id="OScriptNodeVariableSet_62f5t"] +variable_name = &"speed" +id = 17 +position = Vector2(1640, 200) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 4 +}, { +"pin_name": &"speed", +"type": 3, +"flags": 2050, +"usage": 4102 +}, { +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"value", +"type": 3, +"dir": 1, +"flags": 1026, +"usage": 4102 +}]) + +[obj type="OScriptVariable" id="OScriptVariable_nfldx"] +name = "speed" +category = "Default" +classification = "type:float" +type = 3 +default_value = 0.0 + +[resource] +base_type = &"Sprite2D" +variables = Array[OScriptVariable]([SubResource("OScriptVariable_nfldx")]) +functions = Array[OScriptFunction]([SubResource("OScriptFunction_ngs18"), SubResource("OScriptFunction_hl67t"), SubResource("OScriptFunction_hy1i5")]) +connections = Array[int]([0, 0, 1, 0, 4, 0, 6, 0, 16, 0, 7, 0, 5, 0, 8, 0, 7, 0, 9, 0, 1, 0, 11, 0, 13, 0, 12, 0, 14, 0, 15, 0, 11, 0, 17, 0, 2, 0, 1, 1, 8, 0, 7, 1, 8, 1, 9, 1, 13, 0, 12, 1, 10, 0, 17, 1, 9, 0, 6, 2, 12, 0, 11, 2]) +nodes = Array[OScriptNode]([SubResource("OScriptNodeEvent_d0t27"), SubResource("OScriptNodePropertySet_5xg6c"), SubResource("OScriptNodeCallBuiltinFunction_i7flf"), SubResource("OScriptNodeEvent_3043m"), SubResource("OScriptNodeCallMemberFunction_waa14"), SubResource("OScriptNodeCallMemberFunction_tovmh"), SubResource("OScriptNodeOperator_y6f7j"), SubResource("OScriptNodeDecompose_oqbno"), SubResource("OScriptNodeComposeFrom_wxgaa"), SubResource("OScriptNodeCallBuiltinFunction_1b54s"), SubResource("OScriptNodeCallMemberFunction_34soe"), SubResource("OScriptNodeComposeFrom_r8ki6"), SubResource("OScriptNodeCallBuiltinFunction_a637r"), SubResource("OScriptNodeEvent_euhco"), SubResource("OScriptNodeCallMemberFunction_55fjp"), SubResource("OScriptNodeVariableGet_imnbl"), SubResource("OScriptNodeVariableSet_62f5t")]) +graphs = Array[OScriptGraph]([SubResource("OScriptGraph_qvaj1")]) diff --git a/scenes/cloud/cloud.tscn b/scenes/cloud/cloud.tscn new file mode 100644 index 0000000..5c971d3 --- /dev/null +++ b/scenes/cloud/cloud.tscn @@ -0,0 +1,17 @@ +[gd_scene load_steps=3 format=3 uid="uid://dhrn26gfar1rn"] + +[ext_resource type="Texture2D" uid="uid://cfks34adpcdyi" path="res://assets/images/clouds/clouds.png" id="1_jfc78"] +[ext_resource type="Script" path="res://scenes/cloud/cloud.gd" id="2_m6nde"] + +[node name="Cloud" type="Sprite2D"] +scale = Vector2(6, 6) +texture = ExtResource("1_jfc78") +vframes = 4 +frame = 3 +script = ExtResource("2_m6nde") + +[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."] +position = Vector2(6.08333, 0.500001) +scale = Vector2(0.608333, 0.7) + +[connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"] diff --git a/scenes/gui/puff.tscn b/scenes/gui/puff.tscn new file mode 100644 index 0000000..d86b8ab --- /dev/null +++ b/scenes/gui/puff.tscn @@ -0,0 +1,43 @@ +[gd_scene load_steps=7 format=3 uid="uid://52knyyx1ypg1"] + +[ext_resource type="Texture2D" uid="uid://c2ty5xty0mk3t" path="res://assets/images/clouds/w4.png" id="1_rtr5g"] + +[sub_resource type="Gradient" id="Gradient_urd7v"] +colors = PackedColorArray(1, 1, 1, 1, 1, 1, 1, 0) + +[sub_resource type="GradientTexture1D" id="GradientTexture1D_ci4ss"] +gradient = SubResource("Gradient_urd7v") + +[sub_resource type="Curve" id="Curve_8m5j8"] +min_value = -1.0 +_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 1), 0.0, 0.0, 0, 0] +point_count = 2 + +[sub_resource type="CurveTexture" id="CurveTexture_b62ow"] +curve = SubResource("Curve_8m5j8") + +[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_tayv3"] +particle_flag_disable_z = true +emission_shape_scale = Vector3(0, 1, 1) +angle_min = -180.0 +angle_max = 180.0 +initial_velocity_max = 300.0 +angular_velocity_min = -180.0 +angular_velocity_max = -1.60933e-05 +gravity = Vector3(0, 98, 0) +color_ramp = SubResource("GradientTexture1D_ci4ss") +hue_variation_min = -1.0 +hue_variation_max = 1.0 +hue_variation_curve = SubResource("CurveTexture_b62ow") +collision_mode = 1 +collision_friction = 0.0 +collision_bounce = 1.0 + +[node name="puff" type="GPUParticles2D"] +emitting = false +amount = 40 +process_material = SubResource("ParticleProcessMaterial_tayv3") +texture = ExtResource("1_rtr5g") +lifetime = 4.0 +one_shot = true +explosiveness = 1.0 diff --git a/scenes/gui/startscreen/area_2d.torch b/scenes/gui/startscreen/area_2d.torch new file mode 100644 index 0000000..9b3dd1b --- /dev/null +++ b/scenes/gui/startscreen/area_2d.torch @@ -0,0 +1,9 @@ +[orchestration type="OScript" load_steps=2 format=3 uid="uid://7877vrq5ltdr"] + +[obj type="OScriptGraph" id="OScriptGraph_wx4gl"] +graph_name = &"EventGraph" +flags = 8 + +[resource] +base_type = &"Area2D" +graphs = Array[OScriptGraph]([SubResource("OScriptGraph_wx4gl")]) diff --git a/scenes/gui/startscreen/easteregg.gd b/scenes/gui/startscreen/easteregg.gd new file mode 100644 index 0000000..810f6c5 --- /dev/null +++ b/scenes/gui/startscreen/easteregg.gd @@ -0,0 +1,7 @@ +extends TextureButton + + + + +func _on_pressed() -> void: + $puff.emitting = true diff --git a/scenes/gui/startscreen/startscreen.gd b/scenes/gui/startscreen/startscreen.gd new file mode 100644 index 0000000..d85802f --- /dev/null +++ b/scenes/gui/startscreen/startscreen.gd @@ -0,0 +1,14 @@ +extends Control + + + + + +func _on_play_pressed() -> void: + get_tree().change_scene_to_file("res://scenes/main.tscn") + + + + +func _on_exit_pressed() -> void: + get_tree().quit() diff --git a/scenes/gui/startscreen/startscreen.torch b/scenes/gui/startscreen/startscreen.torch new file mode 100644 index 0000000..64d98c6 --- /dev/null +++ b/scenes/gui/startscreen/startscreen.torch @@ -0,0 +1,265 @@ +[orchestration type="OScript" load_steps=14 format=3 uid="uid://b8x2gyqycqrwr"] + +[obj type="OScriptFunction" id="OScriptFunction_fx4b6"] +guid = "4A1F41EB-67C4-426C-8DCD-816349F7865C" +method = { +"name": &"_on_play_pressed" +} +id = 0 + +[obj type="OScriptFunction" id="OScriptFunction_vp4yh"] +guid = "11178596-046B-467D-966A-41FF7DA575C7" +method = { +"name": &"_on_exit_pressed" +} +id = 4 + +[obj type="OScriptGraph" id="OScriptGraph_rq4gi"] +graph_name = &"EventGraph" +offset = Vector2(-552.654, 103.831) +zoom = 0.883177 +flags = 8 +nodes = Array[int]([0, 1, 2, 3, 4, 5, 6, 8, 10, 11]) +functions = Array[int]([0, 4]) + +[obj type="OScriptNodeEvent" id="OScriptNodeEvent_i4kj0"] +function_id = "4A1F41EB-67C4-426C-8DCD-816349F7865C" +id = 0 +position = Vector2(-440, -120) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}]) + +[obj type="OScriptNodeSceneTree" id="OScriptNodeSceneTree_a1eq1"] +id = 1 +position = Vector2(-400, -20) +pin_data = Array[Dictionary]([{ +"pin_name": &"scene_tree", +"type": 24, +"dir": 1, +"flags": 2, +"target_class": "SceneTree" +}]) + +[obj type="OScriptNodeCallMemberFunction" id="OScriptNodeCallMemberFunction_wd3kt"] +function_name = &"change_scene_to_file" +target_class_name = "SceneTree" +target_type = 24 +flags = 520 +method = { +"name": &"change_scene_to_file", +"return": { +"type": 2, +"class_name": &"Error", +"usage": 65542 +}, +"args": [{ +"name": &"path", +"type": 4 +}] +} +chain = false +id = 2 +position = Vector2(80, -100) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 4 +}, { +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"target", +"type": 24, +"flags": 2050, +"label": "SceneTree", +"target_class": "SceneTree" +}, { +"pin_name": &"path", +"type": 4, +"flags": 2, +"dv": "" +}, { +"pin_name": &"return_value", +"type": 2, +"dir": 1, +"flags": 33554434, +"label": "Error", +"target_class": "Error", +"usage": 65542 +}]) + +[obj type="OScriptNodeResourcePath" id="OScriptNodeResourcePath_h36mq"] +path = "res://scenes/main.tscn" +id = 3 +position = Vector2(-220, 100) +pin_data = Array[Dictionary]([{ +"pin_name": &"path", +"type": 4, +"dir": 1, +"flags": 2050, +"label": "res://scenes/main.tscn", +"dv": "" +}]) + +[obj type="OScriptNodeEvent" id="OScriptNodeEvent_tgoc7"] +function_id = "11178596-046B-467D-966A-41FF7DA575C7" +id = 4 +position = Vector2(-420, 560) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}]) + +[obj type="OScriptNodeSceneTree" id="OScriptNodeSceneTree_gxroo"] +id = 5 +position = Vector2(-300, 640) +pin_data = Array[Dictionary]([{ +"pin_name": &"scene_tree", +"type": 24, +"dir": 1, +"flags": 2, +"target_class": "SceneTree" +}]) + +[obj type="OScriptNodeCallMemberFunction" id="OScriptNodeCallMemberFunction_jd1xd"] +function_name = &"quit" +target_class_name = "SceneTree" +target_type = 24 +flags = 520 +method = { +"name": &"quit", +"default_args": [0], +"args": [{ +"name": &"exit_code", +"type": 2 +}] +} +chain = false +id = 6 +position = Vector2(-40, 560) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 4 +}, { +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"target", +"type": 24, +"flags": 2050, +"label": "SceneTree", +"target_class": "SceneTree" +}, { +"pin_name": &"exit_code", +"type": 2, +"flags": 2, +"dv": 0 +}]) + +[obj type="OScriptNodeSceneNode" id="OScriptNodeSceneNode_14yay"] +node_path = NodePath("music") +target_class_name = "AudioStreamPlayer" +id = 8 +position = Vector2(80, 60) +pin_data = Array[Dictionary]([{ +"pin_name": &"music", +"type": 24, +"dir": 1, +"flags": 2050, +"target_class": "AudioStreamPlayer" +}]) + +[obj type="OScriptNodeCallMemberFunction" id="OScriptNodeCallMemberFunction_3sx2o"] +function_name = &"add_child" +target_class_name = "Node" +target_type = 24 +flags = 520 +method = { +"name": &"add_child", +"default_args": [false, 0], +"args": [{ +"name": &"node", +"type": 24, +"class_name": &"Node" +}, { +"name": &"force_readable_name", +"type": 1 +}, { +"name": &"internal", +"type": 2, +"class_name": &"Node.InternalMode", +"usage": 65542 +}] +} +chain = false +id = 10 +position = Vector2(420, -60) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 4 +}, { +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"target", +"type": 24, +"flags": 2050, +"label": "Node", +"target_class": "Node" +}, { +"pin_name": &"node", +"type": 24, +"flags": 2, +"target_class": "Node" +}, { +"pin_name": &"force_readable_name", +"type": 1, +"flags": 2, +"dv": false +}, { +"pin_name": &"internal", +"type": 2, +"flags": 33554434, +"target_class": "Node.InternalMode", +"dv": 0, +"usage": 65542 +}]) + +[obj type="OScriptNodeCallMemberFunction" id="OScriptNodeCallMemberFunction_hc3ng"] +function_name = &"queue_free" +target_class_name = "Node" +target_type = 24 +flags = 520 +method = { +"name": &"queue_free" +} +chain = false +id = 11 +position = Vector2(-160, -120) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 4 +}, { +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"target", +"type": 24, +"flags": 2050, +"label": "Node", +"target_class": "Node" +}]) + +[resource] +base_type = &"Control" +functions = Array[OScriptFunction]([SubResource("OScriptFunction_fx4b6"), SubResource("OScriptFunction_vp4yh")]) +connections = Array[int]([11, 0, 2, 0, 4, 0, 6, 0, 2, 0, 10, 0, 0, 0, 11, 0, 1, 0, 2, 1, 5, 0, 6, 1, 8, 0, 11, 1, 3, 0, 2, 2, 8, 0, 10, 2]) +nodes = Array[OScriptNode]([SubResource("OScriptNodeEvent_i4kj0"), SubResource("OScriptNodeSceneTree_a1eq1"), SubResource("OScriptNodeCallMemberFunction_wd3kt"), SubResource("OScriptNodeResourcePath_h36mq"), SubResource("OScriptNodeEvent_tgoc7"), SubResource("OScriptNodeSceneTree_gxroo"), SubResource("OScriptNodeCallMemberFunction_jd1xd"), SubResource("OScriptNodeSceneNode_14yay"), SubResource("OScriptNodeCallMemberFunction_3sx2o"), SubResource("OScriptNodeCallMemberFunction_hc3ng")]) +graphs = Array[OScriptGraph]([SubResource("OScriptGraph_rq4gi")]) diff --git a/scenes/gui/startscreen/startscreen.tscn b/scenes/gui/startscreen/startscreen.tscn new file mode 100644 index 0000000..bb5cbf2 --- /dev/null +++ b/scenes/gui/startscreen/startscreen.tscn @@ -0,0 +1,361 @@ +[gd_scene load_steps=14 format=3 uid="uid://c0mhbgge5ocss"] + +[ext_resource type="Script" path="res://scenes/gui/startscreen/startscreen.gd" id="1_1ni70"] +[ext_resource type="PackedScene" uid="uid://pkc0xylwcsvx" path="res://scenes/background/background.tscn" id="1_wfe0h"] +[ext_resource type="Texture2D" uid="uid://chkpw3t1i4il1" path="res://icon.png" id="2_k1sxv"] +[ext_resource type="PackedScene" uid="uid://bo8pkjaj4tu44" path="res://scenes/pipe/pipe.tscn" id="2_nw6te"] +[ext_resource type="Texture2D" uid="uid://bmcn41xuywnm5" path="res://assets/images/pipe.png" id="2_x8auj"] +[ext_resource type="Texture2D" uid="uid://iuwyotlo7766" path="res://assets/images/gui/play.png" id="3_635x5"] +[ext_resource type="Script" path="res://scenes/gui/startscreen/easteregg.gd" id="3_cqlg8"] +[ext_resource type="Texture2D" uid="uid://c2ty5xty0mk3t" path="res://assets/images/clouds/w4.png" id="3_xla87"] +[ext_resource type="Texture2D" uid="uid://bgqpcw6t22djf" path="res://assets/images/gui/exit.png" id="4_dfy67"] +[ext_resource type="AudioStream" uid="uid://qjevjhqvykkg" path="res://assets/sounds/popcorn.wav" id="10_y6vx2"] + +[sub_resource type="Gradient" id="Gradient_26v0n"] +colors = PackedColorArray(1, 1, 1, 1, 1, 1, 1, 0) + +[sub_resource type="GradientTexture1D" id="GradientTexture1D_gyy01"] +gradient = SubResource("Gradient_26v0n") + +[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_1c6ff"] +particle_flag_disable_z = true +angle_min = 1.07288e-05 +angle_max = 360.0 +initial_velocity_max = 50.0 +gravity = Vector3(0, 98, 0) +color_ramp = SubResource("GradientTexture1D_gyy01") + +[node name="Startscreen" type="Control"] +layout_mode = 3 +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +grow_horizontal = 2 +grow_vertical = 2 +scale = Vector2(0.8, 0.8) +size_flags_vertical = 3 +script = ExtResource("1_1ni70") +metadata/_edit_horizontal_guides_ = [700.0] + +[node name="Background" parent="." instance=ExtResource("1_wfe0h")] + +[node name="EASTEREGG" type="TextureButton" parent="."] +layout_direction = 1 +layout_mode = 1 +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = 252.5 +offset_top = -221.25 +offset_right = 454.5 +offset_bottom = 4209.75 +grow_horizontal = 2 +grow_vertical = 2 +rotation = 3.92699 +texture_normal = ExtResource("2_x8auj") +texture_pressed = ExtResource("2_x8auj") +ignore_texture_size = true +stretch_mode = 4 +script = ExtResource("3_cqlg8") + +[node name="puff" type="GPUParticles2D" parent="EASTEREGG"] +z_index = -1 +position = Vector2(112.253, 62.7565) +rotation = -1.57079 +scale = Vector2(10, 10) +emitting = false +amount = 120 +process_material = SubResource("ParticleProcessMaterial_1c6ff") +texture = ExtResource("3_xla87") +lifetime = 2.0 +one_shot = true + +[node name="pipes" type="Control" parent="."] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="pipe" parent="pipes" instance=ExtResource("2_nw6te")] +position = Vector2(-136.25, 283.75) +scale = Vector2(2, 2) +move = false + +[node name="pipe3" parent="pipes" instance=ExtResource("2_nw6te")] +position = Vector2(-233.75, 240) +scale = Vector2(2, 2) +move = false + +[node name="pipe4" parent="pipes" instance=ExtResource("2_nw6te")] +position = Vector2(581.25, 261.25) +scale = Vector2(3, 3) +move = false + +[node name="pipe19" parent="pipes" instance=ExtResource("2_nw6te")] +position = Vector2(723.75, 160) +scale = Vector2(4, 4) +move = false + +[node name="pipe5" parent="pipes" instance=ExtResource("2_nw6te")] +position = Vector2(475, 345) +scale = Vector2(2, 2) +move = false + +[node name="pipe17" parent="pipes" instance=ExtResource("2_nw6te")] +position = Vector2(92.5, 311.25) +rotation = -0.785397 +scale = Vector2(2, 2) +move = false + +[node name="pipe18" parent="pipes" instance=ExtResource("2_nw6te")] +position = Vector2(72.5, 428.75) +rotation = -0.785397 +scale = Vector2(2, 2) +move = false + +[node name="pipe6" parent="pipes" instance=ExtResource("2_nw6te")] +position = Vector2(-650, 232.5) +rotation = 0.785397 +scale = Vector2(2, 2) +move = false + +[node name="pipe16" parent="pipes" instance=ExtResource("2_nw6te")] +position = Vector2(-671.25, 106.25) +rotation = 0.785397 +scale = Vector2(2, 2) +move = false + +[node name="pipe2" parent="pipes" instance=ExtResource("2_nw6te")] +position = Vector2(-41.25, 327.5) +scale = Vector2(2, 2) +move = false + +[node name="pipe7" parent="pipes" instance=ExtResource("2_nw6te")] +position = Vector2(-455, -357.5) +rotation = 2.35619 +scale = Vector2(2, 2) +move = false + +[node name="pipe8" parent="pipes" instance=ExtResource("2_nw6te")] +position = Vector2(-705, -117.5) +rotation = 3.14159 +scale = Vector2(2, 2) +move = false + +[node name="pipe9" parent="pipes" instance=ExtResource("2_nw6te")] +position = Vector2(-228.75, -363.75) +rotation = 3.14159 +scale = Vector2(2, 2) +move = false + +[node name="pipe10" parent="pipes" instance=ExtResource("2_nw6te")] +position = Vector2(-143.75, -308.75) +rotation = 3.14159 +scale = Vector2(2, 2) +move = false + +[node name="pipe11" parent="pipes" instance=ExtResource("2_nw6te")] +position = Vector2(-52.5, -326.25) +rotation = 3.14159 +scale = Vector2(2, 2) +move = false + +[node name="pipe12" parent="pipes" instance=ExtResource("2_nw6te")] +position = Vector2(538.75, -350) +rotation = 3.14159 +scale = Vector2(2, 2) +move = false + +[node name="pipe13" parent="pipes" instance=ExtResource("2_nw6te")] +position = Vector2(627.5, -296.25) +rotation = 3.14159 +scale = Vector2(2, 2) +move = false + +[node name="pipe14" parent="pipes" instance=ExtResource("2_nw6te")] +position = Vector2(708.75, -195) +rotation = 3.14159 +scale = Vector2(2, 2) +move = false + +[node name="pipe20" parent="pipes" instance=ExtResource("2_nw6te")] +position = Vector2(-988.75, 287.5) +scale = Vector2(2, 2) +move = false + +[node name="pipe39" parent="pipes" instance=ExtResource("2_nw6te")] +position = Vector2(-1621.25, 152.5) +scale = Vector2(10, 10) +move = false + +[node name="pipe21" parent="pipes" instance=ExtResource("2_nw6te")] +position = Vector2(-1082.5, -8.74998) +scale = Vector2(2, 2) +move = false + +[node name="pipe22" parent="pipes" instance=ExtResource("2_nw6te")] +position = Vector2(2411.25, 162.5) +scale = Vector2(3, 3) +move = false + +[node name="pipe23" parent="pipes" instance=ExtResource("2_nw6te")] +position = Vector2(965, -306.25) +scale = Vector2(4, 4) +move = false + +[node name="pipe24" parent="pipes" instance=ExtResource("2_nw6te")] +position = Vector2(2590, 302.5) +scale = Vector2(2, 2) +move = false + +[node name="pipe25" parent="pipes" instance=ExtResource("2_nw6te")] +position = Vector2(3177.5, 272.5) +rotation = -0.785397 +scale = Vector2(2, 2) +move = false + +[node name="pipe26" parent="pipes" instance=ExtResource("2_nw6te")] +position = Vector2(2958.75, 243.75) +rotation = -0.785397 +scale = Vector2(2, 2) +move = false + +[node name="pipe27" parent="pipes" instance=ExtResource("2_nw6te")] +position = Vector2(-2161.25, -266.25) +rotation = 0.785397 +scale = Vector2(2, 2) +move = false + +[node name="pipe28" parent="pipes" instance=ExtResource("2_nw6te")] +position = Vector2(-2177.5, 220) +rotation = 0.785397 +scale = Vector2(2, 2) +move = false + +[node name="pipe29" parent="pipes" instance=ExtResource("2_nw6te")] +position = Vector2(-886.25, -172.5) +scale = Vector2(2, 2) +move = false + +[node name="pipe30" parent="pipes" instance=ExtResource("2_nw6te")] +position = Vector2(-1726.25, -40) +rotation = 2.35619 +scale = Vector2(2, 2) +move = false + +[node name="pipe31" parent="pipes" instance=ExtResource("2_nw6te")] +position = Vector2(-1553.75, -221.25) +rotation = 3.14159 +scale = Vector2(2, 2) +move = false + +[node name="pipe32" parent="pipes" instance=ExtResource("2_nw6te")] +position = Vector2(-1435, -303.75) +rotation = 3.14159 +scale = Vector2(2, 2) +move = false + +[node name="pipe33" parent="pipes" instance=ExtResource("2_nw6te")] +position = Vector2(-1316.25, -118.75) +rotation = 3.14159 +scale = Vector2(2, 2) +move = false + +[node name="pipe34" parent="pipes" instance=ExtResource("2_nw6te")] +position = Vector2(-1203.75, -351.25) +rotation = 3.14159 +scale = Vector2(2, 2) +move = false + +[node name="pipe35" parent="pipes" instance=ExtResource("2_nw6te")] +position = Vector2(1687.5, -55) +rotation = 3.14159 +scale = Vector2(2, 2) +move = false + +[node name="pipe36" parent="pipes" instance=ExtResource("2_nw6te")] +position = Vector2(1423.75, -286.25) +rotation = 3.14159 +scale = Vector2(2, 2) +move = false + +[node name="pipe37" parent="pipes" instance=ExtResource("2_nw6te")] +position = Vector2(1557.5, 160) +rotation = 3.14159 +scale = Vector2(2, 2) +move = false + +[node name="pipe38" parent="pipes" instance=ExtResource("2_nw6te")] +position = Vector2(1107.5, 1040) +rotation = 3.92699 +scale = Vector2(6, 6) +move = false + +[node name="EASTEREGG3" type="TextureButton" parent="."] +layout_direction = 1 +layout_mode = 1 +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = -575.0 +offset_top = 277.5 +offset_right = -330.0 +offset_bottom = 5277.5 +grow_horizontal = 2 +grow_vertical = 2 +toggle_mode = true +texture_normal = ExtResource("2_x8auj") +texture_pressed = ExtResource("2_x8auj") +texture_disabled = ExtResource("2_k1sxv") +ignore_texture_size = true +stretch_mode = 4 + +[node name="GUI" type="HSplitContainer" parent="."] +layout_mode = 1 +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = -688.5 +offset_top = -300.0 +offset_right = 688.5 +offset_bottom = 300.0 +grow_horizontal = 2 +grow_vertical = 2 +dragger_visibility = 2 + +[node name="Logo" type="TextureRect" parent="GUI"] +layout_mode = 2 +texture = ExtResource("2_k1sxv") +stretch_mode = 2 + +[node name="Buttons" type="VBoxContainer" parent="GUI"] +layout_mode = 2 + +[node name="Play" type="TextureButton" parent="GUI/Buttons"] +layout_mode = 2 +texture_normal = ExtResource("3_635x5") + +[node name="Exit" type="TextureButton" parent="GUI/Buttons"] +layout_mode = 2 +texture_normal = ExtResource("4_dfy67") + +[node name="music" type="AudioStreamPlayer" parent="."] +stream = ExtResource("10_y6vx2") +autoplay = true +bus = &"Music" +playback_type = 1 + +[connection signal="pressed" from="EASTEREGG" to="EASTEREGG" method="_on_pressed"] +[connection signal="pressed" from="EASTEREGG3" to="EASTEREGG3" method="_on_pressed"] +[connection signal="pressed" from="GUI/Buttons/Play" to="." method="_on_play_pressed"] +[connection signal="pressed" from="GUI/Buttons/Exit" to="." method="_on_exit_pressed"] diff --git a/scenes/main.tscn b/scenes/main.tscn new file mode 100644 index 0000000..ac7e272 --- /dev/null +++ b/scenes/main.tscn @@ -0,0 +1,47 @@ +[gd_scene load_steps=6 format=3 uid="uid://cqd50t6qhjigy"] + +[ext_resource type="PackedScene" uid="uid://pkc0xylwcsvx" path="res://scenes/background/background.tscn" id="1_8me3y"] +[ext_resource type="PackedScene" uid="uid://p4ok7pbb7jks" path="res://scenes/bird/bird.tscn" id="1_e2wtq"] +[ext_resource type="Script" path="res://scenes/pipe_spawner.gd" id="3_8x68a"] + +[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_gax6h"] +distance = -700.0 + +[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_53oto"] +normal = Vector2(0, 1) + +[node name="main" type="Node2D"] +metadata/_edit_horizontal_guides_ = [699.0] + +[node name="Background" parent="." instance=ExtResource("1_8me3y")] + +[node name="bird" parent="." instance=ExtResource("1_e2wtq")] +position = Vector2(150, 326) + +[node name="pipes" type="Node2D" parent="."] +z_as_relative = false +position = Vector2(1568, 0) + +[node name="pipe spawner" type="Marker2D" parent="."] +position = Vector2(1568, 0) +script = ExtResource("3_8x68a") + +[node name="spawn_pipe" type="Timer" parent="pipe spawner"] +wait_time = 2.0 +autostart = true + +[node name="levelup" type="Timer" parent="pipe spawner"] +wait_time = 5.0 +autostart = true + +[node name="border" type="StaticBody2D" parent="."] +metadata/_edit_lock_ = true + +[node name="CollisionShape2D" type="CollisionShape2D" parent="border"] +shape = SubResource("WorldBoundaryShape2D_gax6h") + +[node name="CollisionShape2D2" type="CollisionShape2D" parent="border"] +shape = SubResource("WorldBoundaryShape2D_53oto") + +[connection signal="timeout" from="pipe spawner/spawn_pipe" to="pipe spawner" method="_on_spawn_pipe_timeout"] +[connection signal="timeout" from="pipe spawner/levelup" to="pipe spawner" method="_on_levelup_timeout"] diff --git a/scenes/pipe/pipe.gd b/scenes/pipe/pipe.gd new file mode 100644 index 0000000..652a2ba --- /dev/null +++ b/scenes/pipe/pipe.gd @@ -0,0 +1,20 @@ +extends AnimatableBody2D + +@export var move=true +@export var del_on_screen_exit=true +# Called when the node enters the scene tree for the first time. +func _ready() -> void: + if global_rotation_degrees > -90: + $sprite.flip_h = true + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(_delta: float) -> void: + if move: + global_position += Vector2(-4,0) + + +func _on_visible_on_screen_notifier_2d_screen_exited() -> void: + if del_on_screen_exit: + queue_free() + print("pipes deleted") diff --git a/scenes/pipe/pipe.torch b/scenes/pipe/pipe.torch new file mode 100644 index 0000000..db4cf81 --- /dev/null +++ b/scenes/pipe/pipe.torch @@ -0,0 +1,605 @@ +[orchestration type="OScript" load_steps=34 format=3 uid="uid://diohul3xtdogn"] + +[obj type="OScriptFunction" id="OScriptFunction_im4xq"] +guid = "39BAF2FA-B50A-4B15-9C6B-3A2E168EB826" +method = { +"name": &"_physics_process", +"flags": 8, +"args": [{ +"name": &"delta", +"type": 3 +}] +} +id = 6 + +[obj type="OScriptFunction" id="OScriptFunction_igi14"] +guid = "303EFCC6-A965-42D9-8EC7-23974EB1CD2D" +method = { +"name": &"_ready", +"flags": 8 +} +id = 22 + +[obj type="OScriptFunction" id="OScriptFunction_yp8xe"] +guid = "76474EBC-B668-4F17-984B-7B6B80C74BA5" +method = { +"name": &"new_pos", +"return": { +"type": 5 +}, +"args": [{ +"name": &"a", +"type": 5 +}, { +"name": &"y_offset", +"type": 3 +}] +} +user_defined = true +id = 40 + +[obj type="OScriptFunction" id="OScriptFunction_2bonc"] +guid = "31593827-58DD-4FB9-A462-B7A87F83A977" +method = { +"name": &"_on_visible_on_screen_notifier_2d_screen_exited" +} +id = 63 + +[obj type="OScriptGraph" id="OScriptGraph_kqnq4"] +graph_name = &"EventGraph" +offset = Vector2(82.6969, 853.195) +zoom = 1.06864 +flags = 8 +nodes = Array[int]([6, 19, 22, 43, 44, 51, 53, 54, 56, 59, 61, 62, 63, 64, 65, 66, 67, 68]) +functions = Array[int]([6, 22, 63]) + +[obj type="OScriptGraph" id="OScriptGraph_2m2e4"] +graph_name = &"new_pos" +offset = Vector2(-86.8504, -231.851) +zoom = 0.263331 +flags = 22 +nodes = Array[int]([29, 30, 31, 32, 40, 41]) +functions = Array[int]([40]) + +[obj type="OScriptNodeEvent" id="OScriptNodeEvent_6x8w8"] +function_id = "39BAF2FA-B50A-4B15-9C6B-3A2E168EB826" +id = 6 +position = Vector2(160, 460) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"delta", +"type": 3, +"dir": 1, +"flags": 2 +}]) + +[obj type="OScriptNodeCallMemberFunction" id="OScriptNodeCallMemberFunction_28xu4"] +function_name = &"set_global_position" +target_class_name = "Node2D" +target_type = 24 +flags = 520 +method = { +"name": &"set_global_position", +"args": [{ +"name": &"position", +"type": 5 +}] +} +chain = false +id = 19 +position = Vector2(840, 680) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 4 +}, { +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"target", +"type": 24, +"flags": 2050, +"label": "Node2D", +"target_class": "Node2D" +}, { +"pin_name": &"position", +"type": 5, +"flags": 2, +"dv": Vector2(0, 0) +}]) + +[obj type="OScriptNodeEvent" id="OScriptNodeEvent_6di3c"] +function_id = "303EFCC6-A965-42D9-8EC7-23974EB1CD2D" +id = 22 +position = Vector2(160, 80) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}]) + +[obj type="OScriptNodeComposeFrom" id="OScriptNodeComposeFrom_d6uni"] +id = 29 +position = Vector2(500, 820) +pin_data = Array[Dictionary]([{ +"pin_name": &"x", +"type": 3, +"flags": 2, +"dv": 0.0 +}, { +"pin_name": &"y", +"type": 3, +"flags": 2, +"dv": 0.0 +}, { +"pin_name": &"value", +"type": 5, +"dir": 1, +"flags": 2, +"dv": Vector2(0, 0) +}]) + +[obj type="OScriptNodeOperator" id="OScriptNodeOperator_cwix2"] +op = 10 +code = &"unary-" +name = &"Unary- or Negate" +left_type = 3 +left_type_name = &"float" +return_type = 3 +id = 30 +position = Vector2(320, 820) +pin_data = Array[Dictionary]([{ +"pin_name": &"a", +"type": 3, +"flags": 2 +}, { +"pin_name": &"result", +"type": 3, +"dir": 1, +"flags": 2 +}]) + +[obj type="OScriptNodeComposeFrom" id="OScriptNodeComposeFrom_lflnt"] +id = 31 +position = Vector2(100, 820) +pin_data = Array[Dictionary]([{ +"pin_name": &"from", +"type": 2, +"flags": 2, +"dv": 2 +}, { +"pin_name": &"value", +"type": 2, +"dir": 1, +"flags": 2, +"dv": 0 +}]) + +[obj type="OScriptNodeOperator" id="OScriptNodeOperator_gkhxs"] +op = 6 +code = &"+" +name = &"Addition" +left_type = 5 +left_type_name = &"Vector2" +right_type = 5 +right_type_name = &"Vector2" +return_type = 5 +id = 32 +position = Vector2(720, 740) +pin_data = Array[Dictionary]([{ +"pin_name": &"a", +"type": 5, +"flags": 2 +}, { +"pin_name": &"b", +"type": 5, +"flags": 2 +}, { +"pin_name": &"result", +"type": 5, +"dir": 1, +"flags": 2 +}]) + +[obj type="OScriptNodeFunctionEntry" id="OScriptNodeFunctionEntry_35qst"] +function_id = "76474EBC-B668-4F17-984B-7B6B80C74BA5" +id = 40 +position = Vector2(160, 680) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"a", +"type": 5, +"dir": 1, +"flags": 2 +}, { +"pin_name": &"y_offset", +"type": 3, +"dir": 1, +"flags": 2 +}]) + +[obj type="OScriptNodeFunctionResult" id="OScriptNodeFunctionResult_tny25"] +function_id = "76474EBC-B668-4F17-984B-7B6B80C74BA5" +id = 41 +position = Vector2(1000, 680) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 4 +}, { +"pin_name": &"return_value", +"type": 5, +"flags": 2 +}, { +"pin_name": &"return_out", +"type": 5, +"dir": 1, +"flags": 34 +}]) + +[obj type="OScriptNodeCallMemberFunction" id="OScriptNodeCallMemberFunction_5cskj"] +function_name = &"get_global_position" +target_class_name = "Node2D" +target_type = 24 +flags = 522 +method = { +"name": &"get_global_position", +"return": { +"type": 5 +}, +"flags": 5 +} +chain = false +id = 43 +position = Vector2(340, 740) +pin_data = Array[Dictionary]([{ +"pin_name": &"target", +"type": 24, +"flags": 2050, +"label": "Node2D", +"target_class": "Node2D" +}, { +"pin_name": &"return_value", +"type": 5, +"dir": 1, +"flags": 1026 +}]) + +[obj type="OScriptNodeCallScriptFunction" id="OScriptNodeCallScriptFunction_5lsou"] +guid = "76474EBC-B668-4F17-984B-7B6B80C74BA5" +function_name = &"new_pos" +flags = 8 +id = 44 +position = Vector2(600, 680) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 4 +}, { +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"a", +"type": 5, +"flags": 2 +}, { +"pin_name": &"y_offset", +"type": 3, +"flags": 2 +}, { +"pin_name": &"return_value", +"type": 5, +"dir": 1, +"flags": 1026 +}]) + +[obj type="OScriptNodeBranch" id="OScriptNodeBranch_ivi31"] +id = 51 +position = Vector2(840, 80) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 516, +"label": "if [condition]" +}, { +"pin_name": &"condition", +"type": 1, +"flags": 2, +"dv": false +}, { +"pin_name": &"true", +"dir": 1, +"flags": 516 +}, { +"pin_name": &"false", +"dir": 1, +"flags": 516 +}]) + +[obj type="OScriptNodeCallMemberFunction" id="OScriptNodeCallMemberFunction_f28nk"] +function_name = &"get_global_rotation_degrees" +target_class_name = "Node2D" +target_type = 24 +flags = 522 +method = { +"name": &"get_global_rotation_degrees", +"return": { +"type": 3 +}, +"flags": 5 +} +chain = false +id = 53 +position = Vector2(300, 160) +pin_data = Array[Dictionary]([{ +"pin_name": &"target", +"type": 24, +"flags": 2050, +"label": "Node2D", +"target_class": "Node2D" +}, { +"pin_name": &"return_value", +"type": 3, +"dir": 1, +"flags": 1026 +}]) + +[obj type="OScriptNodeSceneNode" id="OScriptNodeSceneNode_3bva8"] +node_path = NodePath("sprite") +target_class_name = "Sprite2D" +id = 54 +position = Vector2(840, 200) +pin_data = Array[Dictionary]([{ +"pin_name": &"sprite", +"type": 24, +"dir": 1, +"flags": 2050, +"target_class": "Sprite2D" +}]) + +[obj type="OScriptNodeCallMemberFunction" id="OScriptNodeCallMemberFunction_xbftv"] +function_name = &"set_flip_h" +target_class_name = "Sprite2D" +target_type = 24 +flags = 520 +method = { +"name": &"set_flip_h", +"args": [{ +"name": &"flip_h", +"type": 1 +}] +} +chain = false +id = 56 +position = Vector2(1160, 240) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 4 +}, { +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"target", +"type": 24, +"flags": 2050, +"label": "Sprite2D", +"target_class": "Sprite2D" +}, { +"pin_name": &"flip_h", +"type": 1, +"flags": 2, +"dv": true +}]) + +[obj type="OScriptNodeOperator" id="OScriptNodeOperator_foj8o"] +op = 4 +code = &">" +name = &"Greater-than" +left_type = 3 +left_type_name = &"float" +right_type = 3 +right_type_name = &"float" +return_type = 1 +id = 59 +position = Vector2(600, 160) +pin_data = Array[Dictionary]([{ +"pin_name": &"a", +"type": 3, +"flags": 2 +}, { +"pin_name": &"b", +"type": 3, +"flags": 2, +"dv": -90.0 +}, { +"pin_name": &"result", +"type": 1, +"dir": 1, +"flags": 2 +}]) + +[obj type="OScriptNodeBranch" id="OScriptNodeBranch_q6ewe"] +id = 61 +position = Vector2(540, 500) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 516, +"label": "if [condition]" +}, { +"pin_name": &"condition", +"type": 1, +"flags": 2, +"dv": false +}, { +"pin_name": &"true", +"dir": 1, +"flags": 516 +}, { +"pin_name": &"false", +"dir": 1, +"flags": 516 +}]) + +[obj type="OScriptNodeVariableGet" id="OScriptNodeVariableGet_aw5t6"] +variable_name = &"move" +id = 62 +position = Vector2(260, 580) +pin_data = Array[Dictionary]([{ +"pin_name": &"value", +"type": 1, +"dir": 1, +"flags": 2050, +"label": "move", +"dv": false, +"usage": 4102 +}]) + +[obj type="OScriptNodeEvent" id="OScriptNodeEvent_kwrm8"] +function_id = "31593827-58DD-4FB9-A462-B7A87F83A977" +id = 63 +position = Vector2(120, 1100) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}]) + +[obj type="OScriptNodeCallMemberFunction" id="OScriptNodeCallMemberFunction_30g35"] +function_name = &"queue_free" +target_class_name = "Node" +target_type = 24 +flags = 520 +method = { +"name": &"queue_free" +} +chain = false +id = 64 +position = Vector2(840, 1100) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 4 +}, { +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"target", +"type": 24, +"flags": 2050, +"label": "Node", +"target_class": "Node" +}]) + +[obj type="OScriptNodeBranch" id="OScriptNodeBranch_4lc6a"] +id = 65 +position = Vector2(620, 1100) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 516, +"label": "if [condition]" +}, { +"pin_name": &"condition", +"type": 1, +"flags": 2, +"dv": false +}, { +"pin_name": &"true", +"dir": 1, +"flags": 516 +}, { +"pin_name": &"false", +"dir": 1, +"flags": 516 +}]) + +[obj type="OScriptNodeVariableGet" id="OScriptNodeVariableGet_3nu1n"] +variable_name = &"del_screen_exit" +id = 66 +position = Vector2(360, 1180) +pin_data = Array[Dictionary]([{ +"pin_name": &"value", +"type": 1, +"dir": 1, +"flags": 2050, +"label": "del_screen_exit", +"usage": 4102 +}]) + +[obj type="OScriptNodeCallBuiltinFunction" id="OScriptNodeCallBuiltinFunction_kjptc"] +function_name = &"print" +flags = 33 +method = { +"name": &"print", +"flags": 17, +"args": [{ +"name": &"arg1", +"usage": 131078 +}] +} +variable_arg_count = 0 +id = 67 +position = Vector2(1040, 1100) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 4 +}, { +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"arg1", +"flags": 2, +"usage": 131078 +}]) + +[obj type="OScriptNodeComposeFrom" id="OScriptNodeComposeFrom_qd1f0"] +id = 68 +position = Vector2(720, 1220) +pin_data = Array[Dictionary]([{ +"pin_name": &"from", +"type": 4, +"flags": 2, +"dv": "pipe deleted" +}, { +"pin_name": &"value", +"type": 4, +"dir": 1, +"flags": 2, +"dv": "" +}]) + +[obj type="OScriptVariable" id="OScriptVariable_ohr7i"] +name = "place" +category = "Default" +classification = "type:int" +type = 2 +default_value = 300 + +[obj type="OScriptVariable" id="OScriptVariable_252wm"] +name = "move" +category = "Default" +exported = true +classification = "type:bool" +type = 1 +default_value = true + +[obj type="OScriptVariable" id="OScriptVariable_6onxm"] +name = "del_screen_exit" +category = "Default" +exported = true +classification = "type:bool" +type = 1 +default_value = true + +[resource] +base_type = &"Node2D" +variables = Array[OScriptVariable]([SubResource("OScriptVariable_ohr7i"), SubResource("OScriptVariable_252wm"), SubResource("OScriptVariable_6onxm")]) +functions = Array[OScriptFunction]([SubResource("OScriptFunction_im4xq"), SubResource("OScriptFunction_igi14"), SubResource("OScriptFunction_yp8xe"), SubResource("OScriptFunction_2bonc")]) +connections = Array[int]([44, 0, 19, 0, 30, 0, 29, 0, 31, 0, 30, 0, 40, 1, 32, 0, 40, 0, 41, 0, 61, 0, 44, 0, 22, 0, 51, 0, 51, 1, 56, 0, 53, 0, 59, 0, 6, 0, 61, 0, 65, 0, 64, 0, 63, 0, 65, 0, 64, 0, 67, 0, 29, 0, 32, 1, 32, 0, 41, 1, 43, 0, 44, 1, 59, 0, 51, 1, 54, 0, 56, 1, 62, 0, 61, 1, 66, 0, 65, 1, 68, 0, 67, 1, 44, 1, 19, 2]) +nodes = Array[OScriptNode]([SubResource("OScriptNodeEvent_6x8w8"), SubResource("OScriptNodeCallMemberFunction_28xu4"), SubResource("OScriptNodeEvent_6di3c"), SubResource("OScriptNodeComposeFrom_d6uni"), SubResource("OScriptNodeOperator_cwix2"), SubResource("OScriptNodeComposeFrom_lflnt"), SubResource("OScriptNodeOperator_gkhxs"), SubResource("OScriptNodeFunctionEntry_35qst"), SubResource("OScriptNodeFunctionResult_tny25"), SubResource("OScriptNodeCallMemberFunction_5cskj"), SubResource("OScriptNodeCallScriptFunction_5lsou"), SubResource("OScriptNodeBranch_ivi31"), SubResource("OScriptNodeCallMemberFunction_f28nk"), SubResource("OScriptNodeSceneNode_3bva8"), SubResource("OScriptNodeCallMemberFunction_xbftv"), SubResource("OScriptNodeOperator_foj8o"), SubResource("OScriptNodeBranch_q6ewe"), SubResource("OScriptNodeVariableGet_aw5t6"), SubResource("OScriptNodeEvent_kwrm8"), SubResource("OScriptNodeCallMemberFunction_30g35"), SubResource("OScriptNodeBranch_4lc6a"), SubResource("OScriptNodeVariableGet_3nu1n"), SubResource("OScriptNodeCallBuiltinFunction_kjptc"), SubResource("OScriptNodeComposeFrom_qd1f0")]) +graphs = Array[OScriptGraph]([SubResource("OScriptGraph_kqnq4"), SubResource("OScriptGraph_2m2e4")]) diff --git a/scenes/pipe/pipe.tscn b/scenes/pipe/pipe.tscn new file mode 100644 index 0000000..aaf92e2 --- /dev/null +++ b/scenes/pipe/pipe.tscn @@ -0,0 +1,34 @@ +[gd_scene load_steps=5 format=3 uid="uid://bo8pkjaj4tu44"] + +[ext_resource type="Script" path="res://scenes/pipe/pipe.gd" id="1_o5eem"] +[ext_resource type="Texture2D" uid="uid://bmcn41xuywnm5" path="res://assets/images/pipe.png" id="2_m6yfy"] + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_6btt8"] +size = Vector2(8, 200) + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_gncap"] +size = Vector2(10, 6) + +[node name="pipe" type="AnimatableBody2D"] +script = ExtResource("1_o5eem") + +[node name="sprite" type="Sprite2D" parent="."] +position = Vector2(0, 412) +scale = Vector2(4, 4) +texture = ExtResource("2_m6yfy") + +[node name="col1" type="CollisionShape2D" parent="."] +position = Vector2(0, 424) +scale = Vector2(4, 4) +shape = SubResource("RectangleShape2D_6btt8") + +[node name="col2" type="CollisionShape2D" parent="."] +position = Vector2(0, 12) +scale = Vector2(4, 4) +shape = SubResource("RectangleShape2D_gncap") + +[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."] +position = Vector2(-1.90735e-06, 414) +scale = Vector2(2.4, 41.4) + +[connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"] diff --git a/scenes/pipe/pipe_spawner.torch b/scenes/pipe/pipe_spawner.torch new file mode 100644 index 0000000..39f5a4e --- /dev/null +++ b/scenes/pipe/pipe_spawner.torch @@ -0,0 +1,1048 @@ +[orchestration type="OScript" load_steps=52 format=3 uid="uid://c0auq7r20ofxb"] + +[obj type="OScriptFunction" id="OScriptFunction_q885q"] +guid = "52040A0D-E374-450B-B8AB-294421C70082" +method = { +"name": &"spawn_pipe", +"args": [{ +"name": &"pos", +"type": 5 +}, { +"name": &"rotation_deg", +"type": 2 +}, { +"name": &"scale", +"type": 3 +}] +} +user_defined = true +id = 12 + +[obj type="OScriptFunction" id="OScriptFunction_wwa8x"] +guid = "68CC7B7E-836E-4D7E-B745-CA414B592328" +method = { +"name": &"double_pipe", +"args": [{ +"name": &"pos_y", +"type": 2 +}, { +"name": &"space", +"type": 2 +}] +} +user_defined = true +id = 14 + +[obj type="OScriptFunction" id="OScriptFunction_br3vr"] +guid = "563670FE-8FF8-4110-90E9-A33FDF21159D" +method = { +"name": &"_on_levelup_timeout" +} +id = 29 + +[obj type="OScriptFunction" id="OScriptFunction_6u3n4"] +guid = "7D2E1E1C-1E42-4F67-8F82-2C3B46D5C3B8" +method = { +"name": &"_on_spawn_pipe_timeout" +} +id = 30 + +[obj type="OScriptGraph" id="OScriptGraph_7463u"] +graph_name = &"EventGraph" +offset = Vector2(-117.557, -88.4375) +zoom = 1.55793 +flags = 8 +nodes = Array[int]([3, 4, 13, 20, 29, 30, 33, 34, 35, 39, 44, 45, 46, 47, 48, 50, 51]) +functions = Array[int]([29, 30]) + +[obj type="OScriptGraph" id="OScriptGraph_ii1yw"] +graph_name = &"spawn_pipe" +offset = Vector2(-494, -403.75) +flags = 22 +nodes = Array[int]([9, 10, 11, 12, 21, 23, 24, 25, 28, 52, 53, 54, 55, 56, 57, 59]) +functions = Array[int]([12]) + +[obj type="OScriptGraph" id="OScriptGraph_6aclp"] +graph_name = &"double_pipe" +offset = Vector2(-302.441, -304.433) +zoom = 0.564474 +flags = 22 +nodes = Array[int]([14, 15, 16, 17, 18, 19, 22, 41, 42]) +functions = Array[int]([14]) + +[obj type="OScriptNodeCallBuiltinFunction" id="OScriptNodeCallBuiltinFunction_njyc4"] +function_name = &"print" +flags = 33 +method = { +"name": &"print", +"flags": 17, +"args": [{ +"name": &"arg1", +"usage": 131078 +}] +} +variable_arg_count = 0 +id = 3 +position = Vector2(220, -60) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 4 +}, { +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"arg1", +"flags": 2, +"usage": 131078 +}]) + +[obj type="OScriptNodeComposeFrom" id="OScriptNodeComposeFrom_ylaap"] +id = 4 +position = Vector2(-200, 40) +pin_data = Array[Dictionary]([{ +"pin_name": &"from", +"type": 4, +"flags": 2, +"dv": "spawn pipes" +}, { +"pin_name": &"value", +"type": 4, +"dir": 1, +"flags": 2, +"dv": "" +}]) + +[obj type="OScriptNodeInstantiateScene" id="OScriptNodeInstantiateScene_8veww"] +scene = "res://scenes/pipe/pipe.tscn" +id = 9 +position = Vector2(-80, -120) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 4 +}, { +"pin_name": &"scene", +"type": 4, +"flags": 8388610, +"dv": "res://scenes/pipe/pipe.tscn", +"hint": 13, +"hint_string": "*.scn,*.tscn" +}, { +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"scene_root", +"type": 24, +"dir": 1, +"flags": 2, +"target_class": "AnimatableBody2D" +}]) + +[obj type="OScriptNodeCallMemberFunction" id="OScriptNodeCallMemberFunction_jfvob"] +function_name = &"set_global_position" +target_class_name = "Node2D" +target_type = 24 +flags = 520 +method = { +"name": &"set_global_position", +"args": [{ +"name": &"position", +"type": 5 +}] +} +chain = false +id = 10 +position = Vector2(1340, -300) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 4 +}, { +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"target", +"type": 24, +"flags": 2050, +"label": "Node2D", +"target_class": "Node2D" +}, { +"pin_name": &"position", +"type": 5, +"flags": 2, +"dv": Vector2(0, 0) +}]) + +[obj type="OScriptNodeCallMemberFunction" id="OScriptNodeCallMemberFunction_q01i0"] +function_name = &"add_child" +target_class_name = "Node" +target_type = 24 +flags = 520 +method = { +"name": &"add_child", +"default_args": [false, 0], +"args": [{ +"name": &"node", +"type": 24, +"class_name": &"Node" +}, { +"name": &"force_readable_name", +"type": 1 +}, { +"name": &"internal", +"type": 2, +"class_name": &"Node.InternalMode", +"usage": 65542 +}] +} +chain = false +id = 11 +position = Vector2(1340, 380) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 4 +}, { +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"target", +"type": 24, +"flags": 2050, +"label": "Node", +"target_class": "Node" +}, { +"pin_name": &"node", +"type": 24, +"flags": 2, +"target_class": "Node" +}, { +"pin_name": &"force_readable_name", +"type": 1, +"flags": 2, +"dv": false +}, { +"pin_name": &"internal", +"type": 2, +"flags": 33554434, +"target_class": "Node.InternalMode", +"dv": 0, +"usage": 65542 +}]) + +[obj type="OScriptNodeFunctionEntry" id="OScriptNodeFunctionEntry_vfbcm"] +function_id = "52040A0D-E374-450B-B8AB-294421C70082" +id = 12 +position = Vector2(-280, -120) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"pos", +"type": 5, +"dir": 1, +"flags": 2 +}, { +"pin_name": &"rotation_deg", +"type": 2, +"dir": 1, +"flags": 2 +}, { +"pin_name": &"scale", +"type": 3, +"dir": 1, +"flags": 2 +}]) + +[obj type="OScriptNodeCallScriptFunction" id="OScriptNodeCallScriptFunction_aa0o6"] +guid = "52040A0D-E374-450B-B8AB-294421C70082" +function_name = &"spawn_pipe" +flags = 8 +id = 13 +position = Vector2(1000, -240) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 4 +}, { +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"pos", +"type": 5, +"flags": 2 +}, { +"pin_name": &"rotation_deg", +"type": 2, +"flags": 2 +}, { +"pin_name": &"scale", +"type": 3, +"flags": 2, +"dv": 0.0 +}]) + +[obj type="OScriptNodeFunctionEntry" id="OScriptNodeFunctionEntry_p1lbh"] +function_id = "68CC7B7E-836E-4D7E-B745-CA414B592328" +id = 14 +position = Vector2(-460, -100) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"pos_y", +"type": 2, +"dir": 1, +"flags": 2 +}, { +"pin_name": &"space", +"type": 2, +"dir": 1, +"flags": 2 +}]) + +[obj type="OScriptNodeCallScriptFunction" id="OScriptNodeCallScriptFunction_cj1kw"] +guid = "52040A0D-E374-450B-B8AB-294421C70082" +function_name = &"spawn_pipe" +flags = 8 +id = 15 +position = Vector2(560, -100) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 4 +}, { +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"pos", +"type": 5, +"flags": 2 +}, { +"pin_name": &"rotation_deg", +"type": 2, +"flags": 2, +"dv": 0 +}, { +"pin_name": &"scale", +"type": 3, +"flags": 2, +"dv": 2.0 +}]) + +[obj type="OScriptNodeComposeFrom" id="OScriptNodeComposeFrom_33lig"] +id = 16 +position = Vector2(320, -40) +pin_data = Array[Dictionary]([{ +"pin_name": &"x", +"type": 3, +"flags": 2 +}, { +"pin_name": &"y", +"type": 3, +"flags": 2, +"dv": 0.0 +}, { +"pin_name": &"value", +"type": 5, +"dir": 1, +"flags": 2, +"dv": Vector2(0, 0) +}]) + +[obj type="OScriptNodeComposeFrom" id="OScriptNodeComposeFrom_abqqn"] +id = 17 +position = Vector2(360, 100) +pin_data = Array[Dictionary]([{ +"pin_name": &"x", +"type": 3, +"flags": 2 +}, { +"pin_name": &"y", +"type": 3, +"flags": 2, +"dv": 0.0 +}, { +"pin_name": &"value", +"type": 5, +"dir": 1, +"flags": 2, +"dv": Vector2(0, 0) +}]) + +[obj type="OScriptNodeCallScriptFunction" id="OScriptNodeCallScriptFunction_8bknd"] +guid = "52040A0D-E374-450B-B8AB-294421C70082" +function_name = &"spawn_pipe" +flags = 8 +id = 18 +position = Vector2(580, 100) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 4 +}, { +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"pos", +"type": 5, +"flags": 2 +}, { +"pin_name": &"rotation_deg", +"type": 2, +"flags": 2 +}, { +"pin_name": &"scale", +"type": 3, +"flags": 2, +"dv": 2.0 +}]) + +[obj type="OScriptNodeOperator" id="OScriptNodeOperator_xcsxg"] +op = 6 +code = &"+" +name = &"Addition" +left_type = 3 +left_type_name = &"float" +right_type = 2 +right_type_name = &"int" +return_type = 3 +id = 19 +position = Vector2(60, 80) +pin_data = Array[Dictionary]([{ +"pin_name": &"a", +"type": 3, +"flags": 2 +}, { +"pin_name": &"b", +"type": 2, +"flags": 2 +}, { +"pin_name": &"result", +"type": 3, +"dir": 1, +"flags": 2 +}]) + +[obj type="OScriptNodeCallScriptFunction" id="OScriptNodeCallScriptFunction_gb3uu"] +guid = "68CC7B7E-836E-4D7E-B745-CA414B592328" +function_name = &"double_pipe" +flags = 8 +id = 20 +position = Vector2(440, -60) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 4 +}, { +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"pos_y", +"type": 2, +"flags": 2 +}, { +"pin_name": &"space", +"type": 2, +"flags": 2, +"dv": 180 +}]) + +[obj type="OScriptNodeCallMemberFunction" id="OScriptNodeCallMemberFunction_lf1rh"] +function_name = &"set_global_rotation_degrees" +target_class_name = "Node2D" +target_type = 24 +flags = 520 +method = { +"name": &"set_global_rotation_degrees", +"args": [{ +"name": &"degrees", +"type": 3 +}] +} +chain = false +id = 21 +position = Vector2(1340, -100) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 4 +}, { +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"target", +"type": 24, +"flags": 2050, +"label": "Node2D", +"target_class": "Node2D" +}, { +"pin_name": &"degrees", +"type": 3, +"flags": 2, +"dv": 0.0 +}]) + +[obj type="OScriptNodeComposeFrom" id="OScriptNodeComposeFrom_o1sr0"] +id = 22 +position = Vector2(320, -220) +pin_data = Array[Dictionary]([{ +"pin_name": &"from", +"type": 2, +"flags": 2, +"dv": 180 +}, { +"pin_name": &"value", +"type": 2, +"dir": 1, +"flags": 2, +"dv": 0 +}]) + +[obj type="OScriptNodeCallMemberFunction" id="OScriptNodeCallMemberFunction_juxld"] +function_name = &"set_global_scale" +target_class_name = "Node2D" +target_type = 24 +flags = 520 +method = { +"name": &"set_global_scale", +"args": [{ +"name": &"scale", +"type": 5 +}] +} +chain = false +id = 23 +position = Vector2(1780, 40) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 4 +}, { +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"target", +"type": 24, +"flags": 2050, +"label": "Node2D", +"target_class": "Node2D" +}, { +"pin_name": &"scale", +"type": 5, +"flags": 2, +"dv": Vector2(0, 0) +}]) + +[obj type="OScriptNodeComposeFrom" id="OScriptNodeComposeFrom_5i1wo"] +id = 24 +position = Vector2(1340, 200) +pin_data = Array[Dictionary]([{ +"pin_name": &"x", +"type": 3, +"flags": 2, +"dv": 0.0 +}, { +"pin_name": &"y", +"type": 3, +"flags": 2, +"dv": 0.0 +}, { +"pin_name": &"value", +"type": 5, +"dir": 1, +"flags": 2, +"dv": Vector2(0, 0) +}]) + +[obj type="OScriptNodeBranch" id="OScriptNodeBranch_fxmlv"] +id = 25 +position = Vector2(1340, 40) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 516, +"label": "if [condition]" +}, { +"pin_name": &"condition", +"type": 1, +"flags": 2, +"dv": false +}, { +"pin_name": &"true", +"dir": 1, +"flags": 516 +}, { +"pin_name": &"false", +"dir": 1, +"flags": 516 +}]) + +[obj type="OScriptNodeOperator" id="OScriptNodeOperator_qboil"] +op = 1 +code = &"!=" +name = &"Not Equal" +left_type = 3 +left_type_name = &"float" +right_type = 2 +right_type_name = &"int" +return_type = 1 +id = 28 +position = Vector2(460, 180) +pin_data = Array[Dictionary]([{ +"pin_name": &"a", +"type": 3, +"flags": 2 +}, { +"pin_name": &"b", +"type": 2, +"flags": 2 +}, { +"pin_name": &"result", +"type": 1, +"dir": 1, +"flags": 2 +}]) + +[obj type="OScriptNodeEvent" id="OScriptNodeEvent_72erq"] +function_id = "563670FE-8FF8-4110-90E9-A33FDF21159D" +id = 29 +position = Vector2(-60, 400) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}]) + +[obj type="OScriptNodeEvent" id="OScriptNodeEvent_2rv1o"] +function_id = "7D2E1E1C-1E42-4F67-8F82-2C3B46D5C3B8" +id = 30 +position = Vector2(-220, -60) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}]) + +[obj type="OScriptNodeVariableGet" id="OScriptNodeVariableGet_rqdmo"] +variable_name = &"wobbl" +id = 33 +position = Vector2(-660, 180) +pin_data = Array[Dictionary]([{ +"pin_name": &"value", +"type": 2, +"dir": 1, +"flags": 2050, +"label": "wobbl", +"dv": 0, +"usage": 4102 +}]) + +[obj type="OScriptNodeVariableGet" id="OScriptNodeVariableGet_kjhhy"] +variable_name = &"wobbl" +id = 34 +position = Vector2(-80, 560) +pin_data = Array[Dictionary]([{ +"pin_name": &"value", +"type": 2, +"dir": 1, +"flags": 2050, +"label": "wobbl", +"dv": 0, +"usage": 4102 +}]) + +[obj type="OScriptNodeVariableSet" id="OScriptNodeVariableSet_e3l78"] +variable_name = &"wobbl" +id = 35 +position = Vector2(680, 400) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 4 +}, { +"pin_name": &"wobbl", +"type": 2, +"flags": 2050, +"dv": 0, +"usage": 4102 +}, { +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"value", +"type": 2, +"dir": 1, +"flags": 1026, +"dv": 0, +"usage": 4102 +}]) + +[obj type="OScriptNodeComposeFrom" id="OScriptNodeComposeFrom_rb1sh"] +id = 39 +position = Vector2(-20, 220) +pin_data = Array[Dictionary]([{ +"pin_name": &"from", +"type": 3, +"flags": 2, +"dv": 350.0 +}, { +"pin_name": &"value", +"type": 2, +"dir": 1, +"flags": 2, +"dv": 0 +}]) + +[obj type="OScriptNodeOperator" id="OScriptNodeOperator_yeowr"] +op = 9 +code = &"/" +name = &"Division" +left_type = 2 +left_type_name = &"int" +right_type = 2 +right_type_name = &"int" +return_type = 2 +id = 41 +position = Vector2(-480, 40) +pin_data = Array[Dictionary]([{ +"pin_name": &"a", +"type": 2, +"flags": 2 +}, { +"pin_name": &"b", +"type": 2, +"flags": 2, +"dv": 2 +}, { +"pin_name": &"result", +"type": 2, +"dir": 1, +"flags": 2 +}]) + +[obj type="OScriptNodeOperator" id="OScriptNodeOperator_2e28b"] +op = 7 +code = &"-" +name = &"Subtract" +left_type = 3 +left_type_name = &"float" +right_type = 2 +right_type_name = &"int" +return_type = 3 +id = 42 +position = Vector2(60, -40) +pin_data = Array[Dictionary]([{ +"pin_name": &"a", +"type": 3, +"flags": 2 +}, { +"pin_name": &"b", +"type": 2, +"flags": 2 +}, { +"pin_name": &"result", +"type": 3, +"dir": 1, +"flags": 2 +}]) + +[obj type="OScriptNodeCallBuiltinFunction" id="OScriptNodeCallBuiltinFunction_888sr"] +function_name = &"randi_range" +method = { +"name": &"randi_range", +"return": { +"type": 2 +}, +"args": [{ +"name": &"from", +"type": 2 +}, { +"name": &"to", +"type": 2 +}] +} +id = 44 +position = Vector2(-300, 160) +pin_data = Array[Dictionary]([{ +"pin_name": &"from", +"type": 2, +"flags": 2 +}, { +"pin_name": &"to", +"type": 2, +"flags": 2 +}, { +"pin_name": &"return_value", +"type": 2, +"dir": 1, +"flags": 1026 +}]) + +[obj type="OScriptNodeOperator" id="OScriptNodeOperator_xtprw"] +op = 10 +code = &"unary-" +name = &"Unary- or Negate" +left_type = 2 +left_type_name = &"int" +return_type = 2 +id = 45 +position = Vector2(-480, 140) +pin_data = Array[Dictionary]([{ +"pin_name": &"a", +"type": 2, +"flags": 2 +}, { +"pin_name": &"result", +"type": 2, +"dir": 1, +"flags": 2 +}]) + +[obj type="OScriptNodeComposeFrom" id="OScriptNodeComposeFrom_shc2l"] +id = 46 +position = Vector2(280, 580) +pin_data = Array[Dictionary]([{ +"pin_name": &"from", +"type": 2, +"flags": 2, +"dv": 5 +}, { +"pin_name": &"value", +"type": 2, +"dir": 1, +"flags": 2, +"dv": 0 +}]) + +[obj type="OScriptNodeOperator" id="OScriptNodeOperator_47hpr"] +op = 6 +code = &"+" +name = &"Addition" +left_type = 2 +left_type_name = &"int" +right_type = 2 +right_type_name = &"int" +return_type = 2 +id = 47 +position = Vector2(500, 520) +pin_data = Array[Dictionary]([{ +"pin_name": &"a", +"type": 2, +"flags": 2 +}, { +"pin_name": &"b", +"type": 2, +"flags": 2 +}, { +"pin_name": &"result", +"type": 2, +"dir": 1, +"flags": 2 +}]) + +[obj type="OScriptNodeOperator" id="OScriptNodeOperator_x1sxh"] +op = 6 +code = &"+" +name = &"Addition" +left_type = 2 +left_type_name = &"int" +right_type = 2 +right_type_name = &"int" +return_type = 2 +id = 48 +position = Vector2(260, 160) +pin_data = Array[Dictionary]([{ +"pin_name": &"a", +"type": 2, +"flags": 2 +}, { +"pin_name": &"b", +"type": 2, +"flags": 2 +}, { +"pin_name": &"result", +"type": 2, +"dir": 1, +"flags": 2 +}]) + +[obj type="OScriptNodeBranch" id="OScriptNodeBranch_x5pd8"] +id = 50 +position = Vector2(360, 400) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 516, +"label": "if [condition]" +}, { +"pin_name": &"condition", +"type": 1, +"flags": 2, +"dv": false +}, { +"pin_name": &"true", +"dir": 1, +"flags": 516 +}, { +"pin_name": &"false", +"dir": 1, +"flags": 516 +}]) + +[obj type="OScriptNodeOperator" id="OScriptNodeOperator_0hfew"] +op = 2 +code = &"<" +name = &"Less-than" +left_type = 2 +left_type_name = &"int" +right_type = 2 +right_type_name = &"int" +return_type = 1 +id = 51 +position = Vector2(140, 480) +pin_data = Array[Dictionary]([{ +"pin_name": &"a", +"type": 2, +"flags": 2 +}, { +"pin_name": &"b", +"type": 2, +"flags": 2, +"dv": 210 +}, { +"pin_name": &"result", +"type": 1, +"dir": 1, +"flags": 2 +}]) + +[obj type="OScriptNodeSequence" id="OScriptNodeSequence_osb3c"] +steps = 4 +id = 52 +position = Vector2(600, -120) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 4 +}, { +"pin_name": &"then_0", +"dir": 1, +"flags": 516 +}, { +"pin_name": &"then_1", +"dir": 1, +"flags": 516 +}, { +"pin_name": &"then_2", +"dir": 1, +"flags": 516 +}, { +"pin_name": &"then_3", +"dir": 1, +"flags": 516 +}]) + +[obj type="OScriptNodeVariableSet" id="OScriptNodeVariableSet_rfrvu"] +variable_name = &"instance" +id = 53 +position = Vector2(400, -120) +pin_data = Array[Dictionary]([{ +"pin_name": &"ExecIn", +"flags": 4 +}, { +"pin_name": &"instance", +"flags": 2050, +"usage": 135170 +}, { +"pin_name": &"ExecOut", +"dir": 1, +"flags": 4 +}, { +"pin_name": &"value", +"dir": 1, +"flags": 1026, +"usage": 135170 +}]) + +[obj type="OScriptNodeVariableGet" id="OScriptNodeVariableGet_xerjn"] +variable_name = &"instance" +id = 54 +position = Vector2(1340, -360) +pin_data = Array[Dictionary]([{ +"pin_name": &"value", +"dir": 1, +"flags": 2050, +"label": "instance", +"usage": 135170 +}]) + +[obj type="OScriptNodeVariableGet" id="OScriptNodeVariableGet_jd46v"] +variable_name = &"instance" +id = 55 +position = Vector2(1340, -160) +pin_data = Array[Dictionary]([{ +"pin_name": &"value", +"dir": 1, +"flags": 2050, +"label": "instance", +"usage": 135170 +}]) + +[obj type="OScriptNodeVariableGet" id="OScriptNodeVariableGet_6neh8"] +variable_name = &"instance" +id = 56 +position = Vector2(1000, 480) +pin_data = Array[Dictionary]([{ +"pin_name": &"value", +"dir": 1, +"flags": 2050, +"label": "instance", +"usage": 135170 +}]) + +[obj type="OScriptNodeVariableGet" id="OScriptNodeVariableGet_kitha"] +variable_name = &"instance" +id = 57 +position = Vector2(1520, 140) +pin_data = Array[Dictionary]([{ +"pin_name": &"value", +"dir": 1, +"flags": 2050, +"label": "instance", +"usage": 135170 +}]) + +[obj type="OScriptNodeSceneNode" id="OScriptNodeSceneNode_sha5c"] +node_path = NodePath("pipes") +target_class_name = "Node2D" +id = 59 +position = Vector2(1000, 400) +pin_data = Array[Dictionary]([{ +"pin_name": &"pipes", +"type": 24, +"dir": 1, +"flags": 2050, +"target_class": "Node2D" +}]) + +[obj type="OScriptVariable" id="OScriptVariable_flxrk"] +name = "wobbl" +category = "Default" +classification = "type:int" +type = 2 +default_value = 5 + +[obj type="OScriptVariable" id="OScriptVariable_atrcj"] +name = "instance" +category = "Default" +classification = "type:Nil" +default_value = null + +[resource] +base_type = &"Marker2D" +variables = Array[OScriptVariable]([SubResource("OScriptVariable_flxrk"), SubResource("OScriptVariable_atrcj")]) +functions = Array[OScriptFunction]([SubResource("OScriptFunction_q885q"), SubResource("OScriptFunction_wwa8x"), SubResource("OScriptFunction_br3vr"), SubResource("OScriptFunction_6u3n4")]) +connections = Array[int]([30, 0, 3, 0, 12, 0, 9, 0, 52, 0, 10, 0, 52, 3, 11, 0, 14, 0, 15, 0, 15, 0, 18, 0, 14, 1, 19, 0, 3, 0, 20, 0, 52, 1, 21, 0, 25, 0, 23, 0, 12, 3, 24, 0, 52, 2, 25, 0, 12, 3, 28, 0, 50, 0, 35, 0, 14, 2, 41, 0, 14, 1, 42, 0, 45, 0, 44, 0, 33, 0, 45, 0, 34, 0, 47, 0, 44, 0, 48, 0, 29, 0, 50, 0, 34, 0, 51, 0, 53, 0, 52, 0, 9, 0, 53, 0, 4, 0, 3, 1, 54, 0, 10, 1, 59, 0, 11, 1, 16, 0, 15, 1, 42, 0, 16, 1, 19, 0, 17, 1, 17, 0, 18, 1, 41, 0, 19, 1, 48, 0, 20, 1, 55, 0, 21, 1, 57, 0, 23, 1, 12, 3, 24, 1, 28, 0, 25, 1, 47, 0, 35, 1, 41, 0, 42, 1, 33, 0, 44, 1, 46, 0, 47, 1, 39, 0, 48, 1, 51, 0, 50, 1, 9, 1, 53, 1, 12, 1, 10, 2, 56, 0, 11, 2, 22, 0, 15, 2, 12, 2, 21, 2, 24, 0, 23, 2]) +nodes = Array[OScriptNode]([SubResource("OScriptNodeCallBuiltinFunction_njyc4"), SubResource("OScriptNodeComposeFrom_ylaap"), SubResource("OScriptNodeInstantiateScene_8veww"), SubResource("OScriptNodeCallMemberFunction_jfvob"), SubResource("OScriptNodeCallMemberFunction_q01i0"), SubResource("OScriptNodeFunctionEntry_vfbcm"), SubResource("OScriptNodeCallScriptFunction_aa0o6"), SubResource("OScriptNodeFunctionEntry_p1lbh"), SubResource("OScriptNodeCallScriptFunction_cj1kw"), SubResource("OScriptNodeComposeFrom_33lig"), SubResource("OScriptNodeComposeFrom_abqqn"), SubResource("OScriptNodeCallScriptFunction_8bknd"), SubResource("OScriptNodeOperator_xcsxg"), SubResource("OScriptNodeCallScriptFunction_gb3uu"), SubResource("OScriptNodeCallMemberFunction_lf1rh"), SubResource("OScriptNodeComposeFrom_o1sr0"), SubResource("OScriptNodeCallMemberFunction_juxld"), SubResource("OScriptNodeComposeFrom_5i1wo"), SubResource("OScriptNodeBranch_fxmlv"), SubResource("OScriptNodeOperator_qboil"), SubResource("OScriptNodeEvent_72erq"), SubResource("OScriptNodeEvent_2rv1o"), SubResource("OScriptNodeVariableGet_rqdmo"), SubResource("OScriptNodeVariableGet_kjhhy"), SubResource("OScriptNodeVariableSet_e3l78"), SubResource("OScriptNodeComposeFrom_rb1sh"), SubResource("OScriptNodeOperator_yeowr"), SubResource("OScriptNodeOperator_2e28b"), SubResource("OScriptNodeCallBuiltinFunction_888sr"), SubResource("OScriptNodeOperator_xtprw"), SubResource("OScriptNodeComposeFrom_shc2l"), SubResource("OScriptNodeOperator_47hpr"), SubResource("OScriptNodeOperator_x1sxh"), SubResource("OScriptNodeBranch_x5pd8"), SubResource("OScriptNodeOperator_0hfew"), SubResource("OScriptNodeSequence_osb3c"), SubResource("OScriptNodeVariableSet_rfrvu"), SubResource("OScriptNodeVariableGet_xerjn"), SubResource("OScriptNodeVariableGet_jd46v"), SubResource("OScriptNodeVariableGet_6neh8"), SubResource("OScriptNodeVariableGet_kitha"), SubResource("OScriptNodeSceneNode_sha5c")]) +graphs = Array[OScriptGraph]([SubResource("OScriptGraph_7463u"), SubResource("OScriptGraph_ii1yw"), SubResource("OScriptGraph_6aclp")]) diff --git a/scenes/pipe_spawner.gd b/scenes/pipe_spawner.gd new file mode 100644 index 0000000..5aaa424 --- /dev/null +++ b/scenes/pipe_spawner.gd @@ -0,0 +1,22 @@ +extends Marker2D + +const pipe = preload("res://scenes/pipe/pipe.tscn") +var wobbl = 5 + +func spawn_pipe(pos:Vector2,rot,sca): + var instance = pipe.instantiate() + instance.global_position = pos + instance.rotation_degrees = rot + if sca: + instance.scale = Vector2(sca,sca) + $"../pipes".add_child(instance) + +func double_pipe(pos_y,space): + spawn_pipe(Vector2(0,pos_y-space/2),180,2) + spawn_pipe(Vector2(0,pos_y+space/2),0,2) + + + +func _on_spawn_pipe_timeout() -> void: + print("spawn pipes") + double_pipe(randi_range(-wobbl,wobbl)+350,180) #350 =middle of the screen