added pause menu

This commit is contained in:
derek
2024-10-30 15:52:02 -05:00
parent 7c32586348
commit 0b3f46ae0f
14 changed files with 391 additions and 83 deletions

View File

@@ -39,17 +39,16 @@ func _on_body_entered(body: Node) -> void:
if !body.is_in_group("player"):
print("BODY HIT - " + str(body))
#Break Breakable Objects
#Break Breakable Objects
if body.is_in_group("breakable"):
body.breaking(linear_velocity)
if body.is_in_group("switch"):
body.hit()
mesh.visible = false
if ray.is_colliding() and !ray.get_collider().is_in_group("player"):
#Bullet Hole Effect
ray.get_collider().add_child(instance_bullethole)
@@ -64,8 +63,5 @@ func _on_body_entered(body: Node) -> void:
hit_indicator.play()
enemy_particles.emitting = true
ray.get_collider().hit(bullet_damage)
#Switch Switches
queue_free()