Moved duplicated movement code from ESCPlayer and ESCItem/ESCHotspot to its own script. Added talking animations management. Fixed bug: character was turning to last_direction after talking, if coming from another direction than speaking direction. Continued removing unfree stuff.
50 lines
2.0 KiB
Plaintext
50 lines
2.0 KiB
Plaintext
[gd_scene load_steps=3 format=2]
|
|
|
|
[ext_resource path="res://addons/escoria-core/game/core-scripts/escbackground.gd" type="Script" id=1]
|
|
[ext_resource path="res://game/rooms/room2/bridge.tscn" type="PackedScene" id=2]
|
|
|
|
[node name="background" type="TextureRect"]
|
|
margin_right = 1298.0
|
|
margin_bottom = 559.0
|
|
mouse_filter = 2
|
|
script = ExtResource( 1 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="l_platform" type="Line2D" parent="."]
|
|
position = Vector2( 0, -266 )
|
|
points = PoolVector2Array( -2.96298, 712.01, 129.973, 614.429, 499.081, 611.601, 456.654, 806.761, -4.3772, 811.004, -2.96295, 713.424 )
|
|
|
|
[node name="l_door" type="Line2D" parent="."]
|
|
position = Vector2( 0, -266 )
|
|
points = PoolVector2Array( -2.96298, 712.01, 1.85498, 387.294, 87.755, 339.775, 87.5463, 649.784 )
|
|
|
|
[node name="r_platform" type="Line2D" parent="."]
|
|
position = Vector2( 0, -266 )
|
|
points = PoolVector2Array( 859.704, 802.519, 815.717, 612.674, 1172.24, 617.258, 1288.21, 675.24, 1293.86, 815.247, 861.118, 808.176 )
|
|
|
|
[node name="r_door" type="Line2D" parent="."]
|
|
position = Vector2( 0, -267.828 )
|
|
points = PoolVector2Array( 1175.07, 620.086, 1171.24, 311.267, 1274.8, 356.87, 1278.31, 672.412, 1184.97, 628.571 )
|
|
|
|
[node name="button_left" type="Line2D" parent="."]
|
|
position = Vector2( 0, -266.591 )
|
|
points = PoolVector2Array( 322.305, 390.985, 322.305, 439.068, 368.698, 440.037, 368.974, 392.399, 319.028, 391.549 )
|
|
|
|
[node name="Polygon2D" type="Polygon2D" parent="button_left"]
|
|
visible = false
|
|
polygon = PoolVector2Array( 343.993, 396.767, 323.298, 415.689, 344.585, 438.158, 365.872, 417.463 )
|
|
|
|
[node name="button_right" type="Line2D" parent="."]
|
|
position = Vector2( 627.193, -266.591 )
|
|
points = PoolVector2Array( 322.305, 390.985, 322.305, 439.068, 368.698, 440.037, 368.974, 392.399, 319.028, 391.549 )
|
|
|
|
[node name="Polygon2D" type="Polygon2D" parent="button_right"]
|
|
visible = false
|
|
polygon = PoolVector2Array( 343.993, 396.767, 323.298, 415.689, 344.585, 438.158, 365.872, 417.463 )
|
|
|
|
[node name="bridge" parent="." instance=ExtResource( 2 )]
|
|
|
|
[editable path="bridge"]
|