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.
37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
[gd_scene load_steps=6 format=2]
|
|
|
|
[ext_resource path="res://addons/escoria-core/game/core-scripts/escterrain.gd" type="Script" id=1]
|
|
[ext_resource path="res://addons/escoria-core/game/core-scripts/escbackground.gd" type="Script" id=2]
|
|
[ext_resource path="res://addons/escoria-core/game/core-scripts/escitem.gd" type="Script" id=3]
|
|
[ext_resource path="res://addons/escoria-core/game/core-scripts/escroom.gd" type="Script" id=4]
|
|
|
|
[sub_resource type="NavigationPolygon" id=1]
|
|
|
|
[node name="room" type="Node2D"]
|
|
script = ExtResource( 4 )
|
|
camera_limits = [ Rect2( 0, 0, 1289, 555 ) ]
|
|
|
|
[node name="ESCBackground" type="TextureRect" parent="."]
|
|
margin_right = 40.0
|
|
margin_bottom = 40.0
|
|
mouse_filter = 2
|
|
script = ExtResource( 2 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="walkable_area" type="Navigation2D" parent="."]
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="area" type="NavigationPolygonInstance" parent="walkable_area"]
|
|
navpoly = SubResource( 1 )
|
|
|
|
[node name="Hotspots" type="Node2D" parent="."]
|
|
|
|
[node name="ESCItem" type="Area2D" parent="Hotspots"]
|
|
script = ExtResource( 3 )
|
|
dialog_color = Color( 1, 1, 1, 1 )
|
|
interact_positions = {
|
|
"default": null
|
|
}
|