Added basic elevator system
This commit is contained in:
67
client/Nodes/ElevatorButton.tscn
Normal file
67
client/Nodes/ElevatorButton.tscn
Normal file
@ -0,0 +1,67 @@
|
||||
[gd_scene load_steps=8 format=2]
|
||||
|
||||
[ext_resource path="res://Assets/Art/Objects/elevator/elevator-button-color.png" type="Texture" id=1]
|
||||
[ext_resource path="res://Scripts/Entities/ElevatorButton.gd" type="Script" id=2]
|
||||
[ext_resource path="res://Assets/Art/Objects/elevator/elevator-button.png" type="Texture" id=3]
|
||||
|
||||
[sub_resource type="AtlasTexture" id=1]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 0, 0, 16, 8 )
|
||||
|
||||
[sub_resource type="CircleShape2D" id=2]
|
||||
radius = 16.0
|
||||
|
||||
[sub_resource type="Animation" id=3]
|
||||
resource_name = "Done"
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/path = NodePath("Sprite:frame")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/keys = {
|
||||
"times": PoolRealArray( 0 ),
|
||||
"transitions": PoolRealArray( 1 ),
|
||||
"update": 1,
|
||||
"values": [ 1 ]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id=4]
|
||||
resource_name = "Waiting"
|
||||
length = 0.4
|
||||
loop = true
|
||||
tracks/0/type = "value"
|
||||
tracks/0/path = NodePath("Sprite:frame")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/keys = {
|
||||
"times": PoolRealArray( 0, 0.2 ),
|
||||
"transitions": PoolRealArray( 1, 1 ),
|
||||
"update": 1,
|
||||
"values": [ 1, 0 ]
|
||||
}
|
||||
|
||||
[node name="ElevatorButton" type="Area2D"]
|
||||
script = ExtResource( 2 )
|
||||
__meta__ = {
|
||||
"_edit_group_": true
|
||||
}
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
texture = SubResource( 1 )
|
||||
hframes = 2
|
||||
frame = 1
|
||||
|
||||
[node name="Color" type="Sprite" parent="."]
|
||||
modulate = Color( 0.0941176, 1, 0.14902, 1 )
|
||||
texture = ExtResource( 1 )
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource( 2 )
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
anims/Done = SubResource( 3 )
|
||||
anims/Waiting = SubResource( 4 )
|
Reference in New Issue
Block a user