the boss!
This commit is contained in:
parent
1e618d8cd4
commit
abd45d7d64
14 changed files with 445 additions and 2 deletions
19
systems/bullets/danmaku_emitter.gd
Normal file
19
systems/bullets/danmaku_emitter.gd
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
class_name DanmakuEmitter
|
||||
extends Node2D
|
||||
|
||||
|
||||
@export var spawn_parent: Node2D
|
||||
@export var preset: BulletPreset
|
||||
|
||||
|
||||
func spawn_preset() -> void:
|
||||
var bullet_set = BulletSet.new()
|
||||
bullet_set.preset = preset
|
||||
bullet_set.global_position = global_position
|
||||
bullet_set.global_rotation = global_rotation
|
||||
spawn_parent.add_child(bullet_set)
|
||||
|
||||
|
||||
func clear_bullets() -> void:
|
||||
for child in spawn_parent.get_children():
|
||||
child.queue_free()
|
||||
Loading…
Add table
Add a link
Reference in a new issue