2020-08-31 07:35:52 +00:00
|
|
|
extends Node2D
|
|
|
|
|
|
|
|
var ShowInventory = 0
|
|
|
|
var LeftClick = 0
|
2020-10-07 20:24:10 +00:00
|
|
|
var player_inventory_items = []
|
2020-10-08 19:56:03 +00:00
|
|
|
var river_intersection_home_2 = preload("res://river_intersection_home2.tscn").instance()
|
|
|
|
var inventory_screen = preload("res://MiscScenes/Inventory.tscn").instance()
|
|
|
|
var current_scene = null
|
|
|
|
#func _add_a_scene_manually():
|
|
|
|
# # This is like autoloading the scene, only
|
|
|
|
# # it happens after already loading the main scene.
|
|
|
|
# get_tree().get_root().add_child(simultaneous_scene)
|
|
|
|
|
|
|
|
func GoToScene(scene):
|
|
|
|
if current_scene != null:
|
|
|
|
get_tree().get_root().remove_child(current_scene)
|
|
|
|
match scene:
|
|
|
|
"river_intersection_home_2":
|
|
|
|
current_scene = river_intersection_home_2
|
|
|
|
get_tree().get_root().add_child(river_intersection_home_2)
|
|
|
|
#.change_scene_to(river_intersection_home_2)
|
|
|
|
"inventory_screen":
|
|
|
|
current_scene = inventory_screen
|
|
|
|
get_tree().get_root().add_child(inventory_screen)
|
|
|
|
|
2020-10-07 20:24:10 +00:00
|
|
|
|
|
|
|
func LoadSave():
|
|
|
|
Database.OpenConnection()
|
2020-08-31 07:35:52 +00:00
|
|
|
|
|
|
|
func _input(event):
|
|
|
|
pass
|
2020-10-07 20:24:10 +00:00
|
|
|
|
|
|
|
func _ready():
|
2020-10-08 19:56:03 +00:00
|
|
|
get_tree().get_root().add_child(river_intersection_home_2)
|
|
|
|
get_tree().get_root().add_child(inventory_screen)
|
2020-10-07 20:24:10 +00:00
|
|
|
pass
|