make collectibles always use full hitbox
This commit is contained in:
parent
e4cc684603
commit
ca947c2f09
9 changed files with 26 additions and 17 deletions
|
@ -26,9 +26,9 @@ func _set_color(value):
|
|||
if is_inside_tree():
|
||||
sprite.material.set_shader_param("palette", COLORS[color])
|
||||
|
||||
func _on_Area2D_area_entered(area):
|
||||
func _on_Area2D_body_entered(body):
|
||||
#Collect
|
||||
if area.is_in_group("player_hitbox"):
|
||||
if body.is_in_group("player_hitbox"):
|
||||
Audio.play_sound(Audio.a_star,Audio.ac_collectible)
|
||||
Game.score += 100
|
||||
Game.stars[color] = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue