Last stretch
This commit is contained in:
parent
466a154972
commit
68271c94ed
13 changed files with 338 additions and 99 deletions
16
prefabs/entities/Teleport.tscn
Normal file
16
prefabs/entities/Teleport.tscn
Normal file
|
@ -0,0 +1,16 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://crulyoxqqw74r"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/entities/Teleport.cs" id="1_luklc"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ogixu"]
|
||||
|
||||
[node name="Teleport" type="Area2D"]
|
||||
collision_layer = 4
|
||||
collision_mask = 4
|
||||
monitorable = false
|
||||
script = ExtResource("1_luklc")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_ogixu")
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="OnPlayerEntered"]
|
3
prefabs/entities/teleport_dest.tscn
Normal file
3
prefabs/entities/teleport_dest.tscn
Normal file
|
@ -0,0 +1,3 @@
|
|||
[gd_scene format=3 uid="uid://dteeck6gict0d"]
|
||||
|
||||
[node name="teleport_dest" type="Node2D"]
|
|
@ -1,8 +1,40 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://chhytv8se7mfk"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://chhytv8se7mfk"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/entities/Door.cs" id="1_ckaca"]
|
||||
[ext_resource type="Texture2D" uid="uid://cn362llclhulw" path="res://sprites/furniture/door-closed.png" id="1_lnba4"]
|
||||
[ext_resource type="Texture2D" uid="uid://ccv54fdk8unka" path="res://sprites/furniture/door-open.png" id="3_ornej"]
|
||||
|
||||
[node name="door_closed" type="Node2D"]
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_v2loo"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("1_lnba4")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"closed",
|
||||
"speed": 1.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("3_ornej")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"open",
|
||||
"speed": 1.0
|
||||
}]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("1_lnba4")
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_srxyv"]
|
||||
size = Vector2(32, 60)
|
||||
|
||||
[node name="DoorClosed" type="Node2D"]
|
||||
script = ExtResource("1_ckaca")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_v2loo")
|
||||
animation = &"closed"
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
|
||||
position = Vector2(0, 6)
|
||||
shape = SubResource("RectangleShape2D_srxyv")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue