cool progress
This commit is contained in:
parent
07de7179c9
commit
341c91742c
14 changed files with 52 additions and 16 deletions
|
|
@ -28,7 +28,7 @@ func respawn_shiny():
|
|||
var shiny = load("res://shiny.tscn").instantiate()
|
||||
var ranPos = randi_range(0,GM.shine_spawns.size()-1)
|
||||
shiny.position = GM.shine_spawns[ranPos].position
|
||||
get_tree().get_root().add_child(shiny)
|
||||
get_tree().get_root().get_node("Game").add_child(shiny)
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
scorecard.score = score
|
||||
|
|
@ -47,7 +47,7 @@ func _process(delta: float) -> void:
|
|||
func _on_body_entered(body: Node) -> void:
|
||||
#print("mew")
|
||||
if body.is_in_group("player") :
|
||||
print("playersHit")
|
||||
#print("playersHit")
|
||||
if(score > 0):
|
||||
#score -= 1
|
||||
#respawn_shiny()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue