sprites for bullets, crates, tilemap, background

This commit is contained in:
JayisonDevadas committed 2026-03-23 20:55:46 -04:00
1 parent fa90394599
commit f20d4a2703
22 files changed
+789 -15

No files matched your search

+7
View File
@@ -1,6 +1,9 @@
class_name Bullet extends Area2D
var speed:float=700
@onready var bullet_graphic: Sprite2D = $bulletGraphic
signal bulletDamageSignal(body,bullet)
# Called when the node enters the scene tree for the first time.
@@ -9,6 +12,10 @@ func _ready() -> void:
func setSpeed(value) -> void:
speed=value
if speed <0:
bullet_graphic.flip_h=true
if speed >0:
bullet_graphic.flip_h=false
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void: