Release Candidate v0.1
This commit is contained in:
@@ -11,29 +11,37 @@ public partial class BossOrb : RigidBody3D
|
||||
[Export]
|
||||
private PackedScene _attack;
|
||||
|
||||
private bool _shouldAttack = false;
|
||||
[Export]
|
||||
private AnimationPlayer _animationPlayer;
|
||||
|
||||
public void OnOrbHit(Node3D node)
|
||||
public bool CanAttack = false;
|
||||
|
||||
public void OnOrbHit(Node node)
|
||||
{
|
||||
_hp.TakeDamage(50000);
|
||||
GD.Print(_hp.CurrentHP);
|
||||
if (_hp.CurrentHP <= 0)
|
||||
if (node is Character character && character.HasMethod(Character.MethodName.OnHit))
|
||||
{
|
||||
EmitSignal(SignalName.OnBossOrbExploded);
|
||||
QueueFree();
|
||||
GD.Print("Player hit: " + character.Name);
|
||||
character.Call(Character.MethodName.OnHit, node);
|
||||
}
|
||||
else
|
||||
{
|
||||
_hp.TakeDamage(1);
|
||||
if (_animationPlayer != null)
|
||||
_animationPlayer.Play("OnHit");
|
||||
GD.Print(_hp.CurrentHP);
|
||||
if (_hp.CurrentHP <= 0)
|
||||
{
|
||||
EmitSignal(SignalName.OnBossOrbExploded);
|
||||
QueueFree();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void OnFire(Node3D node)
|
||||
public void OnFire()
|
||||
{
|
||||
if (_shouldAttack)
|
||||
{
|
||||
var attackZone = GetNode<Area3D>("/root/Level10/AttackZone");
|
||||
var attack = _attack.Instantiate<Node3D>();
|
||||
attackZone.AddChild(attack);
|
||||
}
|
||||
|
||||
_shouldAttack = !_shouldAttack;
|
||||
var attack = _attack.Instantiate<Node3D>();
|
||||
attack.GlobalPosition = GlobalPosition;
|
||||
GetTree().Root.AddChild(attack);
|
||||
}
|
||||
|
||||
public void DestroySelf()
|
||||
|
||||
@@ -3,6 +3,19 @@ using Godot;
|
||||
public partial class GameEnding : Node3D
|
||||
{
|
||||
public void OnGameEnding()
|
||||
{
|
||||
var bgmPlayer = GetTree().Root.GetNode<BGMPlayer>("BgmPlayer");
|
||||
bgmPlayer.Stop();
|
||||
|
||||
var videoPlayer = GetNode<VideoStreamPlayer>("VideoStreamPlayer");
|
||||
videoPlayer.Play();
|
||||
videoPlayer.Finished += CutsceneOver;
|
||||
|
||||
var gameManager = GetTree().Root.GetNode<GameManager>("Main/GameManager");
|
||||
gameManager.OnLevelClear();
|
||||
}
|
||||
|
||||
public void CutsceneOver()
|
||||
{
|
||||
var bgmPlayer = GetTree().Root.GetNode<BGMPlayer>("BgmPlayer");
|
||||
bgmPlayer.ProcessMode = ProcessModeEnum.Always;
|
||||
@@ -11,5 +24,12 @@ public partial class GameEnding : Node3D
|
||||
|
||||
var animationPlayer = GetNode<AnimationPlayer>("AnimationPlayer");
|
||||
animationPlayer.Play("GameEnding");
|
||||
animationPlayer.AnimationFinished += AfterCredits;
|
||||
}
|
||||
|
||||
public void AfterCredits(StringName animationName)
|
||||
{
|
||||
var gameManager = GetTree().Root.GetNode<GameManager>("Main/GameManager");
|
||||
gameManager.ReloadGameScene();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=152 format=3 uid="uid://0hdnmilwrsq6"]
|
||||
[gd_scene load_steps=158 format=3 uid="uid://tt886mv7pffe"]
|
||||
|
||||
[ext_resource type="Script" path="res://Levels/Scripts/FinalLevel.cs" id="1_sy7dk"]
|
||||
[ext_resource type="Material" uid="uid://04v0ve8qhqkv" path="res://Video/CloudScrollMaterial.tres" id="2_2sumr"]
|
||||
@@ -38,7 +38,14 @@
|
||||
[ext_resource type="Texture2D" uid="uid://dsqvracnne1pi" path="res://Levels/Models/Stage10/FINAL STAGE_relativity.png" id="23_qjhvx"]
|
||||
[ext_resource type="Texture2D" uid="uid://5mlk2fw47ib5" path="res://Levels/Models/Stage10/FINAL STAGE_SPHERES.png" id="24_no4m6"]
|
||||
[ext_resource type="Script" path="res://Levels/Scenes/BossOrb.cs" id="34_ditjx"]
|
||||
[ext_resource type="PackedScene" uid="uid://cql4evq5281n4" path="res://Levels/Scripts/PyramidAttack.tscn" id="34_kwn8s"]
|
||||
[ext_resource type="PackedScene" uid="uid://cql4evq5281n4" path="res://Enemies/Attacks/GodCircuitAttacks/PyramidAttack.tscn" id="34_isrj4"]
|
||||
[ext_resource type="PackedScene" uid="uid://uwia12i7yykb" path="res://Enemies/Attacks/GodCircuitAttacks/LaserAttack.tscn" id="37_jd5dy"]
|
||||
[ext_resource type="Animation" uid="uid://cvpg4y8gcowbb" path="res://Animations/OnHitPyramid.res" id="38_cg4tc"]
|
||||
[ext_resource type="Animation" uid="uid://v2hbm2nsfddk" path="res://Animations/OnHitOrb.res" id="39_4f5hv"]
|
||||
[ext_resource type="AudioStream" uid="uid://6yf38ykqn31u" path="res://Audio/SFX/HitObstacle.wav" id="40_ku5el"]
|
||||
[ext_resource type="PackedScene" uid="uid://b75khmojjbq4f" path="res://Enemies/Attacks/GodCircuitAttacks/HedronAttack.tscn" id="40_sb1e4"]
|
||||
[ext_resource type="Animation" uid="uid://bhbo613dr52fg" path="res://Animations/OnHitHedron.res" id="42_8q562"]
|
||||
[ext_resource type="PackedScene" uid="uid://b1tm30iteu5rh" path="res://Video/VideoPlayer.tscn" id="44_imo6u"]
|
||||
|
||||
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_hdhsy"]
|
||||
sky_top_color = Color(1, 1, 1, 1)
|
||||
@@ -1461,41 +1468,6 @@ size = Vector3(5, 20, 27.822)
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_myhef"]
|
||||
size = Vector3(5, 20, 27.822)
|
||||
|
||||
[sub_resource type="Animation" id="Animation_iincs"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("ColorRect:modulate")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 1, 0)]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("Label:modulate")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 1, 0)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_l1ojm"]
|
||||
_data = {
|
||||
"GameEnding": ExtResource("13_plu01"),
|
||||
"RESET": SubResource("Animation_iincs")
|
||||
}
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_gphy5"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_cs88m"]
|
||||
font = ExtResource("14_fcfkf")
|
||||
font_size = 24
|
||||
@@ -1549,50 +1521,62 @@ _data = {
|
||||
"RESET": SubResource("Animation_wy7s8")
|
||||
}
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_eianc"]
|
||||
size = Vector3(2.65825, 1.099, 1.20222)
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_los3u"]
|
||||
height = 3.85738
|
||||
radius = 0.412024
|
||||
|
||||
[sub_resource type="Animation" id="Animation_qiaxl"]
|
||||
resource_name = "OnHit"
|
||||
length = 0.25
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("PyramidSprite:modulate")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.2, 0.25),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 1, 1), Color(1, 0.054902, 0, 0.384314), Color(1, 1, 1, 1)]
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_ua8sg"]
|
||||
_data = {
|
||||
"OnHit": ExtResource("38_cg4tc")
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_kp4ef"]
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_xjg08"]
|
||||
_data = {
|
||||
"OnHit": ExtResource("39_4f5hv")
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_dwac1"]
|
||||
_data = {
|
||||
"OnHit": ExtResource("42_8q562")
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_iincs"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("PyramidSprite:modulate")
|
||||
tracks/0/path = NodePath("ColorRect:modulate")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Color(1, 0.054902, 0, 0.384314)]
|
||||
"values": [Color(1, 1, 1, 0)]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("Label:modulate")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 1, 0)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_hkeo4"]
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_l1ojm"]
|
||||
_data = {
|
||||
"OnHit": SubResource("Animation_qiaxl"),
|
||||
"RESET": SubResource("Animation_kp4ef")
|
||||
"GameEnding": ExtResource("13_plu01"),
|
||||
"RESET": SubResource("Animation_iincs")
|
||||
}
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_gphy5"]
|
||||
font = ExtResource("14_fcfkf")
|
||||
font_size = 48
|
||||
|
||||
[node name="Level10" type="Node3D" groups=["Level"]]
|
||||
process_mode = 3
|
||||
script = ExtResource("1_sy7dk")
|
||||
@@ -1773,7 +1757,7 @@ libraries = {
|
||||
transform = Transform3D(0.75, 0, 0, 0, 0.657759, 0.360351, 0, -0.360351, 0.657759, 0, 1.29734, -1.26966)
|
||||
|
||||
[node name="HP Component" parent="God Circuit" instance=ExtResource("7_nvq88")]
|
||||
MaximumHP = 100000000
|
||||
MaximumHP = 200
|
||||
|
||||
[node name="StaticBody3D" type="StaticBody3D" parent="."]
|
||||
collision_mask = 0
|
||||
@@ -1794,39 +1778,6 @@ shape = SubResource("BoxShape3D_hf7lb")
|
||||
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0, 9.03101)
|
||||
shape = SubResource("BoxShape3D_myhef")
|
||||
|
||||
[node name="GameEnding" type="Node3D" parent="."]
|
||||
script = ExtResource("12_kefc8")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="GameEnding"]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_l1ojm")
|
||||
}
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="GameEnding"]
|
||||
modulate = Color(1, 1, 1, 0)
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_right = -1.0
|
||||
offset_bottom = 2.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="Label" type="Label" parent="GameEnding"]
|
||||
modulate = Color(1, 1, 1, 0)
|
||||
anchors_preset = 5
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
offset_left = -959.0
|
||||
offset_right = 959.0
|
||||
offset_bottom = 1077.0
|
||||
grow_horizontal = 2
|
||||
size_flags_horizontal = 4
|
||||
label_settings = SubResource("LabelSettings_gphy5")
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="Boss GUI" type="Control" parent="."]
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
@@ -1843,12 +1794,13 @@ offset_top = 1004.0
|
||||
offset_right = -449.0
|
||||
offset_bottom = 1024.0
|
||||
grow_horizontal = 2
|
||||
max_value = 1e+08
|
||||
max_value = 300.0
|
||||
nine_patch_stretch = true
|
||||
texture_progress = ExtResource("5_jjg8p")
|
||||
script = ExtResource("2_53ar2")
|
||||
|
||||
[node name="Label" type="Label" parent="Boss GUI"]
|
||||
z_index = -1
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
@@ -1871,24 +1823,16 @@ libraries = {
|
||||
|
||||
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="Boss GUI"]
|
||||
stream = ExtResource("7_gnuti")
|
||||
|
||||
[node name="AttackZone" type="Area3D" parent="."]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.23141, 0, -0.954215)
|
||||
collision_layer = 128
|
||||
collision_mask = 128
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="AttackZone"]
|
||||
shape = SubResource("BoxShape3D_eianc")
|
||||
max_polyphony = 15
|
||||
|
||||
[node name="BossOrbs" type="Node3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.260435, 0, -1.52945)
|
||||
script = ExtResource("8_7itwt")
|
||||
|
||||
[node name="Pyramid" type="RigidBody3D" parent="BossOrbs" node_paths=PackedStringArray("_hp")]
|
||||
[node name="Pyramid" type="RigidBody3D" parent="BossOrbs" node_paths=PackedStringArray("_hp", "_animationPlayer")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.064761, 0.75105, -2.67492)
|
||||
collision_layer = 128
|
||||
collision_mask = 68
|
||||
collision_mask = 196
|
||||
gravity_scale = 0.0
|
||||
continuous_cd = true
|
||||
max_contacts_reported = 10
|
||||
@@ -1897,11 +1841,11 @@ can_sleep = false
|
||||
freeze_mode = 1
|
||||
script = ExtResource("34_ditjx")
|
||||
_hp = NodePath("HP Component")
|
||||
_attack = ExtResource("34_kwn8s")
|
||||
_attack = ExtResource("34_isrj4")
|
||||
_animationPlayer = NodePath("AnimationPlayer")
|
||||
|
||||
[node name="PyramidSprite" type="Sprite3D" parent="BossOrbs/Pyramid"]
|
||||
transform = Transform3D(0.08, 0, 0, 0, 0.08, 0, 0, 0, 0.08, 0, 0, 0)
|
||||
modulate = Color(1, 0.054902, 0, 0.384314)
|
||||
axis = 1
|
||||
texture = ExtResource("10_dusre")
|
||||
|
||||
@@ -1910,16 +1854,20 @@ transform = Transform3D(1, 0, -2.98023e-08, 0, 1, 0, 2.98023e-08, 0, 1, 0.051398
|
||||
shape = SubResource("CylinderShape3D_los3u")
|
||||
|
||||
[node name="HP Component" parent="BossOrbs/Pyramid" instance=ExtResource("7_nvq88")]
|
||||
MaximumHP = 2000000
|
||||
MaximumHP = 15
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="BossOrbs/Pyramid"]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_hkeo4")
|
||||
"": SubResource("AnimationLibrary_ua8sg")
|
||||
}
|
||||
|
||||
[node name="Orb" type="RigidBody3D" parent="BossOrbs" node_paths=PackedStringArray("_hp")]
|
||||
[node name="Timer" type="Timer" parent="BossOrbs/Pyramid"]
|
||||
wait_time = 15.0
|
||||
autostart = true
|
||||
|
||||
[node name="Orb" type="RigidBody3D" parent="BossOrbs" node_paths=PackedStringArray("_hp", "_animationPlayer")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.75045, 0.241416, 1.28096)
|
||||
collision_layer = 128
|
||||
collision_layer = 0
|
||||
collision_mask = 68
|
||||
gravity_scale = 0.0
|
||||
continuous_cd = true
|
||||
@@ -1929,7 +1877,8 @@ can_sleep = false
|
||||
freeze_mode = 1
|
||||
script = ExtResource("34_ditjx")
|
||||
_hp = NodePath("HP Component")
|
||||
_attack = ExtResource("34_kwn8s")
|
||||
_attack = ExtResource("37_jd5dy")
|
||||
_animationPlayer = NodePath("AnimationPlayer")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="BossOrbs/Orb"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.473554, 0, 0.565499)
|
||||
@@ -1941,11 +1890,20 @@ axis = 1
|
||||
texture = ExtResource("8_2yfol")
|
||||
|
||||
[node name="HP Component" parent="BossOrbs/Orb" instance=ExtResource("7_nvq88")]
|
||||
MaximumHP = 2000000
|
||||
MaximumHP = 15
|
||||
|
||||
[node name="Hedron" type="RigidBody3D" parent="BossOrbs" node_paths=PackedStringArray("_hp")]
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="BossOrbs/Orb"]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_xjg08")
|
||||
}
|
||||
|
||||
[node name="Timer" type="Timer" parent="BossOrbs/Orb"]
|
||||
wait_time = 13.0
|
||||
autostart = true
|
||||
|
||||
[node name="Hedron" type="RigidBody3D" parent="BossOrbs" node_paths=PackedStringArray("_hp", "_animationPlayer")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.88775, 0.704458, 1.45723)
|
||||
collision_layer = 128
|
||||
collision_layer = 0
|
||||
collision_mask = 68
|
||||
gravity_scale = 0.0
|
||||
continuous_cd = true
|
||||
@@ -1955,7 +1913,8 @@ can_sleep = false
|
||||
freeze_mode = 1
|
||||
script = ExtResource("34_ditjx")
|
||||
_hp = NodePath("HP Component")
|
||||
_attack = ExtResource("34_kwn8s")
|
||||
_attack = ExtResource("40_sb1e4")
|
||||
_animationPlayer = NodePath("AnimationPlayer")
|
||||
|
||||
[node name="HedronSprite" type="Sprite3D" parent="BossOrbs/Hedron"]
|
||||
transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0, 0, 0)
|
||||
@@ -1967,13 +1926,75 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0136576, 0, 0)
|
||||
shape = SubResource("CylinderShape3D_los3u")
|
||||
|
||||
[node name="HP Component" parent="BossOrbs/Hedron" instance=ExtResource("7_nvq88")]
|
||||
MaximumHP = 2000000
|
||||
MaximumHP = 15
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="BossOrbs/Hedron"]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_dwac1")
|
||||
}
|
||||
|
||||
[node name="Timer" type="Timer" parent="BossOrbs/Hedron"]
|
||||
wait_time = 28.0
|
||||
autostart = true
|
||||
|
||||
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="BossOrbs"]
|
||||
stream = ExtResource("40_ku5el")
|
||||
volume_db = 1.0
|
||||
pitch_scale = 1.1
|
||||
max_polyphony = 15
|
||||
|
||||
[node name="GameEnding" type="Node3D" parent="."]
|
||||
script = ExtResource("12_kefc8")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="GameEnding"]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_l1ojm")
|
||||
}
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="GameEnding"]
|
||||
modulate = Color(1, 1, 1, 0)
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_right = -1.0
|
||||
offset_bottom = 2.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="Label" type="Label" parent="GameEnding"]
|
||||
modulate = Color(1, 1, 1, 0)
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -98.5
|
||||
offset_top = -34.5
|
||||
offset_right = 98.5
|
||||
offset_bottom = 34.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
size_flags_horizontal = 4
|
||||
text = "THE END"
|
||||
label_settings = SubResource("LabelSettings_gphy5")
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="VideoStreamPlayer" parent="GameEnding" instance=ExtResource("44_imo6u")]
|
||||
autoplay = false
|
||||
|
||||
[connection signal="DestroyRemainingOrbs" from="God Circuit" to="BossOrbs/Pyramid" method="DestroySelf"]
|
||||
[connection signal="DestroyRemainingOrbs" from="God Circuit" to="BossOrbs/Orb" method="DestroySelf"]
|
||||
[connection signal="DestroyRemainingOrbs" from="God Circuit" to="BossOrbs/Hedron" method="DestroySelf"]
|
||||
[connection signal="OnEnemyBossHit" from="God Circuit" to="Boss GUI/TextureProgressBar" method="UpdateBar"]
|
||||
[connection signal="body_entered" from="AttackZone" to="BossOrbs/Pyramid" method="OnFire"]
|
||||
[connection signal="OnGameEnding" from="God Circuit" to="GameEnding" method="OnGameEnding"]
|
||||
[connection signal="OnBossOrbExploded" from="BossOrbs/Pyramid" to="God Circuit" method="OnBossOrbDestroyed"]
|
||||
[connection signal="body_entered" from="BossOrbs/Pyramid" to="BossOrbs/Pyramid" method="OnOrbHit"]
|
||||
[connection signal="timeout" from="BossOrbs/Pyramid/Timer" to="BossOrbs/Pyramid" method="OnFire"]
|
||||
[connection signal="OnBossOrbExploded" from="BossOrbs/Orb" to="God Circuit" method="OnBossOrbDestroyed"]
|
||||
[connection signal="body_entered" from="BossOrbs/Orb" to="BossOrbs/Orb" method="OnOrbHit"]
|
||||
[connection signal="timeout" from="BossOrbs/Orb/Timer" to="BossOrbs/Orb" method="OnFire"]
|
||||
[connection signal="OnBossOrbExploded" from="BossOrbs/Hedron" to="God Circuit" method="OnBossOrbDestroyed"]
|
||||
[connection signal="body_entered" from="BossOrbs/Hedron" to="BossOrbs/Hedron" method="OnOrbHit"]
|
||||
[connection signal="timeout" from="BossOrbs/Hedron/Timer" to="BossOrbs/Hedron" method="OnFire"]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=39 format=3 uid="uid://btl5fdyjewnwc"]
|
||||
[gd_scene load_steps=40 format=3 uid="uid://btl5fdyjewnwc"]
|
||||
|
||||
[ext_resource type="Script" path="res://Levels/Scripts/Level.cs" id="1_1xwm7"]
|
||||
[ext_resource type="PackedScene" uid="uid://jgf7k1r35km1" path="res://Levels/ExitPortal.tscn" id="3_2t766"]
|
||||
@@ -8,6 +8,7 @@
|
||||
[ext_resource type="PackedScene" uid="uid://dahp73fwld24h" path="res://Enemies/RangedEnemy.tscn" id="5_8b1ug"]
|
||||
[ext_resource type="Texture2D" uid="uid://33cgwfy7mqcg" path="res://Levels/Models/Stage3/STAGE 3_LIon Marquee_2320x920_2.png" id="5_kwy6o"]
|
||||
[ext_resource type="PackedScene" uid="uid://bt5rolsyjmx55" path="res://Enemies/MeleeEnemy.tscn" id="6_b7xn3"]
|
||||
[ext_resource type="AudioStream" uid="uid://6yf38ykqn31u" path="res://Audio/SFX/HitObstacle.wav" id="7_j16pm"]
|
||||
[ext_resource type="Script" path="res://Levels/Scripts/Door.cs" id="8_ow05j"]
|
||||
[ext_resource type="Shader" path="res://Levels/Scenes/Door.gdshader" id="9_05wf0"]
|
||||
[ext_resource type="Texture2D" uid="uid://cep6lm4mg58ua" path="res://Levels/Models/Stage3/STAGE 3_2317.png" id="11_eto36"]
|
||||
@@ -72,7 +73,7 @@ shader = ExtResource("9_05wf0")
|
||||
|
||||
[sub_resource type="Animation" id="Animation_uk6to"]
|
||||
resource_name = "HitFlash"
|
||||
length = 0.2
|
||||
length = 0.7
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = false
|
||||
@@ -97,6 +98,29 @@ tracks/1/keys = {
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 1, 1), Color(0.752941, 0, 0, 1), Color(1, 1, 1, 1)]
|
||||
}
|
||||
tracks/2/type = "audio"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("AudioStreamPlayer")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"clips": [],
|
||||
"times": PackedFloat32Array()
|
||||
}
|
||||
tracks/2/use_blend = true
|
||||
tracks/3/type = "value"
|
||||
tracks/3/imported = false
|
||||
tracks/3/enabled = true
|
||||
tracks/3/path = NodePath("AudioStreamPlayer:playing")
|
||||
tracks/3/interp = 1
|
||||
tracks/3/loop_wrap = true
|
||||
tracks/3/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [true]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_27wc0"]
|
||||
length = 0.001
|
||||
@@ -124,6 +148,18 @@ tracks/1/keys = {
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 1, 1)]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("AudioStreamPlayer:playing")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [true]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_lfq7u"]
|
||||
_data = {
|
||||
@@ -507,6 +543,9 @@ collision_mask = 32
|
||||
transform = Transform3D(-4.37114e-08, 2.5411e-21, 1, 1.42109e-14, 1, -2.5411e-21, -1, -2.84217e-14, -4.37114e-08, -0.571146, 0.810928, 0.294388)
|
||||
shape = SubResource("BoxShape3D_yew2s")
|
||||
|
||||
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="Door"]
|
||||
stream = ExtResource("7_j16pm")
|
||||
|
||||
[node name="Exit Portal" parent="." instance=ExtResource("3_2t766")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.42152, -0.073884, -5.35807)
|
||||
|
||||
|
||||
@@ -429,17 +429,14 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.102972, 0)
|
||||
mesh = SubResource("ArrayMesh_aecmk")
|
||||
skeleton = NodePath("")
|
||||
|
||||
[node name="Melee Enemy2" parent="STAGE 9/Plane" node_paths=PackedStringArray("_hp") instance=ExtResource("6_he4fx")]
|
||||
[node name="Melee Enemy2" parent="STAGE 9/Plane" instance=ExtResource("6_he4fx")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.50991, 0, 1.92293)
|
||||
_hp = NodePath("../../../Melee Enemy2/HP Component")
|
||||
|
||||
[node name="Melee Enemy2" parent="STAGE 9/Plane/Melee Enemy2" node_paths=PackedStringArray("_hp") instance=ExtResource("6_he4fx")]
|
||||
[node name="Melee Enemy2" parent="STAGE 9/Plane/Melee Enemy2" instance=ExtResource("6_he4fx")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.932325, -0.367979, -6.01649)
|
||||
_hp = NodePath("../../../../Melee Enemy2/HP Component")
|
||||
|
||||
[node name="Melee Enemy2" parent="STAGE 9/Plane/Melee Enemy2/Melee Enemy2" node_paths=PackedStringArray("_hp") instance=ExtResource("6_he4fx")]
|
||||
[node name="Melee Enemy2" parent="STAGE 9/Plane/Melee Enemy2/Melee Enemy2" instance=ExtResource("6_he4fx")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.05054, -0.367979, -0.683629)
|
||||
_hp = NodePath("../../../../../Melee Enemy2/HP Component")
|
||||
|
||||
[node name="Cube" type="MeshInstance3D" parent="STAGE 9"]
|
||||
transform = Transform3D(-1.88868, 0, -9.70661e-08, 0, 1, 0, 6.1541e-07, 0, -0.297894, 2.97173, 0.129772, -3.56831)
|
||||
@@ -581,30 +578,30 @@ libraries = {
|
||||
|
||||
[node name="Enemies" type="Node3D" parent="."]
|
||||
|
||||
[node name="Melee Enemy" parent="." instance=ExtResource("6_he4fx")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.07774, 0.251952, 1.13652)
|
||||
|
||||
[node name="Melee Enemy2" parent="." instance=ExtResource("6_he4fx")]
|
||||
[node name="Melee Enemy2" parent="Enemies" instance=ExtResource("6_he4fx")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.59927, 0, 2.47846)
|
||||
|
||||
[node name="RangedEnemy4" parent="." instance=ExtResource("5_g2lk8")]
|
||||
[node name="Melee Enemy" parent="Enemies" instance=ExtResource("6_he4fx")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.07774, 0.251952, 1.13652)
|
||||
|
||||
[node name="RangedEnemy4" parent="Enemies" instance=ExtResource("5_g2lk8")]
|
||||
transform = Transform3D(-0.999999, 0, -0.00116936, 0, 1, 0, 0.00116936, 0, -0.999999, -1.48224, -0.0960431, -2.952)
|
||||
|
||||
[node name="RangedEnemy" parent="." instance=ExtResource("5_g2lk8")]
|
||||
[node name="RangedEnemy" parent="Enemies" instance=ExtResource("5_g2lk8")]
|
||||
transform = Transform3D(-0.999999, 0, -0.00116936, 0, 1, 0, 0.00116936, 0, -0.999999, 1.88274, 0, -1.93627)
|
||||
|
||||
[node name="RangedEnemy6" parent="." node_paths=PackedStringArray("_hp") instance=ExtResource("5_g2lk8")]
|
||||
[node name="RangedEnemy6" parent="Enemies" node_paths=PackedStringArray("_hp") instance=ExtResource("5_g2lk8")]
|
||||
transform = Transform3D(-0.999999, 0, -0.00116936, 0, 1, 0, 0.00116936, 0, -0.999999, -4.88238, -0.396447, -4.21396)
|
||||
_hp = NodePath("../RangedEnemy2/HP Component")
|
||||
|
||||
[node name="RangedEnemy5" parent="." node_paths=PackedStringArray("_hp") instance=ExtResource("5_g2lk8")]
|
||||
[node name="RangedEnemy5" parent="Enemies" node_paths=PackedStringArray("_hp") instance=ExtResource("5_g2lk8")]
|
||||
transform = Transform3D(-0.999999, 0, -0.00116936, 0, 1, 0, 0.00116936, 0, -0.999999, -4.78224, -0.264298, 0.6371)
|
||||
_hp = NodePath("../RangedEnemy2/HP Component")
|
||||
|
||||
[node name="RangedEnemy2" parent="." instance=ExtResource("5_g2lk8")]
|
||||
[node name="RangedEnemy2" parent="Enemies" instance=ExtResource("5_g2lk8")]
|
||||
transform = Transform3D(-0.999999, 0, -0.00116936, 0, 1, 0, 0.00116936, 0, -0.999999, 0.526673, -0.132149, -3.13367)
|
||||
|
||||
[node name="RangedEnemy3" parent="." instance=ExtResource("5_g2lk8")]
|
||||
[node name="RangedEnemy3" parent="Enemies" instance=ExtResource("5_g2lk8")]
|
||||
transform = Transform3D(-0.999999, 0, -0.00116936, 0, 1, 0, 0.00116936, 0, -0.999999, -0.307606, -0.298673, -3.61058)
|
||||
|
||||
[node name="Exit Portal" parent="." instance=ExtResource("7_h6fqi")]
|
||||
|
||||
@@ -9,18 +9,23 @@ public partial class Level : Node3D
|
||||
|
||||
public override void _EnterTree()
|
||||
{
|
||||
_gameManager = GetTree().Root.GetNode<GameManager>("Main/GameManager");
|
||||
_enemies = GetNode("Enemies").GetChildren().OfType<BasicEnemy>().ToList();
|
||||
_gameManager = GetTree().Root.GetNode<GameManager>("Main/GameManager");
|
||||
_enemies = GetNode("Enemies").GetChildren().OfType<BasicEnemy>().ToList();
|
||||
}
|
||||
|
||||
public void OnEnemyDefeated(BasicEnemy enemy)
|
||||
{
|
||||
if (_enemies.Contains(enemy))
|
||||
{
|
||||
GD.Print("On enemy defeated " + enemy.Name);
|
||||
_enemies.Remove(enemy);
|
||||
if (!_enemies.Any())
|
||||
_gameManager.OnAllEnemiesDefeated();
|
||||
}
|
||||
if (_enemies.Contains(enemy))
|
||||
{
|
||||
GD.Print("On enemy defeated " + enemy.Name);
|
||||
_enemies.Remove(enemy);
|
||||
if (!_enemies.Any())
|
||||
_gameManager.OnAllEnemiesDefeated();
|
||||
}
|
||||
}
|
||||
|
||||
public void GameEnding()
|
||||
{
|
||||
QueueFree();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,241 +0,0 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://cql4evq5281n4"]
|
||||
|
||||
[ext_resource type="Script" path="res://Enemies/Attacks/GodCircuitAttacks/PyramidAttack.cs" id="1_yfldc"]
|
||||
[ext_resource type="Texture2D" uid="uid://531b68bg4tn6" path="res://Textures/Projectiles/Layer 1.png" id="2_lufet"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_8rgmo"]
|
||||
resource_name = "PyramidAttack"
|
||||
length = 3.0
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Center/CollisionShape3D:position")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 3),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 1, 0), Vector3(0, 1, 5)]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("Center/CollisionShape3D:scale")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0, 3),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(1, 1, 1), Vector3(3, 3, 3)]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("Left/CollisionShape3D:position")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0, 3),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 1, 0), Vector3(0, 1, 5)]
|
||||
}
|
||||
tracks/3/type = "value"
|
||||
tracks/3/imported = false
|
||||
tracks/3/enabled = true
|
||||
tracks/3/path = NodePath("Left/CollisionShape3D:scale")
|
||||
tracks/3/interp = 1
|
||||
tracks/3/loop_wrap = true
|
||||
tracks/3/keys = {
|
||||
"times": PackedFloat32Array(0, 3),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(1, 1, 1), Vector3(3, 3, 3)]
|
||||
}
|
||||
tracks/4/type = "value"
|
||||
tracks/4/imported = false
|
||||
tracks/4/enabled = true
|
||||
tracks/4/path = NodePath("Right/CollisionShape3D:position")
|
||||
tracks/4/interp = 1
|
||||
tracks/4/loop_wrap = true
|
||||
tracks/4/keys = {
|
||||
"times": PackedFloat32Array(0, 3),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 1, 0), Vector3(0, 1, 5)]
|
||||
}
|
||||
tracks/5/type = "value"
|
||||
tracks/5/imported = false
|
||||
tracks/5/enabled = true
|
||||
tracks/5/path = NodePath("Right/CollisionShape3D:scale")
|
||||
tracks/5/interp = 1
|
||||
tracks/5/loop_wrap = true
|
||||
tracks/5/keys = {
|
||||
"times": PackedFloat32Array(0, 3),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(1, 1, 1), Vector3(3, 3, 3)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_js2kt"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Center/CollisionShape3D:position")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 1, 0)]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("Center/CollisionShape3D:scale")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector3(1, 1, 1)]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("Left/CollisionShape3D:position")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 1, 0)]
|
||||
}
|
||||
tracks/3/type = "value"
|
||||
tracks/3/imported = false
|
||||
tracks/3/enabled = true
|
||||
tracks/3/path = NodePath("Left/CollisionShape3D:scale")
|
||||
tracks/3/interp = 1
|
||||
tracks/3/loop_wrap = true
|
||||
tracks/3/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector3(1, 1, 1)]
|
||||
}
|
||||
tracks/4/type = "value"
|
||||
tracks/4/imported = false
|
||||
tracks/4/enabled = true
|
||||
tracks/4/path = NodePath("Right/CollisionShape3D:position")
|
||||
tracks/4/interp = 1
|
||||
tracks/4/loop_wrap = true
|
||||
tracks/4/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 1, 0)]
|
||||
}
|
||||
tracks/5/type = "value"
|
||||
tracks/5/imported = false
|
||||
tracks/5/enabled = true
|
||||
tracks/5/path = NodePath("Right/CollisionShape3D:scale")
|
||||
tracks/5/interp = 1
|
||||
tracks/5/loop_wrap = true
|
||||
tracks/5/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector3(1, 1, 1)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_ht5d6"]
|
||||
_data = {
|
||||
"PyramidAttack": SubResource("Animation_8rgmo"),
|
||||
"RESET": SubResource("Animation_js2kt")
|
||||
}
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_uh2on"]
|
||||
radius = 0.266805
|
||||
|
||||
[node name="PyramidAttack" type="Node3D"]
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
autoplay = "PyramidAttack"
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_ht5d6")
|
||||
}
|
||||
|
||||
[node name="Center" type="RigidBody3D" parent="." node_paths=PackedStringArray("_animationPlayer")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.710665)
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
gravity_scale = 0.0
|
||||
continuous_cd = true
|
||||
max_contacts_reported = 5
|
||||
contact_monitor = true
|
||||
can_sleep = false
|
||||
freeze_mode = 1
|
||||
script = ExtResource("1_yfldc")
|
||||
_animationPlayer = NodePath("../AnimationPlayer")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Center"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
||||
shape = SubResource("CylinderShape3D_uh2on")
|
||||
|
||||
[node name="Sprite3D" type="Sprite3D" parent="Center/CollisionShape3D"]
|
||||
transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0, 0, 0)
|
||||
axis = 1
|
||||
texture = ExtResource("2_lufet")
|
||||
|
||||
[node name="Left" type="RigidBody3D" parent="." node_paths=PackedStringArray("_animationPlayer")]
|
||||
transform = Transform3D(0.819152, 0, 0.573576, 0, 1, 0, -0.573576, 0, 0.819152, 0, 0, 0.710665)
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
gravity_scale = 0.0
|
||||
continuous_cd = true
|
||||
max_contacts_reported = 5
|
||||
contact_monitor = true
|
||||
can_sleep = false
|
||||
script = ExtResource("1_yfldc")
|
||||
_animationPlayer = NodePath("../AnimationPlayer")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Left"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
||||
shape = SubResource("CylinderShape3D_uh2on")
|
||||
|
||||
[node name="Sprite3D" type="Sprite3D" parent="Left/CollisionShape3D"]
|
||||
transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0, 0, 0)
|
||||
axis = 1
|
||||
texture = ExtResource("2_lufet")
|
||||
|
||||
[node name="Right" type="RigidBody3D" parent="." node_paths=PackedStringArray("_animationPlayer")]
|
||||
transform = Transform3D(0.819152, 0, -0.573576, 0, 1, 0, 0.573576, 0, 0.819152, 0, 0, 0.710665)
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
gravity_scale = 0.0
|
||||
continuous_cd = true
|
||||
max_contacts_reported = 5
|
||||
contact_monitor = true
|
||||
can_sleep = false
|
||||
freeze_mode = 1
|
||||
script = ExtResource("1_yfldc")
|
||||
_animationPlayer = NodePath("../AnimationPlayer")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Right"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
||||
shape = SubResource("CylinderShape3D_uh2on")
|
||||
|
||||
[node name="Sprite3D" type="Sprite3D" parent="Right/CollisionShape3D"]
|
||||
transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0, 0, 0)
|
||||
axis = 1
|
||||
texture = ExtResource("2_lufet")
|
||||
|
||||
[connection signal="body_entered" from="Center" to="Center" method="OnPlayerHit"]
|
||||
[connection signal="body_entered" from="Left" to="Left" method="OnPlayerHit"]
|
||||
[connection signal="body_entered" from="Right" to="Right" method="OnPlayerHit"]
|
||||
Reference in New Issue
Block a user