This commit is contained in:
ultrablob 2024-04-30 15:37:00 -04:00
parent f7d034147d
commit 57e3151019
15 changed files with 92 additions and 46 deletions

View file

@ -4,12 +4,7 @@ var bounces = 0
@onready var player = $"../Player"
func _physics_process(delta):
apply_central_force((global_position - player.global_position).normalized() * -50)
if linear_velocity.length() < 10:
$Sprite2D.play("default")
if player in $Explosion.get_overlapping_bodies():
$Sprite2D.play("default")
rotation = linear_velocity.angle()
func hit(body):
if body.is_in_group("destructible"):