forked from team-sg/hero-mark-2
first commit
This commit is contained in:
commit
096ebe5aa4
275 changed files with 3937 additions and 0 deletions
22
game.gd
Normal file
22
game.gd
Normal file
|
@ -0,0 +1,22 @@
|
|||
extends Node
|
||||
|
||||
var resolution = Vector2(256,192)
|
||||
var current_sector = Vector2(0,0)
|
||||
#Collectibles
|
||||
var golds = 0
|
||||
var stars = 0
|
||||
var shards = 0
|
||||
|
||||
func instance_node(node:PackedScene,x:float,y:float,parent):
|
||||
var Instance = node.instance()
|
||||
Instance.global_position = Vector2(x,y)
|
||||
parent.add_child(Instance)
|
||||
|
||||
func play_sound(snd,player):
|
||||
player.set_stream(snd)
|
||||
player._set_playing(true)
|
||||
|
||||
func _process(delta):
|
||||
#Restart scene
|
||||
if Input.is_action_just_pressed("debug_restart"):
|
||||
get_tree().reload_current_scene()
|
Loading…
Add table
Add a link
Reference in a new issue