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
13 lines
239 B
GDScript
13 lines
239 B
GDScript
extends Area2D
|
|
|
|
@export var speed := 600.0
|
|
var direction: Vector2 = Vector2.RIGHT
|
|
|
|
|
|
func _physics_process(delta):
|
|
global_position += direction * speed * delta
|
|
|
|
|
|
func _on_visible_on_screen_enabler_2d_screen_exited() -> void:
|
|
queue_free()
|