Initial commit (1/2)
This commit is contained in:
commit
3411c5796d
66 changed files with 2261 additions and 0 deletions
10
scripts/Bounty.gd
Normal file
10
scripts/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