3D tutorial with brownian-ish motion enemies
This commit is contained in:
1 parent
9628fff680
commit
f848935717
9 files changed
+169
-3
No files matched your search
@@ -0,0 +1,15 @@
|
||||
extends Node
|
||||
|
||||
@export var mob_scene: PackedScene
|
||||
|
||||
|
||||
func _on_mob_timer_timeout() -> void:
|
||||
var mob = mob_scene.instantiate()
|
||||
|
||||
var mob_spawn_location = get_node("SpawnPath/SpawnLocation")
|
||||
mob_spawn_location.progress_ratio = randf()
|
||||
|
||||
var player_position = $Player.position
|
||||
mob.initialize(mob_spawn_location.position, player_position)
|
||||
|
||||
add_child(mob)
|
||||