30 lines
1.2 KiB
Plaintext
30 lines
1.2 KiB
Plaintext
[gd_scene load_steps=4 format=2]
|
|
|
|
[ext_resource path="res://Objects/movable.gd" type="Script" id=1]
|
|
[ext_resource path="res://Assets/chair.png" type="Texture" id=2]
|
|
|
|
[sub_resource type="RectangleShape2D" id=1]
|
|
extents = Vector2( 15.9218, 14.1346 )
|
|
|
|
[node name="chair" type="KinematicBody2D"]
|
|
position = Vector2( 35, 48 )
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="sprite" type="Sprite" parent="."]
|
|
texture = ExtResource( 2 )
|
|
|
|
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
|
|
position = Vector2( 0.278333, -0.280581 )
|
|
scale = Vector2( 0.955667, 0.940837 )
|
|
polygon = PoolVector2Array( -12.2894, -11.1353, -6.98127, -11.2404, -6.98127, -8.3498, 6.05262, -8.50747, 6.10518, -11.5032, 12.1491, -11.2929, 12.0966, 5.84032, 8.25997, 5.84032, 8.41764, 10.7806, -9.03096, 10.7806, -9.03096, 5.47243, -12.9727, 5.47243, -13.0252, -11.4506 )
|
|
|
|
[node name="Area2D" type="Area2D" parent="."]
|
|
position = Vector2( -35, -48 )
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
|
position = Vector2( 35.1687, 47.7688 )
|
|
shape = SubResource( 1 )
|
|
|
|
[connection signal="body_entered" from="Area2D" to="." method="_on_player_entered"]
|
|
[connection signal="body_exited" from="Area2D" to="." method="_on_player_exited"]
|