clegg
This commit is contained in:
commit
6a269eb236
97 changed files with 2137 additions and 0 deletions
12
bat/bat_bullet/bat_bullet.gd
Normal file
12
bat/bat_bullet/bat_bullet.gd
Normal file
|
@ -0,0 +1,12 @@
|
|||
extends Node2D
|
||||
|
||||
@export var speed = 100.0
|
||||
@export var direction = 1
|
||||
var grazed = false
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
position.x += (speed * direction) * delta
|
||||
|
||||
|
||||
func _on_area_2d_body_entered(body: Node2D) -> void:
|
||||
if !body.is_in_group("player_hitbox"): queue_free()
|
Loading…
Add table
Add a link
Reference in a new issue