Second Prototype; Added Player Animations
This commit is contained in:
parent
51774f485b
commit
e82438139f
13 changed files with 332 additions and 73 deletions
10
scenes/game/collectionArea/collection_area.gd
Normal file
10
scenes/game/collectionArea/collection_area.gd
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
extends Area2D
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
cashInObject()
|
||||
|
||||
func cashInObject():
|
||||
for i in get_overlapping_areas():
|
||||
if not i.isCarryied():
|
||||
G.addMoney(i.getValue())
|
||||
i.queue_free()
|
||||
Loading…
Add table
Add a link
Reference in a new issue