Inheritance cleared
This commit is contained in:
parent
38dc6ec4d2
commit
76ab2727de
18 changed files with 3396 additions and 763 deletions
|
|
@ -1,21 +1,15 @@
|
|||
[gd_scene load_steps=13 format=3 uid="uid://bmk41n57j7hgx"]
|
||||
[gd_scene load_steps=14 format=3 uid="uid://bmk41n57j7hgx"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://b1hjjbdwf1rtc" path="res://scenes/templates/plant_template.tscn" id="1_ltcu2"]
|
||||
[ext_resource type="Shader" uid="uid://cgc7spjkhsx7c" path="res://assets/shaders/generic_flash.gdshader" id="2_ktw4a"]
|
||||
[ext_resource type="Script" uid="uid://dli2i6albvugt" path="res://scripts/entities/plants/RuntimePlantData.cs" id="1_moq7q"]
|
||||
[ext_resource type="Material" uid="uid://cn7ac4meka1hc" path="res://assets/GenericFlashMaterial.tres" id="2_moq7q"]
|
||||
[ext_resource type="Texture2D" uid="uid://dvldjlg0nr355" path="res://assets/sprites/atlases/atlas1.png" id="3_ktw4a"]
|
||||
[ext_resource type="Script" uid="uid://dwlwi42smgxkb" path="res://scripts/TimeScalableAnimationTree.cs" id="4_4ermv"]
|
||||
[ext_resource type="Script" uid="uid://cu63aiowp5bqd" path="res://scripts/entities/plants/DragAction.cs" id="4_5jowj"]
|
||||
[ext_resource type="Script" uid="uid://co7ttejdo2qot" path="res://scripts/entities/plants/AreaAttack.cs" id="5_twsk4"]
|
||||
[ext_resource type="Script" uid="uid://30pbgasu64aw" path="res://scripts/entities/FlashShaderController.cs" id="6_4uf0y"]
|
||||
[ext_resource type="Script" uid="uid://csgksiyma0h4t" path="res://scripts/entities/plants/behaviours/SnipachBehaviour.cs" id="6_twsk4"]
|
||||
[ext_resource type="Script" uid="uid://c4jy0cnbnx33h" path="res://scripts/TimeScalableTimer.cs" id="7_3hyni"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_f4wwx"]
|
||||
resource_local_to_scene = true
|
||||
shader = ExtResource("2_ktw4a")
|
||||
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="AtlasTexture" id="AtlasTexture_f4wwx"]
|
||||
atlas = ExtResource("3_ktw4a")
|
||||
region = Rect2(525, 241, 79, 72)
|
||||
|
|
@ -30,26 +24,40 @@ region = Rect2(592, 64, 50, 60)
|
|||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_5jowj"]
|
||||
size = Vector2(40, 36)
|
||||
|
||||
[node name="Snipach" instance=ExtResource("1_ltcu2")]
|
||||
GetInternalID() = "snipach"
|
||||
[node name="Snipach" type="Node2D" node_paths=PackedStringArray("_player", "_tree")]
|
||||
script = ExtResource("1_moq7q")
|
||||
MaxHP = 30.0
|
||||
_player = NodePath("AnimationPlayer")
|
||||
_tree = NodePath("AnimationTree")
|
||||
|
||||
[node name="Sprite2D" parent="." index="0"]
|
||||
material = SubResource("ShaderMaterial_f4wwx")
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
material = ExtResource("2_moq7q")
|
||||
position = Vector2(8, -16)
|
||||
texture = SubResource("AtlasTexture_f4wwx")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox" index="0"]
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
|
||||
[node name="AnimationTree" type="AnimationTree" parent="." node_paths=PackedStringArray("entity")]
|
||||
anim_player = NodePath("../AnimationPlayer")
|
||||
script = ExtResource("4_4ermv")
|
||||
entity = NodePath("..")
|
||||
|
||||
[node name="Hitbox" type="Area2D" parent="."]
|
||||
collision_layer = 2
|
||||
collision_mask = 0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"]
|
||||
position = Vector2(-0.75, -2.5)
|
||||
shape = SubResource("RectangleShape2D_ktw4a")
|
||||
|
||||
[node name="DragAction" type="Node" parent="Hitbox" index="1"]
|
||||
[node name="DragAction" type="Node" parent="Hitbox"]
|
||||
script = ExtResource("4_5jowj")
|
||||
|
||||
[node name="FlashController" parent="." index="4"]
|
||||
shaderMaterial = SubResource("ShaderMaterial_f4wwx")
|
||||
[node name="FlashController" type="Node" parent="."]
|
||||
script = ExtResource("6_4uf0y")
|
||||
shaderMaterial = ExtResource("2_moq7q")
|
||||
|
||||
[node name="ShootBox" type="Area2D" parent="." index="5"]
|
||||
[node name="ShootBox" type="Area2D" parent="."]
|
||||
visible = false
|
||||
collision_layer = 32
|
||||
collision_mask = 24
|
||||
|
|
@ -57,29 +65,30 @@ input_pickable = false
|
|||
script = ExtResource("5_twsk4")
|
||||
_damage = 400
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="ShootBox" index="0"]
|
||||
[node name="Sprite2D" type="Sprite2D" parent="ShootBox"]
|
||||
texture = SubResource("AtlasTexture_3hyni")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="ShootBox" index="1"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="ShootBox"]
|
||||
shape = SubResource("RectangleShape2D_5jowj")
|
||||
|
||||
[node name="Behaviour" type="Node" parent="." index="6" node_paths=PackedStringArray("attackBox", "timer", "guardTimer")]
|
||||
[node name="Behaviour" type="Node" parent="." node_paths=PackedStringArray("attackBox", "timer", "guardTimer")]
|
||||
script = ExtResource("6_twsk4")
|
||||
attackBox = NodePath("../ShootBox")
|
||||
timer = NodePath("Timer")
|
||||
guardTimer = NodePath("GuardTimer")
|
||||
|
||||
[node name="Timer" type="Timer" parent="Behaviour" index="0" node_paths=PackedStringArray("entity")]
|
||||
[node name="Timer" type="Timer" parent="Behaviour" node_paths=PackedStringArray("entity")]
|
||||
wait_time = 15.0
|
||||
one_shot = true
|
||||
script = ExtResource("7_3hyni")
|
||||
entity = NodePath("../..")
|
||||
|
||||
[node name="GuardTimer" type="Timer" parent="Behaviour" index="1"]
|
||||
[node name="GuardTimer" type="Timer" parent="Behaviour"]
|
||||
wait_time = 0.2
|
||||
one_shot = true
|
||||
autostart = true
|
||||
ignore_time_scale = true
|
||||
|
||||
[connection signal="OnDamaged" from="." to="FlashController" method="DamageFlash"]
|
||||
[connection signal="DragBegin" from="Hitbox/DragAction" to="Behaviour" method="OnDragBegin"]
|
||||
[connection signal="DragEnd" from="Hitbox/DragAction" to="Behaviour" method="OnDragEnd"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue