added first theme progress and switched all files to use static typing
This commit is contained in:
parent
c9458f3627
commit
b5ace17da9
2665 changed files with 50249 additions and 476 deletions
22
game.gd
22
game.gd
|
|
@ -6,7 +6,7 @@ extends Node3D
|
|||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
|
||||
|
||||
# Skip the menu for development
|
||||
if skip_menu == true:
|
||||
UI.show_ingame_controls(!skip_menu)
|
||||
|
|
@ -15,31 +15,31 @@ func _ready() -> void:
|
|||
continue_game()
|
||||
else:
|
||||
start_new_game()
|
||||
|
||||
|
||||
return
|
||||
|
||||
|
||||
# On start of the game, the main menu is shown
|
||||
UI.connect("on_new_game_started", start_new_game)
|
||||
UI.connect("on_game_continued", continue_game)
|
||||
UI.show_main_menu()
|
||||
|
||||
|
||||
|
||||
|
||||
# this event comes from the MainMenu Node in the UI
|
||||
func start_new_game() -> void:
|
||||
UI.show_ingame_controls()
|
||||
|
||||
|
||||
# Add the starting world
|
||||
SceneManager.set_world(starting_world.resource_path)
|
||||
|
||||
|
||||
# Add the starting player to the starting world
|
||||
var player = preload("res://entities/player/player.tscn").instantiate()
|
||||
var player: Node = preload("res://entities/player/player.tscn").instantiate()
|
||||
SceneManager.current_world.add_child(player)
|
||||
|
||||
|
||||
# Give the player a monster
|
||||
var monster = MonsterData.new()
|
||||
var monster: MonsterData = MonsterData.new()
|
||||
monster.set_values("debuggy", { "current_health": 12 }, 5)
|
||||
SaveManager.current_save.party.push_back(monster)
|
||||
|
||||
|
||||
# Update the UI once
|
||||
UI.update()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue