12 lines
349 B
GDScript
12 lines
349 B
GDScript
extends "res://maps/map.gd"
|
|
|
|
var acab_shard_has_been_collected: bool = false
|
|
|
|
func _physics_process(delta):
|
|
._physics_process(delta)
|
|
if get_tree().get_nodes_in_group("cop").size() == 0:
|
|
if !acab_shard_has_been_collected:
|
|
Audio.play_shard_sound()
|
|
Game.score += 500
|
|
Game.shards_collected[0] = true
|
|
acab_shard_has_been_collected = true
|