Sound effects

This commit is contained in:
Felipe M 2021-05-23 00:38:30 +02:00
parent 6ea21b3181
commit 6671b455c4
Signed by: fmartingr
GPG key ID: 716BC147715E716F
17 changed files with 94 additions and 6 deletions

View file

@ -6,7 +6,8 @@ const BRICK_LAYER_BIT = 4
func _ready():
pass # Replace with function body.
SoundFx.play_fx("Explosion", 1.5)
pass
func _on_Hitbox_body_entered(body):
if body.get_collision_layer_bit(BRICK_LAYER_BIT):