droppable items and win
This commit is contained in:
parent
0f6445d677
commit
5bdbfa4d82
47 changed files with 820 additions and 85 deletions
80
scenes/droppables/plant/droppable_peashooter.tscn
Normal file
80
scenes/droppables/plant/droppable_peashooter.tscn
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://bmn3ef86xi7e5"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://gymo10tjruj2" path="res://scripts/droppable-items/DroppableSeedpacket.cs" id="1_a3ea7"]
|
||||
[ext_resource type="Texture2D" uid="uid://dxyf557m4mq1p" path="res://assets/sprites/gui/EmptyPlantCard.png" id="2_7ixh2"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_scv3y"]
|
||||
resource_local_to_scene = true
|
||||
font_size = 13
|
||||
font_color = Color(0, 0, 0, 1)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2c7xr"]
|
||||
size = Vector2(41, 56)
|
||||
|
||||
[node name="PlantReward" type="Area2D" node_paths=PackedStringArray("_cost", "_icon", "_packet")]
|
||||
script = ExtResource("1_a3ea7")
|
||||
_cost = NodePath("Seedpacket/Cost")
|
||||
_icon = NodePath("Seedpacket/PlantPreviewContainer/Preview")
|
||||
_packet = NodePath("Seedpacket")
|
||||
|
||||
[node name="Seedpacket" type="TextureRect" parent="."]
|
||||
anchors_preset = -1
|
||||
anchor_right = 0.137
|
||||
anchor_bottom = 0.28
|
||||
offset_left = -20.5
|
||||
offset_top = -28.0
|
||||
offset_right = 20.5
|
||||
offset_bottom = 28.0
|
||||
mouse_default_cursor_shape = 2
|
||||
texture = ExtResource("2_7ixh2")
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="Cost" type="Label" parent="Seedpacket"]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.146
|
||||
anchor_top = 0.732
|
||||
anchor_right = 0.854
|
||||
anchor_bottom = 0.893
|
||||
offset_left = 0.0279989
|
||||
offset_top = 0.0159912
|
||||
offset_right = -0.0279999
|
||||
offset_bottom = -0.0160065
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
label_settings = SubResource("LabelSettings_scv3y")
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
text_overrun_behavior = 3
|
||||
|
||||
[node name="PlantPreviewContainer" type="Control" parent="Seedpacket"]
|
||||
clip_contents = true
|
||||
layout_mode = 1
|
||||
anchor_left = -0.061
|
||||
anchor_top = -0.036
|
||||
anchor_right = 1.061
|
||||
anchor_bottom = 0.661
|
||||
offset_left = 0.00199986
|
||||
offset_top = 0.0320001
|
||||
offset_right = -0.0019989
|
||||
offset_bottom = -0.0319977
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="Preview" type="TextureRect" parent="Seedpacket/PlantPreviewContainer"]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.185
|
||||
anchor_top = 0.205
|
||||
anchor_right = 0.815
|
||||
anchor_bottom = 1.333
|
||||
offset_left = -0.0200005
|
||||
offset_top = 0.00999928
|
||||
offset_right = 0.0199966
|
||||
offset_bottom = 0.0259933
|
||||
mouse_filter = 2
|
||||
mouse_default_cursor_shape = 2
|
||||
expand_mode = 1
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_2c7xr")
|
||||
|
|
@ -41,57 +41,49 @@ _armor = NodePath("Armor")
|
|||
material = SubResource("ShaderMaterial_sat5k")
|
||||
|
||||
[node name="RightUpperLeg" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt" index="1"]
|
||||
scale = Vector2(0.999832, 0.999832)
|
||||
|
||||
[node name="RightLowerLeg" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/RightUpperLeg" index="1"]
|
||||
scale = Vector2(0.999839, 0.999839)
|
||||
|
||||
[node name="RightFoot" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/RightUpperLeg/RightLowerLeg" index="0"]
|
||||
scale = Vector2(0.999833, 0.999833)
|
||||
scale = Vector2(0.999835, 0.999835)
|
||||
|
||||
[node name="LeftUpperLeg" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt" index="2"]
|
||||
scale = Vector2(0.999836, 0.999836)
|
||||
scale = Vector2(0.999829, 0.999829)
|
||||
|
||||
[node name="LeftLowerLeg" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/LeftUpperLeg" index="1"]
|
||||
scale = Vector2(0.999833, 0.999833)
|
||||
scale = Vector2(0.999834, 0.999834)
|
||||
|
||||
[node name="LeftFoot" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/LeftUpperLeg/LeftLowerLeg" index="1"]
|
||||
scale = Vector2(0.999823, 0.999823)
|
||||
scale = Vector2(0.999826, 0.999826)
|
||||
|
||||
[node name="Body" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt" index="3"]
|
||||
scale = Vector2(0.999828, 0.999828)
|
||||
|
||||
[node name="RightUpperArm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body" index="0"]
|
||||
scale = Vector2(0.999827, 0.999827)
|
||||
|
||||
[node name="RightLowerArm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/RightUpperArm" index="1"]
|
||||
scale = Vector2(0.999829, 0.999829)
|
||||
|
||||
[node name="RightLowerArm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/RightUpperArm" index="1"]
|
||||
scale = Vector2(0.999826, 0.999826)
|
||||
|
||||
[node name="RightHand" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/RightUpperArm/RightLowerArm" index="0"]
|
||||
scale = Vector2(0.999832, 0.999832)
|
||||
scale = Vector2(0.999831, 0.999831)
|
||||
|
||||
[node name="Tie" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body" index="2"]
|
||||
rotation = 0.13159
|
||||
skew = -0.000126362
|
||||
rotation = 0.134918
|
||||
skew = -0.000136733
|
||||
|
||||
[node name="Head" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body" index="3"]
|
||||
scale = Vector2(0.99983, 0.99983)
|
||||
|
||||
[node name="Right_Eye" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head" index="0"]
|
||||
position = Vector2(-16, -8)
|
||||
scale = Vector2(1, 1)
|
||||
|
||||
[node name="Left_Eye" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head" index="1"]
|
||||
position = Vector2(-4, -9)
|
||||
scale = Vector2(1, 1)
|
||||
|
||||
[node name="Jaw" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head" index="2"]
|
||||
position = Vector2(-2.93758, 2.84233)
|
||||
rotation = 0.0189273
|
||||
scale = Vector2(0.999823, 0.999823)
|
||||
|
||||
[node name="Right_Eye" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head" index="0"]
|
||||
position = Vector2(-16, -7.99999)
|
||||
|
||||
[node name="Left_Eye" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head" index="1"]
|
||||
position = Vector2(-4, -8.99999)
|
||||
|
||||
[node name="Jaw" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head" index="2"]
|
||||
position = Vector2(-3.00166, 2.9972)
|
||||
rotation = 0.0130933
|
||||
scale = Vector2(0.999837, 0.999837)
|
||||
|
||||
[node name="Jaw" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head" index="1"]
|
||||
scale = Vector2(0.999824, 0.999824)
|
||||
scale = Vector2(0.999837, 0.999837)
|
||||
|
||||
[node name="Hat" type="RigidBody2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head" index="4" node_paths=PackedStringArray("data")]
|
||||
position = Vector2(-2.5, -13.5)
|
||||
|
|
@ -120,29 +112,24 @@ position = Vector2(1, -6)
|
|||
shape = SubResource("CircleShape2D_67t4t")
|
||||
|
||||
[node name="LeftUpperArm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body" index="4"]
|
||||
scale = Vector2(0.999828, 0.999828)
|
||||
scale = Vector2(0.999825, 0.999825)
|
||||
|
||||
[node name="Left_Lower_Arm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/LeftUpperArm/HandProjectile" index="0"]
|
||||
rotation = 0.151384
|
||||
scale = Vector2(0.999994, 0.999994)
|
||||
rotation = 0.126852
|
||||
|
||||
[node name="Left_Hand" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/LeftUpperArm/HandProjectile/Left_Lower_Arm" index="0"]
|
||||
position = Vector2(-0.99983, 12.9978)
|
||||
rotation = -0.08093
|
||||
scale = Vector2(0.999659, 0.999659)
|
||||
|
||||
[node name="LeftLowerArm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/LeftUpperArm" index="2"]
|
||||
scale = Vector2(0.999824, 0.999824)
|
||||
rotation = -0.0559848
|
||||
scale = Vector2(0.999655, 0.999655)
|
||||
|
||||
[node name="LeftHand" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/LeftUpperArm/LeftLowerArm" index="0"]
|
||||
scale = Vector2(0.999829, 0.999829)
|
||||
scale = Vector2(0.999825, 0.999825)
|
||||
|
||||
[node name="Eatbox" parent="." index="2"]
|
||||
_damage = SubResource("Resource_011r0")
|
||||
|
||||
[node name="Mover" parent="." index="4"]
|
||||
_speed = SubResource("Resource_b6mal")
|
||||
_speedControlMult = 1.73312
|
||||
_speedControlMult = 0.918428
|
||||
|
||||
[node name="HitPlayer" parent="." index="5"]
|
||||
playlist = Array[AudioStream]([ExtResource("7_0amn8"), ExtResource("7_67t4t")])
|
||||
|
|
|
|||
|
|
@ -73,7 +73,6 @@ MaxHP = 30.0
|
|||
texture = ExtResource("2_fwcda")
|
||||
hframes = 9
|
||||
vframes = 2
|
||||
frame = 3
|
||||
|
||||
[node name="AnimationPlayer" parent="." index="1"]
|
||||
libraries = {
|
||||
|
|
|
|||
|
|
@ -22,11 +22,10 @@ anchor_bottom = 1.0
|
|||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
tab_alignment = 1
|
||||
current_tab = 1
|
||||
current_tab = 0
|
||||
script = ExtResource("1_oy57w")
|
||||
|
||||
[node name="plants" type="HBoxContainer" parent="."]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
metadata/_tab_index = 0
|
||||
|
||||
|
|
@ -109,6 +108,7 @@ theme_override_colors/font_selected_color = Color(0, 0, 0, 1)
|
|||
bbcode_enabled = true
|
||||
|
||||
[node name="zombies" type="HBoxContainer" parent="."]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
metadata/_tab_index = 1
|
||||
|
||||
|
|
@ -139,12 +139,10 @@ size_flags_horizontal = 0
|
|||
size_flags_vertical = 0
|
||||
texture = ExtResource("1_1hnxi")
|
||||
|
||||
[node name="Previewport" type="SubViewport" parent="zombies/Infobox/FrameAndTitle/VBoxContainer/Frame" node_paths=PackedStringArray("title", "description", "_frameField")]
|
||||
[node name="Previewport" type="SubViewport" parent="zombies/Infobox/FrameAndTitle/VBoxContainer/Frame" node_paths=PackedStringArray("_frameField")]
|
||||
canvas_item_default_texture_filter = 0
|
||||
size = Vector2i(130, 130)
|
||||
script = ExtResource("2_ru62c")
|
||||
title = NodePath("../../../Label")
|
||||
description = NodePath("../../../../Description/ScrollContainer/RichTextLabel")
|
||||
_frameField = NodePath("CanvasLayer/Field")
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="zombies/Infobox/FrameAndTitle/VBoxContainer/Frame/Previewport"]
|
||||
|
|
|
|||
42
scenes/gui/frame.tscn
Normal file
42
scenes/gui/frame.tscn
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://disdegexxmcro"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dr8a0rx42o3qy" path="res://assets/sprites/gui/ChooseYourSeeds/PlantFrame.tres" id="1_hc23v"]
|
||||
[ext_resource type="Script" uid="uid://covbig00p22di" path="res://scripts/gui/choose_your_seeds/Previewport.cs" id="2_cf55k"]
|
||||
[ext_resource type="Texture2D" uid="uid://ksxucobpgv7n" path="res://assets/sprites/field.png" id="3_7j5d4"]
|
||||
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_7yl8g"]
|
||||
viewport_path = NodePath("zombies/Infobox/FrameAndTitle/VBoxContainer/Frame/Previewport")
|
||||
|
||||
[node name="Frame" type="TextureRect"]
|
||||
clip_contents = true
|
||||
size_flags_horizontal = 0
|
||||
size_flags_vertical = 0
|
||||
texture = ExtResource("1_hc23v")
|
||||
|
||||
[node name="Previewport" type="SubViewport" parent="." node_paths=PackedStringArray("_frameField")]
|
||||
canvas_item_default_texture_filter = 0
|
||||
size = Vector2i(130, 130)
|
||||
script = ExtResource("2_cf55k")
|
||||
_frameField = NodePath("CanvasLayer/Field")
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="Previewport"]
|
||||
layer = -10
|
||||
follow_viewport_enabled = true
|
||||
|
||||
[node name="Field" type="Sprite2D" parent="Previewport/CanvasLayer"]
|
||||
position = Vector2(0, 30)
|
||||
texture = ExtResource("3_7j5d4")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="Previewport"]
|
||||
position = Vector2(0, -45)
|
||||
|
||||
[node name="Render" type="TextureRect" parent="."]
|
||||
show_behind_parent = true
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = SubResource("ViewportTexture_7yl8g")
|
||||
expand_mode = 1
|
||||
144
scenes/gui/reward_scene.tscn
Normal file
144
scenes/gui/reward_scene.tscn
Normal file
|
|
@ -0,0 +1,144 @@
|
|||
[gd_scene load_steps=9 format=3 uid="uid://cwck7e1tt057k"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cqlghusry0hej" path="res://scripts/gui/RewardScene.cs" id="1_rclqa"]
|
||||
[ext_resource type="Texture2D" uid="uid://nc6t245565lu" path="res://assets/sprites/leafy_background.png" id="1_uwg38"]
|
||||
[ext_resource type="Texture2D" uid="uid://bq8n778sk4qnv" path="res://assets/sprites/gui/almanach/frame.tres" id="2_hbmdt"]
|
||||
[ext_resource type="Texture2D" uid="uid://ksxucobpgv7n" path="res://assets/sprites/field.png" id="3_mbhdb"]
|
||||
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_rclqa"]
|
||||
viewport_path = NodePath("PanelContainer/VBoxContainer/Frame/SubViewport")
|
||||
|
||||
[sub_resource type="Animation" id="Animation_rclqa"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("ColorRect:color")
|
||||
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, 1)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_mbhdb"]
|
||||
resource_name = "main"
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("ColorRect:color")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 1),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 0.921569, 1), Color(1, 1, 0.92, 0)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_rfkmu"]
|
||||
_data = {
|
||||
&"RESET": SubResource("Animation_rclqa"),
|
||||
&"main": SubResource("Animation_mbhdb")
|
||||
}
|
||||
|
||||
[node name="RewardScene" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_rclqa")
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="Background" type="TextureRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("1_uwg38")
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="PanelContainer" type="PanelContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.285
|
||||
anchor_top = 0.105
|
||||
anchor_right = 0.713333
|
||||
anchor_bottom = 0.895
|
||||
offset_right = -3.05176e-05
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Frame" type="TextureRect" parent="PanelContainer/VBoxContainer"]
|
||||
clip_contents = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
texture = ExtResource("2_hbmdt")
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="SubViewport" type="SubViewport" parent="PanelContainer/VBoxContainer/Frame"]
|
||||
unique_name_in_owner = true
|
||||
|
||||
[node name="Field" type="Sprite2D" parent="PanelContainer/VBoxContainer/Frame/SubViewport"]
|
||||
unique_name_in_owner = true
|
||||
texture = ExtResource("3_mbhdb")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="PanelContainer/VBoxContainer/Frame/SubViewport"]
|
||||
zoom = Vector2(0.75, 0.75)
|
||||
|
||||
[node name="ViewportTexture" type="TextureRect" parent="PanelContainer/VBoxContainer/Frame"]
|
||||
show_behind_parent = true
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = SubResource("ViewportTexture_rclqa")
|
||||
|
||||
[node name="NameLabel" type="Label" parent="PanelContainer/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="DescriptionPanel" type="PanelContainer" parent="PanelContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_type_variation = &"description_panel_container"
|
||||
|
||||
[node name="DescriptionLabel" type="RichTextLabel" parent="PanelContainer/VBoxContainer/DescriptionPanel"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
theme_override_colors/default_color = Color(0, 0, 0, 1)
|
||||
bbcode_enabled = true
|
||||
|
||||
[node name="ContinueButton" type="Button" parent="PanelContainer/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
text = "continue"
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_rfkmu")
|
||||
}
|
||||
autoplay = "main"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=41 format=3 uid="uid://dd3yegl1xo44m"]
|
||||
[gd_scene load_steps=42 format=3 uid="uid://dd3yegl1xo44m"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bndu1h5kgcde8" path="res://scripts/level/RuntimeLevelData.cs" id="1_31ltw"]
|
||||
[ext_resource type="Script" uid="uid://bso32xkw738sy" path="res://scripts/level/PoolContainer.cs" id="2_s5sti"]
|
||||
|
|
@ -281,7 +281,7 @@ length = 0.001
|
|||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Fade:self_modulate")
|
||||
tracks/0/path = NodePath("LooseFade:self_modulate")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
|
|
@ -293,7 +293,7 @@ tracks/0/keys = {
|
|||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("Fade/Brainz:self_modulate")
|
||||
tracks/1/path = NodePath("LooseFade/Brainz:self_modulate")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
|
|
@ -305,7 +305,7 @@ tracks/1/keys = {
|
|||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("Fade:visible")
|
||||
tracks/2/path = NodePath("LooseFade:visible")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
|
|
@ -338,6 +338,18 @@ tracks/4/keys = {
|
|||
"update": 0,
|
||||
"values": [Color(1, 1, 1, 1)]
|
||||
}
|
||||
tracks/5/type = "value"
|
||||
tracks/5/imported = false
|
||||
tracks/5/enabled = true
|
||||
tracks/5/path = NodePath("WinFade:color")
|
||||
tracks/5/interp = 1
|
||||
tracks/5/loop_wrap = true
|
||||
tracks/5/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 0.92, 0)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_h1ksq"]
|
||||
resource_name = "fade"
|
||||
|
|
@ -345,7 +357,7 @@ length = 4.0
|
|||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Fade:self_modulate")
|
||||
tracks/0/path = NodePath("LooseFade:self_modulate")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
|
|
@ -357,7 +369,7 @@ tracks/0/keys = {
|
|||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("Fade/Brainz:self_modulate")
|
||||
tracks/1/path = NodePath("LooseFade/Brainz:self_modulate")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
|
|
@ -369,7 +381,7 @@ tracks/1/keys = {
|
|||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("Fade:visible")
|
||||
tracks/2/path = NodePath("LooseFade:visible")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
|
|
@ -403,10 +415,27 @@ tracks/4/keys = {
|
|||
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 0), Color(1, 1, 1, 1)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_y72yf"]
|
||||
resource_name = "win"
|
||||
length = 5.0
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("WinFade:color")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 4, 5),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 0.92, 0), Color(1, 1, 0.92, 0), Color(1, 1, 0.92, 1)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_pb02i"]
|
||||
_data = {
|
||||
&"RESET": SubResource("Animation_r81g1"),
|
||||
&"fade": SubResource("Animation_h1ksq")
|
||||
&"loose": SubResource("Animation_h1ksq"),
|
||||
&"win": SubResource("Animation_y72yf")
|
||||
}
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_y5tw7"]
|
||||
|
|
@ -531,6 +560,10 @@ follow_viewport_enabled = true
|
|||
|
||||
[node name="FieldController" parent="Overlay" instance=ExtResource("2_w4oj7")]
|
||||
|
||||
[node name="RewardLayer" type="CanvasLayer" parent="."]
|
||||
layer = 10
|
||||
follow_viewport_enabled = true
|
||||
|
||||
[node name="GUI" type="CanvasLayer" parent="."]
|
||||
layer = 10
|
||||
|
||||
|
|
@ -569,7 +602,7 @@ vertical_alignment = 1
|
|||
process_mode = 3
|
||||
layer = 11
|
||||
|
||||
[node name="Fade" type="ColorRect" parent="GameOverScreen"]
|
||||
[node name="LooseFade" type="ColorRect" parent="GameOverScreen"]
|
||||
visible = false
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
|
|
@ -578,18 +611,28 @@ grow_horizontal = 2
|
|||
grow_vertical = 2
|
||||
color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="Brainz" type="TextureRect" parent="GameOverScreen/Fade"]
|
||||
[node name="Brainz" type="TextureRect" parent="GameOverScreen/LooseFade"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 141.0
|
||||
offset_top = 146.0
|
||||
offset_top = 125.0
|
||||
offset_right = -143.0
|
||||
offset_bottom = -137.0
|
||||
offset_bottom = -116.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("7_482ps")
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="WinFade" type="ColorRect" parent="GameOverScreen"]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
color = Color(1, 1, 0.92, 0)
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="GameOverScreen"]
|
||||
libraries = {
|
||||
|
|
@ -659,11 +702,13 @@ runner = NodePath("../LevelRunner")
|
|||
[node name="DelayTimer" type="Timer" parent="RowSpawner"]
|
||||
wait_time = 2.5
|
||||
|
||||
[node name="LevelRunner" type="Node" parent="." node_paths=PackedStringArray("rowSpawner", "waveTimer")]
|
||||
[node name="LevelRunner" type="Node" parent="." node_paths=PackedStringArray("rowSpawner", "waveTimer", "player", "rewardParent")]
|
||||
script = ExtResource("23_8vb7v")
|
||||
rowSpawner = NodePath("../RowSpawner")
|
||||
waveTimer = NodePath("WaveTimer")
|
||||
approachNotificationTime = 5.0
|
||||
player = NodePath("../GameOverScreen/AnimationPlayer")
|
||||
rewardParent = NodePath("../RewardLayer")
|
||||
|
||||
[node name="WaveTimer" type="Timer" parent="LevelRunner"]
|
||||
one_shot = true
|
||||
|
|
|
|||
80
scenes/templates/plant_reward.tscn
Normal file
80
scenes/templates/plant_reward.tscn
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://myjhi5m0eaap"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://gymo10tjruj2" path="res://scripts/droppable-items/DroppableSeedpacket.cs" id="1_rir1v"]
|
||||
[ext_resource type="Texture2D" uid="uid://dxyf557m4mq1p" path="res://assets/sprites/gui/EmptyPlantCard.png" id="2_wupw1"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_scv3y"]
|
||||
resource_local_to_scene = true
|
||||
font_size = 13
|
||||
font_color = Color(0, 0, 0, 1)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2c7xr"]
|
||||
size = Vector2(41, 56)
|
||||
|
||||
[node name="PlantReward" type="Area2D" node_paths=PackedStringArray("_cost", "_icon", "_packet")]
|
||||
script = ExtResource("1_rir1v")
|
||||
_cost = NodePath("Seedpacket/Cost")
|
||||
_icon = NodePath("Seedpacket/PlantPreviewContainer/Preview")
|
||||
_packet = NodePath("Seedpacket")
|
||||
|
||||
[node name="Seedpacket" type="TextureRect" parent="."]
|
||||
anchors_preset = -1
|
||||
anchor_right = 0.137
|
||||
anchor_bottom = 0.28
|
||||
offset_left = -20.5
|
||||
offset_top = -28.0
|
||||
offset_right = 20.5
|
||||
offset_bottom = 28.0
|
||||
mouse_default_cursor_shape = 2
|
||||
texture = ExtResource("2_wupw1")
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="Cost" type="Label" parent="Seedpacket"]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.146
|
||||
anchor_top = 0.732
|
||||
anchor_right = 0.854
|
||||
anchor_bottom = 0.893
|
||||
offset_left = 0.0279989
|
||||
offset_top = 0.0159912
|
||||
offset_right = -0.0279999
|
||||
offset_bottom = -0.0160065
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
label_settings = SubResource("LabelSettings_scv3y")
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
text_overrun_behavior = 3
|
||||
|
||||
[node name="PlantPreviewContainer" type="Control" parent="Seedpacket"]
|
||||
clip_contents = true
|
||||
layout_mode = 1
|
||||
anchor_left = -0.061
|
||||
anchor_top = -0.036
|
||||
anchor_right = 1.061
|
||||
anchor_bottom = 0.661
|
||||
offset_left = 0.00199986
|
||||
offset_top = 0.0320001
|
||||
offset_right = -0.0019989
|
||||
offset_bottom = -0.0319977
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="Preview" type="TextureRect" parent="Seedpacket/PlantPreviewContainer"]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.185
|
||||
anchor_top = 0.205
|
||||
anchor_right = 0.815
|
||||
anchor_bottom = 1.333
|
||||
offset_left = -0.0200005
|
||||
offset_top = 0.00999928
|
||||
offset_right = 0.0199966
|
||||
offset_bottom = 0.0259933
|
||||
mouse_filter = 2
|
||||
mouse_default_cursor_shape = 2
|
||||
expand_mode = 1
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_2c7xr")
|
||||
Loading…
Add table
Add a link
Reference in a new issue