Added Glitch Room Source code to Gitty

This commit is contained in:
Jeff Luke committed 2026-10-04 11:31:17 -07:00
commit 1ac9eb5644
505 files changed
+28504

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
extends SceneTree
func _initialize() -> void:
call_deferred("run")
func run() -> void:
root.size=Vector2i(960,720)
root.content_scale_size=Vector2i(960,720)
var g=load("res://games/robotron/Robotron.tscn").instantiate()
root.add_child(g)
g.set_physics_process(false)
g.sound_enabled=false
for state in ["title","play","brain","roster"]:
g.phase_time=3
g.phase=state
if state=="play":
g.wave=3
g.setup_wave()
g.invulnerable=0
if state=="brain":
g.wave=5
g.setup_wave()
g.phase="play"
g.invulnerable=0
g.board.queue_redraw()
await process_frame
await process_frame
await RenderingServer.frame_post_draw
root.get_texture().get_image().save_png("res://tests/robotron/"+state+".png")
g.free()
quit()