FINAL JAM COMMIT

This commit is contained in:
2026-02-01 14:06:04 +02:00
parent d910018b7b
commit 4dcca0d08a
42 changed files with 1652 additions and 55 deletions
+233 -26
View File
@@ -1,8 +1,9 @@
[gd_scene load_steps=45 format=4 uid="uid://csyk43kt3xbyx"]
[gd_scene load_steps=54 format=4 uid="uid://csyk43kt3xbyx"]
[ext_resource type="TileSet" uid="uid://b15j7vhkfu415" path="res://Resources/environmentTileMap.tres" id="1_ebmjs"]
[ext_resource type="Script" uid="uid://djp8dmixf6sq2" path="res://Scripts/Common/GameController.cs" id="1_i6g32"]
[ext_resource type="Script" uid="uid://b0uosq6r5dbqa" path="res://Scripts/Turrets/TurretController.cs" id="1_nb51f"]
[ext_resource type="Script" uid="uid://ch2o7voah6o3o" path="res://Scripts/Common/PauseManager.cs" id="1_tgy6u"]
[ext_resource type="Script" uid="uid://bhxyvnirfeipr" path="res://Scripts/Enemies/EnemyPool.cs" id="2_i6g32"]
[ext_resource type="Script" uid="uid://cds2rrl4yjexf" path="res://Scripts/Enemies/EnemySpawner.cs" id="3_1l0tm"]
[ext_resource type="PackedScene" uid="uid://8230dpmp7mic" path="res://Prefabs/Turrets/Placeholders/kitsune_ph.tscn" id="3_ewbju"]
@@ -25,7 +26,11 @@
[ext_resource type="Shader" uid="uid://8dk8mi2w1xl6" path="res://Scenes/game.tres" id="14_1phco"]
[ext_resource type="Texture2D" uid="uid://2x62ipg12256" path="res://Assets/Sprites/Vfx/particle.png" id="16_22asu"]
[ext_resource type="Script" uid="uid://dxcke7geb20dm" path="res://Scripts/Misc/Floating.gd" id="19_fkdbe"]
[ext_resource type="AudioStream" uid="uid://dbsuw8omrcx1d" path="res://Assets/Sounds/Music/8bit-mysterious-kyouto_reverb_Loop.ogg" id="26_fkdbe"]
[ext_resource type="Script" uid="uid://fxb27qlab5nb" path="res://Scripts/UI/PriceUpdater.cs" id="25_mucmn"]
[ext_resource type="FontFile" uid="uid://2ojf62uk562d" path="res://Assets/Fonts/DotGothic16-Regular.ttf" id="26_81klo"]
[ext_resource type="Texture2D" uid="uid://cdaoxfxcl87xq" path="res://Assets/Sprites/UI/Score.png" id="27_8m3t6"]
[ext_resource type="Texture2D" uid="uid://dudgvn6o3ex" path="res://Assets/Sprites/UI/button.png" id="27_tgy6u"]
[ext_resource type="Script" uid="uid://bsmpt1ig823du" path="res://Scripts/UI/SceneChangerBtn.cs" id="29_cwurv"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_1l0tm"]
size = Vector2(19, 11)
@@ -119,6 +124,9 @@ adjustment_contrast = 1.1
atlas = ExtResource("11_o5yvi")
region = Rect2(0, 0, 16, 16)
[sub_resource type="LabelSettings" id="LabelSettings_ese38"]
font = ExtResource("12_rfjv2")
[sub_resource type="AtlasTexture" id="AtlasTexture_nnt18"]
atlas = ExtResource("11_o5yvi")
region = Rect2(0, 16, 16, 15)
@@ -137,9 +145,31 @@ shadow_size = 0
[sub_resource type="ShaderMaterial" id="ShaderMaterial_nb51f"]
shader = ExtResource("14_1phco")
[node name="Root" type="Node2D"]
[sub_resource type="LabelSettings" id="LabelSettings_cwurv"]
font = ExtResource("26_81klo")
font_size = 128
outline_size = 12
outline_color = Color(0, 0, 0, 1)
[sub_resource type="LabelSettings" id="LabelSettings_mucmn"]
font = ExtResource("12_rfjv2")
font_size = 18
outline_size = 2
outline_color = Color(0, 0, 0, 1)
[sub_resource type="LabelSettings" id="LabelSettings_8m3t6"]
font = ExtResource("26_81klo")
font_size = 36
[node name="Game" type="Node2D"]
texture_filter = 1
[node name="PauseManager" type="Node" parent="." node_paths=PackedStringArray("_hud", "_pauseMenu")]
process_mode = 3
script = ExtResource("1_tgy6u")
_hud = NodePath("../Hud")
_pauseMenu = NodePath("../PauseMenu")
[node name="TurretController" type="Node2D" parent="." node_paths=PackedStringArray("_turretParent")]
script = ExtResource("1_nb51f")
_typeToPrefab = Dictionary[int, PackedScene]({
@@ -153,12 +183,14 @@ _typeToPlaceholder = Dictionary[int, PackedScene]({
2: ExtResource("5_7nbq1")
})
_turretParent = NodePath("../Level/YSorted/Turrets")
BasePrice = 125
[node name="GameController" type="Node" parent="." node_paths=PackedStringArray("_CurrencyLabel", "_ShrineHealthLabel")]
[node name="GameController" type="Node" parent="." node_paths=PackedStringArray("_CurrencyLabel", "_ShrineHealthLabel", "_scoreLabel")]
script = ExtResource("1_i6g32")
_ShrineStartHP = 100.0
_CurrencyLabel = NodePath("../CanvasLayer/UIRoot/CurrencyImg/CurrencyLabel")
_ShrineHealthLabel = NodePath("../CanvasLayer/UIRoot/ShrineHealthImg/ShrineHealthLabel")
_CurrencyLabel = NodePath("../Hud/UIRoot/CurrencyImg/CurrencyLabel")
_ShrineHealthLabel = NodePath("../Hud/UIRoot/ShrineHealthImg/ShrineHealthLabel")
_scoreLabel = NodePath("../Hud/UIRoot/Score/ScoreLabel")
[node name="EnemyController" type="Node" parent="."]
@@ -395,9 +427,9 @@ current = true
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_h4fw4")
[node name="CanvasLayer" type="CanvasLayer" parent="."]
[node name="Hud" type="CanvasLayer" parent="."]
[node name="UIRoot" type="Control" parent="CanvasLayer"]
[node name="UIRoot" type="Control" parent="Hud"]
texture_filter = 1
layout_mode = 3
anchors_preset = 15
@@ -407,7 +439,7 @@ grow_horizontal = 2
grow_vertical = 2
mouse_filter = 1
[node name="GridContainer" type="GridContainer" parent="CanvasLayer/UIRoot"]
[node name="GridContainer" type="GridContainer" parent="Hud/UIRoot"]
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
@@ -423,28 +455,90 @@ grow_vertical = 0
scale = Vector2(2, 2)
columns = 3
[node name="Oni" type="Button" parent="CanvasLayer/UIRoot/GridContainer"]
[node name="Oni" type="Button" parent="Hud/UIRoot/GridContainer"]
custom_minimum_size = Vector2(42, 42)
layout_mode = 2
icon = SubResource("AtlasTexture_nb51f")
icon_alignment = 1
expand_icon = true
[node name="Kitsune" type="Button" parent="CanvasLayer/UIRoot/GridContainer"]
[node name="Price" type="Label" parent="Hud/UIRoot/GridContainer/Oni"]
visible = false
layout_mode = 0
offset_left = 20.0
offset_top = -20.0
offset_right = 60.0
offset_bottom = 3.0
text = "999"
label_settings = SubResource("LabelSettings_ese38")
vertical_alignment = 1
script = ExtResource("25_mucmn")
[node name="TextureRect" type="TextureRect" parent="Hud/UIRoot/GridContainer/Oni/Price"]
layout_mode = 0
offset_left = -20.0
offset_right = 20.0
offset_bottom = 40.0
scale = Vector2(0.5, 0.5)
texture = ExtResource("13_1phco")
[node name="Kitsune" type="Button" parent="Hud/UIRoot/GridContainer"]
custom_minimum_size = Vector2(42, 42)
layout_mode = 2
icon = SubResource("AtlasTexture_nnt18")
icon_alignment = 1
expand_icon = true
[node name="Tengu" type="Button" parent="CanvasLayer/UIRoot/GridContainer"]
[node name="Price" type="Label" parent="Hud/UIRoot/GridContainer/Kitsune"]
visible = false
layout_mode = 0
offset_left = 14.0
offset_top = -20.0
offset_right = 54.0
offset_bottom = 3.0
text = "125"
label_settings = SubResource("LabelSettings_ese38")
horizontal_alignment = 1
vertical_alignment = 1
script = ExtResource("25_mucmn")
[node name="TextureRect" type="TextureRect" parent="Hud/UIRoot/GridContainer/Kitsune/Price"]
layout_mode = 0
offset_left = -14.0
offset_right = 26.0
offset_bottom = 40.0
scale = Vector2(0.5, 0.5)
texture = ExtResource("13_1phco")
[node name="Tengu" type="Button" parent="Hud/UIRoot/GridContainer"]
custom_minimum_size = Vector2(42, 42)
layout_mode = 2
icon = SubResource("AtlasTexture_ewbju")
icon_alignment = 1
expand_icon = true
[node name="CurrencyImg" type="TextureRect" parent="CanvasLayer/UIRoot"]
[node name="Price" type="Label" parent="Hud/UIRoot/GridContainer/Tengu"]
visible = false
layout_mode = 0
offset_left = 12.0
offset_top = -20.0
offset_right = 52.0
offset_bottom = 3.0
text = "125"
label_settings = SubResource("LabelSettings_ese38")
horizontal_alignment = 1
vertical_alignment = 1
script = ExtResource("25_mucmn")
[node name="TextureRect" type="TextureRect" parent="Hud/UIRoot/GridContainer/Tengu/Price"]
layout_mode = 0
offset_left = -12.0
offset_right = 28.0
offset_bottom = 40.0
scale = Vector2(0.5, 0.5)
texture = ExtResource("13_1phco")
[node name="CurrencyImg" type="TextureRect" parent="Hud/UIRoot"]
layout_mode = 1
offset_left = 8.0
offset_top = 8.0
@@ -453,7 +547,7 @@ offset_bottom = 48.0
scale = Vector2(2, 2)
texture = ExtResource("13_1phco")
[node name="CurrencyLabel" type="Label" parent="CanvasLayer/UIRoot/CurrencyImg"]
[node name="CurrencyLabel" type="Label" parent="Hud/UIRoot/CurrencyImg"]
layout_mode = 1
offset_left = 40.0
offset_top = 8.0
@@ -462,7 +556,26 @@ offset_bottom = 36.0
text = "99999999"
label_settings = SubResource("LabelSettings_o5yvi")
[node name="ShrineHealthImg" type="TextureRect" parent="CanvasLayer/UIRoot"]
[node name="Score" type="TextureRect" parent="Hud/UIRoot"]
layout_mode = 1
offset_left = 1096.0
offset_top = 8.0
offset_right = 1120.0
offset_bottom = 32.0
scale = Vector2(2, 2)
texture = ExtResource("27_8m3t6")
[node name="ScoreLabel" type="Label" parent="Hud/UIRoot/Score"]
layout_mode = 1
offset_left = -228.0
offset_top = -2.5
offset_right = -2.0
offset_bottom = 25.5
text = "99999999"
label_settings = SubResource("LabelSettings_o5yvi")
horizontal_alignment = 2
[node name="ShrineHealthImg" type="TextureRect" parent="Hud/UIRoot"]
self_modulate = Color(1, 0, 0, 1)
material = SubResource("ShaderMaterial_nb51f")
layout_mode = 1
@@ -473,7 +586,7 @@ offset_bottom = 144.0
scale = Vector2(2, 2)
texture = ExtResource("13_1phco")
[node name="ShrineHealthLabel" type="Label" parent="CanvasLayer/UIRoot/ShrineHealthImg"]
[node name="ShrineHealthLabel" type="Label" parent="Hud/UIRoot/ShrineHealthImg"]
layout_mode = 1
offset_left = 40.0
offset_top = 8.0
@@ -482,7 +595,7 @@ offset_bottom = 36.0
text = "100%"
label_settings = SubResource("LabelSettings_o5yvi")
[node name="StartWaveBtn" type="Button" parent="CanvasLayer/UIRoot"]
[node name="StartWaveBtn" type="Button" parent="Hud/UIRoot"]
visible = false
layout_mode = 0
offset_left = 872.0
@@ -492,13 +605,107 @@ offset_bottom = 599.0
scale = Vector2(2, 2)
text = "Start Next Wave"
[node name="MusicPLayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource("26_fkdbe")
volume_db = -30.0
autoplay = true
parameters/looping = true
[node name="PauseMenu" type="CanvasLayer" parent="."]
process_mode = 3
visible = false
[connection signal="pressed" from="CanvasLayer/UIRoot/GridContainer/Oni" to="TurretController" method="StartPlaceingTurret" binds= [2]]
[connection signal="pressed" from="CanvasLayer/UIRoot/GridContainer/Kitsune" to="TurretController" method="StartPlaceingTurret" binds= [0]]
[connection signal="pressed" from="CanvasLayer/UIRoot/GridContainer/Tengu" to="TurretController" method="StartPlaceingTurret" binds= [1]]
[connection signal="pressed" from="CanvasLayer/UIRoot/StartWaveBtn" to="GameController" method="StartWave"]
[node name="Label" type="Label" parent="PauseMenu"]
texture_filter = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -128.0
offset_top = -22.0
offset_right = 128.0
offset_bottom = 164.0
grow_horizontal = 2
text = "一時停止"
label_settings = SubResource("LabelSettings_cwurv")
horizontal_alignment = 1
vertical_alignment = 1
[node name="Label2" type="Label" parent="PauseMenu"]
texture_filter = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -106.0
offset_top = 93.0
offset_right = 106.0
offset_bottom = 211.0
grow_horizontal = 2
text = "The game is paused"
label_settings = SubResource("LabelSettings_mucmn")
horizontal_alignment = 1
vertical_alignment = 1
[node name="HFlowContainer" type="HFlowContainer" parent="PauseMenu"]
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -147.0
offset_top = -122.0
offset_right = 147.0
offset_bottom = -2.0
grow_horizontal = 2
grow_vertical = 0
alignment = 1
[node name="Continue" type="TextureButton" parent="PauseMenu/HFlowContainer"]
texture_filter = 1
custom_minimum_size = Vector2(200, 50)
layout_mode = 2
texture_normal = ExtResource("27_tgy6u")
stretch_mode = 5
[node name="Label" type="Label" parent="PauseMenu/HFlowContainer/Continue"]
texture_filter = 1
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_top = -2.0
offset_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
text = "Continue"
label_settings = SubResource("LabelSettings_8m3t6")
horizontal_alignment = 1
vertical_alignment = 1
[node name="Menu" type="TextureButton" parent="PauseMenu/HFlowContainer"]
texture_filter = 1
custom_minimum_size = Vector2(200, 50)
layout_mode = 2
texture_normal = ExtResource("27_tgy6u")
stretch_mode = 5
script = ExtResource("29_cwurv")
[node name="Label" type="Label" parent="PauseMenu/HFlowContainer/Menu"]
texture_filter = 1
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_top = -2.0
offset_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
text = "Main Menu"
label_settings = SubResource("LabelSettings_8m3t6")
horizontal_alignment = 1
vertical_alignment = 1
[connection signal="mouse_entered" from="Hud/UIRoot/GridContainer/Oni" to="Hud/UIRoot/GridContainer/Oni/Price" method="set_visible" binds= [true]]
[connection signal="mouse_exited" from="Hud/UIRoot/GridContainer/Oni" to="Hud/UIRoot/GridContainer/Oni/Price" method="set_visible" binds= [false]]
[connection signal="pressed" from="Hud/UIRoot/GridContainer/Oni" to="TurretController" method="StartPlaceingTurret" binds= [2]]
[connection signal="mouse_entered" from="Hud/UIRoot/GridContainer/Kitsune" to="Hud/UIRoot/GridContainer/Kitsune/Price" method="set_visible" binds= [true]]
[connection signal="mouse_exited" from="Hud/UIRoot/GridContainer/Kitsune" to="Hud/UIRoot/GridContainer/Kitsune/Price" method="set_visible" binds= [false]]
[connection signal="pressed" from="Hud/UIRoot/GridContainer/Kitsune" to="TurretController" method="StartPlaceingTurret" binds= [0]]
[connection signal="mouse_entered" from="Hud/UIRoot/GridContainer/Tengu" to="Hud/UIRoot/GridContainer/Tengu/Price" method="set_visible" binds= [true]]
[connection signal="mouse_exited" from="Hud/UIRoot/GridContainer/Tengu" to="Hud/UIRoot/GridContainer/Tengu/Price" method="set_visible" binds= [false]]
[connection signal="pressed" from="Hud/UIRoot/GridContainer/Tengu" to="TurretController" method="StartPlaceingTurret" binds= [1]]
[connection signal="pressed" from="Hud/UIRoot/StartWaveBtn" to="GameController" method="StartWave"]
[connection signal="pressed" from="PauseMenu/HFlowContainer/Continue" to="PauseManager" method="ContinueGame"]