Wicked-Depths/cloud.tscn

30 lines
1.0 KiB
Plaintext
Raw Permalink Normal View History

[gd_scene load_steps=5 format=3 uid="uid://n72os6i7xjq0"]
[ext_resource type="Script" path="res://cloud.gd" id="1_nppen"]
[ext_resource type="Texture2D" uid="uid://45fgpfmo6jpm" path="res://sheet1.png" id="2_ykyww"]
[ext_resource type="AudioStream" uid="uid://ba0nag2pymsps" path="res://move.wav" id="3_aab8e"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2c8e7"]
size = Vector2(32, 7)
[node name="cloud" type="CharacterBody2D"]
script = ExtResource("1_nppen")
[node name="Sprite2D" type="Sprite2D" parent="."]
position = Vector2(-16, 0)
texture = ExtResource("2_ykyww")
centered = false
region_enabled = true
region_rect = Rect2(80, 298, 32, 6)
[node name="Area2D" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2(0, 2.5)
shape = SubResource("RectangleShape2D_2c8e7")
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource("3_aab8e")
[connection signal="body_shape_entered" from="Area2D" to="." method="_on_area_2d_body_shape_entered"]