new enemy work
This commit is contained in:
parent
783fc7c877
commit
6825cd59c9
12 changed files with 241 additions and 0 deletions
8
objects/projectile/enemy_projectile.gd
Normal file
8
objects/projectile/enemy_projectile.gd
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
extends Node2D
|
||||
|
||||
@export var speed = Vector2.ZERO
|
||||
var velocity = Vector2.ZERO
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
velocity = speed * delta
|
||||
position += velocity
|
||||
Loading…
Add table
Add a link
Reference in a new issue