Skip to content

Commit

Permalink
fix: initialize escoria.main.last_room_id on loading
Browse files Browse the repository at this point in the history
  • Loading branch information
StraToN committed Oct 7, 2024
1 parent 6b066eb commit ba54f2b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,11 @@ func _get_event_to_queue(
action,
target.global_id,
combine_with.global_id
],
"Check that action ':%s %s' exists in the script of item '%s'" % [
action,
target.global_id,
combine_with.global_id
]
]

Expand Down
1 change: 0 additions & 1 deletion addons/escoria-core/game/core-scripts/esc_exit.gd
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ var _change_scene: ChangeSceneCommand

func _enter_tree():
is_exit = true
player_orients_on_arrival = false


func _ready():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,9 @@ func load_game(id: int):
camera_target_to_follow
])
)

## MAIN
escoria.main.last_scene_global_id = save_game.main.last_scene_global_id

load_event.statements = load_statements

Expand Down
1 change: 1 addition & 0 deletions game/rooms/room06/room06.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ z_index = 400
texture = ExtResource( 11 )

[node name="Text" type="Node2D" parent="."]
z_index = 10

[node name="Polygon2D" type="Polygon2D" parent="Text"]
position = Vector2( 37, 11 )
Expand Down

0 comments on commit ba54f2b

Please sign in to comment.