Spinach
This commit is contained in:
parent
805226d9eb
commit
87f841e8e1
24 changed files with 203 additions and 57 deletions
|
|
@ -868,7 +868,7 @@ metadata/_edit_lock_ = true
|
|||
|
||||
[node name="LeftLowerLeg" type="Bone2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/LeftUpperLeg"]
|
||||
position = Vector2(-1, 13)
|
||||
scale = Vector2(0.999835, 0.999835)
|
||||
scale = Vector2(0.999834, 0.999834)
|
||||
rest = Transform2D(1, 0, 0, 1, -1, 13)
|
||||
editor_settings/show_bone_gizmo = false
|
||||
|
||||
|
|
@ -922,7 +922,7 @@ editor_settings/show_bone_gizmo = false
|
|||
|
||||
[node name="RightHand" type="Bone2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/RightUpperArm/RightLowerArm"]
|
||||
position = Vector2(-1, 13)
|
||||
scale = Vector2(0.999827, 0.999827)
|
||||
scale = Vector2(0.999828, 0.999828)
|
||||
rest = Transform2D(1, 0, 0, 1, -1, 13)
|
||||
auto_calculate_length_and_angle = false
|
||||
length = 8.0
|
||||
|
|
@ -950,7 +950,7 @@ metadata/_edit_lock_ = true
|
|||
|
||||
[node name="Tie" type="Bone2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body"]
|
||||
position = Vector2(-9, -21)
|
||||
rotation = -0.0584133
|
||||
rotation = -0.151557
|
||||
skew = -0.000476003
|
||||
rest = Transform2D(1, 0, 0, 1, -9, -21)
|
||||
auto_calculate_length_and_angle = false
|
||||
|
|
@ -966,7 +966,7 @@ metadata/_edit_lock_ = true
|
|||
|
||||
[node name="Head" type="Bone2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body"]
|
||||
position = Vector2(-10, -25)
|
||||
scale = Vector2(0.999828, 0.999828)
|
||||
scale = Vector2(0.999829, 0.999829)
|
||||
rest = Transform2D(1, 0, 0, 1, -10, -25)
|
||||
editor_settings/show_bone_gizmo = false
|
||||
|
||||
|
|
@ -988,7 +988,7 @@ offset = Vector2(-20, -24)
|
|||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="Right_Eye" type="Sprite2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head"]
|
||||
position = Vector2(-16, -8.00001)
|
||||
position = Vector2(-16, -8)
|
||||
texture = SubResource("AtlasTexture_vcc72")
|
||||
centered = false
|
||||
offset = Vector2(-2, -2)
|
||||
|
|
@ -1002,8 +1002,8 @@ offset = Vector2(-2, -2)
|
|||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="Jaw" type="Sprite2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head"]
|
||||
position = Vector2(-2.68751, 2.2458)
|
||||
rotation = 0.00598567
|
||||
position = Vector2(-2.81092, 2.54366)
|
||||
rotation = -0.107471
|
||||
scale = Vector2(0.99983, 0.99983)
|
||||
texture = SubResource("AtlasTexture_x5uj2")
|
||||
centered = false
|
||||
|
|
@ -1055,7 +1055,7 @@ remote_path = NodePath("../../HeadParticle/Head/Left_Eye")
|
|||
|
||||
[node name="LeftUpperArm" type="Bone2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body"]
|
||||
position = Vector2(-1, -20)
|
||||
scale = Vector2(0.999832, 0.999832)
|
||||
scale = Vector2(0.999831, 0.999831)
|
||||
rest = Transform2D(1, 0, 0, 1, -1, -20)
|
||||
editor_settings/show_bone_gizmo = false
|
||||
|
||||
|
|
@ -1077,8 +1077,8 @@ minTorque = -45.0
|
|||
maxTorque = 45.0
|
||||
|
||||
[node name="Left_Lower_Arm" type="Sprite2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/LeftUpperArm/HandProjectile"]
|
||||
rotation = 0.0631719
|
||||
scale = Vector2(0.999997, 0.999997)
|
||||
rotation = -0.160747
|
||||
scale = Vector2(0.999998, 0.999998)
|
||||
texture = SubResource("AtlasTexture_auqeq")
|
||||
centered = false
|
||||
offset = Vector2(-5, 0)
|
||||
|
|
@ -1086,9 +1086,9 @@ metadata/_edit_lock_ = true
|
|||
|
||||
[node name="Left_Hand" type="Sprite2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/LeftUpperArm/HandProjectile/Left_Lower_Arm"]
|
||||
show_behind_parent = true
|
||||
position = Vector2(-0.99983, 12.9978)
|
||||
rotation = -0.123862
|
||||
scale = Vector2(0.999657, 0.999657)
|
||||
position = Vector2(-0.999828, 12.9978)
|
||||
rotation = -0.133017
|
||||
scale = Vector2(0.999656, 0.999656)
|
||||
texture = SubResource("AtlasTexture_vlvtp")
|
||||
centered = false
|
||||
offset = Vector2(-4, -1)
|
||||
|
|
@ -1165,7 +1165,7 @@ entity = NodePath("..")
|
|||
[node name="Mover" type="Node" parent="."]
|
||||
script = ExtResource("4_u5syx")
|
||||
_speed = SubResource("Resource_ckb7n")
|
||||
_speedControlMult = 2.03653
|
||||
_speedControlMult = 1.02866
|
||||
|
||||
[node name="HitPlayer" type="Node" parent="."]
|
||||
script = ExtResource("12_he8da")
|
||||
|
|
|
|||
85
scenes/entities/plants/snipach.tscn
Normal file
85
scenes/entities/plants/snipach.tscn
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
[gd_scene load_steps=13 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="Texture2D" uid="uid://dvldjlg0nr355" path="res://assets/sprites/atlases/atlas1.png" id="3_ktw4a"]
|
||||
[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://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)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ktw4a"]
|
||||
size = Vector2(37, 66)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_3hyni"]
|
||||
atlas = ExtResource("3_ktw4a")
|
||||
region = Rect2(592, 64, 50, 60)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_5jowj"]
|
||||
size = Vector2(40, 36)
|
||||
|
||||
[node name="Snipach" instance=ExtResource("1_ltcu2")]
|
||||
internal_id = "snipach"
|
||||
MaxHP = 30.0
|
||||
|
||||
[node name="Sprite2D" parent="." index="0"]
|
||||
material = SubResource("ShaderMaterial_f4wwx")
|
||||
position = Vector2(8, -16)
|
||||
texture = SubResource("AtlasTexture_f4wwx")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox" index="0"]
|
||||
position = Vector2(-2, -13)
|
||||
shape = SubResource("RectangleShape2D_ktw4a")
|
||||
|
||||
[node name="DragAction" type="Node" parent="Hitbox" index="1"]
|
||||
script = ExtResource("4_5jowj")
|
||||
|
||||
[node name="FlashController" parent="." index="4"]
|
||||
shaderMaterial = SubResource("ShaderMaterial_f4wwx")
|
||||
|
||||
[node name="ShootBox" type="Area2D" parent="." index="5"]
|
||||
visible = false
|
||||
collision_layer = 32
|
||||
collision_mask = 24
|
||||
input_pickable = false
|
||||
script = ExtResource("5_twsk4")
|
||||
_damage = 400
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="ShootBox" index="0"]
|
||||
texture = SubResource("AtlasTexture_3hyni")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="ShootBox" index="1"]
|
||||
shape = SubResource("RectangleShape2D_5jowj")
|
||||
|
||||
[node name="Behaviour" type="Node" parent="." index="6" 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")]
|
||||
wait_time = 15.0
|
||||
one_shot = true
|
||||
script = ExtResource("7_3hyni")
|
||||
entity = NodePath("../..")
|
||||
|
||||
[node name="GuardTimer" type="Timer" parent="Behaviour" index="1"]
|
||||
wait_time = 0.2
|
||||
one_shot = true
|
||||
autostart = true
|
||||
ignore_time_scale = true
|
||||
|
||||
[connection signal="DragBegin" from="Hitbox/DragAction" to="Behaviour" method="OnDragBegin"]
|
||||
[connection signal="DragEnd" from="Hitbox/DragAction" to="Behaviour" method="OnDragEnd"]
|
||||
|
|
@ -54,7 +54,6 @@ material = SubResource("ShaderMaterial_yfuxj")
|
|||
texture = ExtResource("2_ffrjr")
|
||||
hframes = 10
|
||||
vframes = 2
|
||||
frame = 1
|
||||
|
||||
[node name="AnimationPlayer" parent="." index="1"]
|
||||
libraries = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue