First builds and stuff done yipewaho
This commit is contained in:
+235
-4
@@ -1,19 +1,39 @@
|
||||
[gd_scene load_steps=23 format=4 uid="uid://csyk43kt3xbyx"]
|
||||
[gd_scene load_steps=45 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://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"]
|
||||
[ext_resource type="PackedScene" uid="uid://8fsvnmto0ckj" path="res://Prefabs/Turrets/oni.tscn" id="3_exi56"]
|
||||
[ext_resource type="PackedScene" uid="uid://cthdcnxhbyad2" path="res://Prefabs/Turrets/tengu.tscn" id="4_7t8sx"]
|
||||
[ext_resource type="PackedScene" uid="uid://dmyv5hki78wf7" path="res://Prefabs/Turrets/Placeholders/oni_ph.tscn" id="4_iivbl"]
|
||||
[ext_resource type="PackedScene" uid="uid://dqyr3m6o0e3i" path="res://Prefabs/Turrets/Placeholders/tengu_ph.tscn" id="5_7nbq1"]
|
||||
[ext_resource type="Texture2D" uid="uid://bnq8qxou2sgvw" path="res://Assets/Sprites/Environments/sakura.png" id="5_i6g32"]
|
||||
[ext_resource type="PackedScene" uid="uid://y54cvugsx75b" path="res://Prefabs/Enemies/stone.tscn" id="5_wowpa"]
|
||||
[ext_resource type="Texture2D" uid="uid://cs7vjtoap8v26" path="res://Assets/Sprites/Environments/environment.png" id="6_i6g32"]
|
||||
[ext_resource type="PackedScene" uid="uid://cx7gr555b1gov" path="res://Prefabs/Turrets/kitsune.tscn" id="8_h4fw4"]
|
||||
[ext_resource type="Texture2D" uid="uid://dxon2g2sn48jq" path="res://Assets/Sprites/Projectiles/blueflame.png" id="8_ldgsr"]
|
||||
[ext_resource type="Script" uid="uid://dxx6nyrs12mr6" path="res://Scripts/Common/ProjectileParent.cs" id="8_v158k"]
|
||||
[ext_resource type="Script" uid="uid://df0osorq00h7v" path="res://Scripts/CameraController.cs" id="10_ldgsr"]
|
||||
[ext_resource type="Texture2D" uid="uid://cnoy4do2talkr" path="res://Assets/Sprites/UI/MASKS.png" id="11_o5yvi"]
|
||||
[ext_resource type="PackedScene" uid="uid://bawoevqlooah0" path="res://Prefabs/Enemies/stump.tscn" id="11_vm72l"]
|
||||
[ext_resource type="PackedScene" uid="uid://c37hbbbx8wje" path="res://Prefabs/Enemies/liquid.tscn" id="12_22asu"]
|
||||
[ext_resource type="FontFile" uid="uid://b8lsp07ucxq6p" path="res://Assets/Fonts/MintsodaLimeGreen13X16Regular-KVvzA.ttf" id="12_rfjv2"]
|
||||
[ext_resource type="Texture2D" uid="uid://b2wa0rqssefiy" path="res://Assets/Sprites/UI/soul.png" id="13_1phco"]
|
||||
[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"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_1l0tm"]
|
||||
size = Vector2(19, 11)
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_fkdbe"]
|
||||
offsets = PackedFloat32Array(0, 0.6683673, 1)
|
||||
colors = PackedColorArray(0, 0, 0, 0, 4.416, 2.127, 3.729, 1, 1, 1, 1, 0)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_1l0tm"]
|
||||
atlas = ExtResource("6_i6g32")
|
||||
region = Rect2(176, 107, 32, 37)
|
||||
@@ -95,21 +115,61 @@ adjustment_enabled = true
|
||||
adjustment_brightness = 0.75
|
||||
adjustment_contrast = 1.1
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_nb51f"]
|
||||
atlas = ExtResource("11_o5yvi")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_nnt18"]
|
||||
atlas = ExtResource("11_o5yvi")
|
||||
region = Rect2(0, 16, 16, 15)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ewbju"]
|
||||
atlas = ExtResource("11_o5yvi")
|
||||
region = Rect2(0, 32, 16, 16)
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_o5yvi"]
|
||||
font = ExtResource("12_rfjv2")
|
||||
font_size = 24
|
||||
outline_size = 6
|
||||
outline_color = Color(0, 0, 0, 1)
|
||||
shadow_size = 0
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_nb51f"]
|
||||
shader = ExtResource("14_1phco")
|
||||
|
||||
[node name="Root" type="Node2D"]
|
||||
texture_filter = 1
|
||||
|
||||
[node name="TurretController" type="Node" parent="."]
|
||||
[node name="TurretController" type="Node2D" parent="." node_paths=PackedStringArray("_turretParent")]
|
||||
script = ExtResource("1_nb51f")
|
||||
_typeToPrefab = Dictionary[int, PackedScene]({
|
||||
0: ExtResource("8_h4fw4"),
|
||||
1: ExtResource("3_exi56"),
|
||||
2: ExtResource("4_7t8sx")
|
||||
})
|
||||
_typeToPlaceholder = Dictionary[int, PackedScene]({
|
||||
0: ExtResource("3_ewbju"),
|
||||
1: ExtResource("4_iivbl"),
|
||||
2: ExtResource("5_7nbq1")
|
||||
})
|
||||
_turretParent = NodePath("../Level/YSorted/Turrets")
|
||||
|
||||
[node name="GameController" type="Node" parent="."]
|
||||
[node name="GameController" type="Node" parent="." node_paths=PackedStringArray("_CurrencyLabel", "_ShrineHealthLabel")]
|
||||
script = ExtResource("1_i6g32")
|
||||
_ShrineStartHP = 100.0
|
||||
_CurrencyLabel = NodePath("../CanvasLayer/UIRoot/CurrencyImg/CurrencyLabel")
|
||||
_ShrineHealthLabel = NodePath("../CanvasLayer/UIRoot/ShrineHealthImg/ShrineHealthLabel")
|
||||
|
||||
[node name="EnemyController" type="Node" parent="."]
|
||||
|
||||
[node name="EnemyPool" type="Node" parent="EnemyController"]
|
||||
script = ExtResource("2_i6g32")
|
||||
_scenes = Dictionary[int, PackedScene]({
|
||||
0: ExtResource("5_wowpa")
|
||||
0: ExtResource("5_wowpa"),
|
||||
1: ExtResource("11_vm72l"),
|
||||
2: ExtResource("12_22asu")
|
||||
})
|
||||
_poolSize = 50
|
||||
|
||||
[node name="EnemySpawner" type="Node" parent="EnemyController" node_paths=PackedStringArray("_pathParent", "_pool")]
|
||||
script = ExtResource("3_1l0tm")
|
||||
@@ -155,12 +215,64 @@ flip_h = true
|
||||
position = Vector2(33.5, -8.5)
|
||||
shape = SubResource("RectangleShape2D_1l0tm")
|
||||
|
||||
[node name="CPUParticles2D" type="CPUParticles2D" parent="Level/YSorted/StaticBody2D"]
|
||||
position = Vector2(16, -72)
|
||||
rotation = 0.7532681
|
||||
amount = 6
|
||||
texture = ExtResource("16_22asu")
|
||||
lifetime = 3.0
|
||||
randomness = 1.0
|
||||
lifetime_randomness = 0.31
|
||||
emission_shape = 1
|
||||
emission_sphere_radius = 20.55
|
||||
spread = 0.0
|
||||
gravity = Vector2(7, 15)
|
||||
angular_velocity_min = -50.0
|
||||
angular_velocity_max = 50.0
|
||||
radial_accel_min = -10.0
|
||||
radial_accel_max = 10.0
|
||||
scale_amount_min = 0.2
|
||||
scale_amount_max = 0.3
|
||||
color = Color(4.415934, 2.1274936, 3.7294016, 1)
|
||||
color_ramp = SubResource("Gradient_fkdbe")
|
||||
|
||||
[node name="CPUParticles2D2" type="CPUParticles2D" parent="Level/YSorted/StaticBody2D"]
|
||||
position = Vector2(56, -56)
|
||||
rotation = 0.7532681
|
||||
amount = 6
|
||||
texture = ExtResource("16_22asu")
|
||||
lifetime = 3.0
|
||||
randomness = 1.0
|
||||
lifetime_randomness = 0.31
|
||||
emission_shape = 1
|
||||
emission_sphere_radius = 20.55
|
||||
spread = 0.0
|
||||
gravity = Vector2(7, 15)
|
||||
angular_velocity_min = -50.0
|
||||
angular_velocity_max = 50.0
|
||||
radial_accel_min = -10.0
|
||||
radial_accel_max = 10.0
|
||||
scale_amount_min = 0.2
|
||||
scale_amount_max = 0.3
|
||||
color = Color(4.416, 2.127, 3.729, 1)
|
||||
color_ramp = SubResource("Gradient_fkdbe")
|
||||
|
||||
[node name="Shrine" type="Sprite2D" parent="Level/YSorted"]
|
||||
position = Vector2(0, 44)
|
||||
texture = SubResource("AtlasTexture_1l0tm")
|
||||
offset = Vector2(8, -54)
|
||||
flip_h = true
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="Level/YSorted/Shrine"]
|
||||
self_modulate = Color(3.6229699, 1.2174728, 1.8589382, 1)
|
||||
position = Vector2(8, -60)
|
||||
scale = Vector2(0.5, 0.5)
|
||||
sprite_frames = SubResource("SpriteFrames_nb51f")
|
||||
autoplay = "default"
|
||||
frame = 2
|
||||
frame_progress = 0.84720045
|
||||
script = ExtResource("19_fkdbe")
|
||||
|
||||
[node name="FairyLights" type="Node2D" parent="Level/YSorted"]
|
||||
modulate = Color(1.8247963, 1.8247963, 1.8247963, 1)
|
||||
|
||||
@@ -170,6 +282,7 @@ scale = Vector2(0.5, 0.5)
|
||||
sprite_frames = SubResource("SpriteFrames_nb51f")
|
||||
autoplay = "default"
|
||||
frame_progress = 0.41686898
|
||||
script = ExtResource("19_fkdbe")
|
||||
|
||||
[node name="AnimatedSprite2D2" type="AnimatedSprite2D" parent="Level/YSorted/FairyLights"]
|
||||
position = Vector2(-129, -28)
|
||||
@@ -177,6 +290,7 @@ scale = Vector2(0.5, 0.5)
|
||||
sprite_frames = SubResource("SpriteFrames_nb51f")
|
||||
autoplay = "default"
|
||||
frame_progress = 0.7475089
|
||||
script = ExtResource("19_fkdbe")
|
||||
|
||||
[node name="AnimatedSprite2D3" type="AnimatedSprite2D" parent="Level/YSorted/FairyLights"]
|
||||
position = Vector2(104, 139)
|
||||
@@ -184,6 +298,7 @@ scale = Vector2(0.5, 0.5)
|
||||
sprite_frames = SubResource("SpriteFrames_nb51f")
|
||||
autoplay = "default"
|
||||
frame_progress = 0.7475089
|
||||
script = ExtResource("19_fkdbe")
|
||||
|
||||
[node name="AnimatedSprite2D5" type="AnimatedSprite2D" parent="Level/YSorted/FairyLights"]
|
||||
position = Vector2(278, 54)
|
||||
@@ -191,6 +306,7 @@ scale = Vector2(0.5, 0.5)
|
||||
sprite_frames = SubResource("SpriteFrames_nb51f")
|
||||
autoplay = "default"
|
||||
frame_progress = 0.7475089
|
||||
script = ExtResource("19_fkdbe")
|
||||
|
||||
[node name="AnimatedSprite2D6" type="AnimatedSprite2D" parent="Level/YSorted/FairyLights"]
|
||||
position = Vector2(-91, 247)
|
||||
@@ -198,6 +314,7 @@ scale = Vector2(0.5, 0.5)
|
||||
sprite_frames = SubResource("SpriteFrames_nb51f")
|
||||
autoplay = "default"
|
||||
frame_progress = 0.7475089
|
||||
script = ExtResource("19_fkdbe")
|
||||
|
||||
[node name="AnimatedSprite2D7" type="AnimatedSprite2D" parent="Level/YSorted/FairyLights"]
|
||||
position = Vector2(-250, 92)
|
||||
@@ -205,6 +322,7 @@ scale = Vector2(0.5, 0.5)
|
||||
sprite_frames = SubResource("SpriteFrames_nb51f")
|
||||
autoplay = "default"
|
||||
frame_progress = 0.7475089
|
||||
script = ExtResource("19_fkdbe")
|
||||
|
||||
[node name="AnimatedSprite2D8" type="AnimatedSprite2D" parent="Level/YSorted/FairyLights"]
|
||||
position = Vector2(40, -200)
|
||||
@@ -212,6 +330,7 @@ scale = Vector2(0.5, 0.5)
|
||||
sprite_frames = SubResource("SpriteFrames_nb51f")
|
||||
autoplay = "default"
|
||||
frame_progress = 0.7475089
|
||||
script = ExtResource("19_fkdbe")
|
||||
|
||||
[node name="AnimatedSprite2D4" type="AnimatedSprite2D" parent="Level/YSorted/FairyLights"]
|
||||
position = Vector2(140, -98)
|
||||
@@ -219,6 +338,7 @@ scale = Vector2(0.5, 0.5)
|
||||
sprite_frames = SubResource("SpriteFrames_nb51f")
|
||||
autoplay = "default"
|
||||
frame_progress = 0.7475089
|
||||
script = ExtResource("19_fkdbe")
|
||||
|
||||
[node name="Enemies" type="Node2D" parent="Level/YSorted"]
|
||||
y_sort_enabled = true
|
||||
@@ -269,5 +389,116 @@ maxX = 300.0
|
||||
minY = -300.0
|
||||
maxY = 300.0
|
||||
|
||||
[node name="AudioListener2D" type="AudioListener2D" parent="Camera2D"]
|
||||
current = true
|
||||
|
||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
||||
environment = SubResource("Environment_h4fw4")
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="UIRoot" type="Control" parent="CanvasLayer"]
|
||||
texture_filter = 1
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 1
|
||||
|
||||
[node name="GridContainer" type="GridContainer" parent="CanvasLayer/UIRoot"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 7
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -568.0
|
||||
offset_top = -96.0
|
||||
offset_right = -434.0
|
||||
offset_bottom = -54.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
scale = Vector2(2, 2)
|
||||
columns = 3
|
||||
|
||||
[node name="Oni" type="Button" parent="CanvasLayer/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"]
|
||||
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"]
|
||||
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"]
|
||||
layout_mode = 1
|
||||
offset_left = 8.0
|
||||
offset_top = 8.0
|
||||
offset_right = 48.0
|
||||
offset_bottom = 48.0
|
||||
scale = Vector2(2, 2)
|
||||
texture = ExtResource("13_1phco")
|
||||
|
||||
[node name="CurrencyLabel" type="Label" parent="CanvasLayer/UIRoot/CurrencyImg"]
|
||||
layout_mode = 1
|
||||
offset_left = 40.0
|
||||
offset_top = 8.0
|
||||
offset_right = 158.0
|
||||
offset_bottom = 36.0
|
||||
text = "99999999"
|
||||
label_settings = SubResource("LabelSettings_o5yvi")
|
||||
|
||||
[node name="ShrineHealthImg" type="TextureRect" parent="CanvasLayer/UIRoot"]
|
||||
self_modulate = Color(1, 0, 0, 1)
|
||||
material = SubResource("ShaderMaterial_nb51f")
|
||||
layout_mode = 1
|
||||
offset_left = 8.0
|
||||
offset_top = 104.0
|
||||
offset_right = 48.0
|
||||
offset_bottom = 144.0
|
||||
scale = Vector2(2, 2)
|
||||
texture = ExtResource("13_1phco")
|
||||
|
||||
[node name="ShrineHealthLabel" type="Label" parent="CanvasLayer/UIRoot/ShrineHealthImg"]
|
||||
layout_mode = 1
|
||||
offset_left = 40.0
|
||||
offset_top = 8.0
|
||||
offset_right = 158.0
|
||||
offset_bottom = 36.0
|
||||
text = "100%"
|
||||
label_settings = SubResource("LabelSettings_o5yvi")
|
||||
|
||||
[node name="StartWaveBtn" type="Button" parent="CanvasLayer/UIRoot"]
|
||||
visible = false
|
||||
layout_mode = 0
|
||||
offset_left = 872.0
|
||||
offset_top = 568.0
|
||||
offset_right = 1005.0
|
||||
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
|
||||
|
||||
[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"]
|
||||
|
||||
Reference in New Issue
Block a user