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 committed 2021-01-13 23:23:04 +01:00
1 parent 933122f085
commit ff56816205
73 files changed
+1211 -1652

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
[gd_resource type="DynamicFont" load_steps=2 format=2]
[ext_resource path="res://addons/escoria-core/game/assets/fonts/efmi/efmi.TTF" type="DynamicFontData" id=1]
[resource]
font_data = ExtResource( 1 )
-16
View File
@@ -10,10 +10,6 @@ Implement methods to react to inputs.
- element_focused(element_id : String)
- element_unfocused()
- left_click_on_hotspot(hotspot_global_id : String, event : InputEvent)
- right_click_on_hotspot(hotspot_global_id : String, event : InputEvent)
- left_double_click_on_hotspot(hotspot_global_id : String, event : InputEvent)
- left_click_on_item(item_global_id : String, event : InputEvent)
- right_click_on_item(item_global_id : String, event : InputEvent)
- left_double_click_on_item(item_global_id : String, event : InputEvent)
@@ -61,18 +57,6 @@ func element_unfocused() -> void:
pass
## HOTSPOTS ##
func left_click_on_hotspot(hotspot_global_id : String, event : InputEvent) -> void:
escoria.do("hotspot_left_click", [hotspot_global_id, event])
func right_click_on_hotspot(hotspot_global_id : String, event : InputEvent) -> void:
escoria.do("hotspot_right_click", [hotspot_global_id, event])
func left_double_click_on_hotspot(hotspot_global_id : String, event : InputEvent) -> void:
escoria.do("hotspot_left_click", [hotspot_global_id, event])
## ITEMS ##
func left_click_on_item(item_global_id : String, event : InputEvent) -> void:
-12
View File
@@ -56,18 +56,6 @@ func element_unfocused() -> void:
pass
## HOTSPOTS ##
func left_click_on_hotspot(hotspot_global_id : String, event : InputEvent) -> void:
escoria.do("hotspot_left_click", [hotspot_global_id, event])
func right_click_on_hotspot(hotspot_global_id : String, event : InputEvent) -> void:
escoria.do("hotspot_right_click", [hotspot_global_id, event])
func left_double_click_on_hotspot(hotspot_global_id : String, event : InputEvent) -> void:
escoria.do("hotspot_left_click", [hotspot_global_id, event])
## ITEMS ##
func left_click_on_item(item_global_id : String, event : InputEvent) -> void: