This repository has been archived on 2025-01-17. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
blood-and-mortar/objects/weapons/projectiles/bullet.gd

9 lines
165 B
GDScript

extends Node2D
var speed: float = 500.0
var direction := Vector2.ZERO
func _physics_process(delta: float) -> void:
global_position += direction * speed * delta