First basic map with enemies
This commit is contained in:
15
Game/Maps/map_1.gd
Normal file
15
Game/Maps/map_1.gd
Normal file
@ -0,0 +1,15 @@
|
||||
extends Node2D
|
||||
|
||||
@onready var path_2d: Path2D = $Path2D
|
||||
|
||||
const FORKMAN = preload("res://Game/Mobs/forkman.tscn")
|
||||
|
||||
func _on_timer_timeout() -> void:
|
||||
spawnMonster()
|
||||
|
||||
func spawnMonster():
|
||||
var path = PathFollow2D.new()
|
||||
var monster = FORKMAN.instantiate()
|
||||
path.add_child(monster)
|
||||
|
||||
path_2d.add_child(path)
|
1
Game/Maps/map_1.gd.uid
Normal file
1
Game/Maps/map_1.gd.uid
Normal file
@ -0,0 +1 @@
|
||||
uid://xo6vbicdva8d
|
484
Game/Maps/map_1.tscn
Normal file
484
Game/Maps/map_1.tscn
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user