changement du scene manager, amélioration du cockpit et autres
* refonte du scene manager * refonte du audio manager * premier rework des plantes * nettoyage des dossiers/fichiers * renommage de planète en region * fix des run
This commit is contained in:
@@ -6,13 +6,13 @@ class_name InGameBaseIndicator
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
setup(tr("GARDEN"))
|
||||
follow_game_position(Planet.CHUNK_SIZE / 2. * Vector2.ONE)
|
||||
follow_game_position(Region.CHUNK_SIZE / 2. * Vector2.ONE)
|
||||
|
||||
func _process(_delta):
|
||||
visible = player and (
|
||||
player.global_position.x < 0
|
||||
or player.global_position.x > Planet.CHUNK_SIZE
|
||||
or player.global_position.x > Region.CHUNK_SIZE
|
||||
or player.global_position.y < 0
|
||||
or player.global_position.y > Planet.CHUNK_SIZE
|
||||
or player.global_position.y > Region.CHUNK_SIZE
|
||||
)
|
||||
update()
|
||||
|
||||
Reference in New Issue
Block a user