Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extends Node
- var shapes_destroyed = 0
- var spent = []
- func _ready():
- pass
- # FUCK YOU.
- func explosion_spawned():
- shapes_destroyed += 1
- check_spawn_thresholds()
- func check_spawn_thresholds():
- if shapes_destroyed >= 10 and not(10 in spent):
- var cricket = load("res://Prefabs/cricket.tscn").instance()
- get_node("/root/main").add_child(cricket)
- spent.append(10)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement