mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-16 03:33:47 +00:00
Death and Rebirth
This commit is contained in:
parent
ba21b30a4d
commit
be52d0e081
11 changed files with 309 additions and 83 deletions
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=15 format=3 uid="uid://dkwi1hu1bixoe"]
|
||||
[gd_scene load_steps=18 format=3 uid="uid://dkwi1hu1bixoe"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Hud.cs" id="1_m0hb0"]
|
||||
[ext_resource type="FontFile" uid="uid://ccm3u37q1hvux" path="res://fonts/Xolonium-Regular.ttf" id="2_0xmx2"]
|
||||
|
|
@ -7,6 +7,20 @@
|
|||
[ext_resource type="PackedScene" uid="uid://bybd38ivpb2ly" path="res://Scenes/HUD/pause_menu.tscn" id="3_hxmxt"]
|
||||
[ext_resource type="PackedScene" uid="uid://bemu3l6b1e84y" path="res://Scenes/HUD/debug_menu.tscn" id="4_gd1k6"]
|
||||
[ext_resource type="PackedScene" uid="uid://bwlstkdibs7oc" path="res://Scenes/HUD/BossHud.tscn" id="5_vmict"]
|
||||
[ext_resource type="FontFile" uid="uid://coek1e2q257pq" path="res://fonts/at01.ttf" id="6_sk1eq"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_a7f6n"]
|
||||
font = ExtResource("2_0xmx2")
|
||||
font_size = 24
|
||||
outline_size = 4
|
||||
outline_color = Color(0, 0, 0, 1)
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_5na8k"]
|
||||
font = ExtResource("6_sk1eq")
|
||||
font_color = Color(0, 0.676374, 0, 1)
|
||||
outline_size = 2
|
||||
outline_color = Color(0, 0.145098, 0, 1)
|
||||
shadow_color = Color(0, 0.239216, 0, 0)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_h626b"]
|
||||
atlas = ExtResource("3_hee3i")
|
||||
|
|
@ -48,7 +62,7 @@ anti_aliasing = false
|
|||
bg_color = Color(0.338981, 0.507716, 0.996646, 1)
|
||||
anti_aliasing = false
|
||||
|
||||
[node name="HUD" type="CanvasLayer" node_paths=PackedStringArray("_healthLabel", "_healthBar", "_shieldLabel", "_shieldBar", "_itemsContainer", "PauseMenuContainer", "DebugMenuHolder")]
|
||||
[node name="HUD" type="CanvasLayer" node_paths=PackedStringArray("_healthLabel", "_healthBar", "_shieldLabel", "_shieldBar", "_itemsContainer", "_gameOverPanel", "PauseMenuContainer", "DebugMenuHolder")]
|
||||
script = ExtResource("1_m0hb0")
|
||||
_healthLabel = NodePath("VBoxContainer/HealthBarContainer/HealthLabel")
|
||||
_healthBar = NodePath("VBoxContainer/HealthBarContainer/HealthBar")
|
||||
|
|
@ -56,27 +70,35 @@ _shieldLabel = NodePath("VBoxContainer/ShieldBarContainer/ShieldLabel")
|
|||
_shieldBar = NodePath("VBoxContainer/ShieldBarContainer/ShieldBar")
|
||||
_itemsContainer = NodePath("VBoxContainer/ItemsContainer")
|
||||
_labelSettings = ExtResource("2_x7kl7")
|
||||
_gameOverPanel = NodePath("GameOver")
|
||||
PauseMenuContainer = NodePath("PauseMenuContainer")
|
||||
PauseMenuScene = ExtResource("3_hxmxt")
|
||||
DebugMenuTemplate = ExtResource("4_gd1k6")
|
||||
DebugMenuHolder = NodePath("DebugContainer")
|
||||
|
||||
[node name="GameOver" type="Label" parent="."]
|
||||
[node name="GameOver" type="PanelContainer" parent="."]
|
||||
visible = false
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -217.0
|
||||
offset_top = -39.0
|
||||
offset_right = 217.0
|
||||
offset_bottom = 39.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_fonts/font = ExtResource("2_0xmx2")
|
||||
theme_override_font_sizes/font_size = 64
|
||||
text = "GAME OVER"
|
||||
offset_left = -3.0
|
||||
offset_top = 34.0
|
||||
offset_right = 323.0
|
||||
offset_bottom = 88.0
|
||||
|
||||
[node name="VBoxContainer2" type="VBoxContainer" parent="GameOver"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 4
|
||||
theme_override_constants/separation = -4
|
||||
|
||||
[node name="GameOver" type="Label" parent="GameOver/VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
text = "FAIRY: TERMINATED"
|
||||
label_settings = SubResource("LabelSettings_a7f6n")
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Label" type="Label" parent="GameOver/VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
text = "Press Shoot button to reform"
|
||||
label_settings = SubResource("LabelSettings_5na8k")
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="MessageTimer" type="Timer" parent="."]
|
||||
wait_time = 2.0
|
||||
|
|
|
|||
28
Scenes/Particles/DeathParticles.tscn
Normal file
28
Scenes/Particles/DeathParticles.tscn
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://biugfbp0yae2s"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cybpmpb0d8yva" path="res://Sprites/Projectile.png" id="1_7tn7y"]
|
||||
[ext_resource type="Script" path="res://Scripts/Components/AutodeleteParticle.cs" id="2_2y1ka"]
|
||||
[ext_resource type="AudioStream" uid="uid://euu22u5vf3gc" path="res://SFX/pldead00.wav" id="3_q7v7h"]
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_nmvck"]
|
||||
particle_flag_disable_z = true
|
||||
radial_velocity_min = -2.23517e-05
|
||||
radial_velocity_max = 360.0
|
||||
gravity = Vector3(0, 0, 0)
|
||||
scale_min = 4.0
|
||||
scale_max = 4.0
|
||||
|
||||
[node name="DeathParticles" type="GPUParticles2D"]
|
||||
emitting = false
|
||||
amount = 16
|
||||
process_material = SubResource("ParticleProcessMaterial_nmvck")
|
||||
texture = ExtResource("1_7tn7y")
|
||||
one_shot = true
|
||||
script = ExtResource("2_2y1ka")
|
||||
LifeTime = 3.0
|
||||
AutoStart = true
|
||||
|
||||
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
|
||||
stream = ExtResource("3_q7v7h")
|
||||
volume_db = -15.078
|
||||
autoplay = true
|
||||
|
|
@ -1,10 +1,11 @@
|
|||
[gd_scene load_steps=34 format=3 uid="uid://bghghp5ep4w2j"]
|
||||
[gd_scene load_steps=36 format=3 uid="uid://bghghp5ep4w2j"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/PlayerMovement.cs" id="1_m27vu"]
|
||||
[ext_resource type="Texture2D" uid="uid://la06powu57hu" path="res://Sprites/Cirno_Big.png" id="2_bwf6x"]
|
||||
[ext_resource type="PackedScene" uid="uid://b1qnfiuokpvsr" path="res://Scenes/Weapons/bullet.tscn" id="2_ov36d"]
|
||||
[ext_resource type="PackedScene" uid="uid://chkpk7erlqajg" path="res://Scenes/Selector.tscn" id="3_8wt6s"]
|
||||
[ext_resource type="Texture2D" uid="uid://b2v6j7lsyltrc" path="res://Sprites/Actors/CirnoWings.png" id="3_ul15q"]
|
||||
[ext_resource type="PackedScene" uid="uid://biugfbp0yae2s" path="res://Scenes/Particles/DeathParticles.tscn" id="4_1bl4h"]
|
||||
[ext_resource type="Script" path="res://addons/smoothing/smoothing_2d.gd" id="4_j4xhu"]
|
||||
[ext_resource type="Texture2D" uid="uid://ddwhrlrgj6i00" path="res://Sprites/Actors/Cirno.png" id="5_hq878"]
|
||||
[ext_resource type="PackedScene" uid="uid://cfb3nsay84xdb" path="res://Scenes/Weapons/crosshair.tscn" id="6_l43rf"]
|
||||
|
|
@ -13,6 +14,7 @@
|
|||
[ext_resource type="Texture2D" uid="uid://bwjrdlnysft15" path="res://Sprites/Actors/Focus_Circle.png" id="8_1og8b"]
|
||||
[ext_resource type="Resource" uid="uid://b8apu0l5fm4k" path="res://Resources/Weapons/IcicleGun.tres" id="9_84o8f"]
|
||||
[ext_resource type="PackedScene" uid="uid://crry0rgk7a8sm" path="res://Scenes/Weapons/BaseWeapon.tscn" id="9_wblq0"]
|
||||
[ext_resource type="Script" path="res://Scripts/Components/Actors/ActorResourceProvider.cs" id="14_mfxfv"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ai4rh"]
|
||||
size = Vector2(6, 6)
|
||||
|
|
@ -174,6 +176,7 @@ GameOverScene = "res://Scenes/GameOver.tscn"
|
|||
WingsSprite = ExtResource("3_ul15q")
|
||||
Muzzle = NodePath("Muzzle")
|
||||
HitboxSprite = NodePath("Smoothing2D/HitboxSprite")
|
||||
_deathParticles = ExtResource("4_1bl4h")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
|
|
@ -241,6 +244,16 @@ WeaponData = ExtResource("9_84o8f")
|
|||
BulletScene = ExtResource("2_ov36d")
|
||||
Muzzle = NodePath("../Muzzle")
|
||||
|
||||
[node name="HealthProvider" type="Node2D" parent="."]
|
||||
script = ExtResource("14_mfxfv")
|
||||
ResourceName = "Health"
|
||||
MaxResource = 25.0
|
||||
|
||||
[node name="ShieldProvider" type="Node2D" parent="."]
|
||||
script = ExtResource("14_mfxfv")
|
||||
ResourceName = "Shield"
|
||||
MaxResource = 25.0
|
||||
|
||||
[connection signal="area_entered" from="InteractionController" to="." method="_on_interaction_controller_area_entered"]
|
||||
[connection signal="area_exited" from="InteractionController" to="." method="_on_interaction_controller_area_exited"]
|
||||
[connection signal="area_entered" from="DamageHitBox" to="." method="_on_damage_hit_box_area_entered"]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=71 format=4 uid="uid://bv451a8wgty4u"]
|
||||
[gd_scene load_steps=74 format=4 uid="uid://bv451a8wgty4u"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/GameManager.cs" id="1_8tmoj"]
|
||||
[ext_resource type="PackedScene" uid="uid://bghghp5ep4w2j" path="res://Scenes/player.tscn" id="2_8mh54"]
|
||||
|
|
@ -57,11 +57,22 @@
|
|||
[ext_resource type="Script" path="res://Scripts/Resources/Events/DialogueStartEvent.cs" id="46_i0omr"]
|
||||
[ext_resource type="PackedScene" uid="uid://cdti0hnbs3e63" path="res://Scenes/Actors/RoamingSusan.tscn" id="47_u1ve6"]
|
||||
[ext_resource type="PackedScene" uid="uid://b0pb078xylxy" path="res://Scenes/Interactable/Valve.tscn" id="48_8usll"]
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/Events/UpdateCheckPointEvent.cs" id="49_0si7g"]
|
||||
[ext_resource type="PackedScene" uid="uid://cd36ch65jijg0" path="res://Scenes/Activable/BulletEmitter.tscn" id="49_64oga"]
|
||||
[ext_resource type="PackedScene" uid="uid://c5fiv1nioghfb" path="res://Scenes/Actors/Marisa.tscn" id="50_mp5ma"]
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/Events/ControlEnemyEvent.cs" id="52_5m7td"]
|
||||
[ext_resource type="PackedScene" uid="uid://bqjcwxene73l2" path="res://Scenes/Actors/ActorEnemyTest.tscn" id="55_chha6"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_5er5x"]
|
||||
script = ExtResource("49_0si7g")
|
||||
Target = NodePath("../Factory Tilemaps/Teleporter")
|
||||
WaitForCompletion = true
|
||||
|
||||
[sub_resource type="Resource" id="Resource_b25hy"]
|
||||
script = ExtResource("46_i0omr")
|
||||
TimelineName = "testintro"
|
||||
WaitForCompletion = true
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_8wuck"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_hdht4"]
|
||||
|
|
@ -479,8 +490,12 @@ position = Vector2(-1174, 133)
|
|||
[node name="AlarmBox2" parent="." instance=ExtResource("17_dppcs")]
|
||||
position = Vector2(-1506, -188)
|
||||
|
||||
[node name="LevelStartTrigger" parent="." instance=ExtResource("43_kf3qc")]
|
||||
position = Vector2(-808, -167)
|
||||
Events = Array[Object]([SubResource("Resource_5er5x"), SubResource("Resource_b25hy")])
|
||||
|
||||
[node name="AreaTrigger2" parent="." node_paths=PackedStringArray("Target") instance=ExtResource("28_6au4t")]
|
||||
position = Vector2(-808, -168)
|
||||
position = Vector2(-435, -162)
|
||||
Target = NodePath("TestDialogueStarter")
|
||||
OneTime = true
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue