CI / Test (pull_request) Successful in 22s
- add fire pattern (base interface for all weapons) - add shotgun and cannon pattern - add basic projectile - add input map for shoot
7 lines
133 B
GDScript
7 lines
133 B
GDScript
class_name CannonPattern
|
|
extends FirePattern
|
|
|
|
|
|
func fire(pos: Vector2, dir: Vector2, spawn: Callable) -> void:
|
|
spawn.call(pos, dir)
|