sprites for bullets, crates, tilemap, background
This commit is contained in:
1 parent
fa90394599
commit
f20d4a2703
22 files changed
+789
-15
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user