nobody is reading this
This commit is contained in:
BIN
Levels/Models/god circuit stage 1.glb
Normal file
BIN
Levels/Models/god circuit stage 1.glb
Normal file
Binary file not shown.
32
Levels/Models/god circuit stage 1.glb.import
Normal file
32
Levels/Models/god circuit stage 1.glb.import
Normal file
@@ -0,0 +1,32 @@
|
||||
[remap]
|
||||
|
||||
importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://cigdj84f0m3jd"
|
||||
path="res://.godot/imported/god circuit stage 1.glb-2f69a377636b262509070ab5e0fe796a.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Levels/Models/god circuit stage 1.glb"
|
||||
dest_files=["res://.godot/imported/god circuit stage 1.glb-2f69a377636b262509070ab5e0fe796a.scn"]
|
||||
|
||||
[params]
|
||||
|
||||
nodes/root_type="Node3D"
|
||||
nodes/root_name="Scene Root"
|
||||
nodes/apply_root_scale=true
|
||||
nodes/root_scale=1.0
|
||||
meshes/ensure_tangents=true
|
||||
meshes/generate_lods=true
|
||||
meshes/create_shadow_meshes=true
|
||||
meshes/light_baking=1
|
||||
meshes/lightmap_texel_size=0.2
|
||||
skins/use_named_skins=true
|
||||
animation/import=true
|
||||
animation/fps=30
|
||||
animation/trimming=false
|
||||
animation/remove_immutable_tracks=true
|
||||
import_script/path=""
|
||||
_subresources={}
|
||||
gltf/embedded_image_handling=1
|
||||
BIN
Levels/Models/god circuit stage 1_image.png
Normal file
BIN
Levels/Models/god circuit stage 1_image.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 34 KiB |
36
Levels/Models/god circuit stage 1_image.png.import
Normal file
36
Levels/Models/god circuit stage 1_image.png.import
Normal file
@@ -0,0 +1,36 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b41ur7kyd8vdl"
|
||||
path.s3tc="res://.godot/imported/god circuit stage 1_image.png-f36e4022160fed836cbcc1729b099c66.s3tc.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
generator_parameters={}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Levels/Models/god circuit stage 1_image.png"
|
||||
dest_files=["res://.godot/imported/god circuit stage 1_image.png-f36e4022160fed836cbcc1729b099c66.s3tc.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
||||
@@ -1,12 +1,14 @@
|
||||
[gd_scene load_steps=9 format=3 uid="uid://dqv03pua4j8ga"]
|
||||
[gd_scene load_steps=11 format=3 uid="uid://dqv03pua4j8ga"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/AreaExit.cs" id="1_owv8t"]
|
||||
[ext_resource type="PackedScene" uid="uid://c0lv8ovqkl3a6" path="res://Levels/Models/STAGE 1.blend" id="1_pwpof"]
|
||||
[ext_resource type="PackedScene" uid="uid://b38hcomu4tpm5" path="res://Scenes/TestCharacter.tscn" id="3_vd8bl"]
|
||||
[ext_resource type="PackedScene" uid="uid://si4byubqnng4" path="res://Scenes/TestBullet.tscn" id="4_usx8k"]
|
||||
[ext_resource type="PackedScene" uid="uid://bq40xbqibrk1y" path="res://Scenes/ShotgunBullet.tscn" id="5_yyoa6"]
|
||||
[ext_resource type="Script" path="res://Scenes/Player2.cs" id="6_eyfbh"]
|
||||
[ext_resource type="PackedScene" uid="uid://jgf7k1r35km1" path="res://Scenes/ExitPortal.tscn" id="6_gegi6"]
|
||||
[ext_resource type="Script" path="res://Scripts/SpawnPoint.cs" id="7_y435i"]
|
||||
[ext_resource type="Script" path="res://Scripts/P1SpawnPoint.cs" id="8_43upo"]
|
||||
[ext_resource type="Script" path="res://Scripts/P2SpawnPoint.cs" id="9_8v1uu"]
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_kv6vl"]
|
||||
radius = 0.957319
|
||||
@@ -25,13 +27,21 @@ transform = Transform3D(-0.929007, 0.136193, 0.34409, 0.369825, 0.375014, 0.8500
|
||||
|
||||
[node name="STAGE 1" parent="." instance=ExtResource("1_pwpof")]
|
||||
|
||||
[node name="Character" parent="." groups=["Player"] instance=ExtResource("3_vd8bl")]
|
||||
transform = Transform3D(0.25, 0, 0, 0, 0.25, 0, 0, 0, 0.25, -0.495054, 0, 5.4546)
|
||||
[node name="Player1" parent="." groups=["Player1"] instance=ExtResource("3_vd8bl")]
|
||||
transform = Transform3D(0.25, 0, 0, 0, 0.25, 0, 0, 0, 0.25, -2.05794, 0, 5.4546)
|
||||
collision_layer = 17
|
||||
collision_mask = 17
|
||||
_fireProjectile = ExtResource("4_usx8k")
|
||||
_altFireProjectile = ExtResource("5_yyoa6")
|
||||
|
||||
[node name="Player2" parent="." groups=["Player2"] instance=ExtResource("3_vd8bl")]
|
||||
transform = Transform3D(0.25, 0, 0, 0, 0.25, 0, 0, 0, 0.25, 0.915219, 0, 5.4546)
|
||||
collision_layer = 17
|
||||
collision_mask = 17
|
||||
script = ExtResource("6_eyfbh")
|
||||
_fireProjectile = ExtResource("4_usx8k")
|
||||
_altFireProjectile = ExtResource("5_yyoa6")
|
||||
|
||||
[node name="Area3D2" type="Area3D" parent="." groups=["Level"]]
|
||||
collision_layer = 0
|
||||
collision_mask = 16
|
||||
@@ -43,8 +53,12 @@ transform = Transform3D(0.7, 0, 0, 0, 0.7, 0, 0, 0, 0.7, 0, 0, -2.53252)
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -2.51823)
|
||||
shape = SubResource("CylinderShape3D_kv6vl")
|
||||
|
||||
[node name="SpawnPoint" type="Marker3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.503964, 0.123258, 5.51333)
|
||||
script = ExtResource("7_y435i")
|
||||
[node name="P1_SpawnPoint" type="Marker3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.28216, 0.123258, 5.51333)
|
||||
script = ExtResource("8_43upo")
|
||||
|
||||
[node name="P2_SpawnPoint" type="Marker3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.78123, 0.123258, 5.51333)
|
||||
script = ExtResource("9_8v1uu")
|
||||
|
||||
[connection signal="body_entered" from="Area3D2" to="." method="OnExitEntered"]
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://basequfmpg04f"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://basequfmpg04f"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://dmi76rb317oou" path="res://Levels/Models/STAGE 2.blend" id="1_5pcmj"]
|
||||
[ext_resource type="Script" path="res://Scripts/AreaExit.cs" id="1_u04pt"]
|
||||
[ext_resource type="PackedScene" uid="uid://jgf7k1r35km1" path="res://Scenes/ExitPortal.tscn" id="2_sq8bv"]
|
||||
[ext_resource type="Script" path="res://Scripts/SpawnPoint.cs" id="4_jbdcg"]
|
||||
[ext_resource type="Script" path="res://Scripts/P1SpawnPoint.cs" id="4_1ryhf"]
|
||||
[ext_resource type="Script" path="res://Scripts/P2SpawnPoint.cs" id="5_dg8k3"]
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_tux5n"]
|
||||
radius = 0.957319
|
||||
@@ -36,8 +37,12 @@ transform = Transform3D(0.7, 0, 0, 0, 0.7, 0, 0, 0, 0.7, 0, 0, -2.53252)
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -2.51823)
|
||||
shape = SubResource("CylinderShape3D_tux5n")
|
||||
|
||||
[node name="SpawnPoint" type="Marker3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.503964, 0.123258, 5.72648)
|
||||
script = ExtResource("4_jbdcg")
|
||||
[node name="P1_SpawnPoint" type="Marker3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.503964, 0.123258, 4.44593)
|
||||
script = ExtResource("4_1ryhf")
|
||||
|
||||
[node name="P2_SpawnPoint" type="Marker3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.97394, 0.246516, 4.57028)
|
||||
script = ExtResource("5_dg8k3")
|
||||
|
||||
[connection signal="body_entered" from="Area3D2" to="." method="OnExitEntered"]
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://btl5fdyjewnwc"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://btl5fdyjewnwc"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/AreaExit.cs" id="1_1tnw5"]
|
||||
[ext_resource type="PackedScene" uid="uid://dwd2hlxhkcfpp" path="res://Levels/Models/STAGE 3.blend" id="1_blsh8"]
|
||||
[ext_resource type="PackedScene" uid="uid://jgf7k1r35km1" path="res://Scenes/ExitPortal.tscn" id="3_2t766"]
|
||||
[ext_resource type="Script" path="res://Scripts/SpawnPoint.cs" id="4_0dbip"]
|
||||
[ext_resource type="Script" path="res://Scripts/P1SpawnPoint.cs" id="4_t5mi5"]
|
||||
[ext_resource type="Script" path="res://Scripts/P2SpawnPoint.cs" id="5_kc2wt"]
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_j26hn"]
|
||||
radius = 0.957319
|
||||
@@ -36,8 +37,12 @@ transform = Transform3D(0.7, 0, 0, 0, 0.7, 0, 0, 0, 0.7, 0, 0, -2.53252)
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -2.51823)
|
||||
shape = SubResource("CylinderShape3D_j26hn")
|
||||
|
||||
[node name="SpawnPoint" type="Marker3D" parent="."]
|
||||
[node name="P1_SpawnPoint" type="Marker3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.503964, 0.123258, 5.51333)
|
||||
script = ExtResource("4_0dbip")
|
||||
script = ExtResource("4_t5mi5")
|
||||
|
||||
[node name="P2_SpawnPoint" type="Marker3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.3999, 0.123258, 5.51333)
|
||||
script = ExtResource("5_kc2wt")
|
||||
|
||||
[connection signal="body_entered" from="Area3D2" to="." method="OnExitEntered"]
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://ctvkevnc0wxka"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://ctvkevnc0wxka"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://c33ymduovqqw" path="res://Levels/Models/STAGE 4.blend" id="1_qu6ym"]
|
||||
[ext_resource type="Script" path="res://Scripts/AreaExit.cs" id="1_sqfsi"]
|
||||
[ext_resource type="PackedScene" uid="uid://jgf7k1r35km1" path="res://Scenes/ExitPortal.tscn" id="3_wflo5"]
|
||||
[ext_resource type="Script" path="res://Scripts/SpawnPoint.cs" id="4_vn6x4"]
|
||||
[ext_resource type="Script" path="res://Scripts/P1SpawnPoint.cs" id="4_hoql1"]
|
||||
[ext_resource type="Script" path="res://Scripts/P2SpawnPoint.cs" id="5_tx78o"]
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_8lqmd"]
|
||||
radius = 0.957319
|
||||
@@ -36,8 +37,12 @@ transform = Transform3D(0.7, 0, 0, 0, 0.7, 0, 0, 0, 0.7, 0, 0, -2.53252)
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -2.51823)
|
||||
shape = SubResource("CylinderShape3D_8lqmd")
|
||||
|
||||
[node name="SpawnPoint" type="Marker3D" parent="."]
|
||||
[node name="P1_SpawnPoint" type="Marker3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.503964, 0.123258, 5.51333)
|
||||
script = ExtResource("4_vn6x4")
|
||||
script = ExtResource("4_hoql1")
|
||||
|
||||
[node name="P2_SpawnPoint" type="Marker3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.65542, 0.123258, 5.51333)
|
||||
script = ExtResource("5_tx78o")
|
||||
|
||||
[connection signal="body_entered" from="Area3D2" to="." method="OnExitEntered"]
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://col60npvg7wr1"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://col60npvg7wr1"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://cthfld06b4dng" path="res://Levels/Models/STAGE 5.blend" id="1_fagdb"]
|
||||
[ext_resource type="Script" path="res://Scripts/AreaExit.cs" id="1_qbafj"]
|
||||
[ext_resource type="PackedScene" uid="uid://jgf7k1r35km1" path="res://Scenes/ExitPortal.tscn" id="3_ehcts"]
|
||||
[ext_resource type="Script" path="res://Scripts/SpawnPoint.cs" id="4_pcyqx"]
|
||||
[ext_resource type="Script" path="res://Scripts/P1SpawnPoint.cs" id="4_a5c54"]
|
||||
[ext_resource type="Script" path="res://Scripts/P2SpawnPoint.cs" id="5_2mfmm"]
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_a8pxa"]
|
||||
radius = 0.957319
|
||||
@@ -36,8 +37,12 @@ transform = Transform3D(0.7, 0, 0, 0, 0.7, 0, 0, 0, 0.7, 0, 0, -2.53252)
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -2.51823)
|
||||
shape = SubResource("CylinderShape3D_a8pxa")
|
||||
|
||||
[node name="SpawnPoint" type="Marker3D" parent="."]
|
||||
[node name="P1_SpawnPoint" type="Marker3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.503964, 0.123258, 5.51333)
|
||||
script = ExtResource("4_pcyqx")
|
||||
script = ExtResource("4_a5c54")
|
||||
|
||||
[node name="P2_SpawnPoint" type="Marker3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.16798, 0.123258, 5.51333)
|
||||
script = ExtResource("5_2mfmm")
|
||||
|
||||
[connection signal="body_entered" from="Area3D2" to="." method="OnExitEntered"]
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://8ukphol1isp2"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://8ukphol1isp2"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bc3wjl3ibs5q7" path="res://Levels/Models/STAGE 6.blend" id="1_q1cka"]
|
||||
[ext_resource type="Script" path="res://Scripts/AreaExit.cs" id="1_qlv44"]
|
||||
[ext_resource type="PackedScene" uid="uid://jgf7k1r35km1" path="res://Scenes/ExitPortal.tscn" id="3_0wdh0"]
|
||||
[ext_resource type="Script" path="res://Scripts/SpawnPoint.cs" id="4_ko8hk"]
|
||||
[ext_resource type="Script" path="res://Scripts/P1SpawnPoint.cs" id="4_awoco"]
|
||||
[ext_resource type="Script" path="res://Scripts/P2SpawnPoint.cs" id="5_tba4e"]
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_wu0in"]
|
||||
radius = 0.957319
|
||||
@@ -36,8 +37,12 @@ transform = Transform3D(0.7, 0, 0, 0, 0.7, 0, 0, 0, 0.7, 0, 0, -2.53252)
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -2.51823)
|
||||
shape = SubResource("CylinderShape3D_wu0in")
|
||||
|
||||
[node name="SpawnPoint" type="Marker3D" parent="."]
|
||||
[node name="P1_SpawnPoint" type="Marker3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.503964, 0.123258, 5.51333)
|
||||
script = ExtResource("4_ko8hk")
|
||||
script = ExtResource("4_awoco")
|
||||
|
||||
[node name="P2_SpawnPoint" type="Marker3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.10805, 0.123258, 5.51333)
|
||||
script = ExtResource("5_tba4e")
|
||||
|
||||
[connection signal="body_entered" from="Area3D2" to="." method="OnExitEntered"]
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://bsq7edeueqyjg"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://bsq7edeueqyjg"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://biurk21cl5wxw" path="res://Levels/Models/STAGE 7.blend" id="1_dc67b"]
|
||||
[ext_resource type="Script" path="res://Scripts/AreaExit.cs" id="1_fio4n"]
|
||||
[ext_resource type="PackedScene" uid="uid://jgf7k1r35km1" path="res://Scenes/ExitPortal.tscn" id="3_sjnhq"]
|
||||
[ext_resource type="Script" path="res://Scripts/SpawnPoint.cs" id="4_dpd77"]
|
||||
[ext_resource type="Script" path="res://Scripts/P1SpawnPoint.cs" id="4_kxyoc"]
|
||||
[ext_resource type="Script" path="res://Scripts/P2SpawnPoint.cs" id="5_5gfi0"]
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_a56hv"]
|
||||
radius = 0.957319
|
||||
@@ -36,8 +37,12 @@ transform = Transform3D(0.7, 0, 0, 0, 0.7, 0, 0, 0, 0.7, 0, 0, -2.53252)
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -2.51823)
|
||||
shape = SubResource("CylinderShape3D_a56hv")
|
||||
|
||||
[node name="SpawnPoint" type="Marker3D" parent="."]
|
||||
[node name="P1_SpawnPoint" type="Marker3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.503964, 0.123258, 5.51333)
|
||||
script = ExtResource("4_dpd77")
|
||||
script = ExtResource("4_kxyoc")
|
||||
|
||||
[node name="P2_SpawnPoint" type="Marker3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.6401, 0.123258, 5.51333)
|
||||
script = ExtResource("5_5gfi0")
|
||||
|
||||
[connection signal="body_entered" from="Area3D2" to="." method="OnExitEntered"]
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://c4xcka4ekuur8"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://c4xcka4ekuur8"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/AreaExit.cs" id="1_mo03n"]
|
||||
[ext_resource type="PackedScene" uid="uid://dibismvgu8151" path="res://Levels/Models/STAGE 8.blend" id="1_wd00s"]
|
||||
[ext_resource type="PackedScene" uid="uid://jgf7k1r35km1" path="res://Scenes/ExitPortal.tscn" id="3_44edv"]
|
||||
[ext_resource type="Script" path="res://Scripts/SpawnPoint.cs" id="4_5e415"]
|
||||
[ext_resource type="Script" path="res://Scripts/P1SpawnPoint.cs" id="4_rdu0b"]
|
||||
[ext_resource type="Script" path="res://Scripts/P2SpawnPoint.cs" id="5_76jfi"]
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_3ne7n"]
|
||||
radius = 0.957319
|
||||
@@ -36,8 +37,12 @@ transform = Transform3D(0.7, 0, 0, 0, 0.7, 0, 0, 0, 0.7, 0, 0, -2.53252)
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -2.51823)
|
||||
shape = SubResource("CylinderShape3D_3ne7n")
|
||||
|
||||
[node name="SpawnPoint" type="Marker3D" parent="."]
|
||||
[node name="P1_SpawnPoint" type="Marker3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.503964, 0.123258, 5.51333)
|
||||
script = ExtResource("4_5e415")
|
||||
script = ExtResource("4_rdu0b")
|
||||
|
||||
[node name="P2_SpawnPoint" type="Marker3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.60971, 0.123258, 5.51333)
|
||||
script = ExtResource("5_76jfi")
|
||||
|
||||
[connection signal="body_entered" from="Area3D2" to="." method="OnExitEntered"]
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://0hdnmilwrsq6"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://0hdnmilwrsq6"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bs8iqbayeqqm" path="res://Levels/Models/STAGE 9.blend" id="1_ley6w"]
|
||||
[ext_resource type="Script" path="res://Scripts/SpawnPoint.cs" id="2_gdx0i"]
|
||||
[ext_resource type="Script" path="res://Scripts/P1SpawnPoint.cs" id="2_hr1h4"]
|
||||
[ext_resource type="Script" path="res://Scripts/P2SpawnPoint.cs" id="3_xr71f"]
|
||||
|
||||
[node name="Level9" type="Node3D" groups=["Level"]]
|
||||
|
||||
@@ -17,6 +18,10 @@ visible = false
|
||||
|
||||
[node name="STAGE 9" parent="." instance=ExtResource("1_ley6w")]
|
||||
|
||||
[node name="SpawnPoint" type="Marker3D" parent="."]
|
||||
[node name="P1_SpawnPoint" type="Marker3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.503964, 0.123258, 5.51333)
|
||||
script = ExtResource("2_gdx0i")
|
||||
script = ExtResource("2_hr1h4")
|
||||
|
||||
[node name="P2_SpawnPoint" type="Marker3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.29148, 0.123258, 5.44653)
|
||||
script = ExtResource("3_xr71f")
|
||||
|
||||
81
Scenes/Player2.cs
Normal file
81
Scenes/Player2.cs
Normal file
@@ -0,0 +1,81 @@
|
||||
using Godot;
|
||||
using System;
|
||||
|
||||
public partial class Player2 : CharacterBody3D
|
||||
{
|
||||
[Export]
|
||||
private float _speed = 5.0f;
|
||||
[Export]
|
||||
private PackedScene _fireProjectile;
|
||||
[Export]
|
||||
private PackedScene _altFireProjectile;
|
||||
|
||||
public bool CanShoot { get; private set; }
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
CanShoot = true;
|
||||
}
|
||||
|
||||
public override void _PhysicsProcess(double delta)
|
||||
{
|
||||
Velocity = CalculateCharacterMovement(delta);
|
||||
MoveAndSlide();
|
||||
}
|
||||
|
||||
public override void _UnhandledInput(InputEvent @event)
|
||||
{
|
||||
if (Input.IsActionJustPressed("exit"))
|
||||
GetTree().Quit();
|
||||
|
||||
if (Input.IsActionJustPressed("p2_fire") && CanShoot)
|
||||
Fire();
|
||||
if (Input.IsActionJustPressed("p2_altfire") && CanShoot)
|
||||
AltFire();
|
||||
}
|
||||
|
||||
private Vector3 CalculateCharacterMovement(double delta)
|
||||
{
|
||||
var velocity = Velocity;
|
||||
|
||||
var inputDir = Input.GetVector("p2_left", "p2_right", "p2_up", "p2_down");
|
||||
var direction = (Transform.Basis * new Vector3(inputDir.X, 0, inputDir.Y)).Normalized();
|
||||
if (direction != Vector3.Zero)
|
||||
{
|
||||
velocity.X = direction.X * _speed;
|
||||
velocity.Z = direction.Z * _speed;
|
||||
GetNode<Node3D>("Pivot").LookAt(Position + direction, Vector3.Up);
|
||||
}
|
||||
else
|
||||
{
|
||||
velocity.X = Mathf.MoveToward(Velocity.X, 0, _speed);
|
||||
velocity.Z = Mathf.MoveToward(Velocity.Z, 0, _speed);
|
||||
}
|
||||
return velocity;
|
||||
}
|
||||
|
||||
private async void Fire()
|
||||
{
|
||||
var projectile = _fireProjectile.Instantiate<Projectile>();
|
||||
projectile.Position = Position + new Vector3(0f, 1f, -3f);
|
||||
GetParent().AddChild(projectile);
|
||||
CanShoot = false;
|
||||
await ToSignal(GetTree().CreateTimer(projectile.Cooldown), "timeout");
|
||||
CanShoot = true;
|
||||
}
|
||||
|
||||
private async void AltFire()
|
||||
{
|
||||
var projectile = _altFireProjectile.Instantiate<Projectile>();
|
||||
projectile.Position = Position + new Vector3(0f, 1f, -3f);
|
||||
GetParent().AddChild(projectile);
|
||||
CanShoot = false;
|
||||
await ToSignal(GetTree().CreateTimer(projectile.Cooldown), "timeout");
|
||||
CanShoot = true;
|
||||
}
|
||||
|
||||
private void OnHit(Node3D node)
|
||||
{
|
||||
QueueFree();
|
||||
}
|
||||
}
|
||||
7
Scenes/god_circuit.tscn
Normal file
7
Scenes/god_circuit.tscn
Normal file
@@ -0,0 +1,7 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://brbshysbgd47q"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://cigdj84f0m3jd" path="res://Levels/Models/god circuit stage 1.glb" id="1_w12q0"]
|
||||
|
||||
[node name="God Circuit" type="Node3D"]
|
||||
|
||||
[node name="god circuit stage 1" parent="." instance=ExtResource("1_w12q0")]
|
||||
15
Scripts/P1SpawnPoint.cs
Normal file
15
Scripts/P1SpawnPoint.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using Godot;
|
||||
using System.Linq;
|
||||
|
||||
public partial class P1SpawnPoint : Marker3D
|
||||
{
|
||||
public override void _Ready()
|
||||
{
|
||||
var players = GetTree().GetNodesInGroup("Player1");
|
||||
if (players.Any())
|
||||
{
|
||||
var player = (TestCharacter)players.First();
|
||||
player.Position = Position;
|
||||
}
|
||||
}
|
||||
}
|
||||
15
Scripts/P2SpawnPoint.cs
Normal file
15
Scripts/P2SpawnPoint.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using Godot;
|
||||
using System.Linq;
|
||||
|
||||
public partial class P2SpawnPoint : Marker3D
|
||||
{
|
||||
public override void _Ready()
|
||||
{
|
||||
var players = GetTree().GetNodesInGroup("Player2");
|
||||
if (players.Any())
|
||||
{
|
||||
var player = (Player2)players.First();
|
||||
player.Position = Position;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
using Godot;
|
||||
|
||||
public partial class SpawnPoint : Marker3D
|
||||
{
|
||||
// Called when the node enters the scene tree for the first time.
|
||||
public override void _Ready()
|
||||
{
|
||||
var player = GetTree().GetFirstNodeInGroup("Player") as TestCharacter;
|
||||
player.Position = Position;
|
||||
}
|
||||
}
|
||||
@@ -76,3 +76,43 @@ exit={
|
||||
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":6,"pressure":0.0,"pressed":true,"script":null)
|
||||
]
|
||||
}
|
||||
p2_up={
|
||||
"deadzone": 0.5,
|
||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194320,"key_label":0,"unicode":0,"echo":false,"script":null)
|
||||
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":1,"axis":1,"axis_value":-1.0,"script":null)
|
||||
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":1,"button_index":11,"pressure":0.0,"pressed":true,"script":null)
|
||||
]
|
||||
}
|
||||
p2_left={
|
||||
"deadzone": 0.5,
|
||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194319,"key_label":0,"unicode":0,"echo":false,"script":null)
|
||||
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":1,"axis":0,"axis_value":-1.0,"script":null)
|
||||
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":1,"button_index":13,"pressure":0.0,"pressed":true,"script":null)
|
||||
]
|
||||
}
|
||||
p2_right={
|
||||
"deadzone": 0.5,
|
||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194321,"key_label":0,"unicode":0,"echo":false,"script":null)
|
||||
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":1,"axis":0,"axis_value":1.0,"script":null)
|
||||
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":1,"button_index":14,"pressure":0.0,"pressed":true,"script":null)
|
||||
]
|
||||
}
|
||||
p2_down={
|
||||
"deadzone": 0.5,
|
||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194322,"key_label":0,"unicode":0,"echo":false,"script":null)
|
||||
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":1,"axis":1,"axis_value":1.0,"script":null)
|
||||
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":1,"button_index":12,"pressure":0.0,"pressed":true,"script":null)
|
||||
]
|
||||
}
|
||||
p2_fire={
|
||||
"deadzone": 0.5,
|
||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194436,"key_label":0,"unicode":46,"echo":false,"script":null)
|
||||
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":1,"button_index":0,"pressure":0.0,"pressed":true,"script":null)
|
||||
]
|
||||
}
|
||||
p2_altfire={
|
||||
"deadzone": 0.5,
|
||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194310,"key_label":0,"unicode":0,"echo":false,"script":null)
|
||||
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":1,"button_index":1,"pressure":0.0,"pressed":true,"script":null)
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user