description requests

This commit is contained in:
Rendo 2025-07-26 03:04:32 +05:00
commit 6fbae10750
35 changed files with 359 additions and 154 deletions

View file

@ -11,6 +11,7 @@
resource_local_to_scene = true
shader = ExtResource("2_dm0tl")
shader_parameter/FLASH_COLOR = Color(1, 0.709804, 0.439216, 0.5)
shader_parameter/HIGHLIGHT_COLOR = Color(1, 0.709804, 0.439216, 0.5)
shader_parameter/selected = false
shader_parameter/blend = 0.0

View file

@ -168,17 +168,17 @@ shape = SubResource("RectangleShape2D_n1xkd")
[node name="Shooter" type="Marker2D" parent="." index="5" node_paths=PackedStringArray("_timer")]
script = ExtResource("4_sckvu")
_projectile = ExtResource("5_sckvu")
_timer = NodePath("Timer")
_timer = NodePath("FireTimer")
[node name="Timer" type="Timer" parent="Shooter" index="0" node_paths=PackedStringArray("entity")]
wait_time = 5.0
[node name="FireTimer" type="Timer" parent="Shooter" index="0" node_paths=PackedStringArray("entity")]
wait_time = 2.5
one_shot = true
script = ExtResource("6_xwpd6")
entity = NodePath("../..")
[node name="Behaviour" type="Node" parent="." index="6" node_paths=PackedStringArray("_shootTimer", "_sight")]
script = ExtResource("7_q31qc")
_shootTimer = NodePath("../Shooter/Timer")
_shootTimer = NodePath("../Shooter/FireTimer")
_sight = NodePath("../Eysight")
[node name="FlashController" parent="." index="7"]

View file

@ -1,7 +1,8 @@
[gd_scene load_steps=24 format=3 uid="uid://dy41q1kxray5t"]
[gd_scene load_steps=26 format=3 uid="uid://dy41q1kxray5t"]
[ext_resource type="PackedScene" uid="uid://b1hjjbdwf1rtc" path="res://scenes/templates/plant_template.tscn" id="1_pyk3o"]
[ext_resource type="Texture2D" uid="uid://cksryh4w5dbbx" path="res://assets/sprites/atlases/plants/peashooter.png" id="2_14qlx"]
[ext_resource type="Shader" uid="uid://cgc7spjkhsx7c" path="res://assets/shaders/generic_flash.gdshader" id="2_fp65y"]
[ext_resource type="AnimationLibrary" uid="uid://bv1dl1g4dmbho" path="res://assets/animations/plants/peashooter.res" id="3_8lrhp"]
[ext_resource type="Script" uid="uid://ceprqkraw3v6m" path="res://scripts/entities/plants/Shooter.cs" id="3_a4ew1"]
[ext_resource type="PackedScene" uid="uid://b2hrv0aqbui7u" path="res://scenes/projectiles/pea.tscn" id="4_saxds"]
@ -12,6 +13,14 @@
[ext_resource type="Script" uid="uid://c36bj8u7jghc7" path="res://scripts/audio/ChannelPlayer.cs" id="9_mbbd7"]
[ext_resource type="AudioStream" uid="uid://dsv81mvrdg3w3" path="res://assets/audio/sfx/throw_generic.tres" id="10_q58jr"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_fp65y"]
resource_local_to_scene = true
shader = ExtResource("2_fp65y")
shader_parameter/FLASH_COLOR = Color(0.78, 0.78, 0.78, 0.501961)
shader_parameter/HIGHLIGHT_COLOR = Color(0.69, 0, 0, 0.282353)
shader_parameter/selected = false
shader_parameter/blend = 0.0
[sub_resource type="Animation" id="Animation_a2y0j"]
length = 0.001
tracks/0/type = "value"
@ -77,6 +86,7 @@ internal_id = "peashooter"
MaxHP = 30.0
[node name="Sprite2D" parent="." index="0"]
material = SubResource("ShaderMaterial_fp65y")
texture = ExtResource("2_14qlx")
hframes = 10
vframes = 2
@ -97,9 +107,9 @@ parameters/Tree/conditions/ready = false
position = Vector2(12, -4)
script = ExtResource("3_a4ew1")
_projectile = ExtResource("4_saxds")
_timer = NodePath("Timer")
_timer = NodePath("FireTimer")
[node name="Timer" type="Timer" parent="Shooter" index="0" node_paths=PackedStringArray("entity")]
[node name="FireTimer" type="Timer" parent="Shooter" index="0" node_paths=PackedStringArray("entity")]
wait_time = 1.5
one_shot = true
script = ExtResource("6_q58jr")
@ -107,7 +117,7 @@ entity = NodePath("../..")
[node name="Behaviour" type="Node" parent="." index="4" node_paths=PackedStringArray("_shootTimer", "_sight")]
script = ExtResource("5_7qiua")
_shootTimer = NodePath("../Shooter/Timer")
_shootTimer = NodePath("../Shooter/FireTimer")
_sight = NodePath("../Eysight")
[node name="Eysight" type="Area2D" parent="." index="5"]
@ -128,3 +138,6 @@ script = ExtResource("9_mbbd7")
audioStream = ExtResource("10_q58jr")
channel = "pea_shoot"
metadata/_custom_type_script = "uid://c36bj8u7jghc7"
[node name="FlashController" parent="." index="8"]
shaderMaterial = SubResource("ShaderMaterial_fp65y")

View file

@ -1,6 +1,7 @@
[gd_scene load_steps=27 format=3 uid="uid://b5x35v3w2u8dx"]
[gd_scene load_steps=29 format=3 uid="uid://b5x35v3w2u8dx"]
[ext_resource type="PackedScene" uid="uid://b1hjjbdwf1rtc" path="res://scenes/templates/plant_template.tscn" id="1_dj7ul"]
[ext_resource type="Shader" uid="uid://cgc7spjkhsx7c" path="res://assets/shaders/generic_flash.gdshader" id="2_lx7n5"]
[ext_resource type="Texture2D" uid="uid://c77o6ba0mw7a3" path="res://assets/sprites/atlases/plants/potato_mine.png" id="2_sneas"]
[ext_resource type="Script" uid="uid://bhl6o2m3fn4xg" path="res://scripts/entities/plants/ExplosionComponent.cs" id="3_2hd5y"]
[ext_resource type="AnimationLibrary" uid="uid://bjlbdvr6f0r7e" path="res://assets/animations/plants/potato_mine.res" id="3_7tqmj"]
@ -11,6 +12,14 @@
[ext_resource type="Script" uid="uid://c4jy0cnbnx33h" path="res://scripts/TimeScalableTimer.cs" id="8_824aq"]
[ext_resource type="AudioStream" uid="uid://b27om1bw1x04e" path="res://assets/audio/sfx/dirt_rise.mp3" id="9_3vqdc"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_crloj"]
resource_local_to_scene = true
shader = ExtResource("2_lx7n5")
shader_parameter/FLASH_COLOR = Color(0.78, 0.78, 0.78, 0.501961)
shader_parameter/HIGHLIGHT_COLOR = Color(0.69, 0, 0, 0.282353)
shader_parameter/selected = false
shader_parameter/blend = 0.0
[sub_resource type="AnimationNodeTimeScale" id="AnimationNodeTimeScale_3vqdc"]
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_6uutc"]
@ -82,6 +91,7 @@ internal_id = "potatomine"
MaxHP = 20.0
[node name="Sprite2D" parent="." index="0"]
material = SubResource("ShaderMaterial_crloj")
texture = ExtResource("2_sneas")
hframes = 7
vframes = 4
@ -153,5 +163,8 @@ audioStream = ExtResource("9_3vqdc")
channel = "plant_rise"
metadata/_custom_type_script = "uid://c36bj8u7jghc7"
[node name="FlashController" parent="." index="9"]
shaderMaterial = SubResource("ShaderMaterial_crloj")
[connection signal="area_entered" from="Detectionbox" to="Behaviour" method="OnAreaEntered"]
[connection signal="timeout" from="PrimeTimer" to="Behaviour" method="Prime"]

View file

@ -1,10 +1,19 @@
[gd_scene load_steps=16 format=3 uid="uid://b7innrovtmf5u"]
[gd_scene load_steps=18 format=3 uid="uid://b7innrovtmf5u"]
[ext_resource type="PackedScene" uid="uid://dy41q1kxray5t" path="res://scenes/entities/plants/peashooter.tscn" id="1_lp85e"]
[ext_resource type="Texture2D" uid="uid://cu0651pvvkmvm" path="res://assets/sprites/atlases/plants/snow_pea.png" id="2_ytrm0"]
[ext_resource type="Shader" uid="uid://cgc7spjkhsx7c" path="res://assets/shaders/generic_flash.gdshader" id="2_yyg2a"]
[ext_resource type="AnimationLibrary" uid="uid://cke5wmmrvevbs" path="res://assets/animations/plants/snowpea.res" id="4_jvx5y"]
[ext_resource type="PackedScene" uid="uid://domeukw4ucmyr" path="res://scenes/projectiles/snowpea_projectile.tscn" id="5_bv86m"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_g872w"]
resource_local_to_scene = true
shader = ExtResource("2_yyg2a")
shader_parameter/FLASH_COLOR = Color(0.78, 0.78, 0.78, 0.501961)
shader_parameter/HIGHLIGHT_COLOR = Color(0.69, 0, 0, 0.282353)
shader_parameter/selected = false
shader_parameter/blend = 0.0
[sub_resource type="Animation" id="Animation_pephc"]
length = 0.001
tracks/0/type = "value"
@ -66,6 +75,7 @@ resource_local_to_scene = true
internal_id = "snowpea"
[node name="Sprite2D" parent="." index="0"]
material = SubResource("ShaderMaterial_g872w")
texture = ExtResource("2_ytrm0")
[node name="AnimationPlayer" parent="." index="1"]
@ -83,3 +93,6 @@ _projectile = ExtResource("5_bv86m")
[node name="CollisionShape2D" parent="Eysight" index="0"]
shape = SubResource("SegmentShape2D_3oyhk")
[node name="FlashController" parent="." index="8"]
shaderMaterial = SubResource("ShaderMaterial_g872w")

View file

@ -1,13 +1,22 @@
[gd_scene load_steps=19 format=3 uid="uid://bg7lomiorxo2c"]
[gd_scene load_steps=21 format=3 uid="uid://bg7lomiorxo2c"]
[ext_resource type="PackedScene" uid="uid://b1hjjbdwf1rtc" path="res://scenes/templates/plant_template.tscn" id="1_bikjn"]
[ext_resource type="Texture2D" uid="uid://b3tuidu8dag8u" path="res://assets/sprites/atlases/plants/sunflower.png" id="2_fwcda"]
[ext_resource type="Shader" uid="uid://cgc7spjkhsx7c" path="res://assets/shaders/generic_flash.gdshader" id="2_qpvbo"]
[ext_resource type="AnimationLibrary" uid="uid://yjytiuj4u7oh" path="res://assets/animations/plants/sunflower.res" id="3_btsik"]
[ext_resource type="Script" uid="uid://b71gebny84s81" path="res://scripts/entities/plants/PlantSunSpawner.cs" id="3_te0pl"]
[ext_resource type="PackedScene" uid="uid://bpekho7leatr5" path="res://scenes/sun.tscn" id="4_b8hls"]
[ext_resource type="Script" uid="uid://bth7gah4tn7uj" path="res://scripts/entities/plants/behaviours/SunflowerBehaviour.cs" id="5_26je0"]
[ext_resource type="Script" uid="uid://c4jy0cnbnx33h" path="res://scripts/TimeScalableTimer.cs" id="7_rlkb7"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_mdjfv"]
resource_local_to_scene = true
shader = ExtResource("2_qpvbo")
shader_parameter/FLASH_COLOR = Color(0.78, 0.78, 0.78, 0.501961)
shader_parameter/HIGHLIGHT_COLOR = Color(0.69, 0, 0, 0.282353)
shader_parameter/selected = false
shader_parameter/blend = 0.0
[sub_resource type="Animation" id="Animation_bfx6v"]
length = 0.001
tracks/0/type = "value"
@ -55,7 +64,6 @@ states/sunflower_produce/position = Vector2(624, 99)
transitions = ["Start", "sunflower_idle", SubResource("AnimationNodeStateMachineTransition_26fia"), "sunflower_idle", "sunflower_produce", SubResource("AnimationNodeStateMachineTransition_d2akw"), "sunflower_produce", "sunflower_idle", SubResource("AnimationNodeStateMachineTransition_sww40")]
[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_rlkb7"]
graph_offset = Vector2(-437, 84)
nodes/TimeScale/node = SubResource("AnimationNodeTimeScale_811ah")
nodes/TimeScale/position = Vector2(100, 140)
nodes/Tree/node = SubResource("AnimationNodeStateMachine_enpal")
@ -70,10 +78,11 @@ internal_id = "sunflower"
MaxHP = 30.0
[node name="Sprite2D" parent="." index="0"]
material = SubResource("ShaderMaterial_mdjfv")
texture = ExtResource("2_fwcda")
hframes = 9
vframes = 2
frame = 1
frame = 2
[node name="AnimationPlayer" parent="." index="1"]
libraries = {
@ -111,6 +120,9 @@ entity = NodePath("../..")
position = Vector2(0, 4)
shape = SubResource("RectangleShape2D_4xs4g")
[node name="FlashController" parent="." index="6"]
shaderMaterial = SubResource("ShaderMaterial_mdjfv")
[connection signal="timeout" from="Behaviour/Timer" to="Behaviour" method="Timeout"]
[connection signal="timeout" from="Behaviour/StartTimer" to="Behaviour" method="Timeout"]
[connection signal="timeout" from="Behaviour/StartTimer" to="Behaviour/Timer" method="start"]