Done refactoring
This commit is contained in:
parent
3a136ff215
commit
2176e9d798
88 changed files with 821 additions and 880 deletions
10
scripts/objects/Bounty.gd
Normal file
10
scripts/objects/Bounty.gd
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
extends Area2D
|
||||
|
||||
@export var amount: float = 20
|
||||
|
||||
@onready var text = $Label
|
||||
|
||||
func _on_body_entered(body):
|
||||
if body is MainShip:
|
||||
body.money += amount
|
||||
queue_free()
|
||||
Loading…
Add table
Add a link
Reference in a new issue