Advertisement
Guest User

GAMEBOX 1: SOURCE CODE stats.gd

a guest
Sep 16th, 2019
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. extends Node
  2.  
  3. var shapes_destroyed = 0
  4. var spent = []
  5.  
  6. func _ready():
  7.     pass
  8.  
  9. # FUCK YOU.
  10. func explosion_spawned():
  11.     shapes_destroyed += 1
  12.    
  13.     check_spawn_thresholds()
  14.    
  15. func check_spawn_thresholds():
  16.     if shapes_destroyed >= 10 and not(10 in spent):
  17.         var cricket = load("res://Prefabs/cricket.tscn").instance()
  18.         get_node("/root/main").add_child(cricket)
  19.        
  20.         spent.append(10)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement