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.
CupcakeRevolution/Scripts/game_world.gd

33 lines
542 B
GDScript

extends Node2D
var spawncount = 0
var horse_scene = preload("res://Scenes/horse.tscn")
var cupcake_scene = preload("res://Scenes/Cupcakes/cupcake.tscn")
var horse_instance
var mouse_position = Vector2.ZERO
var ccVanilla
var ccChocolate
var cupcakeSpawnRate = Timer.new()
func _ready():
horse_instance = horse_scene.instantiate()
add_child(horse_instance)
func _process(delta):
mouse_position = get_global_mouse_position()
horse_instance.position = mouse_position
func spawnCupcakes():
pass
func collectCupcakes():
pass