17 lines
400 B
GDScript
17 lines
400 B
GDScript
extends Node
|
|
|
|
class_name StarSystem
|
|
|
|
@export var width: int = 8192
|
|
@export var height: int = 8192
|
|
|
|
var player_ship: PlayerShip
|
|
|
|
func _ready():
|
|
player_ship = get_node_or_null("PlayerShip")
|
|
|
|
if player_ship != null:
|
|
player_ship.camera.limit_left = -width / 2
|
|
player_ship.camera.limit_right = -width / 2
|
|
player_ship.camera.limit_top = -height / 2
|
|
player_ship.camera.limit_bottom = -height / 2
|