Skip 1c5443a81c Start
Core proof of concept mechanics implemented.
2022-07-16 13:01:55 -04:00

53 lines
1.6 KiB
Plaintext

[gd_scene load_steps=8 format=2]
[ext_resource path="res://Hazards/Poison/PoisonFood3.png" type="Texture" id=1]
[ext_resource path="res://Hazards/Poison/PoisonFood1.png" type="Texture" id=2]
[ext_resource path="res://Hazards/Poison/PoisonFood2.png" type="Texture" id=3]
[ext_resource path="res://Hazards/Poison/Poison.gd" type="Script" id=4]
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 2 ), ExtResource( 3 ), ExtResource( 1 ) ],
"loop": true,
"name": "default",
"speed": 5.0
} ]
[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 17.5, 19 )
[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 28, 25 )
[node name="Poison" type="RigidBody2D"]
self_modulate = Color( 0, 0.784314, 0, 1 )
collision_layer = 16
collision_mask = 6
script = ExtResource( 4 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
frames = SubResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 1.5, 1 )
shape = SubResource( 2 )
[node name="Hitbox" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"]
shape = SubResource( 3 )
[node name="Timer" type="Timer" parent="."]
wait_time = 2.0
one_shot = true
[node name="TweenPoison" type="Tween" parent="."]
[node name="TweenEat" type="Tween" parent="."]
[node name="TweenShoot" type="Tween" parent="."]
[connection signal="area_entered" from="Hitbox" to="." method="_on_Hitbox_area_entered"]
[connection signal="area_exited" from="Hitbox" to="." method="_on_Hitbox_area_exited"]
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]