33 lines
1012 B
Plaintext
33 lines
1012 B
Plaintext
[gd_scene load_steps=5 format=3 uid="uid://b1hpr05b5sgww"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://cx77xahl8btw5" path="res://platforms/bouncy.png" id="1_ljpgq"]
|
|
[ext_resource type="Script" uid="uid://b11al8kjnoveh" path="res://platforms/bouncy.gd" id="1_uccqy"]
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_npa0g"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("1_ljpgq")
|
|
}],
|
|
"loop": true,
|
|
"name": &"default",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_qqmjc"]
|
|
size = Vector2(32, 16)
|
|
|
|
[node name="Bouncy" type="Area2D"]
|
|
script = ExtResource("1_uccqy")
|
|
metadata/_edit_group_ = true
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
sprite_frames = SubResource("SpriteFrames_npa0g")
|
|
metadata/_edit_lock_ = true
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("RectangleShape2D_qqmjc")
|
|
metadata/_edit_lock_ = true
|
|
|
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|