Added basic elevator system
This commit is contained in:
@ -5,31 +5,28 @@
|
||||
[ext_resource path="res://Scripts/Entities/Door.gd" type="Script" id=3]
|
||||
[ext_resource path="res://Assets/Art/32x32mask.png" type="Texture" id=5]
|
||||
|
||||
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=7]
|
||||
[sub_resource type="RectangleShape2D" id=1]
|
||||
extents = Vector2( 16.0007, 15.9043 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=1]
|
||||
atlas = ExtResource( 1 )
|
||||
region = Rect2( 0, 0, 32, 32 )
|
||||
|
||||
[sub_resource type="OccluderPolygon2D" id=8]
|
||||
polygon = PoolVector2Array( -5, 18, -5, 0, -2, 0, -2, 4, 2, 4, 2, 0, 5, 0, 5, 18 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=2]
|
||||
atlas = ExtResource( 1 )
|
||||
region = Rect2( 0, 0, 32, 32 )
|
||||
|
||||
[sub_resource type="OccluderPolygon2D" id=3]
|
||||
polygon = PoolVector2Array( -5, 18, -5, 0, -2, 0, -2, 4, 2, 4, 2, 0, 5, 0, 5, 18 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=4]
|
||||
atlas = ExtResource( 1 )
|
||||
region = Rect2( 0, 32, 32, 32 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=3]
|
||||
[sub_resource type="AtlasTexture" id=5]
|
||||
atlas = ExtResource( 1 )
|
||||
region = Rect2( 0, 64, 32, 32 )
|
||||
|
||||
[sub_resource type="OccluderPolygon2D" id=9]
|
||||
[sub_resource type="OccluderPolygon2D" id=6]
|
||||
polygon = PoolVector2Array( 5, -18, 5, 0, -5, 0, -5, -18 )
|
||||
|
||||
[sub_resource type="Animation" id=5]
|
||||
resource_name = "Close"
|
||||
[sub_resource type="Animation" id=7]
|
||||
length = 0.5
|
||||
tracks/0/type = "bezier"
|
||||
tracks/0/path = NodePath("Top:position:x")
|
||||
@ -92,8 +89,7 @@ tracks/5/keys = {
|
||||
"times": PoolRealArray( 0, 0.5 )
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id=4]
|
||||
resource_name = "Open"
|
||||
[sub_resource type="Animation" id=8]
|
||||
length = 0.5
|
||||
tracks/0/type = "bezier"
|
||||
tracks/0/path = NodePath("Bottom:position:x")
|
||||
@ -156,7 +152,7 @@ tracks/5/keys = {
|
||||
"times": PoolRealArray( 0, 0.5 )
|
||||
}
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=6]
|
||||
[sub_resource type="RectangleShape2D" id=9]
|
||||
extents = Vector2( 40.2987, 16.0621 )
|
||||
|
||||
[node name="Door" type="Area2D"]
|
||||
@ -165,31 +161,31 @@ script = ExtResource( 3 )
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
|
||||
shape = SubResource( 7 )
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[node name="Bottom" type="Sprite" parent="."]
|
||||
z_index = 25
|
||||
texture = SubResource( 1 )
|
||||
texture = SubResource( 2 )
|
||||
|
||||
[node name="LightOccluder2D" type="LightOccluder2D" parent="Bottom"]
|
||||
occluder = SubResource( 8 )
|
||||
occluder = SubResource( 3 )
|
||||
|
||||
[node name="Top" type="Sprite" parent="."]
|
||||
z_index = 25
|
||||
texture = SubResource( 2 )
|
||||
texture = SubResource( 4 )
|
||||
|
||||
[node name="Color" type="Sprite" parent="Top"]
|
||||
texture = SubResource( 3 )
|
||||
texture = SubResource( 5 )
|
||||
|
||||
[node name="LightOccluder2D" type="LightOccluder2D" parent="Top"]
|
||||
occluder = SubResource( 9 )
|
||||
occluder = SubResource( 6 )
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
anims/Close = SubResource( 5 )
|
||||
anims/Open = SubResource( 4 )
|
||||
anims/Close = SubResource( 7 )
|
||||
anims/Open = SubResource( 8 )
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource( 6 )
|
||||
shape = SubResource( 9 )
|
||||
|
||||
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
|
||||
stream = ExtResource( 2 )
|
||||
|
Reference in New Issue
Block a user