Files
colorvania/platforms/Floaty.tscn

35 lines
1.1 KiB
Plaintext

[gd_scene load_steps=5 format=3 uid="uid://8gd74f7ltuwk"]
[ext_resource type="Script" uid="uid://6xvc47rc3xnp" path="res://platforms/floaty.gd" id="1_nilcs"]
[ext_resource type="Texture2D" uid="uid://uo0dn2kbqhh8" path="res://platforms/floaty.png" id="1_tt70t"]
[sub_resource type="SpriteFrames" id="SpriteFrames_nilcs"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("1_tt70t")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_cftfe"]
size = Vector2(64, 64)
[node name="Floaty" type="Area2D"]
script = ExtResource("1_nilcs")
metadata/_edit_group_ = true
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
z_index = -100
sprite_frames = SubResource("SpriteFrames_nilcs")
metadata/_edit_lock_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_cftfe")
metadata/_edit_lock_ = true
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="body_exited" from="." to="." method="_on_body_exited"]