LD56 is over. This is the game.

This commit is contained in:
Douwe Ravers
2024-10-07 02:28:14 +02:00
parent 4c0c57d5ba
commit af7a46cd23
183 changed files with 20357 additions and 442 deletions

View File

@@ -0,0 +1,19 @@
class_name CollectableResource extends StaticBody3D
enum ResourceType {FOOD, STONE, WOOD}
@export var type:ResourceType
var capacity := 100
func collect(amount:int)->int:
if capacity > amount:
capacity -= amount
return amount
else:
var remains := capacity
capacity = 0
return remains
func _on_tick() -> void:
if capacity < 100: return
capacity += 1