You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
374 B
GDScript

extends Node
func _ready():
newGame()
func newGame():
var player = preload("res://Player.tscn").instance()
player.name = "Player"
player.start($StartPosition.position)
add_child(player)
var orb = preload("res://OrbItem.tscn").instance()
orb.position.x = player.position.x
orb.position.y = player.position.y - 250
orb.scale = Vector2(0.4, 0.4)
add_child(orb)