Added Glitch Room Source code to Gitty
This commit is contained in:
commit
1ac9eb5644
505 files changed
+28504
No files matched your search
@@ -0,0 +1,17 @@
|
||||
extends SceneTree
|
||||
func _initialize() -> void:
|
||||
call_deferred("run")
|
||||
func run() -> void:
|
||||
var agent = load("res://core/network/managed_cabinet.gd").new()
|
||||
root.add_child(agent)
|
||||
# Only the test harness forces a win; production has no remote force-win endpoint.
|
||||
for i in range(140):
|
||||
await create_timer(.1).timeout
|
||||
if agent.phase == "playing":
|
||||
agent.game.win_game()
|
||||
if agent.phase == "won" and ("--test-no-reward" in OS.get_cmdline_user_args() or agent.outcomes.values().any(func(r): return str(r.detail).contains("GPIO bridge accepted"))):
|
||||
await create_timer(1.0).timeout
|
||||
quit()
|
||||
return
|
||||
push_error("Managed cabinet integration timed out")
|
||||
quit(1)
|
||||
Reference in new issue
Block a user