Compare commits
8
Commits
fde10d8e80
...
develop
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b2ecc00d57 | ||
|
|
86434b26d5 | ||
|
|
cffc4de55f | ||
|
|
22413fabd5 | ||
|
|
85155df097 | ||
|
|
d70d4de95e | ||
|
|
bf1623d771 | ||
|
|
44e973f1f1 |
+15
-1
@@ -1,3 +1,17 @@
|
||||
# ---> Godot
|
||||
# Godot 4+ specific ignores
|
||||
.godot/
|
||||
/android/
|
||||
|
||||
# Godot-specific ignores
|
||||
.import/
|
||||
export.cfg
|
||||
export_presets.cfg
|
||||
|
||||
# Imported translations (automatically generated from CSV files)
|
||||
*.translation
|
||||
|
||||
# Mono-specific ignores
|
||||
.mono/
|
||||
data_*/
|
||||
mono_crash.*.json
|
||||
|
||||
|
||||
@@ -0,0 +1,117 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 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.
|
||||
|
||||
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 Lesser 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.
|
||||
|
||||
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.
|
||||
|
||||
one line to give the program's name and an idea of what it does. Copyright (C) yyyy name of author
|
||||
|
||||
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 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.
|
||||
|
||||
signature of Ty Coon, 1 April 1989 Ty Coon, President of Vice
|
||||
@@ -0,0 +1,7 @@
|
||||
# GrowlerFury
|
||||
|
||||
A PS1 styled Ace Combat game
|
||||
|
||||
|
||||
# Images
|
||||

|
||||
+26
-1
@@ -1,8 +1,33 @@
|
||||
extends Node
|
||||
|
||||
|
||||
enum FACTION {
|
||||
const debugging: bool = true
|
||||
|
||||
enum Faction {
|
||||
ALLIES,
|
||||
AXIS,
|
||||
NEUTRAL
|
||||
}
|
||||
|
||||
const FactionColor = {
|
||||
Faction.ALLIES: Color(0.281, 0.493, 0.989, 1.0),
|
||||
Faction.AXIS: Color(1.0, 0.274, 0.213, 1.0),
|
||||
Faction.NEUTRAL: Color(0.71, 0.584, 0.0, 1.0)
|
||||
}
|
||||
|
||||
enum ControlMode {
|
||||
CPU_MODE,
|
||||
PLAYER_MODE
|
||||
}
|
||||
|
||||
enum ControllerCommand {
|
||||
NONE,
|
||||
PITCH_UP,
|
||||
PITCH_DOWN,
|
||||
YAW_LEFT,
|
||||
YAW_RIGHT,
|
||||
ROLL_LEFT,
|
||||
ROLL_RIGHT,
|
||||
THROTTLE_UP,
|
||||
THROTTLE_DOWN
|
||||
}
|
||||
|
||||
@@ -1,17 +1,53 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://cx5ewmp2xcuia"]
|
||||
[gd_scene load_steps=11 format=3 uid="uid://cx5ewmp2xcuia"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bhjfvc7gkrvah" path="res://base_environment.tscn" id="1_80nbo"]
|
||||
[ext_resource type="PackedScene" uid="uid://dk32bn35qku60" path="res://scripts/factories/jet_factory.tscn" id="2_e2o6t"]
|
||||
[ext_resource type="PackedScene" uid="uid://nlwfoq6opqck" path="res://scripts/game_modes/game_mode.tscn" id="3_fc0e3"]
|
||||
[ext_resource type="PackedScene" uid="uid://dk32bn35qku60" path="res://scripts/controllers/factory_systems/factories/jet_factory.tscn" id="2_e2o6t"]
|
||||
[ext_resource type="PackedScene" uid="uid://d3br5pvjbv7gs" path="res://scripts/jets_collection.tscn" id="2_hve3p"]
|
||||
[ext_resource type="PackedScene" uid="uid://vcteetx5wu8r" path="res://scripts/controllers/controller_manager.tscn" id="2_j5wjh"]
|
||||
[ext_resource type="PackedScene" uid="uid://cn0pa8rp6uvue" path="res://scripts/controllers/factory_systems/factory_controller.tscn" id="2_ryrav"]
|
||||
[ext_resource type="PackedScene" uid="uid://nlwfoq6opqck" path="res://scripts/controllers/game_system/game_modes/game_mode.tscn" id="3_fc0e3"]
|
||||
[ext_resource type="PackedScene" uid="uid://cuqllmpojcml5" path="res://scripts/controllers/spawn_system/spawn_controller.tscn" id="4_7jktm"]
|
||||
[ext_resource type="PackedScene" uid="uid://bgrku2wvaadgg" path="res://scripts/controllers/spawn_system/spawner.tscn" id="5_ryrav"]
|
||||
[ext_resource type="PackedScene" uid="uid://ir8lwj1gx7m2" path="res://scripts/controllers/game_system/game_controller.tscn" id="7_vef74"]
|
||||
[ext_resource type="PackedScene" uid="uid://gb85fimcn0ya" path="res://scripts/controllers/cpu_system/cpu_controller.tscn" id="9_vef74"]
|
||||
|
||||
[node name="game" type="Node3D"]
|
||||
|
||||
[node name="base_environment" parent="." instance=ExtResource("1_80nbo")]
|
||||
|
||||
[node name="camera" type="Camera3D" parent="."]
|
||||
transform = Transform3D(0.15819459, -0.4996306, 0.85167116, 0, 0.8625322, 0.5060022, -0.987408, -0.08004681, 0.13644792, 347.69992, 152.14081, 113.71016)
|
||||
current = true
|
||||
far = 8000.0
|
||||
|
||||
[node name="jet_factory" parent="." instance=ExtResource("2_e2o6t")]
|
||||
[node name="jets_collection" parent="." instance=ExtResource("2_hve3p")]
|
||||
|
||||
[node name="game_mode" parent="." node_paths=PackedStringArray("jet_factory") instance=ExtResource("3_fc0e3")]
|
||||
jet_factory = NodePath("../jet_factory")
|
||||
[node name="controller_manager" parent="." instance=ExtResource("2_j5wjh")]
|
||||
|
||||
[node name="factory_controller" parent="controller_manager" node_paths=PackedStringArray("jets_collection") instance=ExtResource("2_ryrav")]
|
||||
jets_collection = NodePath("../../jets_collection")
|
||||
|
||||
[node name="jet_factory" parent="controller_manager/factory_controller" instance=ExtResource("2_e2o6t")]
|
||||
|
||||
[node name="spawn_controller" parent="controller_manager" node_paths=PackedStringArray("jet_factory", "jets_collection") instance=ExtResource("4_7jktm")]
|
||||
jet_factory = NodePath("../factory_controller/jet_factory")
|
||||
jets_collection = NodePath("../../jets_collection")
|
||||
|
||||
[node name="spawner" parent="controller_manager/spawn_controller" instance=ExtResource("5_ryrav")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 214.19254, 80.63972, 0)
|
||||
faction = 0
|
||||
|
||||
[node name="spawner2" parent="controller_manager/spawn_controller" instance=ExtResource("5_ryrav")]
|
||||
transform = Transform3D(0.4382143, 0, 0.8988705, 0, 1, 0, -0.8988705, 0, 0.4382143, 0, 100.550575, 0)
|
||||
faction = 1
|
||||
|
||||
[node name="spawner3" parent="controller_manager/spawn_controller" instance=ExtResource("5_ryrav")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 84.06215, 2.5178223, -76.95647)
|
||||
|
||||
[node name="game_controller" parent="controller_manager" node_paths=PackedStringArray("jets_collection") instance=ExtResource("7_vef74")]
|
||||
jets_collection = NodePath("../../jets_collection")
|
||||
|
||||
[node name="game_mode" parent="controller_manager/game_controller" instance=ExtResource("3_fc0e3")]
|
||||
|
||||
[node name="cpu_controller" parent="controller_manager" node_paths=PackedStringArray("jets_collection") instance=ExtResource("9_vef74")]
|
||||
jets_collection = NodePath("../../jets_collection")
|
||||
|
||||
@@ -2,16 +2,16 @@
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://mqg4u2yiiek4"
|
||||
path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"
|
||||
uid="uid://cgwcp3qtyvivw"
|
||||
path="res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://icon.svg"
|
||||
dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"]
|
||||
source_file="res://icon.png"
|
||||
dest_files=["res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
@@ -38,6 +38,3 @@ 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
|
||||
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128"><rect width="124" height="124" x="2" y="2" fill="#363d52" stroke="#212532" stroke-width="4" rx="14"/><g fill="#fff" transform="translate(12.322 12.322)scale(.101)"><path d="M105 673v33q407 354 814 0v-33z"/><path fill="#478cbf" d="m105 673 152 14q12 1 15 14l4 67 132 10 8-61q2-11 15-15h162q13 4 15 15l8 61 132-10 4-67q3-13 15-14l152-14V427q30-39 56-81-35-59-83-108-43 20-82 47-40-37-88-64 7-51 8-102-59-28-123-42-26 43-46 89-49-7-98 0-20-46-46-89-64 14-123 42 1 51 8 102-48 27-88 64-39-27-82-47-48 49-83 108 26 42 56 81zm0 33v39c0 276 813 276 814 0v-39l-134 12-5 69q-2 10-14 13l-162 11q-12 0-16-11l-10-65H446l-10 65q-4 11-16 11l-162-11q-12-3-14-13l-5-69z"/><path d="M483 600c0 34 58 34 58 0v-86c0-34-58-34-58 0z"/><circle cx="725" cy="526" r="90"/><circle cx="299" cy="526" r="90"/></g><g fill="#414042" transform="translate(12.322 12.322)scale(.101)"><circle cx="307" cy="532" r="60"/><circle cx="717" cy="532" r="60"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 995 B |
Binary file not shown.
|
After Width: | Height: | Size: 150 KiB |
@@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dd11x17pevytx"
|
||||
path="res://.godot/imported/pic1.png-2cb452e6176bac2697452b0452b58af8.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://images/pic1.png"
|
||||
dest_files=["res://.godot/imported/pic1.png-2cb452e6176bac2697452b0452b58af8.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
|
||||
+9
-7
@@ -10,11 +10,13 @@ config_version=5
|
||||
|
||||
[application]
|
||||
|
||||
config/name="Flight"
|
||||
config/name="GrowlerFury"
|
||||
config/description="A PS1 styled Ace Combat game"
|
||||
config/version="0.0.1"
|
||||
run/main_scene="uid://cx5ewmp2xcuia"
|
||||
config/features=PackedStringArray("4.5", "Forward Plus")
|
||||
boot_splash/show_image=false
|
||||
config/icon="res://icon.svg"
|
||||
boot_splash/image="uid://cbdpcrar6v1r7"
|
||||
config/icon="res://icon.png"
|
||||
|
||||
[autoload]
|
||||
|
||||
@@ -29,13 +31,13 @@ window/size/window_height_override=720
|
||||
|
||||
[input]
|
||||
|
||||
pull_up={
|
||||
pitch_up={
|
||||
"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)
|
||||
, 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":4194322,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
||||
]
|
||||
}
|
||||
push_down={
|
||||
pitch_down={
|
||||
"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)
|
||||
, 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":4194320,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
||||
@@ -44,13 +46,13 @@ push_down={
|
||||
yaw_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)
|
||||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":true,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194319,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
||||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":true,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194319,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
||||
]
|
||||
}
|
||||
yaw_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":69,"key_label":0,"unicode":101,"location":0,"echo":false,"script":null)
|
||||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":true,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194321,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
||||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":true,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194321,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
||||
]
|
||||
}
|
||||
roll_left={
|
||||
|
||||
+5
-8
@@ -1,11 +1,6 @@
|
||||
class_name Jet extends CharacterBody3D
|
||||
|
||||
|
||||
@export_enum(
|
||||
"CPU:0",
|
||||
"PLAYER:1"
|
||||
) var control_mode: int = JetController.CPU_MODE
|
||||
|
||||
@export_enum(
|
||||
"Allies:0",
|
||||
"Axis:1",
|
||||
@@ -16,6 +11,8 @@ class_name Jet extends CharacterBody3D
|
||||
@onready var controller: JetController = $controller
|
||||
|
||||
var control_frame: BaseJet = null
|
||||
var target: Jet = null
|
||||
var targeted_by: Jet = null
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
@@ -27,7 +24,7 @@ func _ready() -> void:
|
||||
#control_frame.do_action(action, delta, self)
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
var action = controller.process(delta)
|
||||
var action: Globals.ControllerCommand = controller.process(delta)
|
||||
|
||||
if action:
|
||||
control_frame.do_action(action, delta, self)
|
||||
@@ -44,8 +41,8 @@ func set_model(model: Node) -> void:
|
||||
|
||||
func set_as_player() -> void:
|
||||
camera.current = true
|
||||
controller.control_mode = controller.PLAYER_MODE
|
||||
controller.control_mode = Globals.ControlMode.PLAYER_MODE
|
||||
|
||||
func set_as_cpu() -> void:
|
||||
camera.current = false
|
||||
controller.control_mode = controller.CPU_MODE
|
||||
controller.control_mode = Globals.ControlMode.CPU_MODE
|
||||
|
||||
+14
-2
@@ -1,13 +1,25 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://mtfp7066molc"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://mtfp7066molc"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://be64wnjbfhnhh" path="res://scenes/jet.gd" id="1_l0pwp"]
|
||||
[ext_resource type="PackedScene" uid="uid://b5btmjvj2gosl" path="res://scripts/jet_controls/controller.tscn" id="2_t5v3o"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_31fu5"]
|
||||
size = Vector3(3, 2, 18)
|
||||
|
||||
[node name="jet" type="CharacterBody3D"]
|
||||
script = ExtResource("1_l0pwp")
|
||||
|
||||
[node name="camera" type="Camera3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5, 18)
|
||||
current = true
|
||||
far = 10000.0
|
||||
|
||||
[node name="collision" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.17266846, -0.17565918, -1.5986328)
|
||||
shape = SubResource("BoxShape3D_31fu5")
|
||||
|
||||
[node name="target_ray" type="RayCast3D" parent="."]
|
||||
collision_mask = 8
|
||||
collide_with_areas = true
|
||||
debug_shape_custom_color = Color(0.76862746, 0, 0, 1)
|
||||
|
||||
[node name="controller" parent="." instance=ExtResource("2_t5v3o")]
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
class_name BaseController extends Node
|
||||
|
||||
|
||||
@export var jets_collection: JetsCollection
|
||||
|
||||
var controller_message_bus: ControllerMessageBus = null
|
||||
|
||||
|
||||
func _controller_message(_event: BaseEvent) -> void:
|
||||
assert(false, "Controller Base '_controller_message' must be overridden...")
|
||||
|
||||
func set_controller_message_bus(message_bus: ControllerMessageBus) -> void:
|
||||
controller_message_bus = message_bus
|
||||
|
||||
func unset_controller_message_bus() -> void:
|
||||
controller_message_bus = null
|
||||
|
||||
func message(event: BaseEvent):
|
||||
return controller_message_bus.message.call(event)
|
||||
|
||||
func message_to(message_str: String, event: BaseEvent):
|
||||
return controller_message_bus.message_to.call(message_str, event)
|
||||
|
||||
func message_to_selected(cnames: Array[String], event: BaseEvent):
|
||||
var responses: Array = Array()
|
||||
|
||||
for cname: String in cnames:
|
||||
responses.append(
|
||||
controller_message_bus.message_to.call(name, event)
|
||||
)
|
||||
|
||||
return responses
|
||||
|
||||
func register_controller(cname: String, controller: BaseController) -> void:
|
||||
controller_message_bus.register_controller.call(cname, controller)
|
||||
|
||||
func unregister_controller(cname: String) -> void:
|
||||
controller_message_bus.unregister_controller.call(cname)
|
||||
@@ -0,0 +1 @@
|
||||
uid://c8i66sp2l1d0f
|
||||
@@ -0,0 +1,51 @@
|
||||
class_name ControllerManager extends Node
|
||||
|
||||
|
||||
var controller_message_bus: ControllerMessageBus = ControllerMessageBus.new()
|
||||
|
||||
|
||||
func _init() -> void:
|
||||
_connect_signals()
|
||||
_bind_callables()
|
||||
|
||||
func _ready() -> void:
|
||||
var timer = get_tree().create_timer(0.200)
|
||||
await timer.timeout
|
||||
|
||||
controller_message_bus.message.call(
|
||||
GameReadyEvent.new()
|
||||
)
|
||||
|
||||
func _connect_signals() -> void:
|
||||
connect("child_entered_tree", register_controller)
|
||||
connect("child_exiting_tree", unregister_controller)
|
||||
|
||||
func _bind_callables() -> void:
|
||||
controller_message_bus.message = Callable(self, "message")
|
||||
controller_message_bus.message_to = Callable(self, "message_to")
|
||||
controller_message_bus.register_controller = Callable(self, "register_controller")
|
||||
controller_message_bus.unregister_controller = Callable(self, "unregister_controller")
|
||||
|
||||
func register_controller(controller: BaseController) -> void:
|
||||
controller.set_controller_message_bus(controller_message_bus)
|
||||
|
||||
func unregister_controller(controller: BaseController) -> void:
|
||||
controller.unset_controller_message_bus()
|
||||
|
||||
|
||||
func message(event: BaseEvent):
|
||||
for controller: BaseController in get_children():
|
||||
controller._controller_message(event)
|
||||
|
||||
func message_to(cname: String, event: BaseEvent):
|
||||
get_node(cname)._controller_message(event)
|
||||
|
||||
func message_to_selected(cnames: Array[String], event: BaseEvent):
|
||||
var results: Array = Array()
|
||||
|
||||
for cname: String in cnames:
|
||||
results.append(
|
||||
controller_message_bus.message_to.call(name, event)
|
||||
)
|
||||
|
||||
return results
|
||||
@@ -0,0 +1 @@
|
||||
uid://d20ceb66ipyp
|
||||
@@ -0,0 +1,6 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://vcteetx5wu8r"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://d20ceb66ipyp" path="res://scripts/controllers/controller_manager.gd" id="1_rd3hb"]
|
||||
|
||||
[node name="controller_manager" type="Node"]
|
||||
script = ExtResource("1_rd3hb")
|
||||
@@ -0,0 +1,92 @@
|
||||
class_name CPUController extends BaseController
|
||||
|
||||
|
||||
func _process(_delta: float) -> void:
|
||||
if not jets_collection: return
|
||||
|
||||
for jet: Jet in jets_collection.get_children():
|
||||
if Globals.ControlMode.PLAYER_MODE == jet.controller.control_mode:
|
||||
continue
|
||||
|
||||
process_jet_plan(jet)
|
||||
|
||||
func _controller_message(event: BaseEvent) -> void:
|
||||
if event is InitSpawnsLoadedEvent:
|
||||
handle_init_spawns_loaded_event()
|
||||
|
||||
func handle_init_spawns_loaded_event() -> void:
|
||||
for jet: Jet in jets_collection.get_children():
|
||||
if Globals.ControlMode.PLAYER_MODE == jet.controller.control_mode:
|
||||
continue
|
||||
|
||||
create_jet_plan(jet)
|
||||
|
||||
func create_jet_plan(jet: Jet) -> void:
|
||||
assign_jet_target(jet)
|
||||
|
||||
func assign_jet_target(jet: Jet) -> void:
|
||||
for _jet: Jet in jets_collection.get_children():
|
||||
if _jet.faction == jet.faction: continue
|
||||
if _jet.targeted_by: continue
|
||||
|
||||
_jet.targeted_by = jet
|
||||
jet.target = _jet
|
||||
|
||||
break
|
||||
|
||||
func process_jet_plan(jet: Jet) -> void:
|
||||
if not is_instance_valid(jet.target): return
|
||||
|
||||
var direction: Vector3 = (
|
||||
jet.target.global_position - jet.global_position
|
||||
).normalized()
|
||||
|
||||
var target_basis = Basis.looking_at(direction, Vector3.UP)
|
||||
var target_rotation = target_basis.get_euler()
|
||||
var current_rotation = jet.global_rotation
|
||||
|
||||
var yaw_error = wrapf(
|
||||
target_rotation.y - current_rotation.y,
|
||||
-PI,
|
||||
PI
|
||||
)
|
||||
|
||||
var pitch_error = wrapf(
|
||||
target_rotation.x - current_rotation.x,
|
||||
-PI,
|
||||
PI
|
||||
)
|
||||
|
||||
var deadzone = deg_to_rad(2.0)
|
||||
|
||||
if yaw_error > deadzone:
|
||||
jet.controller.cpu.yaw_right()
|
||||
elif yaw_error < -deadzone:
|
||||
jet.controller.cpu.yaw_left()
|
||||
else:
|
||||
jet.controller.cpu.no_action()
|
||||
|
||||
if pitch_error > deadzone:
|
||||
jet.controller.cpu.pitch_down()
|
||||
elif pitch_error < -deadzone:
|
||||
jet.controller.cpu.pitch_up()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#func process_jet_plan(jet: Jet) -> void:
|
||||
#var direction = (jet.target.global_position - jet.global_position).normalized()
|
||||
#var target_basis = jet.looking_at(direction, Vector3.UP)
|
||||
#var target_rotation = target_basis.get_euler()
|
||||
|
||||
|
||||
#var direction = jet.target.global_position - jet.global_position
|
||||
#var desired_rotation = jet.look_rotation(direction)
|
||||
|
||||
#var rotation_error = desired_rotation - jet.rotation
|
||||
|
||||
#jet.pitch_input = calculate_pitch(rotation_error)
|
||||
#jet.yaw_input = calculate_yaw(rotation_error)
|
||||
#jet.roll_input = calculate_roll(rotation_error)
|
||||
#jet.throttle = calculate_throttle(distance)
|
||||
@@ -0,0 +1 @@
|
||||
uid://u1tiecau7p8g
|
||||
@@ -0,0 +1,6 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://gb85fimcn0ya"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://u1tiecau7p8g" path="res://scripts/controllers/cpu_system/cpu_controller.gd" id="1_0c7ho"]
|
||||
|
||||
[node name="cpu_controller" type="Node"]
|
||||
script = ExtResource("1_0c7ho")
|
||||
@@ -0,0 +1 @@
|
||||
class_name FactoryBase extends Node
|
||||
@@ -0,0 +1 @@
|
||||
uid://cwip0ysw4l6qp
|
||||
@@ -0,0 +1,63 @@
|
||||
class_name JetFactory extends FactoryBase
|
||||
|
||||
|
||||
const JET = preload("res://scenes/jet.tscn")
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
pass
|
||||
|
||||
func _get_jet_type(faction: int) -> Jet:
|
||||
var jet: Jet = null
|
||||
|
||||
if faction == Globals.Faction.ALLIES:
|
||||
jet = create_allies_jet()
|
||||
jet.name = Globals.Faction.keys()[Globals.Faction.ALLIES] + "_JET"
|
||||
elif faction == Globals.Faction.AXIS:
|
||||
jet = create_axis_jet()
|
||||
jet.name = Globals.Faction.keys()[Globals.Faction.AXIS] + "_JET"
|
||||
elif faction == Globals.Faction.NEUTRAL:
|
||||
jet = create_neutral_jet()
|
||||
jet.name = Globals.Faction.keys()[Globals.Faction.NEUTRAL] + "_JET"
|
||||
else:
|
||||
jet = create_neutral_jet()
|
||||
|
||||
return jet
|
||||
|
||||
|
||||
func create_player_jet(faction: int = 0) -> Jet:
|
||||
var jet: Jet = _get_jet_type(faction)
|
||||
|
||||
jet.set_as_player.call_deferred()
|
||||
return jet
|
||||
|
||||
func create_cpu_jet(faction: int = 0) -> Jet:
|
||||
var jet = _get_jet_type(faction)
|
||||
|
||||
jet.set_as_cpu.call_deferred()
|
||||
return jet
|
||||
|
||||
|
||||
func create_neutral_jet() -> Jet:
|
||||
return create_jet_frame(
|
||||
Globals.Faction.NEUTRAL, EaglePlus.new()
|
||||
)
|
||||
|
||||
func create_allies_jet() -> Jet:
|
||||
return create_jet_frame(
|
||||
Globals.Faction.ALLIES, EaglePlus.new()
|
||||
)
|
||||
|
||||
func create_axis_jet() -> Jet:
|
||||
return create_jet_frame(
|
||||
Globals.Faction.AXIS, SakerFalcon.new()
|
||||
)
|
||||
|
||||
func create_jet_frame(faction: Globals.Faction, frame: BaseJet) -> Jet:
|
||||
var jet = JET.instantiate()
|
||||
|
||||
jet.add_child( frame.MODEL.instantiate() )
|
||||
jet.faction = faction
|
||||
jet.control_frame = frame
|
||||
|
||||
return jet
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://dk32bn35qku60"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c6b0hhfg0xdi4" path="res://scripts/factories/jet_factory.gd" id="1_k26y6"]
|
||||
[ext_resource type="Script" uid="uid://c6b0hhfg0xdi4" path="res://scripts/controllers/factory_systems/factories/jet_factory.gd" id="1_k26y6"]
|
||||
|
||||
[node name="jet_factory" type="Node"]
|
||||
script = ExtResource("1_k26y6")
|
||||
@@ -0,0 +1,10 @@
|
||||
class_name FactoryController extends BaseController
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
for factory: FactoryBase in get_children():
|
||||
pass
|
||||
|
||||
func _controller_message(event: BaseEvent) -> void:
|
||||
if event is BaseEvent:
|
||||
pass
|
||||
@@ -0,0 +1 @@
|
||||
uid://dnb2440074qh5
|
||||
@@ -0,0 +1,6 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://cn0pa8rp6uvue"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dnb2440074qh5" path="res://scripts/controllers/factory_systems/factory_controller.gd" id="1_yovwh"]
|
||||
|
||||
[node name="factory_controller" type="Node"]
|
||||
script = ExtResource("1_yovwh")
|
||||
@@ -0,0 +1,28 @@
|
||||
class_name GameController extends BaseController
|
||||
|
||||
|
||||
func _controller_message(event: BaseEvent) -> void:
|
||||
if event is GameReadyEvent:
|
||||
handle_game_ready_event()
|
||||
elif event is AssignPlayerJet:
|
||||
assign_player_jet(event)
|
||||
|
||||
func handle_game_ready_event() -> void:
|
||||
controller_message_bus.message.call( CreateAlliesJetEvent.new() )
|
||||
controller_message_bus.message.call( CreateAxisJetEvent.new() )
|
||||
|
||||
var event: AssignPlayerJet = AssignPlayerJet.new()
|
||||
event.set_as_allies()
|
||||
|
||||
controller_message_bus.message.call_deferred(event)
|
||||
controller_message_bus.message.call_deferred( InitSpawnsLoadedEvent.new() )
|
||||
|
||||
|
||||
func assign_player_jet(event: AssignPlayerJet) -> void:
|
||||
for jet: Jet in jets_collection.get_children():
|
||||
if not jet.faction == event.faction: continue
|
||||
if jet.controller.control_mode == Globals.ControlMode.PLAYER_MODE: continue
|
||||
|
||||
jet.set_as_player()
|
||||
|
||||
break
|
||||
@@ -0,0 +1 @@
|
||||
uid://cj1b7xcnaiuu6
|
||||
@@ -0,0 +1,6 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://ir8lwj1gx7m2"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cj1b7xcnaiuu6" path="res://scripts/controllers/game_system/game_controller.gd" id="1_itum8"]
|
||||
|
||||
[node name="game_controller" type="Node"]
|
||||
script = ExtResource("1_itum8")
|
||||
+3
-3
@@ -2,8 +2,8 @@ class_name GameMode extends Node
|
||||
|
||||
|
||||
const MODES: Dictionary = {
|
||||
0: preload("res://scripts/game_modes/dog_fight.gd"),
|
||||
1: preload("res://scripts/game_modes/dog_fight_waves.gd")
|
||||
0: preload("res://scripts/controllers/game_system/game_modes/dog_fight.gd"),
|
||||
1: preload("res://scripts/controllers/game_system/game_modes/dog_fight_waves.gd")
|
||||
}
|
||||
|
||||
@export_enum(
|
||||
@@ -16,4 +16,4 @@ const MODES: Dictionary = {
|
||||
|
||||
func _ready() -> void:
|
||||
#MODES[mode].instantiate()
|
||||
jet_factory.create_player_jet(Globals.FACTION.ALLIES)
|
||||
pass
|
||||
@@ -0,0 +1,3 @@
|
||||
[gd_scene format=3 uid="uid://nlwfoq6opqck"]
|
||||
|
||||
[node name="game_mode" type="Node"]
|
||||
@@ -0,0 +1,47 @@
|
||||
class_name SpawnController extends BaseController
|
||||
|
||||
|
||||
@export var jet_factory: JetFactory
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
pass
|
||||
|
||||
func _controller_message(event: BaseEvent) -> void:
|
||||
if event is BaseCreateJetEvent:
|
||||
if event is CreateAlliesJetEvent:
|
||||
spawn_allies_jet()
|
||||
elif event is CreateAxisJetEvent:
|
||||
spawn_axis_jet()
|
||||
elif event is CreateNeutralJetEvent:
|
||||
spawn_neutral_jet()
|
||||
|
||||
|
||||
func spawn_neutral_jet():
|
||||
var _jet = spawn_jet(
|
||||
Globals.Faction.NEUTRAL, jet_factory.create_cpu_jet
|
||||
)
|
||||
|
||||
func spawn_allies_jet():
|
||||
var _jet = spawn_jet.call(
|
||||
Globals.Faction.ALLIES, jet_factory.create_cpu_jet
|
||||
)
|
||||
|
||||
func spawn_axis_jet():
|
||||
var _jet = spawn_jet(
|
||||
Globals.Faction.AXIS, jet_factory.create_cpu_jet
|
||||
)
|
||||
|
||||
func spawn_jet(faction: Globals.Faction, callback: Callable) -> Jet:
|
||||
var jet: Jet = null
|
||||
|
||||
for spawner: Spawner in get_children():
|
||||
if not spawner.faction == faction: continue
|
||||
if not spawner.is_available: continue
|
||||
|
||||
jet = callback.call(faction)
|
||||
jets_collection.add_child.call(jet)
|
||||
|
||||
spawner.align_to_position.call_deferred(jet)
|
||||
|
||||
return jet
|
||||
@@ -0,0 +1 @@
|
||||
uid://bd8ae65orh663
|
||||
@@ -0,0 +1,6 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://cuqllmpojcml5"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bd8ae65orh663" path="res://scripts/controllers/spawn_system/spawn_controller.gd" id="1_xcv1c"]
|
||||
|
||||
[node name="spawn_controller" type="Node"]
|
||||
script = ExtResource("1_xcv1c")
|
||||
@@ -0,0 +1,48 @@
|
||||
class_name Spawner extends Area3D
|
||||
|
||||
|
||||
@export var faction: Globals.Faction = Globals.Faction.NEUTRAL
|
||||
|
||||
var is_available: bool = true
|
||||
var delay_timer: Timer = null
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
_debug_setup()
|
||||
|
||||
|
||||
func _debug_setup() -> void:
|
||||
if not Globals.debugging:
|
||||
visible = false
|
||||
return
|
||||
|
||||
visible = true
|
||||
var visual_node: MeshInstance3D = get_node("visual")
|
||||
var visual_node2: MeshInstance3D = get_node("visual_direction")
|
||||
visual_node.mesh.material.albedo_color = Globals.FactionColor[faction]
|
||||
visual_node2.mesh.material.albedo_color = Globals.FactionColor[faction]
|
||||
|
||||
func _on_area_body_entered(_body: Jet) -> void:
|
||||
if delay_timer:
|
||||
delay_timer.stop()
|
||||
|
||||
delay_timer = null
|
||||
|
||||
func _on_area_body_exited(_body: Jet) -> void:
|
||||
delay_timer = Timer.new()
|
||||
delay_timer.one_shot = true
|
||||
delay_timer.timeout.connect(can_spawn)
|
||||
|
||||
|
||||
func set_can_spawn(availablity: bool = true) -> void:
|
||||
is_available = availablity
|
||||
|
||||
func can_spawn() -> void:
|
||||
is_available = true
|
||||
|
||||
func cannot_spawn() -> void:
|
||||
is_available = false
|
||||
|
||||
func align_to_position(jet: Jet) -> void:
|
||||
jet.global_position = global_position
|
||||
jet.rotation = rotation
|
||||
@@ -0,0 +1 @@
|
||||
uid://2xevacik8ja4
|
||||
@@ -0,0 +1,38 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://bgrku2wvaadgg"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://2xevacik8ja4" path="res://scripts/controllers/spawn_system/spawner.gd" id="1_yd0ab"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_yd0ab"]
|
||||
resource_local_to_scene = true
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_7k17k"]
|
||||
resource_local_to_scene = true
|
||||
material = SubResource("StandardMaterial3D_yd0ab")
|
||||
size = Vector3(20, 10, 25)
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_7k17k"]
|
||||
resource_local_to_scene = true
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_8iah5"]
|
||||
resource_local_to_scene = true
|
||||
material = SubResource("StandardMaterial3D_7k17k")
|
||||
size = Vector3(12, 1, 4)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_7k17k"]
|
||||
size = Vector3(20, 10, 25)
|
||||
|
||||
[node name="spawner" type="Area3D"]
|
||||
script = ExtResource("1_yd0ab")
|
||||
|
||||
[node name="visual" type="MeshInstance3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0)
|
||||
mesh = SubResource("BoxMesh_7k17k")
|
||||
|
||||
[node name="visual_direction" type="MeshInstance3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, -14.107723)
|
||||
mesh = SubResource("BoxMesh_8iah5")
|
||||
skeleton = NodePath("../visual")
|
||||
|
||||
[node name="detector" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0)
|
||||
shape = SubResource("BoxShape3D_7k17k")
|
||||
@@ -1,69 +0,0 @@
|
||||
class_name JetFactory extends Node
|
||||
|
||||
|
||||
const JET = preload("res://scenes/jet.tscn")
|
||||
|
||||
var ALLIES_JET: EaglePlus = EaglePlus.new()
|
||||
var AXIS_JET: SakerFalcon = SakerFalcon.new()
|
||||
var NEUTRAL_JET: EaglePlus = EaglePlus.new()
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
pass
|
||||
|
||||
func _get_jet_type(faction: int) -> Jet:
|
||||
if faction == Globals.FACTION.ALLIES:
|
||||
return create_allies_jet()
|
||||
if faction == Globals.FACTION.AXIS:
|
||||
return create_axis_jet()
|
||||
if faction == Globals.FACTION.NEUTRAL:
|
||||
return create_neutral_jet()
|
||||
|
||||
return create_neutral_jet()
|
||||
|
||||
|
||||
func create_player_jet(faction: int = 0) -> Jet:
|
||||
var jet: Jet = _get_jet_type(faction)
|
||||
|
||||
get_tree().root.add_child.call_deferred(jet)
|
||||
await jet.ready
|
||||
|
||||
jet.set_as_player()
|
||||
return jet
|
||||
|
||||
func create_cpu_jet(faction: int = 0) -> Jet:
|
||||
var jet = _get_jet_type(faction)
|
||||
|
||||
get_tree().root.add_child.call_deferred(jet)
|
||||
await jet.ready
|
||||
|
||||
jet.set_as_cpu()
|
||||
return jet
|
||||
|
||||
|
||||
func create_neutral_jet() -> Jet:
|
||||
var jet = JET.new()
|
||||
|
||||
jet.add_child( NEUTRAL_JET.MODEL.instantiate() )
|
||||
jet.faction = Globals.FACTION.NEUTRAL
|
||||
jet.control_frame = NEUTRAL_JET
|
||||
|
||||
return jet
|
||||
|
||||
func create_allies_jet() -> Jet:
|
||||
var jet = JET.instantiate()
|
||||
|
||||
jet.add_child( ALLIES_JET.MODEL.instantiate() )
|
||||
jet.faction = Globals.FACTION.ALLIES
|
||||
jet.control_frame = ALLIES_JET
|
||||
|
||||
return jet
|
||||
|
||||
func create_axis_jet() -> Jet:
|
||||
var jet = JET.instantiate()
|
||||
|
||||
jet.add_child( AXIS_JET.MODEL.instantiate() )
|
||||
jet.faction = Globals.FACTION.AXIS
|
||||
jet.control_frame = AXIS_JET
|
||||
|
||||
return jet
|
||||
@@ -1,6 +0,0 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://nlwfoq6opqck"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dwkkrl7unxqau" path="res://scripts/game_modes/game_mode.gd" id="1_7wd16"]
|
||||
|
||||
[node name="game_mode" type="Node"]
|
||||
script = ExtResource("1_7wd16")
|
||||
@@ -1,38 +1,36 @@
|
||||
class_name JetController extends Node
|
||||
|
||||
|
||||
const CPU_MODE: int = 0
|
||||
const PLAYER_MODE: int = 1
|
||||
|
||||
@export_enum(
|
||||
"CPU:0",
|
||||
"PLAYER:1"
|
||||
) var control_mode: int = PLAYER_MODE
|
||||
) var control_mode: int = Globals.ControlMode.CPU_MODE
|
||||
|
||||
@onready var cpu: CPU = $cpu
|
||||
@onready var player: Player = $player
|
||||
|
||||
|
||||
func process(delta: float) -> String:
|
||||
if CPU_MODE == control_mode:
|
||||
return cpu.process(delta)
|
||||
elif PLAYER_MODE == control_mode:
|
||||
return player.process(delta)
|
||||
func process(delta: float) -> Globals.ControllerCommand:
|
||||
match control_mode:
|
||||
Globals.ControlMode.CPU_MODE:
|
||||
return cpu.process(delta)
|
||||
Globals.ControlMode.PLAYER_MODE:
|
||||
return player.process(delta)
|
||||
_:
|
||||
return Globals.ControllerCommand.NONE
|
||||
|
||||
return ""
|
||||
|
||||
func physics_process(delta: float) -> String:
|
||||
if CPU_MODE == control_mode:
|
||||
func physics_process(delta: float) -> Globals.ControllerCommand:
|
||||
if Globals.ControlMode.CPU_MODE == control_mode:
|
||||
return cpu.physics_process(delta)
|
||||
elif PLAYER_MODE == control_mode:
|
||||
elif Globals.ControlMode.PLAYER_MODE == control_mode:
|
||||
return player.physics_process(delta)
|
||||
|
||||
return ""
|
||||
return Globals.ControllerCommand.NONE
|
||||
|
||||
func unhandled_input(event: InputEvent) -> String:
|
||||
if CPU_MODE == control_mode:
|
||||
func unhandled_input(event: InputEvent) -> Globals.ControllerCommand:
|
||||
if Globals.ControlMode.CPU_MODE == control_mode:
|
||||
return cpu.unhandled_input(event)
|
||||
elif PLAYER_MODE == control_mode:
|
||||
elif Globals.ControlMode.PLAYER_MODE == control_mode:
|
||||
return player.unhandled_input(event)
|
||||
|
||||
return ""
|
||||
return Globals.ControllerCommand.NONE
|
||||
|
||||
@@ -1,11 +1,46 @@
|
||||
class_name CPU extends Node
|
||||
|
||||
|
||||
func process(_delta: float) -> String:
|
||||
return ""
|
||||
var command: Globals.ControllerCommand = Globals.ControllerCommand.NONE
|
||||
var throttle: Globals.ControllerCommand = Globals.ControllerCommand.NONE
|
||||
|
||||
func physics_process(_delta: float) -> String:
|
||||
return ""
|
||||
|
||||
func unhandled_input(_event: InputEvent) -> String:
|
||||
return ""
|
||||
func process(_delta: float) -> Globals.ControllerCommand:
|
||||
return command
|
||||
|
||||
func physics_process(_delta: float) -> Globals.ControllerCommand:
|
||||
return command
|
||||
|
||||
func unhandled_input(_event: InputEvent) -> Globals.ControllerCommand:
|
||||
return command
|
||||
|
||||
|
||||
func pitch_up() -> void:
|
||||
command = Globals.ControllerCommand.PITCH_UP
|
||||
|
||||
func pitch_down() -> void:
|
||||
command = Globals.ControllerCommand.PITCH_DOWN
|
||||
|
||||
func yaw_left() -> void:
|
||||
command = Globals.ControllerCommand.YAW_LEFT
|
||||
|
||||
func yaw_right() -> void:
|
||||
command = Globals.ControllerCommand.YAW_RIGHT
|
||||
|
||||
func roll_left() -> void:
|
||||
command = Globals.ControllerCommand.ROLL_LEFT
|
||||
|
||||
func roll_right() -> void:
|
||||
command = Globals.ControllerCommand.ROLL_RIGHT
|
||||
|
||||
func throttle_up() -> void:
|
||||
throttle = Globals.ControllerCommand.THROTTLE_UP
|
||||
|
||||
func throttle_down() -> void:
|
||||
throttle = Globals.ControllerCommand.THROTTLE_DOWN
|
||||
|
||||
func throttle_neutral() -> void:
|
||||
throttle = Globals.ControllerCommand.NONE
|
||||
|
||||
func no_action() -> void:
|
||||
command = Globals.ControllerCommand.NONE
|
||||
|
||||
@@ -1,28 +1,28 @@
|
||||
class_name Player extends Node
|
||||
|
||||
|
||||
func process(_delta: float) -> String:
|
||||
if Input.is_action_pressed("pull_up"):
|
||||
return "pull_up"
|
||||
if Input.is_action_pressed("push_down"):
|
||||
return "push_down"
|
||||
func process(_delta: float) -> Globals.ControllerCommand:
|
||||
if Input.is_action_pressed("pitch_up"):
|
||||
return Globals.ControllerCommand.PITCH_UP
|
||||
if Input.is_action_pressed("pitch_down"):
|
||||
return Globals.ControllerCommand.PITCH_DOWN
|
||||
if Input.is_action_pressed("yaw_left"):
|
||||
return "yaw_left"
|
||||
return Globals.ControllerCommand.YAW_LEFT
|
||||
if Input.is_action_pressed("yaw_right"):
|
||||
return "yaw_right"
|
||||
return Globals.ControllerCommand.YAW_RIGHT
|
||||
if Input.is_action_pressed("roll_left"):
|
||||
return "roll_left"
|
||||
return Globals.ControllerCommand.ROLL_LEFT
|
||||
if Input.is_action_pressed("roll_right"):
|
||||
return "roll_right"
|
||||
return Globals.ControllerCommand.ROLL_RIGHT
|
||||
if Input.is_action_pressed("throttle_up"):
|
||||
return "throttle_up"
|
||||
return Globals.ControllerCommand.THROTTLE_UP
|
||||
if Input.is_action_pressed("throttle_down"):
|
||||
return "throttle_down"
|
||||
return Globals.ControllerCommand.THROTTLE_DOWN
|
||||
|
||||
return ""
|
||||
return Globals.ControllerCommand.NONE
|
||||
|
||||
func physics_process(_delta: float) -> String:
|
||||
return ""
|
||||
func physics_process(_delta: float) -> Globals.ControllerCommand:
|
||||
return Globals.ControllerCommand.NONE
|
||||
|
||||
func unhandled_input(_event: InputEvent) -> String:
|
||||
return ""
|
||||
func unhandled_input(_event: InputEvent) -> Globals.ControllerCommand:
|
||||
return Globals.ControllerCommand.NONE
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
class_name BaseJet extends Node
|
||||
|
||||
|
||||
var CONFLICT_SIDE = Globals.FACTION.NEUTRAL
|
||||
var CONFLICT_SIDE = Globals.Faction.NEUTRAL
|
||||
|
||||
var HEALTH: int = 100
|
||||
var YAW_SPEED: int = 50
|
||||
@@ -14,36 +14,36 @@ var speed: float = float(MIN_SPEED)
|
||||
|
||||
|
||||
func do_action(
|
||||
action: String,
|
||||
action: Globals.ControllerCommand,
|
||||
delta: float,
|
||||
jet: Jet
|
||||
) -> void:
|
||||
var change_rate: float = deg_to_rad(1) * delta
|
||||
|
||||
match action:
|
||||
"pull_up":
|
||||
pull_up(change_rate, jet)
|
||||
"push_down":
|
||||
push_down(change_rate, jet)
|
||||
"yaw_left":
|
||||
Globals.ControllerCommand.PITCH_UP:
|
||||
pitch_up(change_rate, jet)
|
||||
Globals.ControllerCommand.PITCH_DOWN:
|
||||
pitch_down(change_rate, jet)
|
||||
Globals.ControllerCommand.YAW_LEFT:
|
||||
yaw_left(change_rate, jet)
|
||||
"yaw_right":
|
||||
Globals.ControllerCommand.YAW_RIGHT:
|
||||
yaw_right(change_rate, jet)
|
||||
"roll_left":
|
||||
Globals.ControllerCommand.ROLL_LEFT:
|
||||
roll_left(change_rate, jet)
|
||||
"roll_right":
|
||||
Globals.ControllerCommand.ROLL_RIGHT:
|
||||
roll_right(change_rate, jet)
|
||||
"throttle_up":
|
||||
Globals.ControllerCommand.THROTTLE_UP:
|
||||
throttle_up(delta)
|
||||
"throttle_down":
|
||||
Globals.ControllerCommand.THROTTLE_DOWN:
|
||||
throttle_down(delta)
|
||||
_:
|
||||
pass
|
||||
|
||||
func pull_up(change_rate: float, jet: Jet) -> void:
|
||||
func pitch_up(change_rate: float, jet: Jet) -> void:
|
||||
jet.rotate_object_local(Vector3.RIGHT, change_rate * MIN_SPEED)
|
||||
|
||||
func push_down(change_rate: float, jet: Jet) -> void:
|
||||
func pitch_down(change_rate: float, jet: Jet) -> void:
|
||||
jet.rotate_object_local(Vector3.LEFT, change_rate * MIN_SPEED)
|
||||
|
||||
func yaw_left(change_rate: float, jet: Jet) -> void:
|
||||
@@ -63,3 +63,8 @@ func throttle_up(delta: float) -> void:
|
||||
|
||||
func throttle_down(delta: float) -> void:
|
||||
speed = move_toward(speed, MIN_SPEED, ACCELERATION * delta)
|
||||
|
||||
#func cpu_fly_at(change_rate: float, jet: Jet):
|
||||
# jet.rotate_toward(...)
|
||||
# NOTE: example to consider
|
||||
# runner_visual.angle = rotate_toward(runner_visual.angle, direction.orthogonal().angle(), 8.0 * delta)
|
||||
|
||||
@@ -5,7 +5,7 @@ const MODEL = preload("uid://cfcid44xnsbdt")
|
||||
|
||||
|
||||
func _init() -> void:
|
||||
CONFLICT_SIDE = Globals.FACTION.ALLIES
|
||||
CONFLICT_SIDE = Globals.Faction.ALLIES
|
||||
HEALTH = 100
|
||||
YAW_SPEED = 50
|
||||
ROLL_SPEED = 100
|
||||
|
||||
@@ -5,7 +5,7 @@ const MODEL = preload("uid://d07rxx62esueq")
|
||||
|
||||
|
||||
func _init() -> void:
|
||||
CONFLICT_SIDE = Globals.FACTION.AXIS
|
||||
CONFLICT_SIDE = Globals.Faction.AXIS
|
||||
HEALTH = 100
|
||||
YAW_SPEED = 50
|
||||
ROLL_SPEED = 100
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
class_name JetsCollection extends Node3D
|
||||
@@ -0,0 +1 @@
|
||||
uid://dx87oh0d3xqa
|
||||
@@ -0,0 +1,6 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://d3br5pvjbv7gs"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dx87oh0d3xqa" path="res://scripts/jets_collection.gd" id="1_ugihe"]
|
||||
|
||||
[node name="jets_collection" type="Node3D"]
|
||||
script = ExtResource("1_ugihe")
|
||||
@@ -0,0 +1,25 @@
|
||||
class_name ControllerMessageBus extends Node
|
||||
|
||||
|
||||
|
||||
var message: Callable = Callable(self, "_message")
|
||||
var message_to: Callable = Callable(self, "_message_to")
|
||||
var message_to_selected: Callable = Callable(self, "_message_to_selected")
|
||||
var register_controller: Callable = Callable(self, "_register_controller")
|
||||
var unregister_controller: Callable = Callable(self, "_unregister_controller")
|
||||
|
||||
|
||||
func _message(_event: BaseEvent):
|
||||
assert(false, "Controller Message Bus 'message' must be overriden by Controller Manager...")
|
||||
|
||||
func _message_to(_ename: String, _event: BaseEvent):
|
||||
assert(false, "Controller Message Bus 'message_to' must be overriden by Controller Manager...")
|
||||
|
||||
func _message_to_selected(_ename: Array, _event: BaseEvent):
|
||||
assert(false, "Controller Message Bus 'message_to_selected' must be overriden by Controller Manager...")
|
||||
|
||||
func _register_controller(_ename: String, _controller: BaseController):
|
||||
assert(false, "Controller Message Bus 'register_controller' must be overriden by Controller Manager...")
|
||||
|
||||
func _unregister_controller(_ename: String):
|
||||
assert(false, "Controller Message Bus 'unregister_controller' must be overriden by Controller Manager...")
|
||||
@@ -0,0 +1 @@
|
||||
uid://cgv5ev5tk7kqk
|
||||
@@ -0,0 +1,14 @@
|
||||
class_name AssignPlayerJet extends BaseEvent
|
||||
|
||||
|
||||
var faction: Globals.Faction
|
||||
|
||||
|
||||
func set_as_allies() -> void:
|
||||
faction = Globals.Faction.ALLIES
|
||||
|
||||
func set_as_axis() -> void:
|
||||
faction = Globals.Faction.AXIS
|
||||
|
||||
func set_as_neutral() -> void:
|
||||
faction = Globals.Faction.NEUTRAL
|
||||
@@ -0,0 +1 @@
|
||||
uid://do03fjsunvw1l
|
||||
@@ -0,0 +1 @@
|
||||
class_name BaseCreateJetEvent extends BaseFactoryEvent
|
||||
@@ -0,0 +1 @@
|
||||
uid://bsjs01g58nv7h
|
||||
@@ -0,0 +1 @@
|
||||
class_name BaseEvent extends Node
|
||||
@@ -0,0 +1 @@
|
||||
uid://bpd4j7rj2xe0j
|
||||
@@ -0,0 +1 @@
|
||||
class_name BaseFactoryEvent extends BaseEvent
|
||||
@@ -0,0 +1 @@
|
||||
uid://87yd8iurl2af
|
||||
@@ -0,0 +1 @@
|
||||
class_name CreateAlliesJetEvent extends BaseCreateJetEvent
|
||||
@@ -0,0 +1 @@
|
||||
uid://bnvkuhn12sq16
|
||||
@@ -0,0 +1 @@
|
||||
class_name CreateAxisJetEvent extends BaseCreateJetEvent
|
||||
@@ -0,0 +1 @@
|
||||
uid://b1pxjdwfxur45
|
||||
@@ -0,0 +1 @@
|
||||
class_name CreateNeutralJetEvent extends BaseCreateJetEvent
|
||||
@@ -0,0 +1 @@
|
||||
uid://ml1cwry7qnxa
|
||||
@@ -0,0 +1 @@
|
||||
class_name GameReadyEvent extends BaseEvent
|
||||
@@ -0,0 +1 @@
|
||||
uid://6i1gnfxc83tx
|
||||
@@ -0,0 +1 @@
|
||||
class_name InitSpawnsLoadedEvent extends BaseEvent
|
||||
@@ -0,0 +1 @@
|
||||
uid://beylxjygmq0pn
|
||||
@@ -0,0 +1,9 @@
|
||||
class_name MessageBus extends Node
|
||||
|
||||
|
||||
|
||||
func register_listener(listener) -> void:
|
||||
pass
|
||||
|
||||
func unregister_listener(listener) -> void:
|
||||
pass
|
||||
@@ -0,0 +1 @@
|
||||
uid://gros71i53nx8
|
||||
@@ -0,0 +1,6 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://k82r6e6quh5l"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://gros71i53nx8" path="res://scripts/message_bus/message_bus.gd" id="1_kwdl0"]
|
||||
|
||||
[node name="message_bus" type="Node"]
|
||||
script = ExtResource("1_kwdl0")
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
@@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cbdpcrar6v1r7"
|
||||
path="res://.godot/imported/splash.png-929ed8a00b89ba36c51789452f874c77.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://splash.png"
|
||||
dest_files=["res://.godot/imported/splash.png-929ed8a00b89ba36c51789452f874c77.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
|
||||
Reference in New Issue
Block a user