Added basic elevator system
This commit is contained in:
42
client/Nodes/Elevator.tscn
Normal file
42
client/Nodes/Elevator.tscn
Normal file
@ -0,0 +1,42 @@
|
||||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[ext_resource path="res://Assets/Art/Objects/elevator/elevator.png" type="Texture" id=1]
|
||||
[ext_resource path="res://Scripts/Entities/Elevator.gd" type="Script" id=2]
|
||||
[ext_resource path="res://Scripts/Component/ElevatorControls.gd" type="Script" id=3]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=1]
|
||||
extents = Vector2( 16, 2 )
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=2]
|
||||
extents = Vector2( 10, 16 )
|
||||
|
||||
[node name="Elevator" type="Node2D"]
|
||||
script = ExtResource( 2 )
|
||||
__meta__ = {
|
||||
"_edit_group_": true
|
||||
}
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
texture = ExtResource( 1 )
|
||||
|
||||
[node name="Bottom" type="StaticBody2D" parent="."]
|
||||
position = Vector2( 0, 18 )
|
||||
collision_layer = 2
|
||||
collision_mask = 0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Bottom"]
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[node name="Top" type="StaticBody2D" parent="."]
|
||||
position = Vector2( 0, -18 )
|
||||
collision_layer = 2
|
||||
collision_mask = 0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Top"]
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[node name="ElevatorControls" type="Area2D" parent="."]
|
||||
script = ExtResource( 3 )
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="ElevatorControls"]
|
||||
shape = SubResource( 2 )
|
Reference in New Issue
Block a user