forked from team-sg/hero-mark-2
value variable obselete, removed
This commit is contained in:
parent
5748c48c71
commit
b80a218f04
2 changed files with 2 additions and 5 deletions
|
@ -1,7 +1,5 @@
|
|||
extends Node2D
|
||||
|
||||
export var value = 1
|
||||
|
||||
func _ready():
|
||||
#Sync all coinframes
|
||||
$AnimatedSprite.play()
|
||||
|
@ -10,7 +8,7 @@ func _ready():
|
|||
func _on_Area2D_body_entered(body: Node) -> void:
|
||||
#Collect
|
||||
if body.is_in_group("player"):
|
||||
Game.keys += value
|
||||
Game.keys += 1
|
||||
Game.score += 5
|
||||
Audio.play_sound(Audio.a_gold,Audio.ac_collectible)
|
||||
queue_free()
|
||||
|
|
|
@ -2,7 +2,6 @@ extends Node2D
|
|||
|
||||
signal collected(shard_number)
|
||||
|
||||
export var value = 1
|
||||
export var number = 0 #Used for saving which specific shards collected
|
||||
|
||||
func _ready():
|
||||
|
@ -17,6 +16,6 @@ func _on_Area2D_body_entered(body):
|
|||
emit_signal("collected",number)
|
||||
Audio.play_shard_sound()
|
||||
Game.score += 500
|
||||
Game.shards += value
|
||||
Game.shards += 1
|
||||
Game.shards_collected[number] = true
|
||||
queue_free()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue