add game started signal
This commit is contained in:
parent
e17dabe40f
commit
2f18454a65
2 changed files with 5 additions and 1 deletions
|
|
@ -1,7 +1,10 @@
|
|||
@warning_ignore_start("unused_signal")
|
||||
extends Node
|
||||
|
||||
|
||||
@warning_ignore_start("unused_signal")
|
||||
## Emitted when the game starts.
|
||||
signal game_started()
|
||||
|
||||
## Emitted when the room has transitioned.
|
||||
signal room_changed(previous_room: StringName, next_room: StringName, waypoint: Waypoint)
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ extends Node
|
|||
func start_game() -> void:
|
||||
print("starting game")
|
||||
get_tree().change_scene_to_file("res://scenes/worlds/yukotsukis_room/yukotsukis_room.tscn")
|
||||
EventBus.game_started.emit()
|
||||
|
||||
|
||||
func goto_room(previous_room: Room, waypoint: RemoteWaypoint, config: RoomConfig = null) -> void:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue