ajout d'une petite surprise...
This commit is contained in:
@@ -6,7 +6,6 @@ class_name InGameBaseIndicator
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
setup(tr("GARDEN"))
|
||||
print(GameInfo.game_data.current_planet_data.garden_size/2)
|
||||
follow_game_position(GameInfo.game_data.current_planet_data.garden_size/2)
|
||||
|
||||
func _process(_delta):
|
||||
|
||||
@@ -1,12 +1,9 @@
|
||||
extends Node2D
|
||||
extends Node
|
||||
|
||||
@export_file var start_scene_path : String
|
||||
|
||||
func _ready():
|
||||
%Version.text = ProjectSettings.get_setting("application/config/version")
|
||||
|
||||
func _on_start_pressed():
|
||||
GameInfo.game_data.current_planet_data = PlanetData.new()
|
||||
var preferred_language = OS.get_locale_language()
|
||||
TranslationServer.set_locale(preferred_language)
|
||||
get_tree().change_scene_to_file(start_scene_path)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user