Import current DEMON v0.19 source, assets and development handoff

This commit is contained in:
JariKo
2026-10-28 15:39:06 +02:00
commit 2b9ae06592
347 changed files with 14404 additions and 0 deletions
+50
View File
@@ -0,0 +1,50 @@
extends RefCounted
func shot(g,name):
await g.get_tree().create_timer(.55).timeout
await RenderingServer.frame_post_draw
var folder="res://captures/v013" if OS.has_feature("editor") else OS.get_executable_path().get_base_dir()+"/captures/v013"
DirAccess.make_dir_recursive_absolute(folder)
var error=g.get_viewport().get_texture().get_image().save_png(folder+"/"+name+".png")
if error!=OK:push_error("Capture failed");g.get_tree().quit(1);return
print("CAPTURE: "+name)
func clear_souls(g):
for s in g.souls:s.node.queue_free()
g.souls.clear()
for d in g.workshop.stations:d.soul=-1;d.ready=false;d.operator=-1;d.bar.hide()
func soul(g,required):
g.workshop.spawn();var s=g.souls.back();s.entering=false;s.entry_time=1;s.required=required;s.served=[]
g.set_soul_reveal(s.visual,1);g.workshop.sentences.update_label(s)
return s
func run(g):
await g.get_tree().create_timer(.4).timeout
g.start_game();clear_souls(g);g.coins=5000;g.development.xp=300
var w=g.workshop;w.unlock=5
w.add_station(0,Vector3(-1,0,3))
w.add_station(2,Vector3(1,0,-1.5))
w.add_station(4,Vector3(4.5,0,1.5))
w.add_station(5,Vector3(8,0,-1));w.rebuild_nav();w.add_helper();w.helpers[0].state="review";w.refresh()
w.toggle_build();w.begin_purchase(4);w.rotate_pending(1)
w.pointer_position=g.camera.unproject_position(Vector3(8.5,.18,3.5));w.update_preview()
await shot(g,"construction")
w.cancel_placement();w.click_station(2);await shot(g,"device-actions")
w.toggle_build();w.toggle_tree();await shot(g,"grimoire")
w.tree.find_children("*","ScrollContainer",true,false)[0].scroll_vertical=240
await shot(g,"grimoire-arsenal");w.toggle_tree()
var a=soul(g,[0,2]);w.attach(a,0);w.step_station(w.stations[0],1,false)
for i in range(5):w.step_station(w.stations[0],.5,true)
var b=soul(g,[4,5]);w.attach(b,2);w.step_station(w.stations[2],1,false);w.step_station(w.stations[2],2,true)
var c=soul(g,[5]);w.attach(c,3);w.step_station(w.stations[3],1,false);w.step_station(w.stations[3],3,true)
w.dialogue_clock=6;w.announce_soul(a,"Я на два пункта не подписывался!")
await shot(g,"sentences-dialogues")
g.paused=true;g.camera.size=10;g.camera.position=Vector3(14,13,14);g.camera.look_at(Vector3(6,1.1,.5))
await shot(g,"new-apparatus")
clear_souls(g);g.paused=false;g.camera.size=20;g.orbit.update(1)
for i in range(7):w.spawn()
for i in range(720):g.time+=1.0/60;w.update(1.0/60)
await shot(g,"queue-pressure")
print("CAPTURE_BUILD: "+g.build_id)
g.get_tree().quit()