fixing warnings and styles
authorEduardo <[email protected]>
Mon, 8 Jul 2024 19:30:24 +0000 (21:30 +0200)
committerEduardo <[email protected]>
Mon, 8 Jul 2024 19:30:24 +0000 (21:30 +0200)
scripts/house_template.gd
scripts/main_level.gd

index ac49cc8bb5a2b304c7695fd48ef32ca4905f63c1..456bf5061de4247e17b2fb3218051accc608a184 100644 (file)
@@ -3,6 +3,7 @@ extends Node2D
 
 const LEVEL_NAME = "house_template"
 
+
 @onready var player = $Player
 
 
index ba567d18331c9d1b7c190de11f099185c245e5f2..75567bb49789657534650b18e7f38fd5122f0dc9 100644 (file)
@@ -1,5 +1,6 @@
 extends Node2D
 
+
 const LEVEL_NAME = "main_level"
 
 
@@ -8,11 +9,11 @@ const LEVEL_NAME = "main_level"
 
 func _ready():
        Globals.request_update_player_position.connect(update_player_position)
-       Globals.set_current_scene(Constants.LEVELS_NAMES[LEVEL_NAME])
+       Globals.set_current_scene(Constants.LEVELS_NAMES[LEVEL_NAME] as Constants.LEVELS_NAMES)
        
        # get player poss
        player.position = Globals.get_last_player_position_in_scene(Constants.LEVELS_NAMES[LEVEL_NAME] as Constants.LEVELS_NAMES)
 
 
 func update_player_position():
-       Globals.update_player_position(Constants.LEVELS_NAMES[LEVEL_NAME], player.position)
+       Globals.update_player_position(Constants.LEVELS_NAMES[LEVEL_NAME] as Constants.LEVELS_NAMES, player.position)