//!tgscript v1 //! script name=TitleScreen //! region graph //! node 1 OnUpdate pos=(60,80) export function onUpdate(ctx) { //! node 2 GetGlobal pos=(260,120) global=started const n2_value = ctx.getGlobal("started"); //! node 3 ConstNumber pos=(260,240) const n3_value = 0.50; //! node 4 Less pos=(460,120) const n4_out = (n2_value < n3_value); //! node 20 GetGlobal pos=(260,340) global=over const n20_value = ctx.getGlobal("over"); //! node 21 Less pos=(460,340) const n21_out = (n20_value < n3_value); //! node 22 And pos=(460,220) const n22_out = (n4_out && n21_out); //! node 5 Branch pos=(660,80) if (n22_out) { //! node 6 FindEntity pos=(660,260) entity=Camera const n6_value = ctx.findEntity("Camera"); //! node 7 GetEntityPosition2D pos=(860,260) const n7_value = ctx.getEntityPosition2D(n6_value); //! node 8 SetPosition2D pos=(1060,80) ctx.setPosition2D(n7_value); } else { //! node 9 ConstVec2 pos=(860,400) const n9_value = ctx.vec2(200.00, 240.00); //! node 10 SetPosition2D pos=(1060,240) ctx.setPosition2D(n9_value); } } //! endregion