godot_rl_DownFall / objects /bomb_spawner.gd
edbeeching's picture
edbeeching HF staff
Upload folder using huggingface_hub
c5a8672 verified
raw
history blame contribute delete
250 Bytes
extends Node3D
@onready var Bomb = preload("res://objects/bomb.tscn")
func _on_timer_timeout():
spawn_bomb()
func spawn_bomb():
var bomb = Bomb.instantiate()
bomb.position = Vector3(randf_range(-1, 1), 0, randf_range(-1, 1))
add_child(bomb)