55 lines
1.8 KiB
Plaintext
55 lines
1.8 KiB
Plaintext
[gd_scene format=3 uid="uid://ckqable762x8v"]
|
|
|
|
[ext_resource type="Script" uid="uid://b65ci82qp1pa0" path="res://level_editor/blocks/block_simple.gd" id="1_64qyq"]
|
|
[ext_resource type="Script" uid="uid://2nvcig3fqetr" path="res://level_editor/blocks/block_spike.gd" id="2_rhp63"]
|
|
[ext_resource type="Texture2D" uid="uid://blbaaqyrt8dtk" path="res://art/block/block.png" id="2_xmhd5"]
|
|
[ext_resource type="Texture2D" uid="uid://bu5wgerfu7cbc" path="res://art/spike.png" id="3_rhp63"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_f3sb7"]
|
|
size = Vector2(16, 14)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_q6akc"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("2_xmhd5")
|
|
}],
|
|
"loop": 1,
|
|
"name": &"block_simple",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("3_rhp63")
|
|
}],
|
|
"loop": 1,
|
|
"name": &"block_spike",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_lxo14"]
|
|
|
|
[node name="Block_Simple" type="RigidBody2D" unique_id=1409784601]
|
|
gravity_scale = 0.0
|
|
freeze = true
|
|
script = ExtResource("1_64qyq")
|
|
block_type = ExtResource("2_rhp63")
|
|
tags = [null]
|
|
|
|
[node name="BlockShape" type="CollisionShape2D" parent="." unique_id=1866755047]
|
|
shape = SubResource("RectangleShape2D_f3sb7")
|
|
|
|
[node name="Sprite" type="AnimatedSprite2D" parent="." unique_id=321127444]
|
|
texture_filter = 1
|
|
sprite_frames = SubResource("SpriteFrames_q6akc")
|
|
animation = &"block_simple"
|
|
autoplay = "block_simple"
|
|
|
|
[node name="EffectCollision" type="Area2D" parent="." unique_id=1756054567]
|
|
|
|
[node name="EffectShape" type="CollisionShape2D" parent="EffectCollision" unique_id=392861580]
|
|
shape = SubResource("RectangleShape2D_lxo14")
|
|
|
|
[connection signal="body_entered" from="EffectCollision" to="." method="on_player_near"]
|
|
[connection signal="body_exited" from="EffectCollision" to="." method="on_player_leave"]
|