Deleted ESCHotspot (use ESCItem instead)

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.
This commit is contained in:
Julian Murgia
2021-01-12 23:05:23 +01:00
parent 933122f085
commit ff56816205
73 changed files with 1211 additions and 1652 deletions

View File

@@ -7,19 +7,22 @@
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 44.696, 49.0953 )
[node name="wrench" type="Sprite"]
texture = ExtResource( 2 )
[node name="wrench" type="Area2D"]
script = ExtResource( 1 )
global_id = "r5_wrench"
esc_script = "res://game/items/escitems/wrench.esc"
tooltip_name = "Wrench"
default_action = "look"
combine_if_action_used_among = PoolStringArray( "use", "give" )
combine_if_action_used_among = PoolStringArray( "use" )
use_from_inventory_only = true
inventory_item_scene_file = ExtResource( 3 )
dialog_color = Color( 1, 1, 1, 1 )
interact_positions = {
"default": Vector2( 0, 0 )
}
[node name="Area2D" type="Area2D" parent="."]
[node name="sprite" type="Sprite" parent="."]
texture = ExtResource( 2 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )