Zondre
This commit is contained in:
parent
c266d22f58
commit
2eb65c3092
24 changed files with 566 additions and 49 deletions
|
|
@ -1,11 +1,19 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://crxsvv7drckpw"]
|
||||
[gd_scene load_steps=10 format=3 uid="uid://crxsvv7drckpw"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/components/level/RuntimeLevelData.cs" id="1_i3bf5"]
|
||||
[ext_resource type="Texture2D" uid="uid://b0tb2hjum40aw" path="res://assets/sprites/summertime_saga.png" id="2_vmxhy"]
|
||||
[ext_resource type="PackedScene" uid="uid://cg8713v6c5w15" path="res://scenes/pools.tscn" id="3_jv7x4"]
|
||||
[ext_resource type="PackedScene" uid="uid://be1kgukmiu0hs" path="res://scenes/entities/plants/peashooter.tscn" id="4_esyy7"]
|
||||
[ext_resource type="PackedScene" uid="uid://co11v3w8hbwgf" path="res://scenes/entities/Zombies/zombie.tscn" id="5_5jekn"]
|
||||
[ext_resource type="Script" path="res://scripts/components/level/PlantField.cs" id="5_rcajd"]
|
||||
[ext_resource type="Shader" path="res://assets/shaders/greyscale.gdshader" id="5_xsv1x"]
|
||||
[ext_resource type="PackedScene" uid="uid://cfnmspei3k4p7" path="res://scenes/gui/runtime_gui.tscn" id="6_0baou"]
|
||||
[ext_resource type="Texture2D" uid="uid://ot1n4nval86w" path="res://assets/sprites/plants/peashooter.tres" id="6_1r0ne"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_0miwm"]
|
||||
shader = ExtResource("5_xsv1x")
|
||||
shader_parameter/amount = 0.0
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_j04hk"]
|
||||
size = Vector2(50, 60)
|
||||
|
||||
[node name="debug_lvl" type="Node2D"]
|
||||
|
||||
|
|
@ -23,29 +31,24 @@ script = ExtResource("1_i3bf5")
|
|||
|
||||
[node name="Pools" parent="." instance=ExtResource("3_jv7x4")]
|
||||
|
||||
[node name="Peashooter" parent="." instance=ExtResource("4_esyy7")]
|
||||
position = Vector2(379, 105)
|
||||
_line = 4
|
||||
|
||||
[node name="Peashooter2" parent="." instance=ExtResource("4_esyy7")]
|
||||
position = Vector2(431, 162)
|
||||
_line = 3
|
||||
|
||||
[node name="Peashooter3" parent="." instance=ExtResource("4_esyy7")]
|
||||
position = Vector2(480, 224)
|
||||
_line = 2
|
||||
|
||||
[node name="Peashooter4" parent="." instance=ExtResource("4_esyy7")]
|
||||
position = Vector2(531, 283)
|
||||
_line = 1
|
||||
|
||||
[node name="Peashooter5" parent="." instance=ExtResource("4_esyy7")]
|
||||
position = Vector2(581, 345)
|
||||
|
||||
[node name="Zombie" parent="." instance=ExtResource("5_5jekn")]
|
||||
position = Vector2(686, 191)
|
||||
_line = 3
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
layer = 10
|
||||
|
||||
[node name="RuntimeGUI" parent="CanvasLayer" instance=ExtResource("6_0baou")]
|
||||
|
||||
[node name="FieldController" type="Node2D" parent="."]
|
||||
visible = false
|
||||
material = SubResource("ShaderMaterial_0miwm")
|
||||
script = ExtResource("5_rcajd")
|
||||
|
||||
[node name="PlantSetter" type="Area2D" parent="FieldController"]
|
||||
use_parent_material = true
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="FieldController/PlantSetter"]
|
||||
shape = SubResource("RectangleShape2D_j04hk")
|
||||
|
||||
[node name="Peashooter" type="Sprite2D" parent="FieldController/PlantSetter"]
|
||||
use_parent_material = true
|
||||
texture = ExtResource("6_1r0ne")
|
||||
|
|
|
|||
|
|
@ -1,7 +1,10 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://co11v3w8hbwgf"]
|
||||
[gd_scene load_steps=23 format=3 uid="uid://co11v3w8hbwgf"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/components/zombies/RuntimeZombieData.cs" id="1_qq3f1"]
|
||||
[ext_resource type="Texture2D" uid="uid://bwwbkybryi6k0" path="res://assets/sprites/zombie.tres" id="2_4pdxh"]
|
||||
[ext_resource type="Script" path="res://scripts/components/zombies/EatBox.cs" id="3_2aulo"]
|
||||
[ext_resource type="Script" path="res://scripts/components/zombies/ZombieMover.cs" id="4_u5syx"]
|
||||
[ext_resource type="Script" path="res://scripts/components/zombies/behaviours/BasicZombieBehaviour.cs" id="5_2pvkr"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_hxyad"]
|
||||
size = Vector2(24, 84)
|
||||
|
|
@ -9,6 +12,141 @@ size = Vector2(24, 84)
|
|||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_r4ug6"]
|
||||
size = Vector2(20, 48)
|
||||
|
||||
[sub_resource type="Animation" id="Animation_qv5y7"]
|
||||
length = 0.001
|
||||
tracks/0/type = "method"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Mover")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"values": [{
|
||||
"args": [0.0],
|
||||
"method": &"SetSpeed"
|
||||
}]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_sq25x"]
|
||||
_data = {
|
||||
"RESET": SubResource("Animation_qv5y7")
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_fwldj"]
|
||||
resource_name = "eat"
|
||||
loop_mode = 1
|
||||
step = 0.1
|
||||
tracks/0/type = "method"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Eatbox")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0.5),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"values": [{
|
||||
"args": [],
|
||||
"method": &"Bite"
|
||||
}]
|
||||
}
|
||||
tracks/1/type = "method"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("Mover")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"values": [{
|
||||
"args": [0.0],
|
||||
"method": &"SetSpeed"
|
||||
}]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_lrgn8"]
|
||||
resource_name = "idle"
|
||||
loop_mode = 1
|
||||
tracks/0/type = "method"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Mover")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"values": [{
|
||||
"args": [0.0],
|
||||
"method": &"SetSpeed"
|
||||
}]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_ebhxh"]
|
||||
resource_name = "walk"
|
||||
tracks/0/type = "method"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Mover")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"values": [{
|
||||
"args": [0.5],
|
||||
"method": &"SetSpeed"
|
||||
}]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_5ci4h"]
|
||||
_data = {
|
||||
"eat": SubResource("Animation_fwldj"),
|
||||
"idle": SubResource("Animation_lrgn8"),
|
||||
"walk": SubResource("Animation_ebhxh")
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_h0rfo"]
|
||||
animation = &"baisc_zombie/eat"
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_nog33"]
|
||||
animation = &"baisc_zombie/idle"
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_g2uel"]
|
||||
animation = &"baisc_zombie/walk"
|
||||
|
||||
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_vxhht"]
|
||||
advance_mode = 2
|
||||
|
||||
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_r8rju"]
|
||||
advance_mode = 2
|
||||
|
||||
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_y2ivb"]
|
||||
advance_mode = 2
|
||||
advance_condition = &"eat"
|
||||
|
||||
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_7d3k4"]
|
||||
advance_mode = 2
|
||||
advance_condition = &"eat"
|
||||
|
||||
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_kk4wi"]
|
||||
advance_mode = 2
|
||||
advance_condition = &"end_eat"
|
||||
|
||||
[sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_qep5j"]
|
||||
states/End/position = Vector2(1183, 100)
|
||||
states/baisc_zombie_eat/node = SubResource("AnimationNodeAnimation_h0rfo")
|
||||
states/baisc_zombie_eat/position = Vector2(575, 185)
|
||||
states/baisc_zombie_idle/node = SubResource("AnimationNodeAnimation_nog33")
|
||||
states/baisc_zombie_idle/position = Vector2(368, 100)
|
||||
states/baisc_zombie_walk/node = SubResource("AnimationNodeAnimation_g2uel")
|
||||
states/baisc_zombie_walk/position = Vector2(575, 35)
|
||||
transitions = ["Start", "baisc_zombie_idle", SubResource("AnimationNodeStateMachineTransition_vxhht"), "baisc_zombie_idle", "baisc_zombie_walk", SubResource("AnimationNodeStateMachineTransition_r8rju"), "baisc_zombie_idle", "baisc_zombie_eat", SubResource("AnimationNodeStateMachineTransition_y2ivb"), "baisc_zombie_walk", "baisc_zombie_eat", SubResource("AnimationNodeStateMachineTransition_7d3k4"), "baisc_zombie_eat", "baisc_zombie_walk", SubResource("AnimationNodeStateMachineTransition_kk4wi")]
|
||||
graph_offset = Vector2(-17, -2)
|
||||
|
||||
[node name="Zombie" type="Node2D"]
|
||||
script = ExtResource("1_qq3f1")
|
||||
_maxHP = 100
|
||||
|
|
@ -25,8 +163,33 @@ collision_mask = 0
|
|||
position = Vector2(2, -42)
|
||||
shape = SubResource("RectangleShape2D_hxyad")
|
||||
|
||||
[node name="Eatbox" type="Area2D" parent="."]
|
||||
[node name="Eatbox" type="Area2D" parent="." node_paths=PackedStringArray("_animationTree")]
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
script = ExtResource("3_2aulo")
|
||||
_animationTree = NodePath("../AnimationTree")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Eatbox"]
|
||||
position = Vector2(-10, -24)
|
||||
shape = SubResource("RectangleShape2D_r4ug6")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_sq25x"),
|
||||
"baisc_zombie": SubResource("AnimationLibrary_5ci4h")
|
||||
}
|
||||
|
||||
[node name="AnimationTree" type="AnimationTree" parent="."]
|
||||
tree_root = SubResource("AnimationNodeStateMachine_qep5j")
|
||||
anim_player = NodePath("../AnimationPlayer")
|
||||
parameters/conditions/eat = false
|
||||
parameters/conditions/end_eat = false
|
||||
|
||||
[node name="Mover" type="Node" parent="."]
|
||||
script = ExtResource("4_u5syx")
|
||||
|
||||
[node name="Behaviour" type="Node" parent="."]
|
||||
script = ExtResource("5_2pvkr")
|
||||
|
||||
[connection signal="area_entered" from="Eatbox" to="Eatbox" method="OnAreaEntered"]
|
||||
[connection signal="area_exited" from="Eatbox" to="Eatbox" method="OnAreaExited"]
|
||||
|
|
|
|||
|
|
@ -1,25 +1,28 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://c8qru1yhnbbkl"]
|
||||
[gd_scene load_steps=5 format=3 uid="uid://c8qru1yhnbbkl"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cmgaryx5wgu14" path="res://assets/sprites/gui/PlantCard.tres" id="1_fugf5"]
|
||||
[ext_resource type="Texture2D" uid="uid://cabpf23ndlvx0" path="res://assets/sprites/gui/Selection.tres" id="2_5mpv8"]
|
||||
[ext_resource type="Script" path="res://scripts/components/gui/PlantSlot.cs" id="3_eer7n"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_js4li"]
|
||||
font_size = 13
|
||||
font_color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="PlantCard" type="TextureButton"]
|
||||
[node name="PlantSlot" type="TextureButton" node_paths=PackedStringArray("_cost", "_icon")]
|
||||
anchors_preset = -1
|
||||
anchor_right = 0.137
|
||||
anchor_bottom = 0.28
|
||||
offset_right = -0.200005
|
||||
mouse_default_cursor_shape = 2
|
||||
texture_normal = ExtResource("1_fugf5")
|
||||
texture_pressed = ExtResource("2_5mpv8")
|
||||
texture_focused = ExtResource("2_5mpv8")
|
||||
stretch_mode = 0
|
||||
script = ExtResource("3_eer7n")
|
||||
_cost = NodePath("Cost")
|
||||
_icon = NodePath("PlantPreviewContainer/Preview")
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
[node name="Cost" type="Label" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.146
|
||||
|
|
@ -36,3 +39,32 @@ label_settings = SubResource("LabelSettings_js4li")
|
|||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
text_overrun_behavior = 3
|
||||
|
||||
[node name="PlantPreviewContainer" type="Control" parent="."]
|
||||
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="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
|
||||
|
|
|
|||
|
|
@ -1,11 +1,21 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://cfnmspei3k4p7"]
|
||||
[gd_scene load_steps=9 format=3 uid="uid://cfnmspei3k4p7"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://ky35veswaytr" path="res://scenes/gui/sun_counter.tscn" id="1_le3od"]
|
||||
[ext_resource type="PackedScene" uid="uid://c8qru1yhnbbkl" path="res://scenes/gui/plant_card.tscn" id="2_cjtsw"]
|
||||
[ext_resource type="Texture2D" uid="uid://bbh0uwloi87tn" path="res://assets/sprites/gui/PlantPanel.png" id="2_eg3hk"]
|
||||
[ext_resource type="Resource" uid="uid://c8rr1dc7mjr3d" path="res://resources/plants/Peashooter.tres" id="3_42s2d"]
|
||||
[ext_resource type="PackedScene" uid="uid://t0vpmycj6c8j" path="res://scenes/gui/shovel_button.tscn" id="3_bheea"]
|
||||
[ext_resource type="PackedScene" uid="uid://cgm7td1hgs0rr" path="res://scenes/gui/fast_forward_button.tscn" id="4_66uy4"]
|
||||
[ext_resource type="PackedScene" uid="uid://u5l3jd00s8vd" path="res://scenes/gui/pause_button.tscn" id="5_jyq78"]
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_ps2iw"]
|
||||
texture = ExtResource("2_eg3hk")
|
||||
texture_margin_left = 4.0
|
||||
texture_margin_top = 4.0
|
||||
texture_margin_right = 4.0
|
||||
texture_margin_bottom = 4.0
|
||||
axis_stretch_horizontal = 1
|
||||
|
||||
[node name="RuntimeGUI" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
|
|
@ -26,35 +36,41 @@ metadata/_edit_use_anchors_ = true
|
|||
[node name="SunCounter" parent="Hotbar" instance=ExtResource("1_le3od")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Seedpackets" type="HBoxContainer" parent="Hotbar"]
|
||||
[node name="PanelContainer" type="PanelContainer" parent="Hotbar"]
|
||||
layout_mode = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxTexture_ps2iw")
|
||||
|
||||
[node name="Seedpackets" type="HBoxContainer" parent="Hotbar/PanelContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 0
|
||||
|
||||
[node name="PlantCard" parent="Hotbar/Seedpackets" instance=ExtResource("2_cjtsw")]
|
||||
[node name="FirstSlot" parent="Hotbar/PanelContainer/Seedpackets" instance=ExtResource("2_cjtsw")]
|
||||
layout_mode = 2
|
||||
focus_neighbor_right = NodePath("../SecondSlot")
|
||||
_resource = ExtResource("3_42s2d")
|
||||
|
||||
[node name="SecondSlot" parent="Hotbar/PanelContainer/Seedpackets" instance=ExtResource("2_cjtsw")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="PlantCard2" parent="Hotbar/Seedpackets" instance=ExtResource("2_cjtsw")]
|
||||
[node name="ThirdSlot" parent="Hotbar/PanelContainer/Seedpackets" instance=ExtResource("2_cjtsw")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="PlantCard3" parent="Hotbar/Seedpackets" instance=ExtResource("2_cjtsw")]
|
||||
[node name="FourthSlot" parent="Hotbar/PanelContainer/Seedpackets" instance=ExtResource("2_cjtsw")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="PlantCard4" parent="Hotbar/Seedpackets" instance=ExtResource("2_cjtsw")]
|
||||
[node name="FifthSlot" parent="Hotbar/PanelContainer/Seedpackets" instance=ExtResource("2_cjtsw")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="PlantCard5" parent="Hotbar/Seedpackets" instance=ExtResource("2_cjtsw")]
|
||||
[node name="SixthSlot" parent="Hotbar/PanelContainer/Seedpackets" instance=ExtResource("2_cjtsw")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="PlantCard6" parent="Hotbar/Seedpackets" instance=ExtResource("2_cjtsw")]
|
||||
[node name="SeventhSlot" parent="Hotbar/PanelContainer/Seedpackets" instance=ExtResource("2_cjtsw")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="PlantCard7" parent="Hotbar/Seedpackets" instance=ExtResource("2_cjtsw")]
|
||||
[node name="EighthSlot" parent="Hotbar/PanelContainer/Seedpackets" instance=ExtResource("2_cjtsw")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="PlantCard8" parent="Hotbar/Seedpackets" instance=ExtResource("2_cjtsw")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="PlantCard9" parent="Hotbar/Seedpackets" instance=ExtResource("2_cjtsw")]
|
||||
[node name="NinthSlot" parent="Hotbar/PanelContainer/Seedpackets" instance=ExtResource("2_cjtsw")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="ShovelButton" parent="Hotbar" instance=ExtResource("3_bheea")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue