Something went wrong. Try again.
Monorepo for Aesthetic.Computer aesthetic.computer
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262{ "name": "Build", "events": [ { "eventType": "include", "includeSheet": "Core" }, { "eventType": "group", "disabled": false, "title": "Build", "description": "", "isActiveOnStart": true, "children": [ { "eventType": "variable", "name": "x", "type": "number", "initialValue": "0", "comment": "", "isStatic": false, "isConstant": false, "sid": 294108737113914 }, { "eventType": "variable", "name": "noTheme", "type": "boolean", "initialValue": "false", "comment": "", "isStatic": true, "isConstant": false, "sid": 228600028233476 }, { "eventType": "variable", "name": "y", "type": "number", "initialValue": "0", "comment": "", "isStatic": false, "isConstant": false, "sid": 222131613086189 }, { "eventType": "variable", "name": "addedNudgeX", "type": "number", "initialValue": "0", "comment": "", "isStatic": true, "isConstant": false, "sid": 370238860320673 }, { "eventType": "variable", "name": "addedNudgeY", "type": "number", "initialValue": "0", "comment": "", "isStatic": true, "isConstant": false, "sid": 201707129917405 }, { "eventType": "variable", "name": "nudgeDist", "type": "number", "initialValue": "0", "comment": "", "isStatic": true, "isConstant": false, "sid": 742525704715520 }, { "eventType": "variable", "name": "BuilderX", "type": "number", "initialValue": "0", "comment": "", "isStatic": true, "isConstant": false, "sid": 996865974032458 }, { "eventType": "variable", "name": "BuilderY", "type": "number", "initialValue": "0", "comment": "", "isStatic": true, "isConstant": false, "sid": 164100440144792 }, { "eventType": "variable", "name": "direction", "type": "string", "initialValue": "", "comment": "", "isStatic": true, "isConstant": false, "sid": 910137067527030 }, { "eventType": "variable", "name": "currentAlpha", "type": "number", "initialValue": "0", "comment": "", "isStatic": true, "isConstant": false, "sid": 302599514181961 }, { "eventType": "variable", "name": "paintColor", "type": "number", "initialValue": "0", "comment": "", "isStatic": true, "isConstant": false, "sid": 352640352065977 }, { "eventType": "variable", "name": "tileToCheck", "type": "number", "initialValue": "-1", "comment": "", "isStatic": true, "isConstant": false, "sid": 969345806436287 }, { "eventType": "variable", "name": "blockSize", "type": "number", "initialValue": "0", "comment": "", "isStatic": true, "isConstant": false, "sid": 112839991339350 }, { "eventType": "variable", "name": "blockIndexMax", "type": "number", "initialValue": "0", "comment": "", "isStatic": true, "isConstant": false, "sid": 936795120930925 }, { "eventType": "variable", "name": "opacity", "type": "number", "initialValue": "0", "comment": "", "isStatic": true, "isConstant": false, "sid": 458138140282890 }, { "eventType": "comment", "text": "[h3]Initialize[/h3]" }, { "eventType": "comment", "text": "[h4]Set and validate or default on input parameters.[/h4]" }, { "eventType": "block", "conditions": [ { "id": "on-start-of-layout", "objectClass": "System", "sid": 992699428432980 } ], "actions": [ { "type": "comment", "text": "👋 Interpret Parameters", "background-color": [ 0.6196078431372549, 0.9568627450980393, 1, 1 ] }, { "callFunction": "InitParameters", "sid": 390941376178954, "parameters": [ "2" ] }, { "type": "comment", "text": "[b]1st Parameter[/b] X" }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 270801936296024, "parameters": { "variable": "x", "value": "Functions.ProcessNumericParameter(1, 0, 255)" } }, { "type": "comment", "text": "[b]2nd Parameter[/b] Y" }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 665110532436897, "parameters": { "variable": "y", "value": "Functions.ProcessNumericParameter(2, 0, 255)" } }, { "type": "comment", "text": "🛑 Print Parameters", "background-color": [ 0.9294117647058824, 0.7764705882352941, 0.984313725490196, 1 ] }, { "callFunction": "PrintParameterHint", "sid": 636718426702381 } ], "sid": 358743186572961, "children": [ { "eventType": "comment", "text": "[h4]Finish Initialization[h4]" }, { "eventType": "block", "conditions": [], "actions": [ { "id": "set-eventvar-value", "objectClass": "System", "sid": 768323349415292, "parameters": { "variable": "tileToCheck", "value": "0" } }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 713419336185025, "parameters": { "variable": "currentAlpha", "value": "100" } }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 393905289513861, "parameters": { "variable": "paintColor", "value": "Functions.hslaToRgba(random(1), random(1), random(1), 1)" } }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 359801793134960, "parameters": { "variable": "blockSize", "value": "choose(4, 8, 16, 32, 64, 128)" } }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 918973655625515, "parameters": { "variable": "blockIndexMax", "value": "(PaintingResolution / blockSize) - 1" } }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 166715337377184, "parameters": { "variable": "opacity", "value": "choose(50, 100)" } }, { "id": "set-opacity", "objectClass": "PaintingBuffer", "sid": 286563581200701, "parameters": { "opacity": "opacity" } }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 756804236069312, "parameters": { "variable": "BuilderX", "value": "floor(x / blockSize)" } }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 684414848947424, "parameters": { "variable": "BuilderY", "value": "floor(y / blockSize)" } }, { "id": "start-timer", "objectClass": "Clock", "sid": 754604774400467, "behaviorType": "Timer", "parameters": { "duration": "0", "type": "once", "tag": "\"Draw\"" } }, { "id": "signal", "objectClass": "System", "sid": 779845869247054, "parameters": { "tag": "\"Brush Started\"" } } ], "sid": 351377738797932, "children": [ { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 912557670857598, "parameters": { "first-value": "blockSize", "comparison": 3, "second-value": "16" } } ], "actions": [ { "id": "play", "objectClass": "Audio", "sid": 632495105418913, "parameters": { "audio-file": { "path": "Brushes/Build/Build - Builder's Beat" }, "loop": "looping", "volume": "0", "stereo-pan": "0", "tag-optional": "\"Build Loop\"" } }, { "id": "set-playback-rate", "objectClass": "Audio", "sid": 123941104387391, "parameters": { "tag": "\"\"", "playback-rate": "1.0 + random(-0.1, 0.1)" } }, { "callFunction": "PaintingMusicMute", "sid": 424712992931868, "parameters": [ true ] }, { "id": "set-boolean-eventvar", "objectClass": "System", "sid": 705362216433765, "parameters": { "variable": "noTheme", "value": "true" } } ], "sid": 248867038599702 }, { "eventType": "block", "conditions": [ { "id": "else", "objectClass": "System", "sid": 807276737338280 } ], "actions": [ { "callFunction": "PaintingMusicMute", "sid": 742953790573607, "parameters": [ false ] }, { "id": "set-boolean-eventvar", "objectClass": "System", "sid": 699180425210431, "parameters": { "variable": "noTheme", "value": "false" } } ], "sid": 824778676006322 } ] } ] }, { "eventType": "comment", "text": "[h3]Audio[/h3]" }, { "eventType": "comment", "text": "[h4]No Theme[/h4]", "background-color": [ 0.7215686274509804, 0.9058823529411765, 1, 1 ] }, { "eventType": "block", "conditions": [ { "id": "compare-boolean-eventvar", "objectClass": "System", "sid": 638502063836385, "parameters": { "variable": "noTheme" } }, { "id": "compare-boolean-eventvar", "objectClass": "System", "sid": 746784473832613, "parameters": { "variable": "Paused" }, "isInverted": true }, { "id": "trigger-once-while-true", "objectClass": "System", "sid": 870517742554248 } ], "actions": [ { "callFunction": "PaintingMusicMute", "sid": 157214191180404, "parameters": [ true ] } ], "sid": 367765739539975 }, { "eventType": "block", "conditions": [ { "id": "every-tick", "objectClass": "System", "sid": 742726636453740 } ], "actions": [ { "callFunction": "SilentOnPause", "sid": 358871830656355, "parameters": [ "\"Build Loop\"" ] } ], "sid": 766316650088231 }, { "eventType": "comment", "text": "[h3]Present[/h3]" }, { "eventType": "block", "conditions": [ { "id": "on-timer", "objectClass": "Clock", "sid": 129127763197572, "behaviorType": "Timer", "parameters": { "tag": "\"Draw\"" } }, { "id": "compare-boolean-eventvar", "objectClass": "System", "sid": 236894684067565, "parameters": { "variable": "Painting" }, "isInverted": true } ], "actions": [], "sid": 466027830869585, "children": [ { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 917216746096822, "parameters": { "first-value": "blockSize", "comparison": 0, "second-value": "4" } } ], "actions": [ { "id": "start-timer", "objectClass": "Clock", "sid": 820811423325210, "behaviorType": "Timer", "parameters": { "duration": "0.1", "type": "once", "tag": "\"Draw\"" } } ], "sid": 161639861676686 }, { "eventType": "block", "conditions": [ { "id": "else", "objectClass": "System", "sid": 796628773195538 }, { "id": "compare-two-values", "objectClass": "System", "sid": 107606822189278, "parameters": { "first-value": "blockSize", "comparison": 0, "second-value": "8" } } ], "actions": [ { "id": "start-timer", "objectClass": "Clock", "sid": 280441471851783, "behaviorType": "Timer", "parameters": { "duration": "0.2", "type": "once", "tag": "\"Draw\"" } } ], "sid": 819996848932895 }, { "eventType": "block", "conditions": [ { "id": "else", "objectClass": "System", "sid": 696199772146754 }, { "id": "compare-two-values", "objectClass": "System", "sid": 649719855867612, "parameters": { "first-value": "blockSize", "comparison": 0, "second-value": "16" } } ], "actions": [ { "id": "start-timer", "objectClass": "Clock", "sid": 144972105080841, "behaviorType": "Timer", "parameters": { "duration": "0.3", "type": "once", "tag": "\"Draw\"" } } ], "sid": 362657877216539 }, { "eventType": "block", "conditions": [ { "id": "else", "objectClass": "System", "sid": 669981175238297 }, { "id": "compare-two-values", "objectClass": "System", "sid": 711172453611806, "parameters": { "first-value": "blockSize", "comparison": 0, "second-value": "32" } } ], "actions": [ { "id": "start-timer", "objectClass": "Clock", "sid": 875719818507930, "behaviorType": "Timer", "parameters": { "duration": "0.4", "type": "once", "tag": "\"Draw\"" } } ], "sid": 972393873309890 }, { "eventType": "block", "conditions": [ { "id": "else", "objectClass": "System", "sid": 975708374441469 }, { "id": "compare-two-values", "objectClass": "System", "sid": 552868530955958, "parameters": { "first-value": "blockSize", "comparison": 0, "second-value": "64" } } ], "actions": [ { "id": "start-timer", "objectClass": "Clock", "sid": 747761475716650, "behaviorType": "Timer", "parameters": { "duration": "0.5", "type": "once", "tag": "\"Draw\"" } } ], "sid": 344394880248334 }, { "eventType": "block", "conditions": [ { "id": "else", "objectClass": "System", "sid": 982178235877365 }, { "id": "compare-two-values", "objectClass": "System", "sid": 484481621579174, "parameters": { "first-value": "blockSize", "comparison": 0, "second-value": "128" } } ], "actions": [ { "id": "start-timer", "objectClass": "Clock", "sid": 511756377996263, "behaviorType": "Timer", "parameters": { "duration": "0.7", "type": "once", "tag": "\"Draw\"" } } ], "sid": 903796485394650 }, { "eventType": "block", "conditions": [], "actions": [ { "callFunction": "BuildStep", "sid": 322571032656955, "parameters": [ "\"\"" ] } ], "sid": 131060525457207 } ] }, { "eventType": "comment", "text": "[h3]Nudge[/h3]" }, { "eventType": "block", "conditions": [ { "id": "compare-boolean-eventvar", "objectClass": "System", "sid": 922972459660057, "parameters": { "variable": "Nudging" } }, { "id": "trigger-once-while-true", "objectClass": "System", "sid": 897244722373214 } ], "actions": [ { "type": "comment", "text": "Nudge [b]Started[/b]" }, { "id": "stop-timer", "objectClass": "Clock", "sid": 435595105749260, "behaviorType": "Timer", "parameters": { "tag": "\"Draw\"" } }, { "id": "set-object-time-scale", "objectClass": "System", "sid": 951197223329066, "parameters": { "object": "NudgeDot", "time-scale": "1.0" } }, { "id": "set-visible", "objectClass": "NudgeDot", "sid": 390295096134653, "parameters": { "visibility": "visible" } }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 164786646404311, "parameters": { "variable": "addedNudgeX", "value": "0" } }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 378260243710099, "parameters": { "variable": "addedNudgeY", "value": "0" } } ], "sid": 141883920153780, "children": [ { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 536680522327618, "parameters": { "first-value": "blockSize", "comparison": 0, "second-value": "4" } } ], "actions": [ { "id": "set-eventvar-value", "objectClass": "System", "sid": 227003456504923, "parameters": { "variable": "nudgeDist", "value": "4" } } ], "sid": 441960715987180 }, { "eventType": "block", "conditions": [ { "id": "else", "objectClass": "System", "sid": 465130802247344 }, { "id": "compare-two-values", "objectClass": "System", "sid": 737127900143950, "parameters": { "first-value": "blockSize", "comparison": 0, "second-value": "8" } } ], "actions": [ { "id": "set-eventvar-value", "objectClass": "System", "sid": 902519401624771, "parameters": { "variable": "nudgeDist", "value": "6" } } ], "sid": 713518469564269 }, { "eventType": "block", "conditions": [ { "id": "else", "objectClass": "System", "sid": 702807249669503 }, { "id": "compare-two-values", "objectClass": "System", "sid": 497600823618708, "parameters": { "first-value": "blockSize", "comparison": 0, "second-value": "16" } } ], "actions": [ { "id": "set-eventvar-value", "objectClass": "System", "sid": 816525352321458, "parameters": { "variable": "nudgeDist", "value": "12" } } ], "sid": 446638699779069 }, { "eventType": "block", "conditions": [ { "id": "else", "objectClass": "System", "sid": 678647908502417 }, { "id": "compare-two-values", "objectClass": "System", "sid": 424757896321785, "parameters": { "first-value": "blockSize", "comparison": 0, "second-value": "32" } } ], "actions": [ { "id": "set-eventvar-value", "objectClass": "System", "sid": 330547565388299, "parameters": { "variable": "nudgeDist", "value": "24" } } ], "sid": 790024711988964 }, { "eventType": "block", "conditions": [ { "id": "else", "objectClass": "System", "sid": 555759553746682 }, { "id": "compare-two-values", "objectClass": "System", "sid": 980088114349183, "parameters": { "first-value": "blockSize", "comparison": 0, "second-value": "64" } } ], "actions": [ { "id": "set-eventvar-value", "objectClass": "System", "sid": 763887254259844, "parameters": { "variable": "nudgeDist", "value": "32" } } ], "sid": 164014959095583 }, { "eventType": "block", "conditions": [ { "id": "else", "objectClass": "System", "sid": 456437192755651 }, { "id": "compare-two-values", "objectClass": "System", "sid": 803663482035786, "parameters": { "first-value": "blockSize", "comparison": 0, "second-value": "128" } } ], "actions": [ { "id": "set-eventvar-value", "objectClass": "System", "sid": 919126811556338, "parameters": { "variable": "nudgeDist", "value": "32" } } ], "sid": 476599712230618 }, { "eventType": "block", "conditions": [], "actions": [ { "type": "comment", "text": "Nudge [b]Ended[/b]" }, { "id": "wait-for-signal", "objectClass": "System", "sid": 558934856570576, "parameters": { "tag": "\"Nudge Ended\"" } }, { "id": "set-visible", "objectClass": "NudgeDot", "sid": 272966639347541, "parameters": { "visibility": "invisible" } }, { "id": "start-timer", "objectClass": "Clock", "sid": 695874961245752, "behaviorType": "Timer", "parameters": { "duration": "0.25", "type": "once", "tag": "\"Draw\"" } } ], "sid": 110547909044194, "children": [ { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 402881081410408, "parameters": { "first-value": "blockSize", "comparison": 3, "second-value": "16" }, "isInverted": true } ], "actions": [ { "callFunction": "PaintingMusicMute", "sid": 689721431217568, "parameters": [ false ] } ], "sid": 835592887744130 } ] } ] }, { "eventType": "block", "conditions": [ { "id": "compare-boolean-eventvar", "objectClass": "System", "sid": 814631170839215, "parameters": { "variable": "Nudging" } } ], "actions": [ { "type": "comment", "text": "Nudge [b]Ticked[/b]" }, { "id": "set-position", "objectClass": "NudgeDot", "sid": 998491071490679, "parameters": { "x": "(BuilderX * blockSize) + (blockSize / 2)", "y": "(BuilderY * blockSize ) + (blockSize / 2)" } }, { "id": "add-to-eventvar", "objectClass": "System", "sid": 220213149091984, "parameters": { "variable": "addedNudgeX", "value": "NudgedX" } }, { "id": "add-to-eventvar", "objectClass": "System", "sid": 236856268737259, "parameters": { "variable": "addedNudgeY", "value": "NudgedY" } } ], "sid": 809802109618470, "children": [ { "eventType": "block", "conditions": [ { "id": "compare-eventvar", "objectClass": "System", "sid": 930818345126079, "parameters": { "variable": "addedNudgeX", "comparison": 4, "value": "nudgeDist" } }, { "id": "compare-eventvar", "objectClass": "System", "sid": 336913692138136, "parameters": { "variable": "BuilderX", "comparison": 2, "value": "blockIndexMax" } } ], "actions": [ { "callFunction": "BuildStep", "sid": 365891974540623, "parameters": [ "\"Right\"" ] }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 948156020488962, "parameters": { "variable": "addedNudgeX", "value": "0" } } ], "sid": 723110927122841 }, { "eventType": "block", "conditions": [ { "id": "else", "objectClass": "System", "sid": 326596107298539 }, { "id": "compare-eventvar", "objectClass": "System", "sid": 101254489055359, "parameters": { "variable": "addedNudgeX", "comparison": 2, "value": "-nudgeDist" } }, { "id": "compare-eventvar", "objectClass": "System", "sid": 553350870096087, "parameters": { "variable": "BuilderX", "comparison": 4, "value": "0" } } ], "actions": [ { "callFunction": "BuildStep", "sid": 951707098229351, "parameters": [ "\"Left\"" ] }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 855239153658522, "parameters": { "variable": "addedNudgeX", "value": "0" } } ], "sid": 175597863468997 }, { "eventType": "block", "conditions": [ { "id": "else", "objectClass": "System", "sid": 760709740371260 }, { "id": "compare-eventvar", "objectClass": "System", "sid": 954295519296929, "parameters": { "variable": "addedNudgeY", "comparison": 4, "value": "nudgeDist" } }, { "id": "compare-eventvar", "objectClass": "System", "sid": 195004560596838, "parameters": { "variable": "BuilderY", "comparison": 2, "value": "blockIndexMax" } } ], "actions": [ { "callFunction": "BuildStep", "sid": 592161785044953, "parameters": [ "\"Down\"" ] }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 621770039742045, "parameters": { "variable": "addedNudgeY", "value": "0" } } ], "sid": 503416132244557 }, { "eventType": "block", "conditions": [ { "id": "else", "objectClass": "System", "sid": 788629094665401 }, { "id": "compare-eventvar", "objectClass": "System", "sid": 599792216840510, "parameters": { "variable": "addedNudgeY", "comparison": 2, "value": "-nudgeDist" } }, { "id": "compare-eventvar", "objectClass": "System", "sid": 939238644874827, "parameters": { "variable": "BuilderY", "comparison": 4, "value": "0" } } ], "actions": [ { "callFunction": "BuildStep", "sid": 913114550000152, "parameters": [ "\"Up\"" ] }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 606151639661947, "parameters": { "variable": "addedNudgeY", "value": "0" } } ], "sid": 792238106173877 } ] }, { "eventType": "comment", "text": "[h3]Paint[/h3]" }, { "eventType": "block", "conditions": [ { "id": "compare-boolean-eventvar", "objectClass": "System", "sid": 917062545786658, "parameters": { "variable": "Painting" } } ], "actions": [ { "id": "paste-object", "objectClass": "Painting", "sid": 881446743602854, "parameters": { "object": "PaintingBuffer", "effects": "without-effects" } }, { "type": "comment", "text": "Signify to [b]Core[/b] that the canvas has been painted." }, { "id": "signal", "objectClass": "System", "sid": 686357857987471, "parameters": { "tag": "\"painted\"" } } ], "sid": 117866200439513 }, { "eventType": "comment", "text": "[h3]DeInitialize[/h3]" }, { "eventType": "block", "conditions": [ { "id": "on-end-of-layout", "objectClass": "System", "sid": 179142567646558 } ], "actions": [ { "callFunction": "PaintingMusicMute", "sid": 786567653707357, "parameters": [ false ] }, { "id": "stop", "objectClass": "Audio", "sid": 596715512129180, "parameters": { "tag": "\"Build Loop\"" } } ], "sid": 308488232749452 }, { "functionName": "BuildStep", "functionDescription": "", "functionCategory": "", "functionReturnType": "none", "functionCopyPicked": false, "functionIsAsync": false, "functionParameters": [ { "name": "directionToBuild", "type": "string", "initialValue": "", "comment": "", "sid": 255017656072172 } ], "eventType": "function-block", "conditions": [], "actions": [], "sid": 513212578997185, "children": [ { "eventType": "comment", "text": "[b]After painting is saved.[/b]" }, { "eventType": "block", "conditions": [], "actions": [ { "id": "createProbabilityTable", "objectClass": "AdvancedRandom", "sid": 187384429546501, "parameters": { "name": "\"Build\"" } }, { "id": "setProbabilityTable", "objectClass": "AdvancedRandom", "sid": 510540619069903, "parameters": { "name": "\"Build\"" } } ], "sid": 484949673240607, "children": [ { "eventType": "comment", "text": "Can go [b]Right[/b]" }, { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 401385463699331, "parameters": { "first-value": "BuilderX", "comparison": 2, "second-value": "blockIndexMax" } }, { "id": "compare-two-values", "objectClass": "System", "sid": 301940953384379, "parameters": { "first-value": "PaintingBuffer.SnapshotAlphaAt(clamp(BuilderX + 1, 0, blockIndexMax) * blockSize, BuilderY * blockSize)", "comparison": 0, "second-value": "tileToCheck" } } ], "actions": [ { "id": "addProbabilityEntry", "objectClass": "AdvancedRandom", "sid": 874964253259581, "parameters": { "value": "\"Right\"", "weight": "1" } } ], "sid": 408546831354493 }, { "eventType": "comment", "text": "Can go [b]Left[/b]" }, { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 772928854579615, "parameters": { "first-value": "BuilderX", "comparison": 4, "second-value": "0" } }, { "id": "compare-two-values", "objectClass": "System", "sid": 136419915862301, "parameters": { "first-value": "PaintingBuffer.SnapshotAlphaAt(clamp(BuilderX - 1, 0, blockIndexMax) * blockSize, BuilderY * blockSize)", "comparison": 0, "second-value": "tileToCheck" } } ], "actions": [ { "id": "addProbabilityEntry", "objectClass": "AdvancedRandom", "sid": 696796715336652, "parameters": { "value": "\"Left\"", "weight": "1" } } ], "sid": 592797488685031 }, { "eventType": "comment", "text": "Can go [b]Up[/b]" }, { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 300837249633490, "parameters": { "first-value": "BuilderY", "comparison": 4, "second-value": "0" } }, { "id": "compare-two-values", "objectClass": "System", "sid": 283112169814572, "parameters": { "first-value": "PaintingBuffer.SnapshotAlphaAt(BuilderX * blockSize, clamp(BuilderY - 1, 0, blockIndexMax) * blockSize)", "comparison": 0, "second-value": "tileToCheck" } } ], "actions": [ { "id": "addProbabilityEntry", "objectClass": "AdvancedRandom", "sid": 226572814955054, "parameters": { "value": "\"Up\"", "weight": "1" } } ], "sid": 532480553894617 }, { "eventType": "comment", "text": "Can go [b]Down[/b]" }, { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 589017228121496, "parameters": { "first-value": "BuilderY", "comparison": 2, "second-value": "blockIndexMax" } }, { "id": "compare-two-values", "objectClass": "System", "sid": 862044284574827, "parameters": { "first-value": "PaintingBuffer.SnapshotAlphaAt(BuilderX * blockSize, clamp(BuilderY + 1, 0, blockIndexMax) * blockSize)", "comparison": 0, "second-value": "tileToCheck" } } ], "actions": [ { "id": "addProbabilityEntry", "objectClass": "AdvancedRandom", "sid": 478041732206546, "parameters": { "value": "\"Down\"", "weight": "1" } } ], "sid": 555834141675531 }, { "eventType": "comment", "text": "[h3]Move Left, Right, Up or Down[/h3]" }, { "eventType": "comment", "text": "[b]Choose a random direction[/b]" }, { "eventType": "block", "conditions": [ { "id": "compare-eventvar", "objectClass": "System", "sid": 324755095714359, "parameters": { "variable": "directionToBuild", "comparison": 0, "value": "\"\"" } } ], "actions": [ { "id": "set-eventvar-value", "objectClass": "System", "sid": 141084605199692, "parameters": { "variable": "direction", "value": "AdvancedRandom.Weighted" } } ], "sid": 954400024625847 }, { "eventType": "block", "conditions": [ { "id": "else", "objectClass": "System", "sid": 361574008503244 } ], "actions": [ { "id": "set-eventvar-value", "objectClass": "System", "sid": 919131031913459, "parameters": { "variable": "direction", "value": "directionToBuild" } }, { "id": "log", "objectClass": "Browser", "sid": 606747674084396, "disabled": true, "parameters": { "type": "log", "message": "\"Direction: \" & direction & \" Options: \" & AdvancedRandom.ProbabilityTableAsJSON" } } ], "sid": 624106949783118 }, { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 978777760227501, "parameters": { "first-value": "direction", "comparison": 0, "second-value": "\"Right\"" } } ], "actions": [ { "id": "set-eventvar-value", "objectClass": "System", "sid": 591143729227383, "parameters": { "variable": "BuilderX", "value": "clamp(BuilderX + 1, 0, blockIndexMax)" } } ], "sid": 335484078744370 }, { "eventType": "block", "conditions": [ { "id": "else", "objectClass": "System", "sid": 480075276174695 }, { "id": "compare-two-values", "objectClass": "System", "sid": 302727943373170, "parameters": { "first-value": "direction", "comparison": 0, "second-value": "\"Left\"" } } ], "actions": [ { "id": "set-eventvar-value", "objectClass": "System", "sid": 562737596774396, "parameters": { "variable": "BuilderX", "value": "clamp(BuilderX - 1, 0, blockIndexMax)" } } ], "sid": 352081742358606 }, { "eventType": "block", "conditions": [ { "id": "else", "objectClass": "System", "sid": 766536993760478 }, { "id": "compare-two-values", "objectClass": "System", "sid": 122550702572833, "parameters": { "first-value": "direction", "comparison": 0, "second-value": "\"Up\"" } } ], "actions": [ { "id": "set-eventvar-value", "objectClass": "System", "sid": 629167745605963, "parameters": { "variable": "BuilderY", "value": "clamp(BuilderY - 1, 0, blockIndexMax)" } } ], "sid": 939185155708120 }, { "eventType": "block", "conditions": [ { "id": "else", "objectClass": "System", "sid": 268644757473751 }, { "id": "compare-two-values", "objectClass": "System", "sid": 474888527837695, "parameters": { "first-value": "direction", "comparison": 0, "second-value": "\"Down\"" } } ], "actions": [ { "id": "set-eventvar-value", "objectClass": "System", "sid": 766857883398220, "parameters": { "variable": "BuilderY", "value": "clamp(BuilderY + 1, 0, blockIndexMax)" } } ], "sid": 509001629627783 }, { "eventType": "block", "conditions": [ { "id": "compare-eventvar", "objectClass": "System", "sid": 848471440198526, "parameters": { "variable": "directionToBuild", "comparison": 1, "value": "\"\"" } }, { "id": "compare-two-values", "objectClass": "System", "sid": 654505586904745, "parameters": { "first-value": "findCase(AdvancedRandom.ProbabilityTableAsJSON, directionToBuild)", "comparison": 0, "second-value": "-1" } } ], "actions": [ { "id": "set-eventvar-value", "objectClass": "System", "sid": 747926111876457, "parameters": { "variable": "direction", "value": "\"0\"" } } ], "sid": 440945216344486 }, { "eventType": "comment", "text": "No direction was possible, so invert the tile." }, { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 929183228692354, "parameters": { "first-value": "direction", "comparison": 0, "second-value": "\"0\"" } } ], "actions": [ { "id": "log", "objectClass": "Browser", "sid": 450797364156889, "disabled": true, "parameters": { "type": "log", "message": "\"Direction:\" & direction" } } ], "sid": 960260904478152, "children": [ { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 559343360063916, "parameters": { "first-value": "tileToCheck", "comparison": 0, "second-value": "0" } } ], "actions": [ { "id": "set-eventvar-value", "objectClass": "System", "sid": 862601488232239, "parameters": { "variable": "tileToCheck", "value": "100" } }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 760944322415586, "parameters": { "variable": "currentAlpha", "value": "0" } } ], "sid": 933954308721687 }, { "eventType": "block", "conditions": [ { "id": "else", "objectClass": "System", "sid": 261382586773622 } ], "actions": [ { "id": "set-eventvar-value", "objectClass": "System", "sid": 841863230081229, "parameters": { "variable": "currentAlpha", "value": "100" } }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 641802069352216, "parameters": { "variable": "tileToCheck", "value": "0" } } ], "sid": 974117247170871 } ] } ] }, { "eventType": "comment", "text": "If [b]Tile[/b] is empty." }, { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 361831794345451, "parameters": { "first-value": "currentAlpha", "comparison": 0, "second-value": "0" } } ], "actions": [ { "id": "clear-rect", "objectClass": "PaintingBuffer", "sid": 264791398216568, "parameters": { "left": "BuilderX * blockSize", "top": "BuilderY * blockSize", "right": "(BuilderX * blockSize) + blockSize", "bottom": "(BuilderY * blockSize) + blockSize", "color": "rgba(0, 0, 0, 0)" } } ], "sid": 495877505246592, "children": [ { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 880658475538223, "parameters": { "first-value": "choose(0, 1)", "comparison": 0, "second-value": "0" } }, { "id": "compare-two-values", "objectClass": "System", "sid": 932884038479067, "parameters": { "first-value": "blockSize", "comparison": 5, "second-value": "32" } }, { "id": "compare-boolean-eventvar", "objectClass": "System", "sid": 455687050559906, "parameters": { "variable": "Nudging" }, "isInverted": true } ], "actions": [ { "id": "play", "objectClass": "Audio", "sid": 119403510209306, "parameters": { "audio-file": { "path": "Brushes/Build/Build - Brick Scrape" }, "loop": "not-looping", "volume": "-10 + random(0, 10)", "stereo-pan": "0", "tag-optional": "\"\"" } }, { "id": "set-playback-rate", "objectClass": "Audio", "sid": 264083952874013, "parameters": { "tag": "\"\"", "playback-rate": "1.0 + random(-0.1, 0.1)" } } ], "sid": 238871813922082 }, { "eventType": "block", "conditions": [ { "id": "else", "objectClass": "System", "sid": 734805809538805 }, { "id": "compare-two-values", "objectClass": "System", "sid": 662370086387246, "parameters": { "first-value": "blockSize", "comparison": 5, "second-value": "32" } }, { "id": "compare-boolean-eventvar", "objectClass": "System", "sid": 382765866200113, "parameters": { "variable": "Nudging" }, "isInverted": true } ], "actions": [ { "id": "play", "objectClass": "Audio", "sid": 942105876064499, "parameters": { "audio-file": { "path": "Brushes/Build/Build - Blow Down" }, "loop": "not-looping", "volume": "-20 + random(0, 10)", "stereo-pan": "0", "tag-optional": "\"\"" } }, { "id": "set-playback-rate", "objectClass": "Audio", "sid": 872021646718401, "parameters": { "tag": "\"\"", "playback-rate": "1.0 + random(-0.1, 0.1)" } } ], "sid": 895113463172712 } ] }, { "eventType": "block", "conditions": [ { "id": "else", "objectClass": "System", "sid": 460133732037907 } ], "actions": [ { "id": "fill-rect", "objectClass": "PaintingBuffer", "sid": 667642444992098, "parameters": { "left": "BuilderX * blockSize", "top": "BuilderY * blockSize", "right": "(BuilderX * blockSize) + blockSize", "bottom": "(BuilderY * blockSize) + blockSize", "color": "paintColor" } } ], "sid": 228953839398499, "children": [ { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 335701491511668, "parameters": { "first-value": "choose(0, 1)", "comparison": 0, "second-value": "0" } }, { "id": "compare-two-values", "objectClass": "System", "sid": 691095700316690, "parameters": { "first-value": "blockSize", "comparison": 5, "second-value": "32" } }, { "id": "compare-boolean-eventvar", "objectClass": "System", "sid": 797872096408261, "parameters": { "variable": "Nudging" }, "isInverted": true } ], "actions": [ { "id": "play", "objectClass": "Audio", "sid": 132841558470123, "parameters": { "audio-file": { "path": "Brushes/Build/Build - Brick Click" }, "loop": "not-looping", "volume": "-10 + random(0, 10)", "stereo-pan": "0", "tag-optional": "\"\"" } }, { "id": "set-playback-rate", "objectClass": "Audio", "sid": 821450668370090, "parameters": { "tag": "\"\"", "playback-rate": "1.0 + random(-0.1, 0.1)" } } ], "sid": 821176983258509 }, { "eventType": "block", "conditions": [ { "id": "else", "objectClass": "System", "sid": 757459457950142 }, { "id": "compare-two-values", "objectClass": "System", "sid": 154542383456468, "parameters": { "first-value": "blockSize", "comparison": 5, "second-value": "32" } }, { "id": "compare-boolean-eventvar", "objectClass": "System", "sid": 333191237169091, "parameters": { "variable": "Nudging" }, "isInverted": true } ], "actions": [ { "id": "play", "objectClass": "Audio", "sid": 658019982469758, "parameters": { "audio-file": { "path": "Brushes/Build/Build - Brick Clop" }, "loop": "not-looping", "volume": "-10 + random(0, 10)", "stereo-pan": "0", "tag-optional": "\"\"" } }, { "id": "set-playback-rate", "objectClass": "Audio", "sid": 346651858620165, "parameters": { "tag": "\"\"", "playback-rate": "1.0 + random(-0.1, 0.1)" } } ], "sid": 537640024027944 } ] }, { "eventType": "comment", "text": "Save painting and read." }, { "eventType": "block", "conditions": [], "actions": [ { "id": "save-snapshot", "objectClass": "PaintingBuffer", "sid": 442974276334261 }, { "id": "wait-for-previous-actions", "objectClass": "System", "sid": 672502159294898 } ], "sid": 120686111747697 } ] } ], "sid": 804252645717761 } ], "sid": 295871872249382}