godot_rl_DownFall / objects /bomb_spawner.gd
jtatman's picture
Upload folder using huggingface_hub
28e5bc3 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)