better spawn, heart ui, dash, new map
This commit is contained in:
parent
ce27965422
commit
34be761164
16 changed files with 137 additions and 171 deletions
12
scripts/spawner.gd
Normal file
12
scripts/spawner.gd
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
class_name Spawner extends Marker2D
|
||||
|
||||
signal finished;
|
||||
@export var spawn_instance : PackedScene;
|
||||
|
||||
func spawn():
|
||||
var entity : Entity = spawn_instance.instantiate()
|
||||
get_tree().current_scene.add_child(entity)
|
||||
entity.global_position = global_position
|
||||
entity.scale.y = 5
|
||||
#create_tween().tween_property(entity, "scale:y", 1, 0.2)
|
||||
entity.died.connect(finished.emit)
|
||||
Loading…
Add table
Add a link
Reference in a new issue