diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..f28239b --- /dev/null +++ b/.editorconfig @@ -0,0 +1,4 @@ +root = true + +[*] +charset = utf-8 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/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..7b72b27 --- /dev/null +++ b/addons/godot-git-plugin/THIRDPARTY.md @@ -0,0 +1,1346 @@ +# 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 +4. openssl - OpenSSL License - https://github.com/openssl/openssl/tree/26baecb28ce461696966dac9ac889629db0b3b96 + +## 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..62cf890 --- /dev/null +++ b/addons/godot-git-plugin/git_plugin.gdextension @@ -0,0 +1,10 @@ +[configuration] + +entry_symbol = "git_plugin_init" +compatibility_minimum = "4.2.0" + +[libraries] + +linux.editor.x86_64 = "linux/libgit_plugin.linux.editor.x86_64.so" +macos.editor = "macos/libgit_plugin.macos.editor.universal.dylib" +windows.editor.x86_64 = "windows/libgit_plugin.windows.editor.x86_64.dll" diff --git a/addons/godot-git-plugin/git_plugin.gdextension.uid b/addons/godot-git-plugin/git_plugin.gdextension.uid new file mode 100644 index 0000000..b3c638b --- /dev/null +++ b/addons/godot-git-plugin/git_plugin.gdextension.uid @@ -0,0 +1 @@ +uid://bqt56e0lwt3ss 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..0acaa28 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..8e30951 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/windows/libgit_plugin.windows.editor.x86_64.dll b/addons/godot-git-plugin/windows/libgit_plugin.windows.editor.x86_64.dll new file mode 100644 index 0000000..1102afc Binary files /dev/null and b/addons/godot-git-plugin/windows/libgit_plugin.windows.editor.x86_64.dll differ diff --git a/addons/godot-git-plugin/windows/~libgit_plugin.windows.editor.x86_64.dll b/addons/godot-git-plugin/windows/~libgit_plugin.windows.editor.x86_64.dll new file mode 100644 index 0000000..1102afc Binary files /dev/null and b/addons/godot-git-plugin/windows/~libgit_plugin.windows.editor.x86_64.dll differ diff --git a/addons/spatial_audio_3d/icon.png b/addons/spatial_audio_3d/icon.png new file mode 100644 index 0000000..918ce7c Binary files /dev/null and b/addons/spatial_audio_3d/icon.png differ diff --git a/addons/spatial_audio_3d/icon.png.import b/addons/spatial_audio_3d/icon.png.import new file mode 100644 index 0000000..df8455d --- /dev/null +++ b/addons/spatial_audio_3d/icon.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://qnec6xpn4j2c" +path="res://.godot/imported/icon.png-286af6e06be3677f647656e1e0dc8b32.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://addons/spatial_audio_3d/icon.png" +dest_files=["res://.godot/imported/icon.png-286af6e06be3677f647656e1e0dc8b32.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/uastc_level=0 +compress/rdo_quality_loss=0.0 +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/channel_remap/red=0 +process/channel_remap/green=1 +process/channel_remap/blue=2 +process/channel_remap/alpha=3 +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/addons/spatial_audio_3d/spatial_audio_3d.gd b/addons/spatial_audio_3d/spatial_audio_3d.gd new file mode 100644 index 0000000..e3ce8f7 --- /dev/null +++ b/addons/spatial_audio_3d/spatial_audio_3d.gd @@ -0,0 +1,1083 @@ +@icon("icon.png") +class_name SpatialAudio3D extends AudioStreamPlayer3D +## A Godot 4 plugin that brings physically-informed 3D audio to your scenes +## - with distance-based delay, raycast-driven reverb, and dynamic occlusion, all derived from your level geometry at runtime. +## +## It consists of three components: +## * Soundsource +## * Reverber +## * Soundplayer +## +## The *Soundsource* is the original audio emitter, it has a delay based on the player's distance to it. +## Soundsource also shoots raycasts in 8 different directions + up to determine where to create the Reverbers, +## and it measures the room size using additional measurement raycasts. +## +## The *Reverber* is a sound that is reflected on a wall, it has a delay and reverb effect, based on player's distance and room size. +## +## The *Soundplayer* is the entity that actually plays the audio. Why do I need an additional Soundplayer and not playing directly on Soundsource and Reverber? +## During development, I figured that setting the delay while playing sound generates audible cracks. +## To mitigate this, each Soundsource has two *Soundplayers*; one active playing a sound, and one in standby where I set delays. +## Every 10 meters, Soundsource does a crossfade between the active and inactive Soundplayer. +## +## A similar problem arises with the Reverber: Imagine it plays a sound in a big room with long reverb. +## Suddenly, you exit the room. The Reverber with the long reverb is repositioned 1m at the door, and the still playing reverb suddenly abrupts. +## To mitigate this, each Reverber also has two Soundplayers; one active playing a sound, and one in standby. +## If the player moves around and the reverber would be placed more than 10m away to it's former position, the standby Soundplayer is placed instead, +## letting the former reverber hall and fade out. + +@export_category("Sound Properties") +@export var reverb_enabled: bool = true ## Enable reverb-effects with all its computations.[br][br]Disable if you just need it for occlusion detection, for example fading ambient rain when entering a house. +@export_range(-81, +80, 3.0, "suffix:dB") var reverb_volume_db: float = -6 ## Maximum volume of the reverbs. +@export_range(-1, 5, 0.05, "or_greater", "suffix:s") var reverb_fadeintime: float = 2.0 ## Fade-in time when a reverb is added at a wall.[br][br]The default of 2s is a good value where changes in environment merge well into the overall sound mix.[br]If you have small areas with little changes of distances, set this value to low (0.2s) so that repositioned reverbs don't get stuck for too long in a position. In a large area, when the raycast suddenly hits a close wall, the sudden appearing reverb can sound unnatural.[br][br]Set to -1 for dynamic fade time (based on wetness). +@export_range(-1, 8, 0.05, "or_greater", "suffix:s") var reverb_fadeouttime: float = 2.0 ## Fade-out time when a reverb is removed.[br][br]The default of 2s is a good value where changes in environment merge well into the overall sound mix.[br]If you have small areas with little changes of distances, set this value to low (0.2s) so that repositioned reverbs don't get stuck for too long in a position.[br][br]Set to -1 for dynamic fade time (based on wetness). +@export_range(1, 20_000, 0.1, "suffix:Hz") var occlusion_lp_cutoff: int = 600 ## Frequency when soundsource is occluded behind walls. +@export_range(0, 5, 0.05, "or_greater", "suffix:s") var occlusion_fadetime: float = 0.5 ## Fadetime when occlusion changes. +@export_range(0, 100, 0.1, "or_greater", "suffix:m") var bass_proximity: int = 50 ## The closer you are to a wall, the more bass you will hear.[br][br]The effect starts at this value (distance to the wall).[br][br]0 to disable. + +@export_category("Physics") +@export_range(1, 100, 1, "or_greater", "suffix:m") var max_raycast_distance: int = 100 ## Maximum distance for the reverb raycasts. +@export_flags_3d_physics var collision_mask: int = 1 ## Mask for the raycast where to add reverb. +@export var roomsize_multiplicator: float = 6.0 ## How much hall to add compared to room size.[br]Sometimes you have a small room but you need a long reverb. +@export_range(1, 340, 1, "or_greater", "suffix:m/s") var speed_of_sound: int = 340 ## How fast sound travels through the air. +@export var prox_reduction: float = 0.0 ## How much proximity reduces the reverb +@export_range(4,32,1) var reverb_raycast_count: int = 8 ##how many reverb raycasts to shoot out horizontally + +@export_category("System") +@export_range(1, 60, 0.1, "or_greater", "suffix:per second") var audiophysics_ticks: int = 10 ## The number of audio physics calculations per second.[br]Tied to _physics_process().[br][br]Use 30-60 for fast moving sounds like a motorcycle passing by.[br][br]Default: 10. +@export var loop: bool = false ## Loop audio indefinitely. +@export var shut_up: bool = false ## Mute output. +@export var debug: bool = false ## Visualize raycasts, measurement rays and reverb-audioplayers. + +@onready var player_camera: Camera3D = get_viewport().get_camera_3d() # store reference to camera so that global_position is always up to date +#@onready var raycasts_coords: Array = [ + #Vector3(0, 0, max_raycast_distance), # N + #Vector3(max_raycast_distance, 0, max_raycast_distance), # NW + #Vector3(max_raycast_distance, 0, 0), # W + #Vector3(max_raycast_distance, 0, -max_raycast_distance), # SW + #Vector3(0, 0, -max_raycast_distance), # S + #Vector3(-max_raycast_distance, 0, -max_raycast_distance), # SE + #Vector3(-max_raycast_distance, 0, 0), # E + #Vector3(-max_raycast_distance, 0, max_raycast_distance), # NE + #Vector3(0, max_raycast_distance, 0), # U +# Vector3(0, max_raycast_distance, max_raycast_distance), # U 45° +# Vector3(0, -max_raycast_distance, 0), # D +#] +var raycasts_coords: Array[Vector3] = [] + +# this is the soundsource audioplayer. +var soundsource: Soundsource + +# internal vars +var do_update: bool = false +var tick_interval: int +var _tick_counter: int = -1 # initialize the counter with enough time for the engine to initialize +var _debug: Dictionary +var debugsphere: Node3D +var fade_tween: Tween +var lowpass_tween: Tween +var xfadetime: float = 1.000 +enum fx {delay, reverb, reverb_hipass, lowpass} + + +func _ready(): + # add soundsource + soundsource = Soundsource.new() # @export variables are overridden on _init, so we pass them right after to have the actual values + + # @export vars + soundsource.loop = loop + soundsource.shut_up = shut_up + soundsource.debug = debug + soundsource.audiophysics_ticks = audiophysics_ticks + soundsource.speed_of_sound = speed_of_sound + soundsource.max_raycast_distance = max_raycast_distance + soundsource.roomsize_multiplicator = roomsize_multiplicator + soundsource.collision_mask = collision_mask + soundsource.reverb_enabled = reverb_enabled + soundsource.reverb_volume_db = reverb_volume_db + soundsource.bass_proximity = bass_proximity + soundsource.reverb_fadeintime = reverb_fadeintime + soundsource.reverb_fadeouttime = reverb_fadeouttime + soundsource.occlusion_lp_cutoff = occlusion_lp_cutoff + soundsource.occlusion_fadetime = occlusion_fadetime + soundsource.reverb_raycast_count = reverb_raycast_count + + # module vars + soundsource.name = name + soundsource.stream = stream + soundsource.volume_db = volume_db + soundsource.max_polyphony = max_polyphony + soundsource.doppler_tracking = doppler_tracking + soundsource.soundsource = soundsource + + add_child(soundsource) # this calls _ready(), so vars needs to be set before add_child() + # but position can only be set when node is in tree, e.g. after add_child() + + # calculate how often (physics-frames) we run + tick_interval = max(0, roundi(Engine.physics_ticks_per_second / max(1, audiophysics_ticks))) + + # start playing on autoplay + if autoplay: + stop() + await get_tree().create_timer(0.1).timeout # reverbers aren't ready. + soundsource.do_play() + + +func _physics_process(_delta): + # keep rotation locked + global_rotation = Vector3(0, 0, 0) + + if _tick_counter >= tick_interval: + soundsource.update_run() + _tick_counter = 0 + + # update tick + _tick_counter += 1 + + +func do_play(): + soundsource.do_play() + + +func do_stop(): + soundsource.do_stop() + + +func do_set_stream(sound: AudioStream): + soundsource.do_set_stream(sound) + + +func create_raycast(name_p, target_position) -> RayCast3D: + var r = RayCast3D.new() + r.name = name_p + r.target_position = target_position + r.collision_mask = collision_mask + r.enabled = false + return r + + +func create_raycast_sector(start_angle: int = 0, width_factor: float = 1.5, bearing_raycount: int = 20, heading_count: int = 7) -> Array[RayCast3D]: + var rays: Array[RayCast3D] = [] + var i = 0 + for heading: float in range(0, heading_count, 1): # 0: ground, 7: above + heading = heading/PI + for bearing: float in range((bearing_raycount/2.0 * -1), (bearing_raycount/2.0)): # -7: right, 7: left + bearing = bearing / bearing_raycount * width_factor + var mr = RayCast3D.new() + mr.name = "mray" + str(i) + add_child(mr) + mr.target_position = Vector3(max_raycast_distance, 0, 0) + mr.collision_mask = collision_mask + mr.debug_shape_custom_color = Color("#ff0") + mr.debug_shape_thickness = 1 + mr.rotation = Vector3(0, bearing, heading) + Vector3(0, deg_to_rad(-start_angle), 0) + mr.enabled = false + + if debug: + var dray = Debugray.new() + dray.visibility_range_end = max_raycast_distance + dray.visibility_range_end_margin = max_raycast_distance / 10.0 + dray.visibility_range_fade_mode = GeometryInstance3D.VISIBILITY_RANGE_FADE_SELF + mr.add_child(dray) + + rays.append(mr) + i += 1 + return rays + + +func create_soundplayer(name_p: String, with_reverb_fx: bool = true) -> Soundplayer: + var soundplayer := Soundplayer.new() + + # @export vars + soundplayer.loop = loop + soundplayer.shut_up = shut_up + soundplayer.debug = debug + soundplayer.audiophysics_ticks = audiophysics_ticks + soundplayer.speed_of_sound = speed_of_sound + soundplayer.max_raycast_distance = max_raycast_distance + soundplayer.roomsize_multiplicator = roomsize_multiplicator + soundplayer.reverb_enabled = reverb_enabled + soundplayer.reverb_volume_db = reverb_volume_db + soundplayer.bass_proximity = bass_proximity + soundplayer.reverb_fadeintime = reverb_fadeintime + soundplayer.reverb_fadeouttime = reverb_fadeouttime + soundplayer.occlusion_lp_cutoff = occlusion_lp_cutoff + soundplayer.occlusion_fadetime = occlusion_fadetime + + # module vars + soundplayer.name = name_p + soundplayer.stream = stream + soundplayer.volume_db = volume_db + soundplayer.max_polyphony = max_polyphony + + # BUG: Doppler-tracking interferes with set_delay. + # The delay only grows bigger and bigger when doppler-tracking is used, so we won't use it for now. + soundplayer.doppler_tracking = AudioStreamPlayer3D.DOPPLER_TRACKING_DISABLED + + soundplayer.with_reverb_fx = with_reverb_fx + soundplayer.soundsource = soundsource + + return soundplayer + + +func create_audiobus(bus_name, vol_db = 0): + var a = AudioServer.bus_count + AudioServer.add_bus(a) + AudioServer.set_bus_name(a, bus_name) + AudioServer.set_bus_volume_db(a, vol_db) + AudioServer.set_bus_send(a, "Master") + + +func remove_audiobus(bus_name: String): + #print("removing bus ", bus_name) + var a = AudioServer.get_bus_index(bus_name) + AudioServer.remove_bus(a) + + +## sets the volume. +## if you provide fadetime, it will fade to volume using an internal tweener. +## if you need to fade more than one value at a time in this player, you can provide a tweener. +func set_audiobus_volume(bus_name, vol_db, fadetime: float = 0, tweenvar: Tween = null): + #if debug: print("set_audiobus_volume(%s, %f, %f)" % [bus_name, vol_db, fadetime]) + var a = AudioServer.get_bus_index(bus_name) + if fadetime == 0: + AudioServer.set_bus_volume_db(a, vol_db) + else: + var current_volume = AudioServer.get_bus_volume_db(a) + if tweenvar: + tweenvar.play() + tweenvar.tween_method(tweensetvol.bind(a), current_volume, vol_db, fadetime) + else: + if fade_tween: + fade_tween.kill() + fade_tween = create_tween() + fade_tween.tween_method(tweensetvol.bind(a), current_volume, vol_db, fadetime) + +# this is a little helper method for tweening. +# tween_method always tweens the first value. +# but the first value in set_bus_volume_db() is bus index, so we provide volume as the first value for tween_method. +func tweensetvol(vol, bus_index): + AudioServer.set_bus_volume_db(bus_index, vol) + + +func add_audioeffect(bus_name, effect_type: fx): + var a = AudioServer.get_bus_index(bus_name) + match effect_type: + + fx.delay: + var delay = AudioEffectDelay.new() + delay.dry = 0 + delay.tap1_delay_ms = 0 + delay.tap1_level_db = 0 + delay.tap1_pan = 0 + delay.tap2_active = false + AudioServer.add_bus_effect(a, delay, 0) + + fx.reverb: + var reverb = AudioEffectReverb.new() + reverb.dry = 0 + reverb.spread = 0 + reverb.hipass = 0.2 + reverb.dry = 0 + reverb.wet = 1 + reverb.predelay_feedback = 0 + AudioServer.add_bus_effect(a, reverb, 1) + + fx.lowpass: + var lowpass = AudioEffectLowPassFilter.new() + lowpass.cutoff_hz = 20500 + AudioServer.add_bus_effect(a, lowpass, 2) + + +func set_audioeffect(bus_name, effect_type: fx, params): + #if debug: print("set_audioeffect(%s, %s, %s)" % [bus_name, effect_type, JSON.stringify(params)]) + var a = AudioServer.get_bus_index(bus_name) + match effect_type: + + fx.delay: + var delay_fx = AudioServer.get_bus_effect(a, 0) + delay_fx.tap1_delay_ms = params.delay + + fx.reverb: + var reverb_fx = AudioServer.get_bus_effect(a, 1) + reverb_fx.room_size = params.room_size + reverb_fx.wet = params.wetness + reverb_fx.dry = 1 - params.wetness + + fx.reverb_hipass: + var reverb_hipass_fx = AudioServer.get_bus_effect(a, 1) + reverb_hipass_fx.hipass = params.hipass + + fx.lowpass: + var lowpass_fx = AudioServer.get_bus_effect(a, 2) + if params.fadetime == 0: + lowpass_fx.cutoff_hz = params.lowpass + else: + if params.fadetime > 0: + if lowpass_tween: + lowpass_tween.kill() + lowpass_tween = create_tween() + # fading in higher frequencies (20'000 - 6'000) is less noticeable than fading in the lower frequencies. + if params.lowpass < lowpass_fx.cutoff_hz: # fade fast through the higher frequencies + lowpass_tween.set_ease(Tween.EASE_OUT) + else: + lowpass_tween.set_ease(Tween.EASE_IN) # we are low, start slowly + lowpass_tween.set_trans(Tween.TRANS_QUINT) + lowpass_tween.tween_property(lowpass_fx, "cutoff_hz", params.lowpass, float(params.fadetime)).from_current() + else: + push_error("ERROR: fadetime not set in SpatialAudioStreamPlayer3D --> set_audioeffect --> fx.lowpass!") + + +func toggle_audioeffect(bus_name, effect_type: fx, enabled): + var a = AudioServer.get_bus_index(bus_name) + match effect_type: + + fx.delay: + AudioServer.set_bus_effect_enabled(a, 0, enabled) + + fx.reverb: + AudioServer.set_bus_effect_enabled(a, 1, enabled) + + fx.lowpass: + AudioServer.set_bus_effect_enabled(a, 2, enabled) + + +func calculate_delay(distance: float): + return round(distance / speed_of_sound * 1000) + + +# Soundsource: +# responsible for: positions and distances +# room size and wetness (calc_reverb) +# performs calculations over all raycasts/reverbers every X (0.5) seconds +# reverber.update_position() +# spawns reverbers +class Soundsource extends SpatialAudio3D: + + var raycasts: Array[RayCast3D] + var reverbers: Array[Reverber] + var measurement_rays: Array[RayCast3D] + var distances: Array[float] + var distance_to_player: float + var distance_to_player_since_last_delay_update: float + var delay_ms: + set(v): + if delay_ms != v: + delay_ms = v + var _soundplayer_active := soundplayer_active + var _soundplayer_standby := soundplayer_standby + + if soundplayer_active.state == soundplayer_active.ss.active: + soundplayer_standby.delay_ms = v + soundplayer_active.set_inactive(xfadetime) + soundplayer_standby.set_active(xfadetime) + + soundplayer_active = _soundplayer_standby + soundplayer_standby = _soundplayer_active + var room_size = 0.0 + var wetness = 1.0 + var soundplayer_active: Soundplayer + var soundplayer_standby: Soundplayer + var _is_playing_starting: bool = false + + + func _ready(): + + if debug: + #print("spawning soundsource: ", name) + var ds = Debugsphere.new() + ds.max_raycast_distance = max_raycast_distance + ds.size = 0.0 + ds.label_offset = Vector3(0, 3, 0) + ds.name = "Debugsphere " + name + add_child(ds) + debugsphere = ds + ds.line1 = "☼ " + name + + + # create soundplayers for delay-crossfading + soundplayer_active = create_soundplayer(name + "-A", false) + soundplayer_standby = create_soundplayer(name + "-B", false) + add_child(soundplayer_active) + add_child(soundplayer_standby) + + # set one active + soundplayer_active.set_active() + soundplayer_standby.set_inactive() + + # Only create raycasts, reverbers and measurement rays when reverb is enabled + if reverb_enabled: + + # create raycasts + var raycast_index = 0 + for c in raycasts_coords: + var rc = create_raycast("ray " + name + "#" + str(raycast_index), c) + + var dray = Debugray.new() + dray.visibility_range_end = max_raycast_distance * 1.3 + dray.visibility_range_end_margin = max_raycast_distance / 10.0 + dray.visibility_range_fade_mode = GeometryInstance3D.VISIBILITY_RANGE_FADE_SELF + rc.add_child(dray) + + var dray_normal = Debugray.new() + rc.add_child(dray_normal) + + add_child(rc) + raycasts.append(rc) + + # create reverbers + raycast_index = 0 + for rc in raycasts: + var reverber = create_reverber(name, raycast_index) + get_tree().get_root().add_child.call_deferred(reverber) + reverbers.append(reverber) + raycast_index += 1 + + # create measurement rays + measurement_rays = create_raycast_sector(0, 2*PI, 12, 3) + for mr in measurement_rays: + distances.append(-1) + + + func _physics_process(_delta): + if debug: + dump_debug() + debugsphere.update_label() + + + func _exit_tree(): + for r in reverbers: + r.queue_free() + for c in get_children(): + remove_child(c) + + + func create_reverber(name_p, raycast_index: int) -> Reverber: + var reverber := Reverber.new() + + # @export vars + reverber.loop = loop + reverber.shut_up = shut_up + reverber.debug = debug + reverber.audiophysics_ticks = audiophysics_ticks + reverber.speed_of_sound = speed_of_sound + reverber.max_raycast_distance = max_raycast_distance + reverber.roomsize_multiplicator = roomsize_multiplicator + reverber.reverb_enabled = reverb_enabled + reverber.reverb_volume_db = reverb_volume_db + reverber.bass_proximity = bass_proximity + reverber.reverb_fadeintime = reverb_fadeintime + reverber.reverb_fadeouttime = reverb_fadeouttime + reverber.occlusion_lp_cutoff = occlusion_lp_cutoff + reverber.occlusion_fadetime = occlusion_fadetime + + # module vars + reverber.name = name_p + reverber.stream = stream + reverber.volume_db = volume_db + reverber.max_polyphony = max_polyphony + reverber.soundsource = soundsource + + # reverber vars + reverber.raycast_index = raycast_index + + return reverber + + + func do_set_stream(s: AudioStream): + stream = s + + soundplayer_active.stream = s + soundplayer_standby.stream = s + + if reverb_enabled: + for r in reverbers: + if r != null: + r.soundplayer_active.stream = s + r.soundplayer_standby.stream = s + + + func do_play(): + if shut_up: + return + + # when playing finishes, signals from all soundplayers are being emitted at the same time. + # we just want to trigger ONE do_play() when looping is enabled. + if _is_playing_starting: + return + + _is_playing_starting = true + call_deferred("_clear_play_lock") + + if reverb_enabled: + for r in reverbers: + r.do_play() + + # start play on both + soundplayer_active.do_play() + soundplayer_standby.do_play() + + + func _clear_play_lock(): + _is_playing_starting = false + + + func do_stop(): + if reverb_enabled: + for r in reverbers: + r.do_stop() + + soundplayer_active.do_stop() + soundplayer_standby.do_stop() + + + func update_run(): + distance_to_player = global_position.distance_to(player_camera.global_position) + + # only update delay when moved >5m since last update + if abs(distance_to_player - distance_to_player_since_last_delay_update) > 5: + delay_ms = calculate_delay(distance_to_player) + distance_to_player_since_last_delay_update = distance_to_player + + # calculate my occlusion + soundplayer_active.update_effect_params() + + if reverb_enabled: + + # update distances for all reverbers + calculate_all_distances() + + # calculate room_size and wetness for reverbers + calculate_reverb() + + + func calculate_all_distances(): + var raycast_index = 0 + for reverber in reverbers: + var rc := raycasts[raycast_index] + var target_position: Vector3 + var colliding = false + var dray: Debugray = rc.get_child(0) + var dray_normal: Debugray = rc.get_child(1) + + # if raycast is colliding and the angle between raycast and normal is "over 2.5 radians" (3.14 == exact 180° reflection; 2.5 == somewhat 30° tolerance) + rc.force_raycast_update() + if rc.is_colliding() and (rc.get_collision_normal().angle_to(rc.target_position) > 1.5): + # position reverber 10cm away from the collision/wall, otherwise occlusion detection doesn't work + target_position = rc.get_collision_point() + rc.get_collision_normal() * 0.1 + colliding = true + if debug: dray.draw(position, to_local(target_position), "#f00") + if debug: dray_normal.draw(to_local(rc.get_collision_point() + rc.get_collision_normal() * 0.1), to_local(rc.get_collision_point() + rc.get_collision_normal()), "#0f0") + + else: + target_position = rc.target_position * 100 # move the inactive point far far away + if debug: dray.clear() + if debug: dray_normal.clear() + + reverber.update_position(target_position, colliding) + raycast_index += 1 + + # measure room using measurement rays + var ri = 0 + for mr in measurement_rays: + mr.force_raycast_update() + if mr.is_colliding(): + distances[ri] = global_position.distance_to(mr.get_collision_point()) + #if debug: + #@warning_ignore("unsafe_method_access") + #mr.get_child(0).draw(position, to_local(mr.target_position) + global_position, "#00f3") + else: + distances[ri] = -1 + #if debug: + #@warning_ignore("unsafe_method_access") + #mr.get_child(0).draw(position, to_local(mr.target_position) + global_position, "#ff01") + ri += 1 + + + func calculate_reverb(): + # Find the reverb params + var _room_size = 0.0 + var _wetness = 1.0 + + var total_rays = distances.size() + for distance in distances: + if distance >= 0: + # find the average room size based on the raycast distances that are valid + _room_size += (distance / (max_raycast_distance / roomsize_multiplicator)) / float(total_rays) + _room_size = snappedf(_room_size, 0.001) + _room_size = min(_room_size, 1.0) + _room_size = max(_room_size, .4) + else: + # if a raycast did not hit anything we will reduce the reverb effect, almost no raycasts should hit when outdoors nowhere near buildings + _wetness -= 1.0 / float(distances.size()) + _wetness = snappedf(_wetness, 0.001) + _wetness = max(_wetness, 0.0) + + room_size = _room_size + wetness = _wetness + + if debug: + debugsphere.line2 = "Room size: %.3f" % room_size + debugsphere.line3 = "Wetness: %.3f" % wetness + + +# Reverber: +# responsible for playing and positioning Soundplayers +class Reverber extends SpatialAudio3D: + + var raycast_index: int + var distance_to_soundsource: float + var distance_to_player: float + var soundplayer_active: Soundplayer + var soundplayer_standby: Soundplayer + + func _ready(): + name = name + "#" + str(raycast_index) + + # create reverb-soundplayers for AB-reverb + soundplayer_active = create_soundplayer(name + "-A") + soundplayer_standby = create_soundplayer(name + "-B") + get_tree().get_root().add_child(soundplayer_active) + get_tree().get_root().add_child(soundplayer_standby) + + + func _exit_tree(): + soundplayer_active.queue_free() + soundplayer_standby.queue_free() + + + # don't inherit this from SpatialAudio3D + func _physics_process(_delta): + pass + + + func do_play(): + soundplayer_active.do_play() + soundplayer_standby.do_play() + + + func do_stop(): + soundplayer_active.do_stop() + soundplayer_standby.do_stop() + + + func update_position(target_position: Vector3, colliding: bool): + var _soundplayer_active := soundplayer_active + var _soundplayer_standby := soundplayer_standby + + var fadeintime = 1 * soundsource.wetness if reverb_fadeintime < 0 else reverb_fadeintime + var fadeouttime = 3 * soundsource.wetness if reverb_fadeouttime < 0 else reverb_fadeouttime + + # make sure inactive soundplayers stay silent + soundplayer_standby.set_inactive() + + if global_position.distance_to(target_position) > 10: + global_position = target_position + + soundplayer_active.set_inactive(fadeouttime) + soundplayer_standby.target_position = target_position + if colliding: + soundplayer_standby.set_active(fadeintime) + soundplayer_active = _soundplayer_standby + soundplayer_standby = _soundplayer_active + + elif global_position.distance_to(target_position) > 0.3: + global_position = target_position + soundplayer_active.update_effect_params() + soundplayer_active.target_position = target_position + + # update effects on colliding (active) soundplayers + if colliding: + soundplayer_active.update_effect_params() + + +# Soundplayer is the actual player that plays a sound. +# This is because the Soundsource as well as the reverbers need two players and fade between them, +# e.g. for letting the reverb hall playing out and not stopping abruptly, or for crossfading between different delays. +# responsible for setup and teardown audio bus, volume, effect parameters and occlusion detection. +class Soundplayer extends SpatialAudio3D: + + var ds = {0: "active", 1: "inactive", 2: "fading_to_active", 3: "fading_to_inactive"} + enum ss {active, inactive, fading_to_active, fading_to_inactive} + var with_reverb_fx: bool + var state: ss: + set(v): + if state != v: + state = v + #if debug: debugsphere.line4 = ds[v] + #if debug: print("%s: %s --> %s" % [name, ds[state], ds[v]]) + var distance_to_soundsource: float + var distance_to_player: float + var target_position: Vector3: + set(v): + if target_position != v: + if state != ss.fading_to_inactive: + target_position = v + global_position = v + var delay_ms: int: + set(v): + if abs(delay_ms - v) > 10 and (Time.get_ticks_msec() - delay_updated_at) > 1000: + delay_ms = v + delay_updated_at = Time.get_ticks_msec() + if debug: debugsphere.line2 = "%s ms" % delay_ms + if state != ss.fading_to_inactive: + set_audioeffect(audiobus_name, fx.delay, {"delay": delay_ms}) + var delay_updated_at: int + var room_size: float: + set(v): + if room_size != v: + room_size = v + if state != ss.fading_to_inactive: + set_audioeffect(audiobus_name, fx.reverb, {"room_size": room_size, "wetness": wetness}) + var wetness: float: + set(v): + if wetness != v: + wetness = v + # audioeffect is already set together with room_size + var proximity_volume: float: + set(v): + if abs(proximity_volume - v) > 0.1: + proximity_volume = v + if debug: debugsphere.line3 = "%d dB" % v + if state == ss.active: + set_audiobus_volume(audiobus_name, proximity_volume) + var proximity_bass: float: + set(v): + if proximity_bass != v: + proximity_bass = v + if state != ss.fading_to_inactive: + set_audioeffect(audiobus_name, fx.reverb_hipass, {"hipass": proximity_bass}) + var lp_cutoff: int: + set(v): + if abs(lp_cutoff - v) > 20: + lp_cutoff = v + if debug: debugsphere.line4 = "occluded" if v != 20500 else "" + set_audioeffect(audiobus_name, fx.lowpass, {"lowpass": lp_cutoff, "fadetime": occlusion_fadetime}) + var occlusion_raycast: RayCast3D + var audiobus_name: String + var _fade_generation: int = 0 + var _is_valid: bool = true + + + func _ready(): + + if debug: + #print("spawning soundplayer: ", name) + debugsphere = Debugsphere.new() + debugsphere.max_raycast_distance = max_raycast_distance + debugsphere.name = "Debugsphere " + name + debugsphere.line1 = "♬" + add_child(debugsphere) + debugsphere.visible = false + + # ensure unique name for the mixer + audiobus_name = "%s-%s" % [name, get_instance_id()] + + # create bus and add effects to it + create_audiobus(audiobus_name) + add_audioeffect(audiobus_name, fx.delay) + add_audioeffect(audiobus_name, fx.reverb) + if with_reverb_fx == false: + toggle_audioeffect(audiobus_name, fx.reverb, false) + add_audioeffect(audiobus_name, fx.lowpass) + + # set initial state to inactive and mute + state = ss.inactive + set_audiobus_volume(audiobus_name, -80) + + # set volume according to AudioStreamPlayer3D param + proximity_volume = volume_db + + # set my bus to this newly created bus. + bus = audiobus_name + + # create raycast for occlusion test + occlusion_raycast = create_raycast("occray for " + name, position) + add_child(occlusion_raycast) + + # connect signal (used to restart playing if loop is enabled) + finished.connect(_on_finished) + + + func _on_finished(): + if loop: + soundsource.do_play() + + + func _physics_process(_delta): + if debug: + dump_debug() + debugsphere.update_label() + + + func _exit_tree(): + _is_valid = false + + if fade_tween: + fade_tween.kill() + if lowpass_tween: + lowpass_tween.kill() + + remove_audiobus(audiobus_name) + + for c in get_children(): + remove_child(c) + + + func do_play(): + #if debug: printerr(str(Time.get_ticks_msec()) + ": start playing on " + name + ", stream: " + str(stream)) + play() + + + func do_stop(): + #if debug: printerr(str(Time.get_ticks_msec()) + ": stop playing on " + name + ", stream: " + str(stream)) + stop() + + + func set_active(fadetime: float = 0, easing: Tween.EaseType = Tween.EASE_OUT, transition: Tween.TransitionType = Tween.TRANS_QUART): + #if debug: print("SET ACTIVE: %s (state: %s, fadetime: %s)" % [name, ds[state], fadetime]) + if state == ss.inactive: + if debug: debugsphere.visible = true + update_effect_params() + + if fadetime > 0: + # stamp this coroutine's generation before yielding. + # If set_inactive (or another set_active) is called while we await, + # it will increment _fade_generation, and we will bail on resume + # instead of overwriting the new state with ss.active. + _fade_generation += 1 + var my_generation := _fade_generation + state = ss.fading_to_active + + if fade_tween: + fade_tween.kill() + fade_tween = create_tween() + fade_tween.stop() + fade_tween.set_ease(easing) + fade_tween.set_trans(transition) + + set_audiobus_volume(audiobus_name, proximity_volume, fadetime, fade_tween) + await fade_tween.finished + + # bail if we were superseded or the node is being freed. + if _fade_generation != my_generation or not _is_valid: + return + + else: + set_audiobus_volume(audiobus_name, proximity_volume) + + state = ss.active + + + func set_inactive(fadetime: float = 0, easing: Tween.EaseType = Tween.EASE_IN, transition: Tween.TransitionType = Tween.TRANS_QUINT): + #if debug: print("SET INACTIVE: %s (state: %s, fadetime: %s)" % [name, ds[state], fadetime]) + if state == ss.active or state == ss.fading_to_active: + + if fadetime > 0: + # increment generation to invalidate any concurrent set_active coroutine. + _fade_generation += 1 + var my_generation := _fade_generation + state = ss.fading_to_inactive + + if fade_tween: + fade_tween.kill() + fade_tween = create_tween() + fade_tween.stop() + fade_tween.set_ease(easing) + fade_tween.set_trans(transition) + + set_audiobus_volume(audiobus_name, -80, fadetime, fade_tween) + await fade_tween.finished + + # bail if we were superseded or the node is being freed. + if _fade_generation != my_generation or not _is_valid: + return + + else: + set_audiobus_volume(audiobus_name, -80) + + state = ss.inactive + if debug: debugsphere.visible = false + + + func update_effect_params(): + # update distance vars + distance_to_soundsource = global_position.distance_to(soundsource.global_position) + distance_to_player = global_position.distance_to(player_camera.global_position) + + # occlusion + lp_cutoff = calculate_occlusion_lowpass() + + # only calculate reverb effects on reverbers, not soundsource soundplayers. + # soundsource will set delay on soundsource-soundplayers. + if with_reverb_fx: + # calculate and set delay + delay_ms = calculate_delay(distance_to_soundsource) + calculate_delay(distance_to_player) + + # roomsize & wetness + room_size = soundsource.room_size + wetness = soundsource.wetness + + # set volume. further away = louder. + # (without tuning, in small rooms, reverb is overwhelming, but you can't hear echo far away) + proximity_volume = calculate_proximity_volume() + + # set proximity bass + # more bass if closer to the wall, effect begins at 50m to a wall + # hipass = 0.2 + proximity_bass = calculate_proximity_bass() + + + # turn down reverb volume by [reduction] dB when closer to the wall + func calculate_proximity_volume(): + var proximity_reduction = prox_reduction + var max_volume = reverb_volume_db + volume_db + + # calculate reduction based on the ratio player-to-max_raycast_distance and player-to-soundsource. + # the closer you are to a wall, the less reverb should be heard. the further away you are, the more it should be audible. + # the further away the soundsource is, the less reverb should be heard. + var ratio_player_rc = min(1, distance_to_player / max_raycast_distance) + var ratio_player_ss = min(1, distance_to_player / distance_to_soundsource) + var prox_volume = (proximity_reduction * ratio_player_rc + proximity_reduction * ratio_player_ss) / 2 - proximity_reduction + + # add soundsource max_volume + prox_volume = prox_volume + max_volume + + # limit maximum volume to max_volume + prox_volume = min(prox_volume, max_volume) + + return prox_volume + + + func calculate_proximity_bass(): + return snappedf(min(0.2 * distance_to_player / max(bass_proximity, 0.001), 0.2), 0.001) + + + func calculate_occlusion_lowpass(): + var limited_distance_to_player = clamp(distance_to_player, 0, max_raycast_distance) + occlusion_raycast.target_position = global_position.direction_to(player_camera.global_position) * max_raycast_distance * 10 + + var _cutoff = 20500 + occlusion_raycast.force_raycast_update() + if occlusion_raycast.is_colliding(): + var collision_point = occlusion_raycast.get_collision_point() + var ray_distance = collision_point.distance_to(global_position) + var wall_to_player_ratio = ray_distance / max(distance_to_player, 0.001) + if ray_distance < distance_to_player: + _cutoff = snappedf(occlusion_lp_cutoff * wall_to_player_ratio, 0.001) + + return _cutoff + + +class Debugsphere extends Node3D: + + var color: Color = "00f" + var size: float = 0.5 + var max_raycast_distance: int + var label = Label3D + var line1: String + var line2: String + var line3: String + var line4: String + var label_offset: Vector3 + + + func _ready(): + # size 0 means label-only: a degenerate SphereMesh floods "Vector3 cannot be normalized" warnings per vertex + if size > 0: + var meshinstance = MeshInstance3D.new() + var spheremesh = SphereMesh.new() + var mat = StandardMaterial3D.new() + mat.albedo_color = color + #mat.shading_mode = BaseMaterial3D.SHADING_MODE_UNSHADED + #mat.fixed_size = true + spheremesh.material = mat + #meshinstance.cast_shadow = false + spheremesh.radius = size / 2 + spheremesh.height = size + meshinstance.mesh = spheremesh + meshinstance.visibility_range_end = max_raycast_distance * 1.3 + meshinstance.visibility_range_end_margin = max_raycast_distance / 10.0 + meshinstance.visibility_range_fade_mode = GeometryInstance3D.VISIBILITY_RANGE_FADE_SELF + add_child(meshinstance) + + # create second sphere without depth-test, displayed when occluded + var occluded_meshinstance = MeshInstance3D.new() + var occluded_spheremesh = SphereMesh.new() + var occluded_mat = StandardMaterial3D.new() + occluded_mat.albedo_color = Color(color, 0.2) + #occluded_mat.fixed_size = true + occluded_mat.no_depth_test = true + occluded_mat.transparency = BaseMaterial3D.TRANSPARENCY_ALPHA + occluded_spheremesh.material = occluded_mat + occluded_meshinstance.cast_shadow = false + occluded_spheremesh.radius = size / 2 + occluded_spheremesh.height = size + occluded_meshinstance.mesh = occluded_spheremesh + occluded_meshinstance.visibility_range_end = max_raycast_distance * 1.3 + occluded_meshinstance.visibility_range_end_margin = max_raycast_distance / 10.0 + occluded_meshinstance.visibility_range_fade_mode = GeometryInstance3D.VISIBILITY_RANGE_FADE_SELF + add_child(occluded_meshinstance) + + # create label3d + label = Label3D.new() + label.position = label_offset + label.billboard = BaseMaterial3D.BILLBOARD_ENABLED + label.fixed_size = true + label.no_depth_test = true + label.pixel_size = 0.0005 + label.font_size = 50 + label.text = "" + label.visibility_range_end = max_raycast_distance * 1.3 + label.visibility_range_end_margin = max_raycast_distance / 10.0 + label.visibility_range_fade_mode = GeometryInstance3D.VISIBILITY_RANGE_FADE_SELF + add_child(label) + + + func update_label(): + label.text = line1 + "\n" + line2 + "\n" + line3 + "\n" + line4 + + +class Debugray extends MeshInstance3D: + + var immediate_mesh: ImmediateMesh + var material: ORMMaterial3D + + + func _ready(): + immediate_mesh = ImmediateMesh.new() + material = ORMMaterial3D.new() + material.shading_mode = BaseMaterial3D.SHADING_MODE_UNSHADED + + mesh = immediate_mesh + cast_shadow = GeometryInstance3D.SHADOW_CASTING_SETTING_OFF + + + func draw(pos1: Vector3, pos2: Vector3, color: Color): + clear() + immediate_mesh.surface_begin(Mesh.PRIMITIVE_LINES, material) + immediate_mesh.surface_add_vertex(pos1) + immediate_mesh.surface_add_vertex(pos2) + immediate_mesh.surface_end() + material.albedo_color = color + material.transparency = BaseMaterial3D.TRANSPARENCY_ALPHA + + + func clear(): + immediate_mesh.clear_surfaces() + + +func dump_debug(): + var _s = "" + for key in _debug: + _s += "%s: %s\n" % [key, JSON.stringify(_debug[key], " ")] + + if _s != "": + var ad = get_tree().get_root().find_child("AudioDebug") + if ad: + ad.text = _s + + +func print_r(obj): + if obj is Object: + obj = inst_to_dict(obj) + print(JSON.stringify(obj, " ")) diff --git a/addons/spatial_audio_3d/spatial_audio_3d.gd.uid b/addons/spatial_audio_3d/spatial_audio_3d.gd.uid new file mode 100644 index 0000000..fcc9f62 --- /dev/null +++ b/addons/spatial_audio_3d/spatial_audio_3d.gd.uid @@ -0,0 +1 @@ +uid://y8x4svl5kej2 diff --git a/assets/sounds/ambiance/pc-fan-paulstretched.mp3 b/assets/sounds/ambiance/pc-fan-paulstretched.mp3 new file mode 100644 index 0000000..a2a2d27 Binary files /dev/null and b/assets/sounds/ambiance/pc-fan-paulstretched.mp3 differ diff --git a/assets/sounds/ambiance/pc-fan-paulstretched.mp3.import b/assets/sounds/ambiance/pc-fan-paulstretched.mp3.import new file mode 100644 index 0000000..5e58ea5 --- /dev/null +++ b/assets/sounds/ambiance/pc-fan-paulstretched.mp3.import @@ -0,0 +1,19 @@ +[remap] + +importer="mp3" +type="AudioStreamMP3" +uid="uid://db0yck6trekrs" +path="res://.godot/imported/pc-fan-paulstretched.mp3-c1c6d5d49d0e027f47a405edb83ea9f5.mp3str" + +[deps] + +source_file="res://assets/sounds/ambiance/pc-fan-paulstretched.mp3" +dest_files=["res://.godot/imported/pc-fan-paulstretched.mp3-c1c6d5d49d0e027f47a405edb83ea9f5.mp3str"] + +[params] + +loop=true +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/assets/sounds/flashlight/flashlight-click-001.wav b/assets/sounds/flashlight/flashlight-click-001.wav new file mode 100644 index 0000000..d09a80d Binary files /dev/null and b/assets/sounds/flashlight/flashlight-click-001.wav differ diff --git a/assets/sounds/flashlight/flashlight-click-001.wav.import b/assets/sounds/flashlight/flashlight-click-001.wav.import new file mode 100644 index 0000000..3b28185 --- /dev/null +++ b/assets/sounds/flashlight/flashlight-click-001.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://bii7gnp5a2ytj" +path="res://.godot/imported/flashlight-click-001.wav-d4ced1897c1d7835246565d122a495d4.sample" + +[deps] + +source_file="res://assets/sounds/flashlight/flashlight-click-001.wav" +dest_files=["res://.godot/imported/flashlight-click-001.wav-d4ced1897c1d7835246565d122a495d4.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=2 diff --git a/assets/sounds/flashlight/flashlight-click-002.wav b/assets/sounds/flashlight/flashlight-click-002.wav new file mode 100644 index 0000000..0cb7c67 Binary files /dev/null and b/assets/sounds/flashlight/flashlight-click-002.wav differ diff --git a/assets/sounds/flashlight/flashlight-click-002.wav.import b/assets/sounds/flashlight/flashlight-click-002.wav.import new file mode 100644 index 0000000..edc0bb6 --- /dev/null +++ b/assets/sounds/flashlight/flashlight-click-002.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://dpydqsettcowx" +path="res://.godot/imported/flashlight-click-002.wav-9b78e6b3ed8ce309279dac3aafc49b3e.sample" + +[deps] + +source_file="res://assets/sounds/flashlight/flashlight-click-002.wav" +dest_files=["res://.godot/imported/flashlight-click-002.wav-9b78e6b3ed8ce309279dac3aafc49b3e.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=2 diff --git a/assets/sounds/flashlight/flashlight-click-003.wav b/assets/sounds/flashlight/flashlight-click-003.wav new file mode 100644 index 0000000..32fb45b Binary files /dev/null and b/assets/sounds/flashlight/flashlight-click-003.wav differ diff --git a/assets/sounds/flashlight/flashlight-click-003.wav.import b/assets/sounds/flashlight/flashlight-click-003.wav.import new file mode 100644 index 0000000..d1ffe6d --- /dev/null +++ b/assets/sounds/flashlight/flashlight-click-003.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://dumse20g0tt21" +path="res://.godot/imported/flashlight-click-003.wav-94d433aea381babe6b92f5c5fff47917.sample" + +[deps] + +source_file="res://assets/sounds/flashlight/flashlight-click-003.wav" +dest_files=["res://.godot/imported/flashlight-click-003.wav-94d433aea381babe6b92f5c5fff47917.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=2 diff --git a/assets/sounds/flashlight/flashlight-click-005.wav b/assets/sounds/flashlight/flashlight-click-005.wav new file mode 100644 index 0000000..beadb8a Binary files /dev/null and b/assets/sounds/flashlight/flashlight-click-005.wav differ diff --git a/assets/sounds/flashlight/flashlight-click-005.wav.import b/assets/sounds/flashlight/flashlight-click-005.wav.import new file mode 100644 index 0000000..0a35e6e --- /dev/null +++ b/assets/sounds/flashlight/flashlight-click-005.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://bxebqhgkkeqhp" +path="res://.godot/imported/flashlight-click-005.wav-63b449d4d4f3db8d194d43b8abb97a72.sample" + +[deps] + +source_file="res://assets/sounds/flashlight/flashlight-click-005.wav" +dest_files=["res://.godot/imported/flashlight-click-005.wav-63b449d4d4f3db8d194d43b8abb97a72.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=2 diff --git a/assets/sounds/flashlight/flashlight-click-006.wav b/assets/sounds/flashlight/flashlight-click-006.wav new file mode 100644 index 0000000..036b709 Binary files /dev/null and b/assets/sounds/flashlight/flashlight-click-006.wav differ diff --git a/assets/sounds/flashlight/flashlight-click-006.wav.import b/assets/sounds/flashlight/flashlight-click-006.wav.import new file mode 100644 index 0000000..44dd655 --- /dev/null +++ b/assets/sounds/flashlight/flashlight-click-006.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://ctmut3x6w0sj1" +path="res://.godot/imported/flashlight-click-006.wav-5186c14ac4033c10ad234f57c42402ff.sample" + +[deps] + +source_file="res://assets/sounds/flashlight/flashlight-click-006.wav" +dest_files=["res://.godot/imported/flashlight-click-006.wav-5186c14ac4033c10ad234f57c42402ff.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=2 diff --git a/assets/sounds/flashlight/flashlight-click-009.wav b/assets/sounds/flashlight/flashlight-click-009.wav new file mode 100644 index 0000000..8a0f0af Binary files /dev/null and b/assets/sounds/flashlight/flashlight-click-009.wav differ diff --git a/assets/sounds/flashlight/flashlight-click-009.wav.import b/assets/sounds/flashlight/flashlight-click-009.wav.import new file mode 100644 index 0000000..ede4ab7 --- /dev/null +++ b/assets/sounds/flashlight/flashlight-click-009.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://dsgr417h5gcn0" +path="res://.godot/imported/flashlight-click-009.wav-be4eafcdebd92cc93bd82d91c5dac42e.sample" + +[deps] + +source_file="res://assets/sounds/flashlight/flashlight-click-009.wav" +dest_files=["res://.godot/imported/flashlight-click-009.wav-be4eafcdebd92cc93bd82d91c5dac42e.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=2 diff --git a/assets/sounds/flashlight/flashlight-click-011.wav b/assets/sounds/flashlight/flashlight-click-011.wav new file mode 100644 index 0000000..d70a87e Binary files /dev/null and b/assets/sounds/flashlight/flashlight-click-011.wav differ diff --git a/assets/sounds/flashlight/flashlight-click-011.wav.import b/assets/sounds/flashlight/flashlight-click-011.wav.import new file mode 100644 index 0000000..d3b30c9 --- /dev/null +++ b/assets/sounds/flashlight/flashlight-click-011.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://b8ppwr5vwhej0" +path="res://.godot/imported/flashlight-click-011.wav-bc0662a5ada249f4d744f90cbc6fba7e.sample" + +[deps] + +source_file="res://assets/sounds/flashlight/flashlight-click-011.wav" +dest_files=["res://.godot/imported/flashlight-click-011.wav-bc0662a5ada249f4d744f90cbc6fba7e.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=2 diff --git a/assets/sounds/flashlight/flashlight-click-012.wav b/assets/sounds/flashlight/flashlight-click-012.wav new file mode 100644 index 0000000..c1be76d Binary files /dev/null and b/assets/sounds/flashlight/flashlight-click-012.wav differ diff --git a/assets/sounds/flashlight/flashlight-click-012.wav.import b/assets/sounds/flashlight/flashlight-click-012.wav.import new file mode 100644 index 0000000..024b2ee --- /dev/null +++ b/assets/sounds/flashlight/flashlight-click-012.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://dlyhi0c2bw5b2" +path="res://.godot/imported/flashlight-click-012.wav-90cae99579adaebebe9c322272584c1e.sample" + +[deps] + +source_file="res://assets/sounds/flashlight/flashlight-click-012.wav" +dest_files=["res://.godot/imported/flashlight-click-012.wav-90cae99579adaebebe9c322272584c1e.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=2 diff --git a/assets/sounds/flashlight/slow-flashlight-click-004.wav b/assets/sounds/flashlight/slow-flashlight-click-004.wav new file mode 100644 index 0000000..28ba154 Binary files /dev/null and b/assets/sounds/flashlight/slow-flashlight-click-004.wav differ diff --git a/assets/sounds/flashlight/slow-flashlight-click-004.wav.import b/assets/sounds/flashlight/slow-flashlight-click-004.wav.import new file mode 100644 index 0000000..ef7c31b --- /dev/null +++ b/assets/sounds/flashlight/slow-flashlight-click-004.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://cavikqmjpj7q7" +path="res://.godot/imported/slow-flashlight-click-004.wav-f5b2cc6fde25baf986c638e50999f286.sample" + +[deps] + +source_file="res://assets/sounds/flashlight/slow-flashlight-click-004.wav" +dest_files=["res://.godot/imported/slow-flashlight-click-004.wav-f5b2cc6fde25baf986c638e50999f286.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=2 diff --git a/assets/sounds/flashlight/slow-flashlight-click-007.wav b/assets/sounds/flashlight/slow-flashlight-click-007.wav new file mode 100644 index 0000000..d6553de Binary files /dev/null and b/assets/sounds/flashlight/slow-flashlight-click-007.wav differ diff --git a/assets/sounds/flashlight/slow-flashlight-click-007.wav.import b/assets/sounds/flashlight/slow-flashlight-click-007.wav.import new file mode 100644 index 0000000..01fce2c --- /dev/null +++ b/assets/sounds/flashlight/slow-flashlight-click-007.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://dkohmdwjt02e1" +path="res://.godot/imported/slow-flashlight-click-007.wav-02b94a537c0abddc73c0484b27e2bd1c.sample" + +[deps] + +source_file="res://assets/sounds/flashlight/slow-flashlight-click-007.wav" +dest_files=["res://.godot/imported/slow-flashlight-click-007.wav-02b94a537c0abddc73c0484b27e2bd1c.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=2 diff --git a/assets/sounds/flashlight/slow-flashlight-click-008.wav b/assets/sounds/flashlight/slow-flashlight-click-008.wav new file mode 100644 index 0000000..44a3574 Binary files /dev/null and b/assets/sounds/flashlight/slow-flashlight-click-008.wav differ diff --git a/assets/sounds/flashlight/slow-flashlight-click-008.wav.import b/assets/sounds/flashlight/slow-flashlight-click-008.wav.import new file mode 100644 index 0000000..ce61000 --- /dev/null +++ b/assets/sounds/flashlight/slow-flashlight-click-008.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://cce08jas6m53y" +path="res://.godot/imported/slow-flashlight-click-008.wav-05434edc3f95e0ae2600f2292b76eae0.sample" + +[deps] + +source_file="res://assets/sounds/flashlight/slow-flashlight-click-008.wav" +dest_files=["res://.godot/imported/slow-flashlight-click-008.wav-05434edc3f95e0ae2600f2292b76eae0.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=2 diff --git a/assets/sounds/flashlight/slow-flashlight-click-010.wav b/assets/sounds/flashlight/slow-flashlight-click-010.wav new file mode 100644 index 0000000..55b9cef Binary files /dev/null and b/assets/sounds/flashlight/slow-flashlight-click-010.wav differ diff --git a/assets/sounds/flashlight/slow-flashlight-click-010.wav.import b/assets/sounds/flashlight/slow-flashlight-click-010.wav.import new file mode 100644 index 0000000..213a0a8 --- /dev/null +++ b/assets/sounds/flashlight/slow-flashlight-click-010.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://cdlud3hmjtl2u" +path="res://.godot/imported/slow-flashlight-click-010.wav-8c079b850bbf8f78650607416fa4177e.sample" + +[deps] + +source_file="res://assets/sounds/flashlight/slow-flashlight-click-010.wav" +dest_files=["res://.godot/imported/slow-flashlight-click-010.wav-8c079b850bbf8f78650607416fa4177e.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=2 diff --git a/assets/sounds/flashlight/slow-flashlight-click-013.wav b/assets/sounds/flashlight/slow-flashlight-click-013.wav new file mode 100644 index 0000000..c23d012 Binary files /dev/null and b/assets/sounds/flashlight/slow-flashlight-click-013.wav differ diff --git a/assets/sounds/flashlight/slow-flashlight-click-013.wav.import b/assets/sounds/flashlight/slow-flashlight-click-013.wav.import new file mode 100644 index 0000000..b7f1e10 --- /dev/null +++ b/assets/sounds/flashlight/slow-flashlight-click-013.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://bwsw5nf0jv0j4" +path="res://.godot/imported/slow-flashlight-click-013.wav-044f9d7ecdd6083c3daaa9d45925f79d.sample" + +[deps] + +source_file="res://assets/sounds/flashlight/slow-flashlight-click-013.wav" +dest_files=["res://.godot/imported/slow-flashlight-click-013.wav-044f9d7ecdd6083c3daaa9d45925f79d.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=2 diff --git a/assets/sounds/walking/heavy/heavy walk (running)-001.wav b/assets/sounds/walking/heavy/heavy walk (running)-001.wav new file mode 100644 index 0000000..a53fde1 Binary files /dev/null and b/assets/sounds/walking/heavy/heavy walk (running)-001.wav differ diff --git a/assets/sounds/walking/heavy/heavy walk (running)-001.wav.import b/assets/sounds/walking/heavy/heavy walk (running)-001.wav.import new file mode 100644 index 0000000..ac0fac5 --- /dev/null +++ b/assets/sounds/walking/heavy/heavy walk (running)-001.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://bogmfvsfsswut" +path="res://.godot/imported/heavy walk (running)-001.wav-d986f4f1e0ff46327ed3b4ff1f97ff72.sample" + +[deps] + +source_file="res://assets/sounds/walking/heavy/heavy walk (running)-001.wav" +dest_files=["res://.godot/imported/heavy walk (running)-001.wav-d986f4f1e0ff46327ed3b4ff1f97ff72.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=2 diff --git a/assets/sounds/walking/heavy/heavy walk (running)-002.wav b/assets/sounds/walking/heavy/heavy walk (running)-002.wav new file mode 100644 index 0000000..81da1ec Binary files /dev/null and b/assets/sounds/walking/heavy/heavy walk (running)-002.wav differ diff --git a/assets/sounds/walking/heavy/heavy walk (running)-002.wav.import b/assets/sounds/walking/heavy/heavy walk (running)-002.wav.import new file mode 100644 index 0000000..556c673 --- /dev/null +++ b/assets/sounds/walking/heavy/heavy walk (running)-002.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://bii8vhogk3ngt" +path="res://.godot/imported/heavy walk (running)-002.wav-576937115f9ba37ea22b4f81b27d813f.sample" + +[deps] + +source_file="res://assets/sounds/walking/heavy/heavy walk (running)-002.wav" +dest_files=["res://.godot/imported/heavy walk (running)-002.wav-576937115f9ba37ea22b4f81b27d813f.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=2 diff --git a/assets/sounds/walking/heavy/heavy walk (running)-003.wav b/assets/sounds/walking/heavy/heavy walk (running)-003.wav new file mode 100644 index 0000000..7c0a854 Binary files /dev/null and b/assets/sounds/walking/heavy/heavy walk (running)-003.wav differ diff --git a/assets/sounds/walking/heavy/heavy walk (running)-003.wav.import b/assets/sounds/walking/heavy/heavy walk (running)-003.wav.import new file mode 100644 index 0000000..8d621c2 --- /dev/null +++ b/assets/sounds/walking/heavy/heavy walk (running)-003.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://gq6omth013bk" +path="res://.godot/imported/heavy walk (running)-003.wav-f1ce10a6a7458773e56b2f9a4759f057.sample" + +[deps] + +source_file="res://assets/sounds/walking/heavy/heavy walk (running)-003.wav" +dest_files=["res://.godot/imported/heavy walk (running)-003.wav-f1ce10a6a7458773e56b2f9a4759f057.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=2 diff --git a/assets/sounds/walking/heavy/heavy walk (running)-004.wav b/assets/sounds/walking/heavy/heavy walk (running)-004.wav new file mode 100644 index 0000000..f1f152f Binary files /dev/null and b/assets/sounds/walking/heavy/heavy walk (running)-004.wav differ diff --git a/assets/sounds/walking/heavy/heavy walk (running)-004.wav.import b/assets/sounds/walking/heavy/heavy walk (running)-004.wav.import new file mode 100644 index 0000000..d93dc8c --- /dev/null +++ b/assets/sounds/walking/heavy/heavy walk (running)-004.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://b6gta2gvonu0y" +path="res://.godot/imported/heavy walk (running)-004.wav-89e3a0a9e5da979b51b7344aecd7afe3.sample" + +[deps] + +source_file="res://assets/sounds/walking/heavy/heavy walk (running)-004.wav" +dest_files=["res://.godot/imported/heavy walk (running)-004.wav-89e3a0a9e5da979b51b7344aecd7afe3.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=2 diff --git a/assets/sounds/walking/heavy/heavy walk (running)-005.wav b/assets/sounds/walking/heavy/heavy walk (running)-005.wav new file mode 100644 index 0000000..c718765 Binary files /dev/null and b/assets/sounds/walking/heavy/heavy walk (running)-005.wav differ diff --git a/assets/sounds/walking/heavy/heavy walk (running)-005.wav.import b/assets/sounds/walking/heavy/heavy walk (running)-005.wav.import new file mode 100644 index 0000000..71bfb75 --- /dev/null +++ b/assets/sounds/walking/heavy/heavy walk (running)-005.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://bn6neny4irlb0" +path="res://.godot/imported/heavy walk (running)-005.wav-4228510b59497137b89399eefc984694.sample" + +[deps] + +source_file="res://assets/sounds/walking/heavy/heavy walk (running)-005.wav" +dest_files=["res://.godot/imported/heavy walk (running)-005.wav-4228510b59497137b89399eefc984694.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=2 diff --git a/assets/sounds/walking/heavy/heavy walk (running)-006.wav b/assets/sounds/walking/heavy/heavy walk (running)-006.wav new file mode 100644 index 0000000..7270e56 Binary files /dev/null and b/assets/sounds/walking/heavy/heavy walk (running)-006.wav differ diff --git a/assets/sounds/walking/heavy/heavy walk (running)-006.wav.import b/assets/sounds/walking/heavy/heavy walk (running)-006.wav.import new file mode 100644 index 0000000..1089ef2 --- /dev/null +++ b/assets/sounds/walking/heavy/heavy walk (running)-006.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://6fv6pcu7mu8k" +path="res://.godot/imported/heavy walk (running)-006.wav-04d58e2f8567cc0e876edd4a5b407996.sample" + +[deps] + +source_file="res://assets/sounds/walking/heavy/heavy walk (running)-006.wav" +dest_files=["res://.godot/imported/heavy walk (running)-006.wav-04d58e2f8567cc0e876edd4a5b407996.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=2 diff --git a/assets/sounds/walking/heavy/heavy walk (running)-007.wav b/assets/sounds/walking/heavy/heavy walk (running)-007.wav new file mode 100644 index 0000000..115cd1d Binary files /dev/null and b/assets/sounds/walking/heavy/heavy walk (running)-007.wav differ diff --git a/assets/sounds/walking/heavy/heavy walk (running)-007.wav.import b/assets/sounds/walking/heavy/heavy walk (running)-007.wav.import new file mode 100644 index 0000000..d10caa0 --- /dev/null +++ b/assets/sounds/walking/heavy/heavy walk (running)-007.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://chd0ckcavb4uy" +path="res://.godot/imported/heavy walk (running)-007.wav-07600925ca155e35b388afe078fb7a2b.sample" + +[deps] + +source_file="res://assets/sounds/walking/heavy/heavy walk (running)-007.wav" +dest_files=["res://.godot/imported/heavy walk (running)-007.wav-07600925ca155e35b388afe078fb7a2b.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=2 diff --git a/assets/sounds/walking/heavy/heavy walk (running)-008.wav b/assets/sounds/walking/heavy/heavy walk (running)-008.wav new file mode 100644 index 0000000..61f46d4 Binary files /dev/null and b/assets/sounds/walking/heavy/heavy walk (running)-008.wav differ diff --git a/assets/sounds/walking/heavy/heavy walk (running)-008.wav.import b/assets/sounds/walking/heavy/heavy walk (running)-008.wav.import new file mode 100644 index 0000000..41bae65 --- /dev/null +++ b/assets/sounds/walking/heavy/heavy walk (running)-008.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://c7f67h6nku648" +path="res://.godot/imported/heavy walk (running)-008.wav-6a671be630f7024878a3ead5792d5bc5.sample" + +[deps] + +source_file="res://assets/sounds/walking/heavy/heavy walk (running)-008.wav" +dest_files=["res://.godot/imported/heavy walk (running)-008.wav-6a671be630f7024878a3ead5792d5bc5.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=2 diff --git a/assets/sounds/walking/heavy/heavy walk (running)-009.wav b/assets/sounds/walking/heavy/heavy walk (running)-009.wav new file mode 100644 index 0000000..879d398 Binary files /dev/null and b/assets/sounds/walking/heavy/heavy walk (running)-009.wav differ diff --git a/assets/sounds/walking/heavy/heavy walk (running)-009.wav.import b/assets/sounds/walking/heavy/heavy walk (running)-009.wav.import new file mode 100644 index 0000000..d150646 --- /dev/null +++ b/assets/sounds/walking/heavy/heavy walk (running)-009.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://c8u0gtqif3l8r" +path="res://.godot/imported/heavy walk (running)-009.wav-9b70e7fe5429447b60d41cff114da2bc.sample" + +[deps] + +source_file="res://assets/sounds/walking/heavy/heavy walk (running)-009.wav" +dest_files=["res://.godot/imported/heavy walk (running)-009.wav-9b70e7fe5429447b60d41cff114da2bc.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=2 diff --git a/assets/sounds/walking/heavy/heavy walk (running)-010.wav b/assets/sounds/walking/heavy/heavy walk (running)-010.wav new file mode 100644 index 0000000..c6e99f8 Binary files /dev/null and b/assets/sounds/walking/heavy/heavy walk (running)-010.wav differ diff --git a/assets/sounds/walking/heavy/heavy walk (running)-010.wav.import b/assets/sounds/walking/heavy/heavy walk (running)-010.wav.import new file mode 100644 index 0000000..c856458 --- /dev/null +++ b/assets/sounds/walking/heavy/heavy walk (running)-010.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://ctcakfvx6yigv" +path="res://.godot/imported/heavy walk (running)-010.wav-b80f9e392426e14a4d0fd7f81ee7c3af.sample" + +[deps] + +source_file="res://assets/sounds/walking/heavy/heavy walk (running)-010.wav" +dest_files=["res://.godot/imported/heavy walk (running)-010.wav-b80f9e392426e14a4d0fd7f81ee7c3af.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=2 diff --git a/assets/sounds/walking/heavy/heavy walk (running)-011.wav b/assets/sounds/walking/heavy/heavy walk (running)-011.wav new file mode 100644 index 0000000..b2dbbcd Binary files /dev/null and b/assets/sounds/walking/heavy/heavy walk (running)-011.wav differ diff --git a/assets/sounds/walking/heavy/heavy walk (running)-011.wav.import b/assets/sounds/walking/heavy/heavy walk (running)-011.wav.import new file mode 100644 index 0000000..29fb009 --- /dev/null +++ b/assets/sounds/walking/heavy/heavy walk (running)-011.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://1gvocom5hcqb" +path="res://.godot/imported/heavy walk (running)-011.wav-c8b171714fa09cd93be81deb1fd3a263.sample" + +[deps] + +source_file="res://assets/sounds/walking/heavy/heavy walk (running)-011.wav" +dest_files=["res://.godot/imported/heavy walk (running)-011.wav-c8b171714fa09cd93be81deb1fd3a263.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=2 diff --git a/assets/sounds/walking/heavy/heavy walk (running)-012.wav b/assets/sounds/walking/heavy/heavy walk (running)-012.wav new file mode 100644 index 0000000..fc3fea6 Binary files /dev/null and b/assets/sounds/walking/heavy/heavy walk (running)-012.wav differ diff --git a/assets/sounds/walking/heavy/heavy walk (running)-012.wav.import b/assets/sounds/walking/heavy/heavy walk (running)-012.wav.import new file mode 100644 index 0000000..e84fbd4 --- /dev/null +++ b/assets/sounds/walking/heavy/heavy walk (running)-012.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://eem1vc06eh2m" +path="res://.godot/imported/heavy walk (running)-012.wav-eecd66602aeab73c327259772c9f4af8.sample" + +[deps] + +source_file="res://assets/sounds/walking/heavy/heavy walk (running)-012.wav" +dest_files=["res://.godot/imported/heavy walk (running)-012.wav-eecd66602aeab73c327259772c9f4af8.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=2 diff --git a/assets/sounds/walking/heavy/heavy walk (running)-013.wav b/assets/sounds/walking/heavy/heavy walk (running)-013.wav new file mode 100644 index 0000000..74869e8 Binary files /dev/null and b/assets/sounds/walking/heavy/heavy walk (running)-013.wav differ diff --git a/assets/sounds/walking/heavy/heavy walk (running)-013.wav.import b/assets/sounds/walking/heavy/heavy walk (running)-013.wav.import new file mode 100644 index 0000000..4dac52a --- /dev/null +++ b/assets/sounds/walking/heavy/heavy walk (running)-013.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://dus2sgrtq31fe" +path="res://.godot/imported/heavy walk (running)-013.wav-674e80318b9ec3c47dda8ce478bee718.sample" + +[deps] + +source_file="res://assets/sounds/walking/heavy/heavy walk (running)-013.wav" +dest_files=["res://.godot/imported/heavy walk (running)-013.wav-674e80318b9ec3c47dda8ce478bee718.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=2 diff --git a/assets/sounds/walking/heavy/heavy walk (running)-014.wav b/assets/sounds/walking/heavy/heavy walk (running)-014.wav new file mode 100644 index 0000000..36c2e2a Binary files /dev/null and b/assets/sounds/walking/heavy/heavy walk (running)-014.wav differ diff --git a/assets/sounds/walking/heavy/heavy walk (running)-014.wav.import b/assets/sounds/walking/heavy/heavy walk (running)-014.wav.import new file mode 100644 index 0000000..a68934d --- /dev/null +++ b/assets/sounds/walking/heavy/heavy walk (running)-014.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://dlw5s82kg8bax" +path="res://.godot/imported/heavy walk (running)-014.wav-b783a15dc0cade2ce18f0e8e0b59bee9.sample" + +[deps] + +source_file="res://assets/sounds/walking/heavy/heavy walk (running)-014.wav" +dest_files=["res://.godot/imported/heavy walk (running)-014.wav-b783a15dc0cade2ce18f0e8e0b59bee9.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=2 diff --git a/assets/sounds/walking/heavy/heavy walk (running)-015.wav b/assets/sounds/walking/heavy/heavy walk (running)-015.wav new file mode 100644 index 0000000..5039b2d Binary files /dev/null and b/assets/sounds/walking/heavy/heavy walk (running)-015.wav differ diff --git a/assets/sounds/walking/heavy/heavy walk (running)-015.wav.import b/assets/sounds/walking/heavy/heavy walk (running)-015.wav.import new file mode 100644 index 0000000..446eb20 --- /dev/null +++ b/assets/sounds/walking/heavy/heavy walk (running)-015.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://bfhcv3jnnpf7e" +path="res://.godot/imported/heavy walk (running)-015.wav-37c0809b1af6e30a3b6599ec7f0c45e4.sample" + +[deps] + +source_file="res://assets/sounds/walking/heavy/heavy walk (running)-015.wav" +dest_files=["res://.godot/imported/heavy walk (running)-015.wav-37c0809b1af6e30a3b6599ec7f0c45e4.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=2 diff --git a/assets/sounds/walking/heavy/heavy walk (running)-016.wav b/assets/sounds/walking/heavy/heavy walk (running)-016.wav new file mode 100644 index 0000000..e48f11e Binary files /dev/null and b/assets/sounds/walking/heavy/heavy walk (running)-016.wav differ diff --git a/assets/sounds/walking/heavy/heavy walk (running)-016.wav.import b/assets/sounds/walking/heavy/heavy walk (running)-016.wav.import new file mode 100644 index 0000000..4f8a035 --- /dev/null +++ b/assets/sounds/walking/heavy/heavy walk (running)-016.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://dtb44117yp5pf" +path="res://.godot/imported/heavy walk (running)-016.wav-9dc2a1c6d46a7d2607424024a75c8a42.sample" + +[deps] + +source_file="res://assets/sounds/walking/heavy/heavy walk (running)-016.wav" +dest_files=["res://.godot/imported/heavy walk (running)-016.wav-9dc2a1c6d46a7d2607424024a75c8a42.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=2 diff --git a/assets/sounds/walking/light/light walk-001.wav b/assets/sounds/walking/light/light walk-001.wav new file mode 100644 index 0000000..df6b650 Binary files /dev/null and b/assets/sounds/walking/light/light walk-001.wav differ diff --git a/assets/sounds/walking/light/light walk-001.wav.import b/assets/sounds/walking/light/light walk-001.wav.import new file mode 100644 index 0000000..5297a58 --- /dev/null +++ b/assets/sounds/walking/light/light walk-001.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://d11n1qlwjjtgk" +path="res://.godot/imported/light walk-001.wav-fd582679e35ae1914cad0ad0c2996da6.sample" + +[deps] + +source_file="res://assets/sounds/walking/light/light walk-001.wav" +dest_files=["res://.godot/imported/light walk-001.wav-fd582679e35ae1914cad0ad0c2996da6.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=2 diff --git a/assets/sounds/walking/light/light walk-002.wav b/assets/sounds/walking/light/light walk-002.wav new file mode 100644 index 0000000..1969126 Binary files /dev/null and b/assets/sounds/walking/light/light walk-002.wav differ diff --git a/assets/sounds/walking/light/light walk-002.wav.import b/assets/sounds/walking/light/light walk-002.wav.import new file mode 100644 index 0000000..0a884d7 --- /dev/null +++ b/assets/sounds/walking/light/light walk-002.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://bt6fd43j67a7a" +path="res://.godot/imported/light walk-002.wav-e122f480b37edf1fe8aff0db37a04fab.sample" + +[deps] + +source_file="res://assets/sounds/walking/light/light walk-002.wav" +dest_files=["res://.godot/imported/light walk-002.wav-e122f480b37edf1fe8aff0db37a04fab.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=2 diff --git a/assets/sounds/walking/light/light walk-003.wav b/assets/sounds/walking/light/light walk-003.wav new file mode 100644 index 0000000..bed782e Binary files /dev/null and b/assets/sounds/walking/light/light walk-003.wav differ diff --git a/assets/sounds/walking/light/light walk-003.wav.import b/assets/sounds/walking/light/light walk-003.wav.import new file mode 100644 index 0000000..10a1447 --- /dev/null +++ b/assets/sounds/walking/light/light walk-003.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://byltouohmnamp" +path="res://.godot/imported/light walk-003.wav-7c396e2773bb9ba2b34032712be780e3.sample" + +[deps] + +source_file="res://assets/sounds/walking/light/light walk-003.wav" +dest_files=["res://.godot/imported/light walk-003.wav-7c396e2773bb9ba2b34032712be780e3.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=2 diff --git a/assets/sounds/walking/light/light walk-004.wav b/assets/sounds/walking/light/light walk-004.wav new file mode 100644 index 0000000..2f80e90 Binary files /dev/null and b/assets/sounds/walking/light/light walk-004.wav differ diff --git a/assets/sounds/walking/light/light walk-004.wav.import b/assets/sounds/walking/light/light walk-004.wav.import new file mode 100644 index 0000000..172c1e2 --- /dev/null +++ b/assets/sounds/walking/light/light walk-004.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://bttnajyewet2i" +path="res://.godot/imported/light walk-004.wav-ac867e9c61ef3f051c6842e93994dfa4.sample" + +[deps] + +source_file="res://assets/sounds/walking/light/light walk-004.wav" +dest_files=["res://.godot/imported/light walk-004.wav-ac867e9c61ef3f051c6842e93994dfa4.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=2 diff --git a/assets/sounds/walking/light/light walk-005.wav b/assets/sounds/walking/light/light walk-005.wav new file mode 100644 index 0000000..9394293 Binary files /dev/null and b/assets/sounds/walking/light/light walk-005.wav differ diff --git a/assets/sounds/walking/light/light walk-005.wav.import b/assets/sounds/walking/light/light walk-005.wav.import new file mode 100644 index 0000000..40643c2 --- /dev/null +++ b/assets/sounds/walking/light/light walk-005.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://djnn2ndppw6n8" +path="res://.godot/imported/light walk-005.wav-6254f79b3303abaa3a810cf7584d9c01.sample" + +[deps] + +source_file="res://assets/sounds/walking/light/light walk-005.wav" +dest_files=["res://.godot/imported/light walk-005.wav-6254f79b3303abaa3a810cf7584d9c01.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=2 diff --git a/assets/sounds/walking/light/light walk-006.wav b/assets/sounds/walking/light/light walk-006.wav new file mode 100644 index 0000000..fabe662 Binary files /dev/null and b/assets/sounds/walking/light/light walk-006.wav differ diff --git a/assets/sounds/walking/light/light walk-006.wav.import b/assets/sounds/walking/light/light walk-006.wav.import new file mode 100644 index 0000000..bb78e67 --- /dev/null +++ b/assets/sounds/walking/light/light walk-006.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://bd37wmum0boqa" +path="res://.godot/imported/light walk-006.wav-1ee4cd31d4ee33f063c54658c21a5d71.sample" + +[deps] + +source_file="res://assets/sounds/walking/light/light walk-006.wav" +dest_files=["res://.godot/imported/light walk-006.wav-1ee4cd31d4ee33f063c54658c21a5d71.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=2 diff --git a/assets/sounds/walking/light/light walk-007.wav b/assets/sounds/walking/light/light walk-007.wav new file mode 100644 index 0000000..60d9ca0 Binary files /dev/null and b/assets/sounds/walking/light/light walk-007.wav differ diff --git a/assets/sounds/walking/light/light walk-007.wav.import b/assets/sounds/walking/light/light walk-007.wav.import new file mode 100644 index 0000000..35fdccf --- /dev/null +++ b/assets/sounds/walking/light/light walk-007.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://bv8puyd54wmly" +path="res://.godot/imported/light walk-007.wav-2df64fecbd2eb5ca12cd06fb4822e58c.sample" + +[deps] + +source_file="res://assets/sounds/walking/light/light walk-007.wav" +dest_files=["res://.godot/imported/light walk-007.wav-2df64fecbd2eb5ca12cd06fb4822e58c.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=2 diff --git a/assets/sounds/walking/light/light walk-008.wav b/assets/sounds/walking/light/light walk-008.wav new file mode 100644 index 0000000..d800f2a Binary files /dev/null and b/assets/sounds/walking/light/light walk-008.wav differ diff --git a/assets/sounds/walking/light/light walk-008.wav.import b/assets/sounds/walking/light/light walk-008.wav.import new file mode 100644 index 0000000..1f0ccd0 --- /dev/null +++ b/assets/sounds/walking/light/light walk-008.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://dbnek0vsfwyk5" +path="res://.godot/imported/light walk-008.wav-13223fda38a0cd841d8a4003f68ebfe1.sample" + +[deps] + +source_file="res://assets/sounds/walking/light/light walk-008.wav" +dest_files=["res://.godot/imported/light walk-008.wav-13223fda38a0cd841d8a4003f68ebfe1.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=2 diff --git a/assets/sounds/walking/light/light walk-009.wav b/assets/sounds/walking/light/light walk-009.wav new file mode 100644 index 0000000..dc775a7 Binary files /dev/null and b/assets/sounds/walking/light/light walk-009.wav differ diff --git a/assets/sounds/walking/light/light walk-009.wav.import b/assets/sounds/walking/light/light walk-009.wav.import new file mode 100644 index 0000000..6a1fe11 --- /dev/null +++ b/assets/sounds/walking/light/light walk-009.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://cav2wgpvselrg" +path="res://.godot/imported/light walk-009.wav-bf4c4080eedae225c6108dabecf83d24.sample" + +[deps] + +source_file="res://assets/sounds/walking/light/light walk-009.wav" +dest_files=["res://.godot/imported/light walk-009.wav-bf4c4080eedae225c6108dabecf83d24.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=2 diff --git a/assets/sounds/walking/light/light walk-010.wav b/assets/sounds/walking/light/light walk-010.wav new file mode 100644 index 0000000..00e2d83 Binary files /dev/null and b/assets/sounds/walking/light/light walk-010.wav differ diff --git a/assets/sounds/walking/light/light walk-010.wav.import b/assets/sounds/walking/light/light walk-010.wav.import new file mode 100644 index 0000000..c5ca1dd --- /dev/null +++ b/assets/sounds/walking/light/light walk-010.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://bsqgdsmwt1ovp" +path="res://.godot/imported/light walk-010.wav-b57a120d74661682ba8e9f2a6e09e6de.sample" + +[deps] + +source_file="res://assets/sounds/walking/light/light walk-010.wav" +dest_files=["res://.godot/imported/light walk-010.wav-b57a120d74661682ba8e9f2a6e09e6de.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=2 diff --git a/assets/sounds/walking/light/light walk-011.wav b/assets/sounds/walking/light/light walk-011.wav new file mode 100644 index 0000000..1c6cdba Binary files /dev/null and b/assets/sounds/walking/light/light walk-011.wav differ diff --git a/assets/sounds/walking/light/light walk-011.wav.import b/assets/sounds/walking/light/light walk-011.wav.import new file mode 100644 index 0000000..75d11af --- /dev/null +++ b/assets/sounds/walking/light/light walk-011.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://hr4k5gsmbqgj" +path="res://.godot/imported/light walk-011.wav-61517bd38152093ca8810ac3ffbf9aa1.sample" + +[deps] + +source_file="res://assets/sounds/walking/light/light walk-011.wav" +dest_files=["res://.godot/imported/light walk-011.wav-61517bd38152093ca8810ac3ffbf9aa1.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=2 diff --git a/assets/sounds/walking/light/light walk-012.wav b/assets/sounds/walking/light/light walk-012.wav new file mode 100644 index 0000000..8c71f20 Binary files /dev/null and b/assets/sounds/walking/light/light walk-012.wav differ diff --git a/assets/sounds/walking/light/light walk-012.wav.import b/assets/sounds/walking/light/light walk-012.wav.import new file mode 100644 index 0000000..f775b9a --- /dev/null +++ b/assets/sounds/walking/light/light walk-012.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://d17j6w4t2qkai" +path="res://.godot/imported/light walk-012.wav-9447ba967c609d492d29d1b5b00f9db6.sample" + +[deps] + +source_file="res://assets/sounds/walking/light/light walk-012.wav" +dest_files=["res://.godot/imported/light walk-012.wav-9447ba967c609d492d29d1b5b00f9db6.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=2 diff --git a/assets/sounds/walking/light/light walk-013.wav b/assets/sounds/walking/light/light walk-013.wav new file mode 100644 index 0000000..c76e259 Binary files /dev/null and b/assets/sounds/walking/light/light walk-013.wav differ diff --git a/assets/sounds/walking/light/light walk-013.wav.import b/assets/sounds/walking/light/light walk-013.wav.import new file mode 100644 index 0000000..7e16e60 --- /dev/null +++ b/assets/sounds/walking/light/light walk-013.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://b3dynes8om0be" +path="res://.godot/imported/light walk-013.wav-f4e5eda6718badd0aa1f5769c243ff70.sample" + +[deps] + +source_file="res://assets/sounds/walking/light/light walk-013.wav" +dest_files=["res://.godot/imported/light walk-013.wav-f4e5eda6718badd0aa1f5769c243ff70.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=2 diff --git a/assets/sounds/walking/normal/normal walk-001.wav b/assets/sounds/walking/normal/normal walk-001.wav new file mode 100644 index 0000000..467ab1f Binary files /dev/null and b/assets/sounds/walking/normal/normal walk-001.wav differ diff --git a/assets/sounds/walking/normal/normal walk-001.wav.import b/assets/sounds/walking/normal/normal walk-001.wav.import new file mode 100644 index 0000000..5b68bab --- /dev/null +++ b/assets/sounds/walking/normal/normal walk-001.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://he4huk3fb0vm" +path="res://.godot/imported/normal walk-001.wav-b35055a5057bc7fdebae7d5b89e80e4e.sample" + +[deps] + +source_file="res://assets/sounds/walking/normal/normal walk-001.wav" +dest_files=["res://.godot/imported/normal walk-001.wav-b35055a5057bc7fdebae7d5b89e80e4e.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=2 diff --git a/assets/sounds/walking/normal/normal walk-002.wav b/assets/sounds/walking/normal/normal walk-002.wav new file mode 100644 index 0000000..7e867a7 Binary files /dev/null and b/assets/sounds/walking/normal/normal walk-002.wav differ diff --git a/assets/sounds/walking/normal/normal walk-002.wav.import b/assets/sounds/walking/normal/normal walk-002.wav.import new file mode 100644 index 0000000..b42de6d --- /dev/null +++ b/assets/sounds/walking/normal/normal walk-002.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://db5upx7hn27qe" +path="res://.godot/imported/normal walk-002.wav-2baa802e0b3ae0955aff9c3c6591fc7c.sample" + +[deps] + +source_file="res://assets/sounds/walking/normal/normal walk-002.wav" +dest_files=["res://.godot/imported/normal walk-002.wav-2baa802e0b3ae0955aff9c3c6591fc7c.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=2 diff --git a/assets/sounds/walking/normal/normal walk-003.wav b/assets/sounds/walking/normal/normal walk-003.wav new file mode 100644 index 0000000..0c3bfa3 Binary files /dev/null and b/assets/sounds/walking/normal/normal walk-003.wav differ diff --git a/assets/sounds/walking/normal/normal walk-003.wav.import b/assets/sounds/walking/normal/normal walk-003.wav.import new file mode 100644 index 0000000..dafa85f --- /dev/null +++ b/assets/sounds/walking/normal/normal walk-003.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://b00bi5iffp5lf" +path="res://.godot/imported/normal walk-003.wav-082b25a7b0f4a9d4e7afeda234148b11.sample" + +[deps] + +source_file="res://assets/sounds/walking/normal/normal walk-003.wav" +dest_files=["res://.godot/imported/normal walk-003.wav-082b25a7b0f4a9d4e7afeda234148b11.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=2 diff --git a/assets/sounds/walking/normal/normal walk-004.wav b/assets/sounds/walking/normal/normal walk-004.wav new file mode 100644 index 0000000..8acbe2e Binary files /dev/null and b/assets/sounds/walking/normal/normal walk-004.wav differ diff --git a/assets/sounds/walking/normal/normal walk-004.wav.import b/assets/sounds/walking/normal/normal walk-004.wav.import new file mode 100644 index 0000000..510e930 --- /dev/null +++ b/assets/sounds/walking/normal/normal walk-004.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://6slw3x6cnmim" +path="res://.godot/imported/normal walk-004.wav-2860ac9cba50112dfed9657b9060df31.sample" + +[deps] + +source_file="res://assets/sounds/walking/normal/normal walk-004.wav" +dest_files=["res://.godot/imported/normal walk-004.wav-2860ac9cba50112dfed9657b9060df31.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=2 diff --git a/assets/sounds/walking/normal/normal walk-005.wav b/assets/sounds/walking/normal/normal walk-005.wav new file mode 100644 index 0000000..dd7ef2f Binary files /dev/null and b/assets/sounds/walking/normal/normal walk-005.wav differ diff --git a/assets/sounds/walking/normal/normal walk-005.wav.import b/assets/sounds/walking/normal/normal walk-005.wav.import new file mode 100644 index 0000000..5901deb --- /dev/null +++ b/assets/sounds/walking/normal/normal walk-005.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://cbi4ej24sjoho" +path="res://.godot/imported/normal walk-005.wav-2cadf2a7dd1dc69ee2fb9ea091c7e615.sample" + +[deps] + +source_file="res://assets/sounds/walking/normal/normal walk-005.wav" +dest_files=["res://.godot/imported/normal walk-005.wav-2cadf2a7dd1dc69ee2fb9ea091c7e615.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=2 diff --git a/assets/sounds/walking/normal/normal walk-006.wav b/assets/sounds/walking/normal/normal walk-006.wav new file mode 100644 index 0000000..280ca92 Binary files /dev/null and b/assets/sounds/walking/normal/normal walk-006.wav differ diff --git a/assets/sounds/walking/normal/normal walk-006.wav.import b/assets/sounds/walking/normal/normal walk-006.wav.import new file mode 100644 index 0000000..7e11a98 --- /dev/null +++ b/assets/sounds/walking/normal/normal walk-006.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://bjs2o6l53l0vi" +path="res://.godot/imported/normal walk-006.wav-662691d09e79ce0e3d38388d71bb6a60.sample" + +[deps] + +source_file="res://assets/sounds/walking/normal/normal walk-006.wav" +dest_files=["res://.godot/imported/normal walk-006.wav-662691d09e79ce0e3d38388d71bb6a60.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=2 diff --git a/assets/sounds/walking/normal/normal walk-007.wav b/assets/sounds/walking/normal/normal walk-007.wav new file mode 100644 index 0000000..f8895b9 Binary files /dev/null and b/assets/sounds/walking/normal/normal walk-007.wav differ diff --git a/assets/sounds/walking/normal/normal walk-007.wav.import b/assets/sounds/walking/normal/normal walk-007.wav.import new file mode 100644 index 0000000..d353b22 --- /dev/null +++ b/assets/sounds/walking/normal/normal walk-007.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://c68qrr5057go2" +path="res://.godot/imported/normal walk-007.wav-1e32c39783827b504506173a66b0384d.sample" + +[deps] + +source_file="res://assets/sounds/walking/normal/normal walk-007.wav" +dest_files=["res://.godot/imported/normal walk-007.wav-1e32c39783827b504506173a66b0384d.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=2 diff --git a/assets/sounds/walking/normal/normal walk-008.wav b/assets/sounds/walking/normal/normal walk-008.wav new file mode 100644 index 0000000..acc45a3 Binary files /dev/null and b/assets/sounds/walking/normal/normal walk-008.wav differ diff --git a/assets/sounds/walking/normal/normal walk-008.wav.import b/assets/sounds/walking/normal/normal walk-008.wav.import new file mode 100644 index 0000000..f584d4b --- /dev/null +++ b/assets/sounds/walking/normal/normal walk-008.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://dgbbjrqihuf8r" +path="res://.godot/imported/normal walk-008.wav-7756daaaf49bd8c582f13f36832f0e20.sample" + +[deps] + +source_file="res://assets/sounds/walking/normal/normal walk-008.wav" +dest_files=["res://.godot/imported/normal walk-008.wav-7756daaaf49bd8c582f13f36832f0e20.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=2 diff --git a/assets/sounds/walking/normal/normal walk-009.wav b/assets/sounds/walking/normal/normal walk-009.wav new file mode 100644 index 0000000..1faa0e9 Binary files /dev/null and b/assets/sounds/walking/normal/normal walk-009.wav differ diff --git a/assets/sounds/walking/normal/normal walk-009.wav.import b/assets/sounds/walking/normal/normal walk-009.wav.import new file mode 100644 index 0000000..465a16f --- /dev/null +++ b/assets/sounds/walking/normal/normal walk-009.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://6rrb5d1xhvwb" +path="res://.godot/imported/normal walk-009.wav-6df7d1e2a501d86ff9b4aef40cd00c29.sample" + +[deps] + +source_file="res://assets/sounds/walking/normal/normal walk-009.wav" +dest_files=["res://.godot/imported/normal walk-009.wav-6df7d1e2a501d86ff9b4aef40cd00c29.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=2 diff --git a/assets/sounds/walking/normal/normal walk-010.wav b/assets/sounds/walking/normal/normal walk-010.wav new file mode 100644 index 0000000..cfa9193 Binary files /dev/null and b/assets/sounds/walking/normal/normal walk-010.wav differ diff --git a/assets/sounds/walking/normal/normal walk-010.wav.import b/assets/sounds/walking/normal/normal walk-010.wav.import new file mode 100644 index 0000000..6b9d1cf --- /dev/null +++ b/assets/sounds/walking/normal/normal walk-010.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://xh26crutjmm" +path="res://.godot/imported/normal walk-010.wav-650ae8332a21baa436f2f15c3c14cc48.sample" + +[deps] + +source_file="res://assets/sounds/walking/normal/normal walk-010.wav" +dest_files=["res://.godot/imported/normal walk-010.wav-650ae8332a21baa436f2f15c3c14cc48.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=2 diff --git a/assets/sounds/walking/normal/normal walk-011.wav b/assets/sounds/walking/normal/normal walk-011.wav new file mode 100644 index 0000000..5eb846e Binary files /dev/null and b/assets/sounds/walking/normal/normal walk-011.wav differ diff --git a/assets/sounds/walking/normal/normal walk-011.wav.import b/assets/sounds/walking/normal/normal walk-011.wav.import new file mode 100644 index 0000000..d9f93ea --- /dev/null +++ b/assets/sounds/walking/normal/normal walk-011.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://cckmu66u5dmkr" +path="res://.godot/imported/normal walk-011.wav-ca7a7b97b55b472284ff0c6f20f60be8.sample" + +[deps] + +source_file="res://assets/sounds/walking/normal/normal walk-011.wav" +dest_files=["res://.godot/imported/normal walk-011.wav-ca7a7b97b55b472284ff0c6f20f60be8.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=2 diff --git a/assets/sounds/walking/normal/normal walk-012.wav b/assets/sounds/walking/normal/normal walk-012.wav new file mode 100644 index 0000000..23e9a79 Binary files /dev/null and b/assets/sounds/walking/normal/normal walk-012.wav differ diff --git a/assets/sounds/walking/normal/normal walk-012.wav.import b/assets/sounds/walking/normal/normal walk-012.wav.import new file mode 100644 index 0000000..45444db --- /dev/null +++ b/assets/sounds/walking/normal/normal walk-012.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://bayicbs3w8rp3" +path="res://.godot/imported/normal walk-012.wav-915b266730d7e7e65429e5bf37256393.sample" + +[deps] + +source_file="res://assets/sounds/walking/normal/normal walk-012.wav" +dest_files=["res://.godot/imported/normal walk-012.wav-915b266730d7e7e65429e5bf37256393.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=2 diff --git a/assets/sounds/walking/normal/normal walk-013.wav b/assets/sounds/walking/normal/normal walk-013.wav new file mode 100644 index 0000000..f783e08 Binary files /dev/null and b/assets/sounds/walking/normal/normal walk-013.wav differ diff --git a/assets/sounds/walking/normal/normal walk-013.wav.import b/assets/sounds/walking/normal/normal walk-013.wav.import new file mode 100644 index 0000000..e5b15db --- /dev/null +++ b/assets/sounds/walking/normal/normal walk-013.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://bv53c27ead2iv" +path="res://.godot/imported/normal walk-013.wav-8206da956233a3d1e06e127727688c0c.sample" + +[deps] + +source_file="res://assets/sounds/walking/normal/normal walk-013.wav" +dest_files=["res://.godot/imported/normal walk-013.wav-8206da956233a3d1e06e127727688c0c.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=2 diff --git a/assets/sounds/walking/shuffle/csoszogás-001.wav b/assets/sounds/walking/shuffle/csoszogás-001.wav new file mode 100644 index 0000000..ab5a596 Binary files /dev/null and b/assets/sounds/walking/shuffle/csoszogás-001.wav differ diff --git a/assets/sounds/walking/shuffle/csoszogás-001.wav.import b/assets/sounds/walking/shuffle/csoszogás-001.wav.import new file mode 100644 index 0000000..d5289d4 --- /dev/null +++ b/assets/sounds/walking/shuffle/csoszogás-001.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://bw8dt5rd8j50y" +path="res://.godot/imported/csoszogás-001.wav-0976c0dfc3dac2bd9964d947a46a804d.sample" + +[deps] + +source_file="res://assets/sounds/walking/shuffle/csoszogás-001.wav" +dest_files=["res://.godot/imported/csoszogás-001.wav-0976c0dfc3dac2bd9964d947a46a804d.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=2 diff --git a/assets/sounds/walking/shuffle/csoszogás-002.wav b/assets/sounds/walking/shuffle/csoszogás-002.wav new file mode 100644 index 0000000..be7eee1 Binary files /dev/null and b/assets/sounds/walking/shuffle/csoszogás-002.wav differ diff --git a/assets/sounds/walking/shuffle/csoszogás-002.wav.import b/assets/sounds/walking/shuffle/csoszogás-002.wav.import new file mode 100644 index 0000000..49a1c84 --- /dev/null +++ b/assets/sounds/walking/shuffle/csoszogás-002.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://dkxliin18sua2" +path="res://.godot/imported/csoszogás-002.wav-1201d68ef6ccf16eafdbf55c3a8d51f0.sample" + +[deps] + +source_file="res://assets/sounds/walking/shuffle/csoszogás-002.wav" +dest_files=["res://.godot/imported/csoszogás-002.wav-1201d68ef6ccf16eafdbf55c3a8d51f0.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=2 diff --git a/assets/sounds/walking/shuffle/csoszogás-003.wav b/assets/sounds/walking/shuffle/csoszogás-003.wav new file mode 100644 index 0000000..46d7b31 Binary files /dev/null and b/assets/sounds/walking/shuffle/csoszogás-003.wav differ diff --git a/assets/sounds/walking/shuffle/csoszogás-003.wav.import b/assets/sounds/walking/shuffle/csoszogás-003.wav.import new file mode 100644 index 0000000..299ee27 --- /dev/null +++ b/assets/sounds/walking/shuffle/csoszogás-003.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://cijtqpij23hyd" +path="res://.godot/imported/csoszogás-003.wav-086e7634716aecc8dbc7eed858e7467d.sample" + +[deps] + +source_file="res://assets/sounds/walking/shuffle/csoszogás-003.wav" +dest_files=["res://.godot/imported/csoszogás-003.wav-086e7634716aecc8dbc7eed858e7467d.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=2 diff --git a/assets/sounds/walking/shuffle/csoszogás-004.wav b/assets/sounds/walking/shuffle/csoszogás-004.wav new file mode 100644 index 0000000..8c8881c Binary files /dev/null and b/assets/sounds/walking/shuffle/csoszogás-004.wav differ diff --git a/assets/sounds/walking/shuffle/csoszogás-004.wav.import b/assets/sounds/walking/shuffle/csoszogás-004.wav.import new file mode 100644 index 0000000..28d0f24 --- /dev/null +++ b/assets/sounds/walking/shuffle/csoszogás-004.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://tmflo6rp0cu4" +path="res://.godot/imported/csoszogás-004.wav-c12818e7d926e81b053b3dcc5de51433.sample" + +[deps] + +source_file="res://assets/sounds/walking/shuffle/csoszogás-004.wav" +dest_files=["res://.godot/imported/csoszogás-004.wav-c12818e7d926e81b053b3dcc5de51433.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=2 diff --git a/assets/sounds/walking/shuffle/csoszogás-005.wav b/assets/sounds/walking/shuffle/csoszogás-005.wav new file mode 100644 index 0000000..d6292f9 Binary files /dev/null and b/assets/sounds/walking/shuffle/csoszogás-005.wav differ diff --git a/assets/sounds/walking/shuffle/csoszogás-005.wav.import b/assets/sounds/walking/shuffle/csoszogás-005.wav.import new file mode 100644 index 0000000..955e9a9 --- /dev/null +++ b/assets/sounds/walking/shuffle/csoszogás-005.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://c3bl5rkqf1dn7" +path="res://.godot/imported/csoszogás-005.wav-3716ba4dac65b71ef584b204a8fe356a.sample" + +[deps] + +source_file="res://assets/sounds/walking/shuffle/csoszogás-005.wav" +dest_files=["res://.godot/imported/csoszogás-005.wav-3716ba4dac65b71ef584b204a8fe356a.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=2 diff --git a/assets/sounds/walking/shuffle/csoszogás-006.wav b/assets/sounds/walking/shuffle/csoszogás-006.wav new file mode 100644 index 0000000..35cbe08 Binary files /dev/null and b/assets/sounds/walking/shuffle/csoszogás-006.wav differ diff --git a/assets/sounds/walking/shuffle/csoszogás-006.wav.import b/assets/sounds/walking/shuffle/csoszogás-006.wav.import new file mode 100644 index 0000000..983830d --- /dev/null +++ b/assets/sounds/walking/shuffle/csoszogás-006.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://cueon12gi7jeh" +path="res://.godot/imported/csoszogás-006.wav-bbcbf84f4582db64b5b168730ba99bf1.sample" + +[deps] + +source_file="res://assets/sounds/walking/shuffle/csoszogás-006.wav" +dest_files=["res://.godot/imported/csoszogás-006.wav-bbcbf84f4582db64b5b168730ba99bf1.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=2 diff --git a/assets/sounds/walking/shuffle/csoszogás-007.wav b/assets/sounds/walking/shuffle/csoszogás-007.wav new file mode 100644 index 0000000..2dd1d34 Binary files /dev/null and b/assets/sounds/walking/shuffle/csoszogás-007.wav differ diff --git a/assets/sounds/walking/shuffle/csoszogás-007.wav.import b/assets/sounds/walking/shuffle/csoszogás-007.wav.import new file mode 100644 index 0000000..f83156e --- /dev/null +++ b/assets/sounds/walking/shuffle/csoszogás-007.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://ccospbyrg6sb1" +path="res://.godot/imported/csoszogás-007.wav-cc3d3e75eee70b17ab5de5855a9e1d1d.sample" + +[deps] + +source_file="res://assets/sounds/walking/shuffle/csoszogás-007.wav" +dest_files=["res://.godot/imported/csoszogás-007.wav-cc3d3e75eee70b17ab5de5855a9e1d1d.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=2 diff --git a/icon.svg b/icon.svg new file mode 100644 index 0000000..c6bbb7d --- /dev/null +++ b/icon.svg @@ -0,0 +1 @@ + diff --git a/icon.svg.import b/icon.svg.import new file mode 100644 index 0000000..e65fd36 --- /dev/null +++ b/icon.svg.import @@ -0,0 +1,43 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dmribai8th8fb" +path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://icon.svg" +dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/uastc_level=0 +compress/rdo_quality_loss=0.0 +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/channel_remap/red=0 +process/channel_remap/green=1 +process/channel_remap/blue=2 +process/channel_remap/alpha=3 +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/maps/dev_map.tscn b/maps/dev_map.tscn new file mode 100644 index 0000000..dabc446 --- /dev/null +++ b/maps/dev_map.tscn @@ -0,0 +1,121 @@ +[gd_scene format=3 uid="uid://chykk2a3opu0d"] + +[ext_resource type="PackedScene" uid="uid://kqq30y24c6kd" path="res://player/player.tscn" id="1_s8b7j"] +[ext_resource type="AudioStream" uid="uid://db0yck6trekrs" path="res://assets/sounds/ambiance/pc-fan-paulstretched.mp3" id="2_phkhq"] +[ext_resource type="Script" uid="uid://y8x4svl5kej2" path="res://addons/spatial_audio_3d/spatial_audio_3d.gd" id="4_yb1w3"] + +[sub_resource type="WorldBoundaryShape3D" id="WorldBoundaryShape3D_g4v7s"] + +[sub_resource type="PlaneMesh" id="PlaneMesh_g4v7s"] + +[sub_resource type="BoxShape3D" id="BoxShape3D_g4v7s"] + +[sub_resource type="BoxMesh" id="BoxMesh_g4v7s"] + +[sub_resource type="BoxShape3D" id="BoxShape3D_yf5fn"] + +[sub_resource type="BoxMesh" id="BoxMesh_yf5fn"] + +[sub_resource type="BoxShape3D" id="BoxShape3D_57qmd"] +size = Vector3(20.447998, 11.038544, 1) + +[node name="DevMap" type="Node3D" unique_id=471389571] + +[node name="Plane" type="StaticBody3D" parent="." unique_id=1943923809] +collision_layer = 17 +collision_mask = 17 + +[node name="CollisionShape3D" type="CollisionShape3D" parent="Plane" unique_id=2072732464] +shape = SubResource("WorldBoundaryShape3D_g4v7s") + +[node name="MeshInstance3D" type="MeshInstance3D" parent="Plane" unique_id=810695750] +transform = Transform3D(9.905844, 0, 0, 0, 1, 0, 0, 0, 9.900972, 0, 0, 0) +mesh = SubResource("PlaneMesh_g4v7s") + +[node name="TestObject" type="RigidBody3D" parent="." unique_id=1889494210] +transform = Transform3D(0.9224609, 0.38609046, 0, -0.38609046, 0.9224609, 0, 0, 0, 1, 1.1603341, 0.9219521, -1.1464608) +collision_layer = 17 +collision_mask = 17 + +[node name="CollisionShape3D" type="CollisionShape3D" parent="TestObject" unique_id=507616212] +shape = SubResource("BoxShape3D_g4v7s") + +[node name="MeshInstance3D" type="MeshInstance3D" parent="TestObject" unique_id=1356474788] +mesh = SubResource("BoxMesh_g4v7s") + +[node name="TestObjectGrabbable" type="RigidBody3D" parent="." unique_id=162241126 groups=["grabbable"]] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.776662, -3.2358055) +collision_layer = 17 +collision_mask = 17 + +[node name="CollisionShape3D" type="CollisionShape3D" parent="TestObjectGrabbable" unique_id=2049402651] +shape = SubResource("BoxShape3D_yf5fn") + +[node name="MeshInstance3D" type="MeshInstance3D" parent="TestObjectGrabbable" unique_id=1899834557] +mesh = SubResource("BoxMesh_yf5fn") + +[node name="TestObjectEquippable" type="RigidBody3D" parent="." unique_id=1086000939] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.874709, 1.0290127, -3.1515453) +collision_layer = 17 +collision_mask = 17 + +[node name="CollisionShape3D" type="CollisionShape3D" parent="TestObjectEquippable" unique_id=740741417] +shape = SubResource("BoxShape3D_yf5fn") + +[node name="MeshInstance3D" type="MeshInstance3D" parent="TestObjectEquippable" unique_id=1967579265] +mesh = SubResource("BoxMesh_yf5fn") + +[node name="Player" parent="." unique_id=423228143 instance=ExtResource("1_s8b7j")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.77974355, 1.137004) +UI_MOVEMENT_SENSITIVITY = 1.0 + +[node name="OmniLight3D" type="OmniLight3D" parent="." unique_id=1317582521] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.2949467, -3.755646) + +[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="." unique_id=1052073765] +stream = ExtResource("2_phkhq") +mix_target = 1 + +[node name="SpatialAudio3D" type="AudioStreamPlayer3D" parent="." unique_id=351573539] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 15.887349, 4.01754, -1.2293816) +stream = ExtResource("2_phkhq") +max_distance = 1927.53 +script = ExtResource("4_yb1w3") +occlusion_fadetime = 0.0 +bass_proximity = 0 +max_raycast_distance = 30 +roomsize_multiplicator = 2.0 +prox_reduction = 16.0 +metadata/_custom_type_script = "uid://y8x4svl5kej2" + +[node name="StaticBody3D" type="StaticBody3D" parent="." unique_id=1656249102] +transform = Transform3D(1, 0, -1.7484555e-07, 0, 1, 0, 1.7484555e-07, 0, 1, 10.053528, 0, 9.284716) + +[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D" unique_id=1173755237] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -9.723999, 5.019272, 0) +shape = SubResource("BoxShape3D_57qmd") + +[node name="StaticBody3D2" type="StaticBody3D" parent="." unique_id=23077148] +transform = Transform3D(-4.371138e-08, 0, -1, 0, 1, 0, 1, 0, -4.371138e-08, 10.053528, 0, 8.284716) + +[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D2" unique_id=1774765140] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -9.723999, 5.019272, 0) +shape = SubResource("BoxShape3D_57qmd") + +[node name="StaticBody3D3" type="StaticBody3D" parent="." unique_id=2124365943] +transform = Transform3D(-1, 0, 8.742278e-08, 0, 1, 0, -8.742278e-08, 0, -1, -8.946472, 0, -10.715284) + +[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D3" unique_id=652377662] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -9.723999, 5.019272, 0) +shape = SubResource("BoxShape3D_57qmd") + +[node name="StaticBody3D4" type="StaticBody3D" parent="." unique_id=942386107] +transform = Transform3D(1.3113416e-07, 0, 1, 0, 1, 0, -1, 0, 1.3113416e-07, -8.946472, 0, -10.715284) + +[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D4" unique_id=1055230632] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -9.723999, 5.019272, 0) +shape = SubResource("BoxShape3D_57qmd") + +[node name="CollisionShape3D2" type="CollisionShape3D" parent="StaticBody3D4" unique_id=967910627] +transform = Transform3D(1, 1.3113416e-07, -1.3113416e-07, -1.3113416e-07, -4.371139e-08, -1, -1.3113416e-07, 1, -4.371137e-08, -9.723998, 10.984082, 10) +shape = SubResource("BoxShape3D_57qmd") diff --git a/maps/dev_map.tscn346918277.tmp b/maps/dev_map.tscn346918277.tmp new file mode 100644 index 0000000..563d646 --- /dev/null +++ b/maps/dev_map.tscn346918277.tmp @@ -0,0 +1,38 @@ +[gd_scene format=3 uid="uid://chykk2a3opu0d"] + +[ext_resource type="PackedScene" uid="uid://kqq30y24c6kd" path="res://player/player.tscn" id="1_s8b7j"] + +[sub_resource type="WorldBoundaryShape3D" id="WorldBoundaryShape3D_g4v7s"] + +[sub_resource type="PlaneMesh" id="PlaneMesh_g4v7s"] + +[sub_resource type="BoxShape3D" id="BoxShape3D_g4v7s"] + +[sub_resource type="BoxMesh" id="BoxMesh_g4v7s"] + +[node name="DevMap" type="Node3D" unique_id=471389571] + +[node name="Plane" type="StaticBody3D" parent="." unique_id=1943923809] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="Plane" unique_id=2072732464] +shape = SubResource("WorldBoundaryShape3D_g4v7s") + +[node name="MeshInstance3D" type="MeshInstance3D" parent="Plane" unique_id=810695750] +transform = Transform3D(9.905844, 0, 0, 0, 1, 0, 0, 0, 9.900972, 0, 0, 0) +mesh = SubResource("PlaneMesh_g4v7s") + +[node name="TestObject" type="RigidBody3D" parent="." unique_id=1889494210] +transform = Transform3D(0.9224609, 0.38609046, 0, -0.38609046, 0.9224609, 0, 0, 0, 1, 1.1603341, 0.9219521, -1.1464608) + +[node name="CollisionShape3D" type="CollisionShape3D" parent="TestObject" unique_id=507616212] +shape = SubResource("BoxShape3D_g4v7s") + +[node name="MeshInstance3D" type="MeshInstance3D" parent="TestObject" unique_id=1356474788] +mesh = SubResource("BoxMesh_g4v7s") + +[node name="Player" parent="." unique_id=423228143 instance=ExtResource("1_s8b7j")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.77974355, 1.137004) +UI_MOVEMENT_SENSITIVITY = 1.0 + +[node name="OmniLight3D" type="OmniLight3D" parent="." unique_id=1317582521] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.2949467, -3.755646) diff --git a/maps/dev_map.tscn351767798.tmp b/maps/dev_map.tscn351767798.tmp new file mode 100644 index 0000000..563d646 --- /dev/null +++ b/maps/dev_map.tscn351767798.tmp @@ -0,0 +1,38 @@ +[gd_scene format=3 uid="uid://chykk2a3opu0d"] + +[ext_resource type="PackedScene" uid="uid://kqq30y24c6kd" path="res://player/player.tscn" id="1_s8b7j"] + +[sub_resource type="WorldBoundaryShape3D" id="WorldBoundaryShape3D_g4v7s"] + +[sub_resource type="PlaneMesh" id="PlaneMesh_g4v7s"] + +[sub_resource type="BoxShape3D" id="BoxShape3D_g4v7s"] + +[sub_resource type="BoxMesh" id="BoxMesh_g4v7s"] + +[node name="DevMap" type="Node3D" unique_id=471389571] + +[node name="Plane" type="StaticBody3D" parent="." unique_id=1943923809] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="Plane" unique_id=2072732464] +shape = SubResource("WorldBoundaryShape3D_g4v7s") + +[node name="MeshInstance3D" type="MeshInstance3D" parent="Plane" unique_id=810695750] +transform = Transform3D(9.905844, 0, 0, 0, 1, 0, 0, 0, 9.900972, 0, 0, 0) +mesh = SubResource("PlaneMesh_g4v7s") + +[node name="TestObject" type="RigidBody3D" parent="." unique_id=1889494210] +transform = Transform3D(0.9224609, 0.38609046, 0, -0.38609046, 0.9224609, 0, 0, 0, 1, 1.1603341, 0.9219521, -1.1464608) + +[node name="CollisionShape3D" type="CollisionShape3D" parent="TestObject" unique_id=507616212] +shape = SubResource("BoxShape3D_g4v7s") + +[node name="MeshInstance3D" type="MeshInstance3D" parent="TestObject" unique_id=1356474788] +mesh = SubResource("BoxMesh_g4v7s") + +[node name="Player" parent="." unique_id=423228143 instance=ExtResource("1_s8b7j")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.77974355, 1.137004) +UI_MOVEMENT_SENSITIVITY = 1.0 + +[node name="OmniLight3D" type="OmniLight3D" parent="." unique_id=1317582521] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.2949467, -3.755646) diff --git a/player/blur_shader.gdshader b/player/blur_shader.gdshader new file mode 100644 index 0000000..6acb974 --- /dev/null +++ b/player/blur_shader.gdshader @@ -0,0 +1,15 @@ +shader_type canvas_item; + +// Fetches the screen texture with mipmaps enabled for the blur effect +uniform sampler2D screen_texture : hint_screen_texture, repeat_disable, filter_linear_mipmap; + +// Allows you to adjust the blur strength in the inspector +uniform float blur_amount : hint_range(0.0, 5.0) = 2.5; + +void fragment() { + // Sample the screen texture at the current screen UV, using the blur_amount as the mipmap level (LOD) + vec4 blurred_color = textureLod(screen_texture, SCREEN_UV, blur_amount); + + // Output the blurred color + COLOR = blurred_color; +} \ No newline at end of file diff --git a/player/blur_shader.gdshader.uid b/player/blur_shader.gdshader.uid new file mode 100644 index 0000000..49013dd --- /dev/null +++ b/player/blur_shader.gdshader.uid @@ -0,0 +1 @@ +uid://desjwy54cjos8 diff --git a/player/grab_prompt.tscn b/player/grab_prompt.tscn new file mode 100644 index 0000000..9a70d16 --- /dev/null +++ b/player/grab_prompt.tscn @@ -0,0 +1,33 @@ +[gd_scene format=3 uid="uid://c02fkimxlbrje"] + +[ext_resource type="Shader" uid="uid://desjwy54cjos8" path="res://player/blur_shader.gdshader" id="1_sseo3"] + +[sub_resource type="ShaderMaterial" id="ShaderMaterial_aghy0"] +shader = ExtResource("1_sseo3") +shader_parameter/blur_amount = 2.5 + +[node name="GrabPrompt" type="Control" unique_id=318901794] +layout_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="AspectRatioContainer" type="AspectRatioContainer" parent="." unique_id=1898441113] +layout_mode = 1 +anchors_preset = -1 +anchor_left = 0.4 +anchor_top = 0.4 +anchor_right = 0.6 +anchor_bottom = 0.5 + +[node name="Panel" type="Panel" parent="AspectRatioContainer" unique_id=530766557] +material = SubResource("ShaderMaterial_aghy0") +layout_mode = 2 + +[node name="Label" type="Label" parent="AspectRatioContainer" unique_id=1563300647] +layout_mode = 2 +text = "[LMB] grab" +horizontal_alignment = 1 +vertical_alignment = 1 diff --git a/player/in_game_menu.tscn b/player/in_game_menu.tscn new file mode 100644 index 0000000..aa93591 --- /dev/null +++ b/player/in_game_menu.tscn @@ -0,0 +1,49 @@ +[gd_scene format=3 uid="uid://y5f3db7clptv"] + +[ext_resource type="Script" uid="uid://d0g3mdq54p7oh" path="res://player/in_game_menu_manager.gd" id="1_j5o6r"] +[ext_resource type="Shader" uid="uid://desjwy54cjos8" path="res://player/blur_shader.gdshader" id="1_x6hgt"] + +[sub_resource type="ShaderMaterial" id="ShaderMaterial_yf5fn"] +shader = ExtResource("1_x6hgt") +shader_parameter/blur_amount = 2.5 + +[node name="InGameMenu" type="Control" unique_id=1952418949] +layout_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +script = ExtResource("1_j5o6r") + +[node name="Panel" type="Panel" parent="." unique_id=501811587] +material = SubResource("ShaderMaterial_yf5fn") +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="AspectRatioContainer" type="AspectRatioContainer" parent="." unique_id=1893717599] +layout_mode = 1 +anchors_preset = -1 +anchor_left = 0.3 +anchor_top = 0.2 +anchor_right = 0.7 +anchor_bottom = 0.6 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="VBoxContainer" type="VBoxContainer" parent="AspectRatioContainer" unique_id=1878750362] +layout_mode = 2 + +[node name="Options" type="Button" parent="AspectRatioContainer/VBoxContainer" unique_id=1588767106] +layout_mode = 2 +text = "Options" + +[node name="Exit" type="Button" parent="AspectRatioContainer/VBoxContainer" unique_id=1958391122] +layout_mode = 2 +text = "Exit" + +[connection signal="pressed" from="AspectRatioContainer/VBoxContainer/Exit" to="." method="_on_exit_pressed"] diff --git a/player/in_game_menu_manager.gd b/player/in_game_menu_manager.gd new file mode 100644 index 0000000..d901335 --- /dev/null +++ b/player/in_game_menu_manager.gd @@ -0,0 +1,14 @@ +extends Control + + +# Called when the node enters the scene tree for the first time. +func _ready() -> void: + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta: float) -> void: + pass + +func _on_exit_pressed() -> void: + get_tree().quit() diff --git a/player/in_game_menu_manager.gd.uid b/player/in_game_menu_manager.gd.uid new file mode 100644 index 0000000..e6da249 --- /dev/null +++ b/player/in_game_menu_manager.gd.uid @@ -0,0 +1 @@ +uid://d0g3mdq54p7oh diff --git a/player/player.tscn b/player/player.tscn new file mode 100644 index 0000000..62954e0 --- /dev/null +++ b/player/player.tscn @@ -0,0 +1,226 @@ +[gd_scene format=3 uid="uid://kqq30y24c6kd"] + +[ext_resource type="Script" uid="uid://l2rc674shj03" path="res://player/player_manager.gd" id="1_eqqp1"] +[ext_resource type="AudioStream" uid="uid://he4huk3fb0vm" path="res://assets/sounds/walking/normal/normal walk-001.wav" id="2_32hag"] +[ext_resource type="PackedScene" uid="uid://bsccbqq04umeg" path="res://player/player_ui.tscn" id="2_rkbax"] +[ext_resource type="PackedScene" uid="uid://y5f3db7clptv" path="res://player/in_game_menu.tscn" id="3_g1dw6"] +[ext_resource type="AudioStream" uid="uid://db5upx7hn27qe" path="res://assets/sounds/walking/normal/normal walk-002.wav" id="3_tqiix"] +[ext_resource type="AudioStream" uid="uid://b00bi5iffp5lf" path="res://assets/sounds/walking/normal/normal walk-003.wav" id="4_e7oew"] +[ext_resource type="AudioStream" uid="uid://6slw3x6cnmim" path="res://assets/sounds/walking/normal/normal walk-004.wav" id="5_c35mf"] +[ext_resource type="AudioStream" uid="uid://cbi4ej24sjoho" path="res://assets/sounds/walking/normal/normal walk-005.wav" id="6_65viv"] +[ext_resource type="AudioStream" uid="uid://bjs2o6l53l0vi" path="res://assets/sounds/walking/normal/normal walk-006.wav" id="7_x7c3f"] +[ext_resource type="AudioStream" uid="uid://c68qrr5057go2" path="res://assets/sounds/walking/normal/normal walk-007.wav" id="8_bjvpn"] +[ext_resource type="AudioStream" uid="uid://dgbbjrqihuf8r" path="res://assets/sounds/walking/normal/normal walk-008.wav" id="9_s7qer"] +[ext_resource type="AudioStream" uid="uid://6rrb5d1xhvwb" path="res://assets/sounds/walking/normal/normal walk-009.wav" id="10_g4c7l"] +[ext_resource type="AudioStream" uid="uid://xh26crutjmm" path="res://assets/sounds/walking/normal/normal walk-010.wav" id="11_knn7v"] +[ext_resource type="AudioStream" uid="uid://cckmu66u5dmkr" path="res://assets/sounds/walking/normal/normal walk-011.wav" id="12_7pqkx"] +[ext_resource type="AudioStream" uid="uid://bayicbs3w8rp3" path="res://assets/sounds/walking/normal/normal walk-012.wav" id="13_uw77l"] +[ext_resource type="AudioStream" uid="uid://bv53c27ead2iv" path="res://assets/sounds/walking/normal/normal walk-013.wav" id="14_rptt4"] +[ext_resource type="AudioStream" uid="uid://bogmfvsfsswut" path="res://assets/sounds/walking/heavy/heavy walk (running)-001.wav" id="15_n0b8q"] +[ext_resource type="AudioStream" uid="uid://bii8vhogk3ngt" path="res://assets/sounds/walking/heavy/heavy walk (running)-002.wav" id="16_jfgyi"] +[ext_resource type="AudioStream" uid="uid://gq6omth013bk" path="res://assets/sounds/walking/heavy/heavy walk (running)-003.wav" id="17_237xx"] +[ext_resource type="AudioStream" uid="uid://b6gta2gvonu0y" path="res://assets/sounds/walking/heavy/heavy walk (running)-004.wav" id="18_wpyo2"] +[ext_resource type="AudioStream" uid="uid://bn6neny4irlb0" path="res://assets/sounds/walking/heavy/heavy walk (running)-005.wav" id="19_7crtr"] +[ext_resource type="AudioStream" uid="uid://6fv6pcu7mu8k" path="res://assets/sounds/walking/heavy/heavy walk (running)-006.wav" id="20_vgvch"] +[ext_resource type="AudioStream" uid="uid://chd0ckcavb4uy" path="res://assets/sounds/walking/heavy/heavy walk (running)-007.wav" id="21_a1u5o"] +[ext_resource type="AudioStream" uid="uid://c7f67h6nku648" path="res://assets/sounds/walking/heavy/heavy walk (running)-008.wav" id="22_3dxkp"] +[ext_resource type="AudioStream" uid="uid://c8u0gtqif3l8r" path="res://assets/sounds/walking/heavy/heavy walk (running)-009.wav" id="23_6wior"] +[ext_resource type="AudioStream" uid="uid://ctcakfvx6yigv" path="res://assets/sounds/walking/heavy/heavy walk (running)-010.wav" id="24_p5tca"] +[ext_resource type="AudioStream" uid="uid://1gvocom5hcqb" path="res://assets/sounds/walking/heavy/heavy walk (running)-011.wav" id="25_jbx34"] +[ext_resource type="AudioStream" uid="uid://eem1vc06eh2m" path="res://assets/sounds/walking/heavy/heavy walk (running)-012.wav" id="26_s3g0c"] +[ext_resource type="AudioStream" uid="uid://dus2sgrtq31fe" path="res://assets/sounds/walking/heavy/heavy walk (running)-013.wav" id="27_35wys"] +[ext_resource type="AudioStream" uid="uid://dlw5s82kg8bax" path="res://assets/sounds/walking/heavy/heavy walk (running)-014.wav" id="28_pjwc4"] +[ext_resource type="AudioStream" uid="uid://bfhcv3jnnpf7e" path="res://assets/sounds/walking/heavy/heavy walk (running)-015.wav" id="29_or4qq"] +[ext_resource type="AudioStream" uid="uid://dtb44117yp5pf" path="res://assets/sounds/walking/heavy/heavy walk (running)-016.wav" id="30_hggc2"] +[ext_resource type="AudioStream" uid="uid://d11n1qlwjjtgk" path="res://assets/sounds/walking/light/light walk-001.wav" id="31_b2j0d"] +[ext_resource type="AudioStream" uid="uid://bt6fd43j67a7a" path="res://assets/sounds/walking/light/light walk-002.wav" id="32_7l6ig"] +[ext_resource type="AudioStream" uid="uid://byltouohmnamp" path="res://assets/sounds/walking/light/light walk-003.wav" id="33_j3r50"] +[ext_resource type="AudioStream" uid="uid://bttnajyewet2i" path="res://assets/sounds/walking/light/light walk-004.wav" id="34_utr5e"] +[ext_resource type="AudioStream" uid="uid://djnn2ndppw6n8" path="res://assets/sounds/walking/light/light walk-005.wav" id="35_kewli"] +[ext_resource type="AudioStream" uid="uid://bd37wmum0boqa" path="res://assets/sounds/walking/light/light walk-006.wav" id="36_do7qw"] +[ext_resource type="AudioStream" uid="uid://bv8puyd54wmly" path="res://assets/sounds/walking/light/light walk-007.wav" id="37_2h6tc"] +[ext_resource type="AudioStream" uid="uid://dbnek0vsfwyk5" path="res://assets/sounds/walking/light/light walk-008.wav" id="38_8rogd"] +[ext_resource type="AudioStream" uid="uid://cav2wgpvselrg" path="res://assets/sounds/walking/light/light walk-009.wav" id="39_48p26"] +[ext_resource type="AudioStream" uid="uid://bsqgdsmwt1ovp" path="res://assets/sounds/walking/light/light walk-010.wav" id="40_anp34"] +[ext_resource type="AudioStream" uid="uid://hr4k5gsmbqgj" path="res://assets/sounds/walking/light/light walk-011.wav" id="41_jdjat"] +[ext_resource type="AudioStream" uid="uid://d17j6w4t2qkai" path="res://assets/sounds/walking/light/light walk-012.wav" id="42_j420s"] +[ext_resource type="AudioStream" uid="uid://b3dynes8om0be" path="res://assets/sounds/walking/light/light walk-013.wav" id="43_kcq4v"] +[ext_resource type="AudioStream" uid="uid://bw8dt5rd8j50y" path="res://assets/sounds/walking/shuffle/csoszogás-001.wav" id="44_qavcc"] +[ext_resource type="AudioStream" uid="uid://dkxliin18sua2" path="res://assets/sounds/walking/shuffle/csoszogás-002.wav" id="45_bd26m"] +[ext_resource type="AudioStream" uid="uid://cijtqpij23hyd" path="res://assets/sounds/walking/shuffle/csoszogás-003.wav" id="46_lufic"] +[ext_resource type="AudioStream" uid="uid://tmflo6rp0cu4" path="res://assets/sounds/walking/shuffle/csoszogás-004.wav" id="47_nxclr"] +[ext_resource type="AudioStream" uid="uid://c3bl5rkqf1dn7" path="res://assets/sounds/walking/shuffle/csoszogás-005.wav" id="48_onxu2"] +[ext_resource type="AudioStream" uid="uid://cueon12gi7jeh" path="res://assets/sounds/walking/shuffle/csoszogás-006.wav" id="49_gci7n"] +[ext_resource type="AudioStream" uid="uid://ccospbyrg6sb1" path="res://assets/sounds/walking/shuffle/csoszogás-007.wav" id="50_tcwf7"] +[ext_resource type="AudioStream" uid="uid://bii7gnp5a2ytj" path="res://assets/sounds/flashlight/flashlight-click-001.wav" id="51_pjwc4"] +[ext_resource type="AudioStream" uid="uid://dpydqsettcowx" path="res://assets/sounds/flashlight/flashlight-click-002.wav" id="52_or4qq"] +[ext_resource type="AudioStream" uid="uid://dumse20g0tt21" path="res://assets/sounds/flashlight/flashlight-click-003.wav" id="53_hggc2"] +[ext_resource type="AudioStream" uid="uid://bxebqhgkkeqhp" path="res://assets/sounds/flashlight/flashlight-click-005.wav" id="55_7l6ig"] +[ext_resource type="AudioStream" uid="uid://ctmut3x6w0sj1" path="res://assets/sounds/flashlight/flashlight-click-006.wav" id="56_j3r50"] +[ext_resource type="AudioStream" uid="uid://dsgr417h5gcn0" path="res://assets/sounds/flashlight/flashlight-click-009.wav" id="59_do7qw"] +[ext_resource type="PackedScene" uid="uid://c02fkimxlbrje" path="res://player/grab_prompt.tscn" id="59_p5tca"] +[ext_resource type="AudioStream" uid="uid://b8ppwr5vwhej0" path="res://assets/sounds/flashlight/flashlight-click-011.wav" id="61_8rogd"] +[ext_resource type="AudioStream" uid="uid://dlyhi0c2bw5b2" path="res://assets/sounds/flashlight/flashlight-click-012.wav" id="62_48p26"] +[ext_resource type="Script" uid="uid://y8x4svl5kej2" path="res://addons/spatial_audio_3d/spatial_audio_3d.gd" id="62_jbx34"] + +[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_g4v7s"] + +[sub_resource type="CylinderShape3D" id="CylinderShape3D_g4v7s"] +radius = 0.04638672 + +[sub_resource type="Curve" id="Curve_3gngh"] +_data = [Vector2(0, 1), 0.0, 0.0, 0, 0] +point_count = 1 + +[sub_resource type="Curve" id="Curve_fcnqv"] +_data = [Vector2(0.6145833, 1), 0.0, 0.0, 0, 0] +point_count = 1 + +[sub_resource type="Curve" id="Curve_7numd"] +_data = [Vector2(0.6145833, 1), 0.0, 0.0, 0, 0] +point_count = 1 + +[sub_resource type="CurveXYZTexture" id="CurveXYZTexture_d0u6y"] +curve_x = SubResource("Curve_3gngh") +curve_y = SubResource("Curve_fcnqv") +curve_z = SubResource("Curve_7numd") + +[node name="Player" type="CharacterBody3D" unique_id=423228143] +collision_layer = 16 +collision_mask = 16 +script = ExtResource("1_eqqp1") +NORMAL_FOOTSTEP_SOUNDS = Array[AudioStreamWAV]([ExtResource("2_32hag"), ExtResource("3_tqiix"), ExtResource("4_e7oew"), ExtResource("5_c35mf"), ExtResource("6_65viv"), ExtResource("7_x7c3f"), ExtResource("8_bjvpn"), ExtResource("9_s7qer"), ExtResource("10_g4c7l"), ExtResource("11_knn7v"), ExtResource("12_7pqkx"), ExtResource("13_uw77l"), ExtResource("14_rptt4")]) +HEAVY_FOOTSTEP_SOUNDS = Array[AudioStreamWAV]([ExtResource("15_n0b8q"), ExtResource("16_jfgyi"), ExtResource("17_237xx"), ExtResource("18_wpyo2"), ExtResource("19_7crtr"), ExtResource("20_vgvch"), ExtResource("21_a1u5o"), ExtResource("22_3dxkp"), ExtResource("23_6wior"), ExtResource("24_p5tca"), ExtResource("25_jbx34"), ExtResource("26_s3g0c"), ExtResource("27_35wys"), ExtResource("28_pjwc4"), ExtResource("29_or4qq"), ExtResource("30_hggc2")]) +LIGHT_FOOTSTEP_SOUNDS = Array[AudioStreamWAV]([ExtResource("31_b2j0d"), ExtResource("32_7l6ig"), ExtResource("33_j3r50"), ExtResource("34_utr5e"), ExtResource("35_kewli"), ExtResource("36_do7qw"), ExtResource("37_2h6tc"), ExtResource("38_8rogd"), ExtResource("39_48p26"), ExtResource("40_anp34"), ExtResource("41_jdjat"), ExtResource("42_j420s"), ExtResource("43_kcq4v")]) +SHUFFLE_FOOTSTEP_SOUNDS = Array[AudioStreamWAV]([ExtResource("44_qavcc"), ExtResource("45_bd26m"), ExtResource("46_lufic"), ExtResource("47_nxclr"), ExtResource("48_onxu2"), ExtResource("49_gci7n"), ExtResource("50_tcwf7")]) +FLASHLIGHT_CLICK_SOUNDS = Array[AudioStreamWAV]([ExtResource("51_pjwc4"), ExtResource("52_or4qq"), ExtResource("53_hggc2"), ExtResource("55_7l6ig"), ExtResource("56_j3r50"), ExtResource("59_do7qw"), ExtResource("61_8rogd"), ExtResource("62_48p26")]) +GRAB_PANEL = ExtResource("59_p5tca") + +[node name="PlayerHitBox" type="CollisionShape3D" parent="." unique_id=1513955228] +shape = SubResource("CapsuleShape3D_g4v7s") + +[node name="CameraPivot" type="Node3D" parent="." unique_id=963377832] + +[node name="PlayerCamera" type="Camera3D" parent="CameraPivot" unique_id=303347613] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.75045073, 0) +current = true + +[node name="Flashlight" type="SpotLight3D" parent="CameraPivot/PlayerCamera" unique_id=1036641941] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.025482714, 0.16212702, -0.019012451) +light_color = Color(0.97844106, 0.88945234, 0, 1) +light_indirect_energy = 3.519 +light_volumetric_fog_energy = 10.481 +spot_range = 14.185074 +spot_attenuation = 0.63 +spot_angle = 18.581459 +spot_angle_attenuation = 1.9318668 + +[node name="CursorRaycast" type="RayCast3D" parent="CameraPivot/PlayerCamera" unique_id=1978798208] +transform = Transform3D(1, 0, 0, 0, -4.371139e-08, -1, 0, 1, -4.371139e-08, 0, 0, 0) +target_position = Vector3(0, -2, 0) + +[node name="HoldPosition" type="Marker3D" parent="CameraPivot/PlayerCamera" unique_id=425231379] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -1.5698267) + +[node name="GrabbableFinder" type="Area3D" parent="CameraPivot/PlayerCamera" unique_id=988433915] + +[node name="GrabbableFinderShape" type="CollisionShape3D" parent="CameraPivot/PlayerCamera/GrabbableFinder" unique_id=1432103460] +transform = Transform3D(1, 0, 0, 0, -4.371139e-08, -1, 0, 1, -4.371139e-08, 0, 0, -1) +shape = SubResource("CylinderShape3D_g4v7s") + +[node name="PlayerListener" type="AudioListener3D" parent="CameraPivot" unique_id=1468948553] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.7621309, 0) +doppler_tracking = 2 +current = true + +[node name="PlayerUi" parent="." unique_id=454848358 instance=ExtResource("2_rkbax")] + +[node name="InGameMenu" parent="." unique_id=1952418949 instance=ExtResource("3_g1dw6")] +visible = false + +[node name="PopupPanels" type="Control" parent="." unique_id=305048227] +layout_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +mouse_filter = 2 + +[node name="Cursor" type="TextureRect" parent="." unique_id=785138925] +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = -20.0 +offset_top = -20.0 +offset_right = 20.0 +offset_bottom = 20.0 +grow_horizontal = 2 +grow_vertical = 2 +offset_transform_enabled = true +offset_transform_scale = Vector2(0.345, 0.345) +texture = SubResource("CurveXYZTexture_d0u6y") +expand_mode = 1 + +[node name="StaminaReset" type="Timer" parent="." unique_id=1815815085] +wait_time = 2.0 +one_shot = true + +[node name="SoundEmitters" type="Node3D" parent="." unique_id=661429541] + +[node name="LeftFoot" type="AudioStreamPlayer3D" parent="SoundEmitters" unique_id=49863314] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.43042383, -0.90646136, 0) +area_mask = 17 +doppler_tracking = 2 +script = ExtResource("62_jbx34") +bass_proximity = 0 +max_raycast_distance = 200 +roomsize_multiplicator = 20.0 +debug = true +metadata/_custom_type_script = "uid://y8x4svl5kej2" + +[node name="LeftFootTexture" type="AudioStreamPlayer3D" parent="SoundEmitters/LeftFoot" unique_id=368492] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.032262772, 0.019309282, 0) +area_mask = 17 +script = ExtResource("62_jbx34") +bass_proximity = 0 +max_raycast_distance = 200 +roomsize_multiplicator = 20.0 +debug = true +metadata/_custom_type_script = "uid://y8x4svl5kej2" + +[node name="RightFoot" type="AudioStreamPlayer3D" parent="SoundEmitters" unique_id=622217520] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.3428033, -0.8860581, 0) +area_mask = 17 +script = ExtResource("62_jbx34") +bass_proximity = 0 +max_raycast_distance = 200 +roomsize_multiplicator = 20.0 +debug = true +metadata/_custom_type_script = "uid://y8x4svl5kej2" + +[node name="RightFootTexture" type="AudioStreamPlayer3D" parent="SoundEmitters/RightFoot" unique_id=721446442] +area_mask = 17 +script = ExtResource("62_jbx34") +bass_proximity = 0 +max_raycast_distance = 200 +roomsize_multiplicator = 20.0 +debug = true +metadata/_custom_type_script = "uid://y8x4svl5kej2" + +[node name="FlashlightSound" type="AudioStreamPlayer3D" parent="SoundEmitters" unique_id=1011459854] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.53598464, 0) +max_polyphony = 3 +area_mask = 17 +script = ExtResource("62_jbx34") +bass_proximity = 0 +max_raycast_distance = 200 +roomsize_multiplicator = 20.0 +debug = true +metadata/_custom_type_script = "uid://y8x4svl5kej2" + +[connection signal="body_entered" from="CameraPivot/PlayerCamera/GrabbableFinder" to="." method="_on_grabbable_finder_body_entered"] +[connection signal="body_exited" from="CameraPivot/PlayerCamera/GrabbableFinder" to="." method="_on_grabbable_finder_body_exited"] +[connection signal="timeout" from="StaminaReset" to="." method="_on_stamina_reset_timeout"] diff --git a/player/player_manager.gd b/player/player_manager.gd new file mode 100644 index 0000000..2898516 --- /dev/null +++ b/player/player_manager.gd @@ -0,0 +1,419 @@ +extends CharacterBody3D +class_name PlayerCharacter + +@export_category("Movement") +@export var SPEED = 5.0 ##base walking speed +@export var SPRINT_MULTIPLIER = 1.5 ##how much faster should you move, when sprinting +@export var SPRINT_STAMINA_COST = 10.0 ##how much stamina should be consumed each frame while sprinting (delta * SPRINT_STAMINA_COST) +@export var CROUCH_SPEED_MULTIPLIER = .5 ##how much slower you should be going while crouching + +@export_category("Jump") +@export var JUMP_VELOCITY = 4.5 ##how high you can jump +@export var JUMP_STAMINA_COST = 10 ##how much stamina each jump consumes + +@export_category("Camera") +@export var LOOK_SENSITIVITY = 1.0 ##camera sensitivity +@export var CAMERA_VELOCITY_MULTIPLIER = 1.5 ##how heavy should the UI movement feel +@export var CAMERA_BOB_FREQUENCY = 2.4 ##how quick the camera bobs whilst moving +@export var CAMERA_BOB_AMPLITUDE = 0.08 ##how hard the camera bobs whilst moving +@export var CAMERA_BOB_MULTIPLIER = 200.0 ##how much the ui reacts to head bobbing +@export var CAMERA_SIDEWAYS_BOB_AMPLITUDE = 0.003 ## how many degrees does the camera bob sideways + +@export_category("UI") +@export var UI_SCALE: float = 1 ##rational scale of the ui +@export var UI_MOVEMENT_SENSITIVITY = 0.5 ##how much the UI moves when you move the camera +@export var UI_MOVEMENT_SPEED = 15.0 ##how fast the UI moves when you move the camera +@export var UI_MOVEMENT_VELOCITY_MULTIPLIER = 2.0 ##how much the ui leans when walking or strafing + +@export_category("Inventory") +@export var INVENTORY_MAX = 3 ##max number of items that can be in the player's inventory +@export var INVENTORY_ITEMS: Array = [] ##the items in the player's inventory + +@export_category("Audio") +@export var AUDIO_LOUDNESS: float = 100.0 +@export var NORMAL_FOOTSTEP_SOUNDS: Array[AudioStreamWAV] ##normal footsteps -- walking +@export var HEAVY_FOOTSTEP_SOUNDS: Array[AudioStreamWAV] ##heavy footsteps -- running +@export var LIGHT_FOOTSTEP_SOUNDS: Array[AudioStreamWAV] ##light footsteps -- crouching +@export var SHUFFLE_FOOTSTEP_SOUNDS: Array[AudioStreamWAV] ##shuffling -- random chance of playing while running +@export var FLASHLIGHT_CLICK_SOUNDS: Array[AudioStreamWAV] ##flashlight click +@export var SHUFFLE_CHANCE: float = 20 ##percentage of chance for a shuffle noise to be played whilst running + +@export_category("Grabbing") +@export var GRAB_POWER: float = 15.0 ##how fast the grabbed object snaps to the hold position +@export var GRAB_ROTATION_POWER: float = 15.0 ##how fast the object rotates towards the player +@export var GRAB_PANEL: PackedScene ##panel that goes over the grabbable object to show its grabbable + +@export_category("Player Physics") +@export_flags_3d_physics var PLAYER_COLLISION_MASK: int = 16 + +@onready var camera = $CameraPivot/PlayerCamera +@onready var camera_pivot = $CameraPivot +@onready var ui = $PlayerUi +@onready var ui_base_position = ui.position +@onready var in_game_menu = $InGameMenu +@onready var left_foot_sound_player = $SoundEmitters/LeftFoot +@onready var left_foot_texture_sound_player = $SoundEmitters/LeftFoot/LeftFootTexture +@onready var right_foot_sound_player = $SoundEmitters/RightFoot +@onready var right_foot_texture_sound_player = $SoundEmitters/RightFoot/RightFootTexture +@onready var flashlight_sound_player = $SoundEmitters/FlashlightSound +@onready var cursor_raycast = $CameraPivot/PlayerCamera/CursorRaycast +@onready var hold_position = $CameraPivot/PlayerCamera/HoldPosition +@onready var popup_panels = $PopupPanels + +var walking: bool = false +var running: bool = false +var crouching: bool = false +var in_menu: bool = false +var stamina: float = 100.0 +var stamina_recharge_on: bool = false +var selected_item: int = 0 +var t_bob: float = 0 +var last_bob_y: float = 0.0 +var held_object: RigidBody3D = null + +var _mouse_motion: Vector2 = Vector2.ZERO +var _mouse_motion_delta: Vector2 = Vector2.ZERO +var _last_camera_global_position: Vector3 = Vector3.ZERO +var _current_leg_is_right: bool = false ##if true: current leg is the right leg +var _current_footstep_sound: AudioStreamWAV = null +var _current_flashlight_sound: AudioStreamWAV = null +var _camera_original_position: Vector3 = Vector3(0,.75,0) + +func play_footstep_sound(): + var sound_to_play + if walking: + sound_to_play = NORMAL_FOOTSTEP_SOUNDS.pick_random() + while sound_to_play == _current_footstep_sound: + sound_to_play = NORMAL_FOOTSTEP_SOUNDS.pick_random() + elif running: + sound_to_play = HEAVY_FOOTSTEP_SOUNDS.pick_random() + while sound_to_play == _current_footstep_sound: + sound_to_play = HEAVY_FOOTSTEP_SOUNDS.pick_random() + if randf_range(1, 100) > 100 - SHUFFLE_CHANCE: + match _current_leg_is_right: + true: + right_foot_texture_sound_player.do_set_stream(SHUFFLE_FOOTSTEP_SOUNDS.pick_random()) + right_foot_texture_sound_player.do_play() + false: + left_foot_texture_sound_player.do_set_stream(SHUFFLE_FOOTSTEP_SOUNDS.pick_random()) + left_foot_texture_sound_player.do_play() + + elif crouching: + sound_to_play = LIGHT_FOOTSTEP_SOUNDS.pick_random() + while sound_to_play == _current_footstep_sound: + sound_to_play = LIGHT_FOOTSTEP_SOUNDS.pick_random() + + _current_footstep_sound = sound_to_play + + if _current_leg_is_right: + right_foot_sound_player.do_set_stream(sound_to_play) + right_foot_sound_player.pitch_scale = randf_range(0.8, 1.2) + right_foot_sound_player.do_play() + _current_leg_is_right = false + else: + left_foot_sound_player.do_set_stream(sound_to_play) + left_foot_sound_player.pitch_scale = randf_range(0.8, 1.2) + left_foot_sound_player.do_play() + _current_leg_is_right = true + +func ui_handling(delta): + ui.offset_transform_scale *= UI_SCALE + ui_movement_handling(delta) + ui.set_stamina_bar(stamina) + var horizontal_speed = Vector3(velocity.x, velocity.y, velocity.z).length() + + if is_on_floor() and horizontal_speed > 0.05: + t_bob += delta * (velocity.length() * float(is_on_floor()) + (int(Input.is_action_pressed("crouch"))) * 3) + + var current_sin_pos = sin(t_bob * CAMERA_BOB_FREQUENCY) + + #footstep handling + if last_bob_y >= -.95 and current_sin_pos < -.95: + play_footstep_sound() + + last_bob_y = current_sin_pos + + camera_bobbing(t_bob) + + #idle breathing + elif is_on_floor() and horizontal_speed < 0.05: + t_bob += delta * 1 + camera_breathing(t_bob) + else: + camera.rotation.z = lerpf(camera.rotation.z,0, delta * 0.004) + camera.transform.origin.y = lerpf(camera.transform.origin.y, _camera_original_position.y, delta * 5.0) + if camera.transform.origin.length() < 0.01: + t_bob = 0 + last_bob_y = 0.0 + +func ui_movement_handling(delta: float): + var mouse_offset = -_mouse_motion_delta * UI_MOVEMENT_SENSITIVITY + + var current_camera_global_position = camera.global_position + var camera_global_velocity = (current_camera_global_position - _last_camera_global_position) / delta + + var cam_local_vel = camera.global_transform.basis.inverse() * camera_global_velocity + + var inertia_offset = Vector2( + -cam_local_vel.x, + cam_local_vel.y - (cam_local_vel.z * 0.25) + ) * CAMERA_VELOCITY_MULTIPLIER + + var target_offset = mouse_offset + inertia_offset + ui.position = ui.position.lerp(ui_base_position + target_offset, delta * UI_MOVEMENT_SPEED) + + _last_camera_global_position = current_camera_global_position + + var ui_scaling_target = Vector2(-cam_local_vel.z * UI_MOVEMENT_SENSITIVITY * .002 + 1, -cam_local_vel.z * UI_MOVEMENT_SENSITIVITY * .002 + 1) + ui.offset_transform_scale = ui.offset_transform_scale.lerp(ui_scaling_target, delta * UI_MOVEMENT_SPEED) + + var ui_rotation_target = -inertia_offset.x - mouse_offset.x * 0.25 + ui.offset_transform_rotation = lerpf(ui.offset_transform_rotation, ui_rotation_target * UI_MOVEMENT_SENSITIVITY * 0.003, delta * UI_MOVEMENT_SPEED) + +func toggle_menu(): + if !in_game_menu.visible: + ui.visible = false + popup_panels.visible = false + in_game_menu.visible = true + $Cursor.visible = false + Input.mouse_mode = Input.MOUSE_MODE_VISIBLE + in_menu = true + else: + ui.visible = true + popup_panels.visible = true + in_game_menu.visible = false + $Cursor.visible = true + Input.mouse_mode = Input.MOUSE_MODE_CAPTURED + in_menu = false + +func toggle_flashlight(): + $CameraPivot/PlayerCamera/Flashlight.visible = not $CameraPivot/PlayerCamera/Flashlight.visible + var play_sound = FLASHLIGHT_CLICK_SOUNDS.pick_random() + + while play_sound == _current_flashlight_sound: + play_sound = FLASHLIGHT_CLICK_SOUNDS.pick_random() + + flashlight_sound_player.do_set_stream(play_sound) + flashlight_sound_player.pitch_scale = randf_range(.8, 1.2) + flashlight_sound_player.do_play() + _current_flashlight_sound = play_sound + +func camera_bobbing(time: float): + camera.transform.origin.y = sin(time * CAMERA_BOB_FREQUENCY) * CAMERA_BOB_AMPLITUDE + .75 + camera.rotation.z += sin(time * CAMERA_BOB_FREQUENCY * .5) * CAMERA_SIDEWAYS_BOB_AMPLITUDE + +func camera_breathing(time: float): + camera.transform.origin.y = sin(time * CAMERA_BOB_FREQUENCY) * CAMERA_BOB_AMPLITUDE + .75 + camera.rotation.x += sin(time * CAMERA_BOB_FREQUENCY) * CAMERA_SIDEWAYS_BOB_AMPLITUDE + +func _process(delta: float) -> void: + if Input.is_action_just_pressed("next_item"): + next_item() + + if Input.is_action_just_pressed("prev_item"): + prev_item() + + if Input.is_action_just_pressed("select_item_1"): + select_item(0) + + if Input.is_action_just_pressed("select_item_2"): + select_item(1) + + if Input.is_action_just_pressed("select_item_3"): + select_item(2) + + if stamina_recharge_on: + stamina = move_toward(stamina, 100, .5) + + _mouse_motion.y = clamp(_mouse_motion.y, -1560, 1560) + transform.basis = Basis.from_euler(Vector3(0, _mouse_motion.x * -0.001 * LOOK_SENSITIVITY, 0)) + camera.transform.basis = lerp(camera.transform.basis, Basis.from_euler(Vector3(_mouse_motion.y * -0.001 * LOOK_SENSITIVITY, 0, 0)), delta * 10) + + #handle grabbable panel + if grabbable_panel != null: + var target_position = $Cursor.position - camera.unproject_position(grabbable_panel_body.global_position) + grabbable_panel.position = grabbable_panel.position.lerp(-target_position / 2, delta * 50) + +func _init() -> void: + Input.mouse_mode = Input.MOUSE_MODE_CAPTURED + +func _ready() -> void: + ui.select_item(0) + _last_camera_global_position = camera.global_position + +func next_item(): + if selected_item + 1 > INVENTORY_MAX - 1: + selected_item = 0 + else: + selected_item += 1 + ui.select_item(selected_item) + +func prev_item(): + if selected_item - 1 < 0: + selected_item = INVENTORY_MAX - 1 + else: + selected_item -= 1 + ui.select_item(selected_item) + +func select_item(index: int): + selected_item = index + ui.select_item(index) + +func _input(event): + if Input.is_action_just_pressed("open_menu"): + toggle_menu() + + if not in_menu: + if event is InputEventMouseMotion: + if Input.get_mouse_mode() == Input.MOUSE_MODE_CAPTURED: + _mouse_motion += event.relative + _mouse_motion_delta = event.relative + + if Input.is_action_just_pressed("flashlight"): + toggle_flashlight() + + if Input.is_action_just_released("jump") or Input.is_action_just_released("sprint"): + $StaminaReset.start() + + if Input.is_action_just_pressed("grab"): + if cursor_raycast.is_colliding(): + var hit_object = cursor_raycast.get_collider() + + if hit_object is RigidBody3D and hit_object.is_in_group("grabbable"): + held_object = hit_object + held_object.gravity_scale = 0.0 + held_object.angular_damp = 5.0 + popup_panels.visible = false + + if Input.is_action_just_released("grab") and held_object != null: + held_object.gravity_scale = 1.0 + held_object.angular_damp = 0.0 + held_object = null + popup_panels.visible = true + +func is_crouched(yes:bool): + if yes: + crouching = true + walking = false + running = false + else: + crouching = false + +func is_walking(yes:bool): + if yes: + crouching = false + walking = true + running = false + else: + walking = false + +func is_running(yes:bool): + if yes: + crouching = false + walking = false + running = true + else: + running = false + + +func _physics_process(delta: float) -> void: + if not is_on_floor(): + velocity += get_gravity() * delta + + if not in_menu: + if Input.is_action_just_pressed("jump") and is_on_floor() and stamina > JUMP_STAMINA_COST: + velocity.y = JUMP_VELOCITY + stamina -= JUMP_STAMINA_COST + stamina_recharge_on = false + + var input_dir = Input.get_vector("left", "right", "forward", "backward") + #var direction = (transform.basis * Vector3(input_dir.x, 0, input_dir.y)).normalized() + var lean_dir = -Input.get_axis("lean_left", "lean_right") * .1 + + if lean_dir: + camera_pivot.rotation.z = lerpf(camera_pivot.rotation.z, lean_dir, delta*10) + camera_pivot.position.x = lerpf(camera_pivot.position.x, -lean_dir * 5, delta * 7) + else: + camera_pivot.rotation.z = lerpf(camera_pivot.rotation.z, 0, delta*10) + camera_pivot.position.x = lerpf(camera_pivot.position.x, 0, delta * 7) + + var target_speed = SPEED + var is_moving = input_dir != Vector2.ZERO + + if Input.is_action_pressed("crouch"): + $PlayerHitBox.shape.height = lerpf($PlayerHitBox.shape.height, .5, delta * 5) + target_speed *= CROUCH_SPEED_MULTIPLIER + is_crouched(true) + else: + $PlayerHitBox.shape.height = lerpf($PlayerHitBox.shape.height, 2, delta * 10) + is_crouched(false) + + if Input.is_action_pressed("sprint") and stamina > 0: + target_speed *= SPRINT_MULTIPLIER + is_running(true) + stamina -= delta * SPRINT_STAMINA_COST + stamina_recharge_on = false + else: + is_running(false) + + + #apply motion + var local_vel = transform.basis.inverse() * velocity + var target_local_vel = Vector3(input_dir.x, 0, input_dir.y) * target_speed + var accel_rate = 6.0 if is_moving else 9.0 + local_vel.x = lerpf(local_vel.x, target_local_vel.x, delta * accel_rate) + local_vel.z = lerpf(local_vel.z, target_local_vel.z, delta * accel_rate) + + var global_horizontal = transform.basis * local_vel + velocity.x = global_horizontal.x + velocity.z = global_horizontal.z + + if is_moving and not running and not crouching: + is_walking(true) + else: + is_walking(false) + + ui_handling(delta) + + #handle grabbed object + if held_object != null: + var target_pos = hold_position.global_position + var current_pos = held_object.global_position + var direction = target_pos - current_pos + + held_object.linear_velocity = direction * GRAB_POWER + + var current_quat = held_object.global_transform.basis.get_rotation_quaternion() + var target_quat = hold_position.global_transform.basis.get_rotation_quaternion() + + var delta_quat = target_quat * current_quat.inverse() + var angle = delta_quat.get_angle() + var axis = delta_quat.get_axis() + + if angle > PI: + angle -= TAU + + held_object.angular_velocity = axis * angle * GRAB_ROTATION_POWER + else: + velocity.x = lerpf(velocity.x, 0, delta * 10) + velocity.z = lerpf(velocity.z, 0, delta * 10) + + move_and_slide() + +func _on_stamina_reset_timeout() -> void: + stamina_recharge_on = true + +var grabbable_panel = null +var grabbable_panel_body = null + +func _on_grabbable_finder_body_entered(body: Node3D) -> void: + if body.is_in_group("grabbable"): + grabbable_panel = GRAB_PANEL.instantiate() + popup_panels.add_child(grabbable_panel) + grabbable_panel_body = body + +func _on_grabbable_finder_body_exited(body: Node3D) -> void: + if body == grabbable_panel_body: + popup_panels.remove_child(grabbable_panel) + grabbable_panel = null + grabbable_panel_body = null diff --git a/player/player_manager.gd.uid b/player/player_manager.gd.uid new file mode 100644 index 0000000..4e1cd12 --- /dev/null +++ b/player/player_manager.gd.uid @@ -0,0 +1 @@ +uid://l2rc674shj03 diff --git a/player/player_ui.tscn b/player/player_ui.tscn new file mode 100644 index 0000000..fd211d9 --- /dev/null +++ b/player/player_ui.tscn @@ -0,0 +1,69 @@ +[gd_scene format=3 uid="uid://bsccbqq04umeg"] + +[ext_resource type="Script" uid="uid://lkb0o8too0mj" path="res://player/player_ui_manager.gd" id="1_n215f"] + +[node name="PlayerUi" type="Control" unique_id=454848358] +layout_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +offset_transform_enabled = true +script = ExtResource("1_n215f") + +[node name="StaminaBar" type="ProgressBar" parent="." unique_id=1844702202] +layout_mode = 1 +anchors_preset = -1 +anchor_left = 0.05 +anchor_top = 0.91 +anchor_right = 0.2 +anchor_bottom = 0.95 +grow_vertical = 0 +rotation = -0.39618975 +offset_transform_enabled = true +show_percentage = false + +[node name="InventoryPanels" type="HBoxContainer" parent="." unique_id=786436241] +layout_mode = 1 +anchors_preset = -1 +anchor_left = 0.35 +anchor_top = 0.9 +anchor_right = 0.65 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 0 +offset_transform_enabled = true +offset_transform_position = Vector2(0, -29.25) +offset_transform_visual_only = false +alignment = 1 + +[node name="Inv1" type="AspectRatioContainer" parent="InventoryPanels" unique_id=1895925047] +layout_mode = 2 +size_flags_horizontal = 3 + +[node name="InvSlot1" type="ColorRect" parent="InventoryPanels/Inv1" unique_id=497482827] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 3 +color = Color(0.23921569, 0.23921569, 0.23921569, 0.47058824) + +[node name="Inv2" type="AspectRatioContainer" parent="InventoryPanels" unique_id=352737813] +layout_mode = 2 +size_flags_horizontal = 3 + +[node name="InvSlot2" type="ColorRect" parent="InventoryPanels/Inv2" unique_id=340220249] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 3 +color = Color(0.23921569, 0.23921569, 0.23921569, 0.47058824) + +[node name="Inv3" type="AspectRatioContainer" parent="InventoryPanels" unique_id=263461479] +layout_mode = 2 +size_flags_horizontal = 3 + +[node name="InvSlot3" type="ColorRect" parent="InventoryPanels/Inv3" unique_id=398133665] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 3 +color = Color(0.23921569, 0.23921569, 0.23921569, 0.47058824) diff --git a/player/player_ui_manager.gd b/player/player_ui_manager.gd new file mode 100644 index 0000000..44d864e --- /dev/null +++ b/player/player_ui_manager.gd @@ -0,0 +1,31 @@ +extends Control + +@onready var stamina_bar = $StaminaBar +@onready var inventory_slots_panels: Array = [$InventoryPanels/Inv1/InvSlot1, $InventoryPanels/Inv2/InvSlot2, $InventoryPanels/Inv3/InvSlot3] +var inventory: Array = [null,null,null] + +var stamina: float = 100 +var selected_item: int = 0 + +const SELECTED_COLOR = 0xcfcfcf78 +const UNSELECTED_COLOR = 0x3d3d3d78 + +func set_stamina_bar(value:float): + stamina = value + +func get_selected_item() -> PackedScene: + return inventory[selected_item] + +func select_item(index: int): + inventory_slots_panels[selected_item].color = Color.hex(UNSELECTED_COLOR) + selected_item = index + inventory_slots_panels[index].color = Color.hex(SELECTED_COLOR) + +func put_item(index: int, item: PackedScene): + inventory[index] = item + +func _process(delta: float) -> void: + stamina_bar.value = lerpf(stamina_bar.value, stamina, delta * 5) + +func set_ui_scale(scale:float) -> void: + pass diff --git a/player/player_ui_manager.gd.uid b/player/player_ui_manager.gd.uid new file mode 100644 index 0000000..971dc22 --- /dev/null +++ b/player/player_ui_manager.gd.uid @@ -0,0 +1 @@ +uid://lkb0o8too0mj diff --git a/project.godot b/project.godot new file mode 100644 index 0000000..58c1265 --- /dev/null +++ b/project.godot @@ -0,0 +1,139 @@ +; 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 + +[accessibility] + +general/updates_per_second=100 + +[application] + +config/name="breadwinner" +config/features=PackedStringArray("4.7", "Forward Plus") +run/max_fps=60 +config/icon="res://icon.svg" + +[display] + +window/size/viewport_width=1920 +window/size/viewport_height=1080 +window/stretch/mode="canvas_items" +window/stretch/aspect="expand" + +[editor] + +version_control/plugin_name="GitPlugin" +version_control/autoload_on_startup=true + +[global_group] + +grabbable="this object can be grabbed" + +[input] + +forward={ +"deadzone": 0.2, +"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":87,"key_label":0,"unicode":119,"location":0,"echo":false,"script":null) +] +} +backward={ +"deadzone": 0.2, +"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":83,"key_label":0,"unicode":115,"location":0,"echo":false,"script":null) +] +} +left={ +"deadzone": 0.2, +"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":65,"key_label":0,"unicode":97,"location":0,"echo":false,"script":null) +] +} +right={ +"deadzone": 0.2, +"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":68,"key_label":0,"unicode":100,"location":0,"echo":false,"script":null) +] +} +jump={ +"deadzone": 0.2, +"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) +] +} +crouch={ +"deadzone": 0.2, +"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":4194326,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null) +] +} +sprint={ +"deadzone": 0.2, +"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":4194325,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null) +] +} +open_menu={ +"deadzone": 0.2, +"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":4194305,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null) +] +} +select_item_1={ +"deadzone": 0.2, +"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":49,"key_label":0,"unicode":49,"location":0,"echo":false,"script":null) +] +} +select_item_2={ +"deadzone": 0.2, +"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":50,"key_label":0,"unicode":50,"location":0,"echo":false,"script":null) +] +} +select_item_3={ +"deadzone": 0.2, +"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":51,"key_label":0,"unicode":51,"location":0,"echo":false,"script":null) +] +} +next_item={ +"deadzone": 0.2, +"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":8,"position":Vector2(139, 22),"global_position":Vector2(148, 70),"factor":1.0,"button_index":4,"canceled":false,"pressed":true,"double_click":false,"script":null) +] +} +prev_item={ +"deadzone": 0.2, +"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":16,"position":Vector2(101, 21),"global_position":Vector2(110, 69),"factor":1.0,"button_index":5,"canceled":false,"pressed":true,"double_click":false,"script":null) +] +} +lean_left={ +"deadzone": 0.2, +"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":81,"key_label":0,"unicode":113,"location":0,"echo":false,"script":null) +] +} +lean_right={ +"deadzone": 0.2, +"events": [null, 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":69,"key_label":0,"unicode":101,"location":0,"echo":false,"script":null) +] +} +flashlight={ +"deadzone": 0.2, +"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":70,"key_label":0,"unicode":102,"location":0,"echo":false,"script":null) +] +} +grab={ +"deadzone": 0.2, +"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(316, 15),"global_position":Vector2(325, 63),"factor":1.0,"button_index":1,"canceled":false,"pressed":true,"double_click":false,"script":null) +] +} + +[layer_names] + +3d_physics/layer_1="audio_layer" +3d_physics/layer_5="physics_layer" + +[physics] + +common/physics_jitter_fix=0.8 +3d/physics_engine="Jolt Physics" +common/physics_interpolation=true + +[rendering] + +rendering_device/driver.windows="d3d12"