bullets firing, scene manager, teleport, force push

This commit is contained in:
OddlyTimbot committed 2026-10-06 20:58:28 -04:00
1 parent c8d5474785
commit 60bde97dba
15 files changed
+251 -54

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
class_name Bullet extends Area2D
var speed:= 700
signal bulletDamageSignal(body, bullet)
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
position += transform.x * speed * delta
func _on_body_entered(body: Node2D) -> void:
print("Bullet hit somethin")
bulletDamageSignal.emit(body, self)