|
@@ -1,15 +1,19 @@
|
|
|
extends Node2D
|
|
|
|
|
|
onready var cam = $MainCamera
|
|
|
-onready var level = $Grid
|
|
|
-var dist_max = 900
|
|
|
-var zoom_rate = 0.001
|
|
|
+export var dist_max = 900
|
|
|
+export var zoom_rate = 0.001
|
|
|
|
|
|
+var level
|
|
|
var playerScene = preload("res://Player.tscn")
|
|
|
|
|
|
func _ready():
|
|
|
var player
|
|
|
|
|
|
+ # Load level
|
|
|
+ level = preload("res://Levels/Lab.tscn").instance()
|
|
|
+ add_child(level)
|
|
|
+
|
|
|
# Player 1
|
|
|
player = playerScene.instance()
|
|
|
player.grid = level
|