Basic belts working

This commit is contained in:
2026-06-22 20:45:11 -06:00
parent 74757358c6
commit d802c901ac
7 changed files with 123 additions and 8 deletions
+6 -5
View File
@@ -6,14 +6,15 @@ var producer_value: int
func _ready() -> void:
print("Placed Extractor at: (%s, %s)" % [self.global_position[0], self.global_position[1]])
func setup(producer_value):
producer_value = producer_value
func setup(value):
producer_value = value
print("extractor value set as %s" % producer_value)
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func value() -> int:
print("extractor value is %s" % producer_value)
func _on_timer_timeout() -> void:
print("Extractor producing %s" % producer_value)
$Timer.start()
return producer_value