JavaScript must be enabled to play.
Browser lacks capabilities required to play.
Upgrade or switch to another browser.
Loading…
<<nobr>> <</nobr>>
<<nobr>> <div style="font-size: 28px; text-align: center; font-weight: bold;">Chromatic Challenge</div> <div class="bottom-choice" style="font-weight: bold; font-style: italic; font-size: 80%;"> <<link 'by Blue Flower'>> <<script>> Dialog.setup("Credits");Dialog.wiki(Story.get("Credits").processText()); Dialog.open(); <</script>> <</link>></div> <</nobr>>
<<set $player to "Nameless">> <<set $endless_mode to 1>> <<set $level_num to 1>> <<set $target_left to 1>> <<set $second to 100>> <<set $zero to 0>> <<set $unlock to {level1: 1,}>> <<set $record to { level1: 0, level2: 0, endless1: 0, endless2: 0, endless3: 0, }>> <<set $high to { level1: 0, level2: 0, endless1: 0, endless2: 0, endless3: 0, }>> <<set $level to { name: "None", world: "None", desc: "None", size: "0", perk1: "None", perk2: "None", perk3: "None", target: 0, display: 1, speed: "0.5s", bonus: 1, second: 100, unlocked: $unlock.level1, score: $record.level1, high: $high.level1, }>>
Total score: $score
<<nobr>> <style>.normal-link > a:hover:before, .normal-link > a:hover:after, .normal-link > a {content: ""; font-weight: bold;}</style> <div class="normal-link"> <!------------ Writing and coding ------------> <div style="font-size: 110%; font-weight: bold;">Writing and coding</div> • Blue Flower <a href="https://www.patreon.com/BlueFlower" target="_blank">[Patreon</a> <a href="https://blueflowergame.itch.io" target="_blank">| Itch.io]</a> <br><br> <!------------ Custom macros ------------> <div style="font-size: 110%; font-weight: bold;">Custom macros </div> • Cycy <a href="https://github.com/cyrusfirheir/cycy-wrote-custom-macros" target="_blank">[GitHub]</a> <br>• Chapel <a href="https://github.com/ChapelR/custom-macros-for-sugarcube-2" target="_blank">[GitHub]</a> </div> <</nobr>>
<<nobr>> <img src="https://drive.google.com/uc?export=view&id=18NPdwf5rL8IqqUTxcDJJdAx66aD4SIS2" width="175" height="175"> <</nobr>>
<<nobr>> <<set $total_score = 0>><<for _val range $high>> <<set $total_score += _val>><</for>> <<set $savename to $player + " - Total score: " + $total_score>> <</nobr>>
<<nobr>><style>#bottom-sidebar { opacity: 0;} </style> <<timed 0.2s t8n>><div style="font-size: 40px; text-align: center; font-weight: bold;">Chromatic Challenge</div><</timed>> <div class="bottom-choice" style="font-weight: bold; font-style: italic; font-size: 80%; text-align: center;"> <<link 'by Blue Flower'>> <<script>> Dialog.setup("Credits");Dialog.wiki(Story.get("Credits").processText()); Dialog.open(); <</script>> <</link>></div> <<timed 0.4s t8n>><div class="menu-button"> <<link [[Story mode|Level]]>> <<set $level_num to 1>> <</link>> </div><</timed>> <<timed 0.8s t8n>><div class="menu-button"> <<link [[Endless mode|Endless]]>> <<set $endless_mode to 1>> <</link>> </div><</timed>> <<timed 1s t8n>><div class="menu-button"> <<link "Load game">><<script>>UI.saves()<</script>><</link>> </div><</timed>> <<timed 1.2s t8n>><div class="menu-button"> <<link 'Settings'>><<script>>UI.settings()<</script>><</link>> </div><</timed>> <</nobr>>
<<nobr>>Chromatic Challenge<</nobr>>
<<nobr>> <<liveblock>><div id="bottom-sidebar"> <table style="width:100%"><tr> <td id="1" style="width:30%"> <div class="status"><table> <tr> <td colspan="2" style="text-align: center"> <<if passage() is "Level" or passage() is "Endless">> <b>Player: $player</b> <<link '<i class="fa"></i>'>><<replace "#newname">> <span class="smallbox"> <<textbox "$player" '' 'Your name' autofocus>> </span> <<link 'Confirm'>><<goto `passage()`>><</link>> <</replace>><</link>> <<else>> <b>$level.name</b> <</if>> </td> </tr> <tr> <td colspan="2" style="text-align: center"> <<if passage() is "Level" or passage() is "Endless">> <span id="newname"><b>Total score: $total_score</b></span> <<else>> <b>World: $level.world</b> <</if>> </td> </tr> </table></div> </td> <td id="2" style="width:20%"> </td> <td id="3" style="width:30%"> <div class="menu-ui"> <table><tr> <td> <div class="bottom-choice"><<button '<i class="fa"></i> Saves'>> <<script>>UI.saves()<</script>> <</button>></div> </td> <td> <div class="bottom-choice"><<button '<i class="fa"> Scores</i>'>> <<script>> Dialog.setup("Scores");Dialog.wiki(Story.get("Scores").processText()); Dialog.open(); <</script>> <</button>></div> </td> <td> <div class="bottom-choice"><<button '<i class="fa"></i> Credits'>> <<script>> Dialog.setup("Credits");Dialog.wiki(Story.get("Credits").processText()); Dialog.open(); <</script>> <</button>></div> </td> </tr><tr> <td> <div class="bottom-choice"><<button '<i class="fa"></i> Menu'>> <<script>> Dialog.setup("Pause");Dialog.wiki(Story.get("Menu").processText()); Dialog.open(); <</script>> <</button>></div> </td> <td> <div class="bottom-choice"><<button '<i class="fa"></i> Settings'>> <<script>>UI.settings()<</script>> <</button>></div> </td> <td> <div class="bottom-choice"><<button '<i class="fa"></i> Restart'>> <<script>>UI.restart()<</script>> <</button>></div> </td> </tr></table> </div> </td> </tr></table> </div><</liveblock>><</nobr>>
<<nobr>><<liveblock>><div id="main-interface" align="center"> <<include "Level desc">> <<set $c1_chosen to false>> <div id="scoring-widget"><<display "Scoring widget">></div> <div id="target-widget"><<display "Level info widget">></div> <table> <tr> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> </tr> <tr> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> </tr> <tr> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> </tr> <tr> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> </tr> <tr> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> </tr> </table> </div><</liveblock>><</nobr>>
<<nobr>><div id="level"> <table><tr> <td class="nav"> <<button "Previous">> <<if $level_num gt 1>><<set $level_num -=1>><</if>> <<update>> <</button>> </td> <td class="content"><<liveblock>> <<include "Level desc">> <<set $score_ext to Math.round($level.second*$level.bonus)*$level.target>> <div style="font-size: 120%"><b>Level $level_num - $level.name</b></div> <<if $level.unlocked is 1 and $level.name isnot "Underdevelopment">> Score: <b>$level.score/$score_ext</b> - High score: <b>$level.high</b> <br>World: <b>$level.world</b> - Size: <b>$level.size</b> <br>Targets: <b>$level.target</b><<target>> <div style="text-align: justify; padding: 1vw;">Objective: $level.desc</div> <table style="width: fit-content; margin: auto; text-align: left;"><tr> <td style="vertical-align: top;">Perks:</td> <td style="vertical-align: top;"> 1. $level.perk1 <br>2. $level.perk2 <br>3. $level.perk3 </td> </tr></table> <div class="menu-button"><<link "Begin">> <<goto $level.name>> <<set $target_left to $level.target>> <<set $target_found to 0>> <<set $target_possible to $level.target>> <<set $second to $level.second>> <<set $score to 0>> <<set $countdown to "enable">> <</link>></div> <<else>> <i style="font-size: 600%;" class="fa"></i> <<if $level.name is "Underdevelopment">> <div style="text-align: center">Have ideas for a level or a trial? Suggest it to me.</div> <div class="menu-button"><<link "Suggest">> <<script>>window.open("https://forms.gle/8VxNdygEaUBd9BX5A"); <</script>> <</link>></div> <</if>> <</if>> <</liveblock>></td> <td class="nav"> <<button "Next">> <<set $level_num +=1>> <<update>> <</button>> </td> </tr></table> </div><</nobr>>
<<nobr>><<set $c1_chosen to false>> <<if $level_num is 1>> <<set $level to { name: "Target practice", world: "Life and Decay", desc: "The Bureau has decided to eliminate all color of Life from this world. Your first mission as a Chromatic Soldier is to isolate the Green cells with your True Sight, and destroy them with Death Beam. This will be a good practice for the future.", size: "25", perk1: "The job is so easy; a baby can do it. (Score bonus x0.2)", perk2: "None", perk3: "None", target: 10, display: 1, speed: "1s", bonus: 0.2, second: 50, unlocked: $unlock.level1, score: $record.level1, high: $high.level1, }>> <<set $c1_array to ["green", "forestgreen", "lawngreen"]>> <<set $c2_array to ["black"]>> <<elseif $level_num is 2>> <<set $level to { name: "Love and Void", world: "Passionia", desc: "Instances of Void cells have been detected all over this world, upseting the delicate balance of native cells. Identify these unwelcoming presences and erase them from Passionia.", size: "25", perk1: "When love's in the air, time slows to a crawl. (Countdown rate x2s)", perk2: "The job is so easy; a child can do it. (Score bonus x0.4)", perk3: "None", target: 15, display: 1, speed: "2s", bonus: 0.4, second: 50, unlocked: $unlock.level2, score: $record.level2, high: $high.level2, }>> <<set $c1_array to ["black",]>> <<set $c2_array to ["#8B0000", "#EE4B2B", "#800020", "#E97451", "#D22B2B",]>> <<elseif $level_num is 3>> <<set $level to { name: "For harmony", world: "Lariman", desc: "This world is being ravaged by a war between the Purple and the Grey. For the sake of peace and balance, the Bureau has finally decided to side with the latter. Use your Death Beam and eliminate the Purple spying cells within the ally's army.", size: "40", perk1: "Sensing danger, the preys spook. (Time limit x0.5, Score bonus x1.5)", perk2: "Masters of disguise, blending in so well. (Targets can hide under the skin of native cells)", perk3: "None", target: 25, display: either(1,2), speed: "1s", bonus: 1.5, second: 25, unlocked: $unlock.level3, score: $record.level3, high: $high.level3, }>> <<set $c1_array to ["#BF40BF", "#9F2B68", "#AA336A",]>> <<set $c2_array to ["gray", "dimgray", "#909090", "#707070"]>> <<elseif $level_num is 4>> <<set $level to { name: "For order", world: "Lariman", desc: "As the Grey are empowered with the Bureau's help, radical elements emerge and seek to remove this so-called foreign influence. As our intelligence has discovered, they will assasinate a Prime Grey cell as it conducts an ancient ritual in the next cycle. Watch over the event and eradicate any assailants.", size: "68", perk1: "Sensing danger, the preys spook. (Time limit x0.8, Score bonus x1.2)", perk2: "A ticking clock, a race against time. (Countdown rate x0.6s, Score bonus x1.3)", perk3: "None", target: 10, display: random(1, 3), speed: "0.6s", bonus: 2.5, second: 40, unlocked: $unlock.level4, score: $record.level4, high: $high.level4, }>> <<set $c1_array to ["#282828",]>> <<set $c2_array to ["gray", "dimgray", "#909090", "#707070"]>> <<elseif $level_num is 5>> <<set $level to { name: "For victory", world: "Lariman", desc: "The Purple cells are dying fast, many of them retreating behind defensive structures. These are capable of withstanding most attacks from the Grey, but not from your Death Beam. You have been promoted to a Chromatic Captain of the 15279th Sphere. Lead your subordinates and kill the High Purple cells hiding inside these structures.", size: "56 or 64", perk1: "Targets to cherish, their value so grand. (Score bonus x1.5)", perk2: "None", perk3: "None", target: 20, display: 1, speed: "1s", bonus: 1.5, second: 100, unlocked: $unlock.level5, score: $record.level5, high: $high.level5, }>> <<set $c1_array to ["purple"]>> <<set $c2_array to ["#BF40BF", "#9F2B68", "#AA336A",]>> <<elseif $level_num is 6>> <<set $level to { name: "For personal benefits", world: "Lariman", desc: "Realizing their eventual defeat, the Purple cells have reached out, not to the Gray, but to the Bureau. They are ready to offer an eternal servitude to the Chief if we stop the intervention. Our analysts have concluded that this will bring immense advantages. As such, not only will we stop supporting the Gray but also kill them. The Purple can have the world. Your job is to remove every Prime Gray cells on the battlefield.", size: "64", perk1: "Sensing danger, the preys spook. (Time limit x0.6, countdown rate x0.5s)", perk2: "Targets to cherish, their value so grand. (Score bonus x1.5)", perk3: "None", target: 10, display: 1, speed: "0.5s", bonus: 2.8, second: 30, unlocked: $unlock.level6, score: $record.level6, high: $high.level6, }>> <<set $c1_array to ["rgb(108, 122, 137)"]>> <<set $c2_array to ["#4B0082", "#9932CC", "#BA55D3", "#FF00FF", "gray", "dimgray", "#909090", "#707070",]>> <<elseif $level_num is 7>> <<set $level to { name: "Hidden emptiness", world: "Passionia", desc: "The war over, your service is required back in Passionia. Some Void cells are acting as parasite, slowly taking over the body of native cells. The pace of this new plague is unpredictable, and our intelligence is working hard to determine its nature. For now, detect and remove as many as infected cells as your Sphere can.", size: "90", perk1: "Parasites with a mission, spreading fast and far. (Time limit x0.6, countdown rate x0.5s)", perk2: "Masters of disguise, blending in so well. (Targets can hide under the skin of native cells)", perk3: "None", target: 15, display: 1, speed: "0.5s", bonus: 1, second: 30, unlocked: $unlock.level7, score: $record.level7, high: $high.level7, }>> <<set $c1_array to ["black", "#4d0000", "#995c00"]>> <<set $c2_array to ["#8B0000", "#EE4B2B", "#800020", "#E97451", "#D22B2B",]>> <<elseif $level_num is 8>> <<set $level to { name: "Idiotic wills", world: "Passionia", desc: "The Bureau has discovered that many native cells intentionally bond with the Void cells for apparently no reason. It is accordingly to their free will, but this will endanger others. We have identify some brokers of this unnature relations. Decimate them.", size: "120", perk1: "Targets to cherish, their value so grand. (Score bonus x2)", perk2: "Parasites with a mission, spreading fast and far. (Time limit x0.6, countdown rate x0.5s)", perk3: "For the masses, not just a few. (Unwanted casualties are expected)", target: 20, display: 1, speed: "0.5s", bonus: 2, second: 30, unlocked: $unlock.level8, score: $record.level8, high: $high.level8, }>> <<set $c1_array to ["#ff1a1a"]>> <<set $c2_array to ["#8B0000", "#EE4B2B", "#800020", "#E97451", "#D22B2B", "#4d0000", "#995c00"]>> <<elseif $level_num is 9>> <<set $level to { name: "Unwanted from beyond", world: "Passionia", desc: "We were wrong. Those native cells were actually controlled by some cultist organization, who want to summon an abnormal Void cell. They have succeeded, and the cell is spreading fast throughout a population center. While your Death Beam cannot penetrate its weird physic, you can easily remove the surrounding cultists. Do your job and wait for other Spheres.", size: "324", perk1: "Parasites with a mission, spreading fast and far. (Time limit x0.6, countdown rate x0.5s)", perk2: "None", perk3: "None", target: 25, display: random(3), speed: "0.5s", bonus: 1, second: 30, unlocked: $unlock.level9, score: $record.level9, high: $high.level9, }>> <<set $c1_array to ["#995c00",]>> <<set $c2_array to ["#8B0000", "#EE4B2B", "#800020", "#E97451", "#D22B2B",]>> <<elseif $level_num is 10>> <<set $level to { name: "Nightmare unending", world: "Passionia", desc: "The cultists are broken and the civilians are being evacuated, but the abnormal Void cell is still expanding fast. It also spawns more Void cells, threatening the takeover the whole world. Your Sphere, along with the 3102nd and 4720th, are tasked with reducing these invaders' number as the Bureau comes up a solution.", size: "304", perk1: "Parasites with a mission, spreading fast and far. (Time limit x0.5, countdown rate x0.3s)", perk2: "None", perk3: "None", target: 25, display: 1, speed: "0.3s", bonus: 1, second: 25, unlocked: $unlock.level10, score: $record.level10, high: $high.level10, }>> <<set $c1_array to ["black", "#1a1a1a", "#404040"]>> <<set $c2_array to ["#8B0000", "#EE4B2B", "#D22B2B", "white", "white", "white", "white"]>> <<elseif $level_num is 11>> <<set $level to { name: "Failing compassion", world: "Passionia", desc: "The Bureau has decided that the cost of destroying this abnormal Void cell is higher than the value of Passionia. We will allow as many as refugees as we can, but once leaving their world, the native cells may not survive. Protect those who make it to our site, and eliminate the chasing enemies.", size: "100", perk1: "Parasites with a mission, spreading fast and far. (Time limit x0.6, countdown rate x0.5s)", perk2: "None", perk3: "None", target: 20, display: random(5,10), speed: "0.5s", bonus: 1, second: 30, unlocked: $unlock.level11, score: $record.level11, high: $high.level11, }>> <<set $c1_array to ["black", "#1a1a1a", "#404040"]>> <<set $c2_array to ["#8B0000", "#EE4B2B", "#D22B2B", "white", "white", "white", "white"]>> <<else>> <<set $level to { name: "Underdevelopment", world: "None", desc: "None", size: "64", perk1: "None", perk2: "None", perk3: "None", target: 10, display: 1, speed: "0.5s", bonus: 2.8, second: 30, unlocked: $unlock.level7, score: $record.level7, high: $high.level7, }>> <</if>> <</nobr>>
<<nobr>><<liveblock>><div id="main-interface" align="center"> <<include "Level desc">> <div id="scoring-widget"><<display "Scoring widget">></div> <div id="target-widget"><<display "Level info widget">></div> <table> <tr> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> </tr> <tr> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> </tr> <tr> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> </tr> <tr> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> </tr> <tr> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> </tr> </table> </div><</liveblock>><</nobr>>
<<nobr>> <div class="menu-button"> <<link "Story mode" "Level">> <<script>>Dialog.close();<</script>> <<set $countdown to "disable">> <</link>> </div> <div class="menu-button"> <<link "Endless mode" "Endless">> <<script>>Dialog.close();<</script>> <<set $countdown to "disable">> <</link>> </div> <div class="menu-button"> <<link "Introduction" "Introduction">> <<script>>Dialog.close();<</script>> <<set $countdown to "disable">> <</link>> </div> <div class="menu-button"> <<link "Bug reporting">> <<script>>window.open("https://forms.gle/PhC9FdKnzVTpjgHC8"); <</script>> <<set $countdown to "disable">> <</link>> </div> <</nobr>>
<<nobr>><div id="level"> <table><tr> <td class="nav"> <<button "Previous">> <<if $endless_mode gt 1>><<set $endless_mode -= 1>><</if>> <<update>> <</button>> </td> <td class="content"><<liveblock>> <<include "Endless desc">> <div style="font-size: 120%"><b>Trial $endless_mode - $level.name</b></div> <<if $endless_mode < 4>> Score: <b>$level.score</b> - High score: <b>$level.high</b> <br>World: <b>$level.world</b> <br>Targets: <b>$level.target</b><<target>> <div style="text-align: justify; padding: 1vw;">Objective: $level.desc</div> <table style="width: fit-content; margin: auto; text-align: left;"><tr> <td style="vertical-align: top;">Perks:</td> <td style="vertical-align: top;"> 1. $level.perk1 <br>2. $level.perk2 <br>3. $level.perk3 </td> </tr></table> <div class="menu-button"><<link "Begin">> /* <<goto `either("5x5", "circle", "triangle", "5x5", "6x9", "broken", "5x5", "5x5",)`>> */ <<goto $level.name>> <<set $target_found to 0>> <<set $target_possible to "∞">> <<set $score_ext to "∞">> <<set $second to $level.second>> <<set $score to 0>> <<set $endless_choice to "correct">> <<set $countdown to "enable">> <</link>></div> <<else>> <div style="text-align: center">Have ideas for a level or a trial? Suggest it to me.</div> <div class="menu-button"><<link "Suggest">> <<script>>window.open("https://forms.gle/8VxNdygEaUBd9BX5A"); <</script>> <</link>></div> <</if>> <</liveblock>></td> <td class="nav"> <<button "Next">> <<set $endless_mode += 1>> <<update>> <</button>> </td> </tr></table> </div><</nobr>>
<<nobr>> <table style="width:100%;"><tr> <td>Time:</td> <td style="text-align: left, text-indent: 5px, font-weight: bold;"> <span id="countdown">$second</span></td> <td style="text-align: right">/</td> <td style="text-align: right">$second</td> </tr><tr> <td style="width:30%;">Target:</td> <td style="text-align: left, text-indent: 5px; font-weight: bold;">$target_found</td> <td style="text-align: right">/</td> <td style="text-align: right">$target_possible</td> </tr><tr> <td>Score:</td> <td style="text-align: left, text-indent: 5px; font-weight: bold;">$score</td> <td style="text-align: right">/</td> <td style="text-align: right">$score_ext</td> </tr></table> <</nobr>>
<<nobr>><<liveblock>><div id="main-interface" align="center"> <<include "Endless desc">> <<switch random(1,4)>> <<case 1>> <<set $c1_array to ["rgb(222, 159, 52)",]>> <<set $c2_array to ["rgb(255, 189, 71)", "rgb(255, 189, 111)", "rgb(255, 189, 75)"]>> <<case 2>> <<set $c1_array to ["rgb(0, 121, 0)",]>> <<set $c2_array to ["rgb(120, 218, 95)", "rgb(59, 218, 95)", "rgb(59, 218, 167)"]>> <<case 3>> <<set $c1_array to ["rgb(158, 164, 174)",]>> <<set $c2_array to ["rgb(237, 139, 192)", "rgb(190, 139, 192)", "rgb(190, 171, 219)"]>> <<case 4>> <<set $c1_array to ["rgba(118, 78, 214, 1)",]>> <<set $c2_array to ["rgba(118, 78, 214, 0.5)", "rgba(118, 78, 214, 0.4)", "rgba(118, 78, 214, 0.3)"]>> <</switch>> <<set $map_height to 20>> <<set $map_width to 13>> <<set $world_size to $map_height*($map_width-3)>> <<set $c1_chosen to false>> <div id="scoring-widget"><<display "Scoring widget">></div> <div id="target-widget"><<display "Level info widget">></div> <table> <<for _i to 0; _i lt $map_height; _i++>> <tr> <<for _j to 0; _j lt ($map_width-1)/2; _j++>> <td><<bc-endless>></td> <</for>> <td><<s-button "white" "">></td> <td><<s-button "repeating-radial-gradient(red, purple 10%, black 20%); box-shadow: inset 0 0 0 2px black;" "white">></td> <td><<s-button "white" "">></td> <<for _j to 0; _j lt ($map_width-1)/2; _j++>> <td><<bc-endless>></td> <</for>> </tr> <</for>> </table> <div class="menu-button" style="font-size: 80%;"><<link "Give up" "Endless">> <<set $endless_choice to "give up">> <<display "Endless calculation">> <</link>></div> </div><</liveblock>><</nobr>>
<<nobr>><<liveblock>><div id="main-interface" align="center"> <<include "Endless desc">> <div id="scoring-widget"><<display "Scoring widget">></div> <div id="target-widget"><<display "Level info widget">></div> <<set $shade_color to either($c2_array, "rgba(0,0,0,0)", "rgba(0,0,0,0.1)", "rgba(0,0,0,0.2)", "rgba(0,0,0,0.3)", "rgba(0,0,0,0.5)",)>> <<set $shadow_inset to "; box-shadow: inset 0 0 9em " + $shade_color>> <<set $c1_array to [ "linear-gradient(90deg, red, yellow, green)" + $shadow_inset, "linear-gradient(0deg, yellow, red, purple)" + $shadow_inset, "linear-gradient(90deg, blue, yellow, red)" + $shadow_inset, "linear-gradient(0deg, green, yellow, blue)" + $shadow_inset, "linear-gradient(90deg, blue, green, red)" + $shadow_inset, "linear-gradient(0deg, red, blue, green)" + $shadow_inset, "radial-gradient(red, blue, green)" + $shadow_inset, "radial-gradient(red, yellow, green)" + $shadow_inset, "radial-gradient(blue, green, red)" + $shadow_inset,]>> <<set $circle_size to 19>> <<set $world_size to 206>> <<set $c1_chosen to false>> <table> /*---Layer 1--*/ <tr> <<for _j to 0; _j lt 6; _j++>> <td><<s-button "white" "">></td><</for>> <<for _j to 0; _j lt 7; _j++>> <td><<s-button "#660066" "">></td><</for>> <<for _j to 0; _j lt 6; _j++>> <td><<s-button "white" "">></td><</for>> </tr> /*---Layer 2--*/ <tr> <<for _j to 0; _j lt 4; _j++>> <td><<s-button "white" "">></td><</for>> <<for _j to 0; _j lt 2; _j++>> <td><<s-button "#660066" "">></td><</for>> <<for _j to 0; _j lt 7; _j++>> <td><<bc-endless>></td><</for>> <<for _j to 0; _j lt 2; _j++>> <td><<s-button "#660066" "">></td><</for>> <<for _j to 0; _j lt 4; _j++>> <td><<s-button "white" "">></td><</for>> </tr> /*---Layer 3--*/ <tr> <<for _j to 0; _j lt 3; _j++>> <td><<s-button "white" "">></td><</for>> <<for _j to 0; _j lt 1; _j++>> <td><<s-button "#660066" "">></td><</for>> <<for _j to 0; _j lt 11; _j++>> <td><<bc-endless>></td><</for>> <<for _j to 0; _j lt 1; _j++>> <td><<s-button "#660066" "">></td><</for>> <<for _j to 0; _j lt 3; _j++>> <td><<s-button "white" "">></td><</for>> </tr> /*---Layer 4--*/ <tr> <<for _j to 0; _j lt 2; _j++>> <td><<s-button "white" "">></td><</for>> <<for _j to 0; _j lt 1; _j++>> <td><<s-button "#660066" "">></td><</for>> <<for _j to 0; _j lt 13; _j++>> <td><<bc-endless>></td><</for>> <<for _j to 0; _j lt 1; _j++>> <td><<s-button "#660066" "">></td><</for>> <<for _j to 0; _j lt 2; _j++>> <td><<s-button "white" "">></td><</for>> </tr> /*---Layer 5 to 6--*/ <<for _i to 0; _i lt 2; _i++>><tr> <<for _j to 0; _j lt 1; _j++>> <td><<s-button "white" "">></td><</for>> <<for _j to 0; _j lt 1; _j++>> <td><<s-button "#660066" "">></td><</for>> <<for _j to 0; _j lt 15; _j++>> <td><<bc-endless>></td><</for>> <<for _j to 0; _j lt 1; _j++>> <td><<s-button "#660066" "">></td><</for>> <<for _j to 0; _j lt 1; _j++>> <td><<s-button "white" "">></td><</for>> </tr><</for>> /*---Layer 7 to 8--*/ <<for _i to 0; _i lt 2; _i++>><tr> <<for _j to 0; _j lt 1; _j++>> <td><<s-button "#660066" "">></td><</for>> <<for _j to 0; _j lt 17; _j++>> <td><<bc-endless>></td><</for>> <<for _j to 0; _j lt 1; _j++>> <td><<s-button "#660066" "">></td><</for>> </tr><</for>> /*---Layer 10 (central)--*/ <<for _i to 0; _i lt 3; _i++>><tr> <<for _j to 0; _j lt 1; _j++>> <td><<s-button "#660066" "">></td><</for>> <<for _j to 0; _j lt 7; _j++>> <td><<bc-endless>></td><</for>> <<for _j to 0; _j lt 3; _j++>> <td><<s-button "black; transform: scale(1.2)" "black; transform: scale(1.5);">></td><</for>> <<for _j to 0; _j lt 7; _j++>> <td><<bc-endless>></td><</for>> <<for _j to 0; _j lt 1; _j++>> <td><<s-button "#660066" "">></td><</for>> </tr><</for>> /*---Layer 12 to 13--*/ <<for _i to 0; _i lt 2; _i++>><tr> <<for _j to 0; _j lt 1; _j++>> <td><<s-button "#660066" "">></td><</for>> <<for _j to 0; _j lt 17; _j++>> <td><<bc-endless>></td><</for>> <<for _j to 0; _j lt 1; _j++>> <td><<s-button "#660066" "">></td><</for>> </tr><</for>> /*---Layer 14 to 15--*/ <<for _i to 0; _i lt 2; _i++>><tr> <<for _j to 0; _j lt 1; _j++>> <td><<s-button "white" "">></td><</for>> <<for _j to 0; _j lt 1; _j++>> <td><<s-button "#660066" "">></td><</for>> <<for _j to 0; _j lt 15; _j++>> <td><<bc-endless>></td><</for>> <<for _j to 0; _j lt 1; _j++>> <td><<s-button "#660066" "">></td><</for>> <<for _j to 0; _j lt 1; _j++>> <td><<s-button "white" "">></td><</for>> </tr><</for>> /*---Layer 16--*/ <tr> <<for _j to 0; _j lt 2; _j++>> <td><<s-button "white" "">></td><</for>> <<for _j to 0; _j lt 1; _j++>> <td><<s-button "#660066" "">></td><</for>> <<for _j to 0; _j lt 13; _j++>> <td><<bc-endless>></td><</for>> <<for _j to 0; _j lt 1; _j++>> <td><<s-button "#660066" "">></td><</for>> <<for _j to 0; _j lt 2; _j++>> <td><<s-button "white" "">></td><</for>> </tr> /*---Layer 17--*/ <tr> <<for _j to 0; _j lt 3; _j++>> <td><<s-button "white" "">></td><</for>> <<for _j to 0; _j lt 1; _j++>> <td><<s-button "#660066" "">></td><</for>> <<for _j to 0; _j lt 11; _j++>> <td><<bc-endless>></td><</for>> <<for _j to 0; _j lt 1; _j++>> <td><<s-button "#660066" "">></td><</for>> <<for _j to 0; _j lt 3; _j++>> <td><<s-button "white" "">></td><</for>> </tr> /*---Layer 18--*/ <tr> <<for _j to 0; _j lt 4; _j++>> <td><<s-button "white" "">></td><</for>> <<for _j to 0; _j lt 2; _j++>> <td><<s-button "#660066" "">></td><</for>> <<for _j to 0; _j lt 7; _j++>> <td><<bc-endless>></td><</for>> <<for _j to 0; _j lt 2; _j++>> <td><<s-button "#660066" "">></td><</for>> <<for _j to 0; _j lt 4; _j++>> <td><<s-button "white" "">></td><</for>> </tr> /*---Layer 19--*/ <tr> <<for _j to 0; _j lt 6; _j++>> <td><<s-button "white" "">></td><</for>> <<for _j to 0; _j lt 7; _j++>> <td><<s-button "#660066" "">></td><</for>> <<for _j to 0; _j lt 6; _j++>> <td><<s-button "white" "">></td><</for>> </tr> </table> <div class="menu-button" style="font-size: 80%;"><<link "Give up" "Endless">> <<set $endless_choice to "give up">> <<display "Endless calculation">> <</link>></div> </div><</liveblock>><</nobr>>
<<nobr>><<liveblock>><div id="main-interface" align="center"> <<include "Endless desc">> <<set $square_size to random(10,15)>> <<set $world_size to $square_size*$square_size>> <<set $c1_chosen to false>> <div id="scoring-widget"><<display "Scoring widget">></div> <div id="target-widget"><<display "Level info widget">></div> <table> <<for _i to 0; _i lt $square_size; _i++>> <tr> <<for _j to 0; _j lt $square_size; _j++>> <td><<bc-endless>></td> <</for>> </tr> <</for>> </table> <div class="menu-button" style="font-size: 80%;"><<link "Give up" "Endless">> <<set $endless_choice to "give up">> <<display "Endless calculation">> <</link>></div> </div><</liveblock>><</nobr>>
<<nobr>> <b>Target</b> <br><<target>> <br><b>High score</b> <br>$level.high <</nobr>>
<<nobr>> <<set $c1_chosen to false>> <<if $endless_mode is 1>> <<set $level to { name: "The Hidden Assimilation", world: "Chaotic Domain", desc: "This world is being infiltrated by Ghost cells from another dimension. Not everyone can see these invisible enemies, who turn even more elusive once bonding and taking over the body of native cells. You, however, can detect them with True Sight. Find the Ghost cells and destroy them.", size: "", perk1: "Life's a mystery, full of surprises untold. (Cells' size changes overtime)", perk2: "Never knowing what the next hour may hold. (Deadline oscillates wildly)", perk3: "Unpredictable and changing, like a wild dream. (Score bonus varies)", target: "∞", display: 1, speed: "0.5s", bonus: 1, second: 50, unlocked: 1, score: $record.endless1, high: $high.endless1, }>> <<set $level.second to random(50,100)>> <<set $second to $level.second>> <<set $level.bonus to randomFloat(0.1, 2)>> <<set $c1_array to ["rgb(50 ,0, 0)", "rgb(0 ,50, 0)", "rgb(0 ,0, 50)", "rgba(50 ,0, 0, 0.8)", "rgba(0 ,50, 0, 0.8)", "rgba(0 ,0, 50, 0.8)",]>> <<set $c2_array to ["rgb(227, 229, 81)", "rgb(193, 229, 81)", "rgb(129, 229, 81)", "rgb(129, 184, 121)", "rgb(129, 157, 121)", "rgb(129, 157, 181)", "rgb(129, 187, 181)", "rgb(129, 233, 181)", "rgb(231, 146, 181)",]>> <<elseif $endless_mode is 2>> <<set $level to { name: "The Eternal Belief", world: "Cyclical Nature", desc: "Some native cells believe that all crimes and disasters will be eradicated if they finish the journey to the end of the world. At the boundary, they claim, lays the ultimate machine capable of manipulating reality. Not many outsiders really care about this ritual, since the infinity of Cyclical Nature makes it impossible, but they wish to preserve these cells due to their unique appearance. Watch over the cells during their journey and eliminate any ambushers with your Death Beam.", size: "", perk1: "Fast-acting ambushs, a blur of surprise. (Countdown rate x0.1s, Score bonus x1.5)", perk2: "The quickest ambusher never leaves you with eyes wide. (Time limit x0.6, Score bonus x2)", perk3: "None", target: "∞", display: random(1,3), speed: "0.1s", bonus: 3.5, second: 30, unlocked: 1, score: $record.endless2, high: $high.endless2, }>> <<set $c1_array to ["rgb(222, 159, 52)", "rgb(0, 121, 0)", "rgb(158, 164, 174)", "rgba(118, 78, 214, 1)",]>> <<elseif $endless_mode is 3>> <<set $level to { name: "The Beacon of Finality", world: "Inoz", desc: "This world is the sanctuary of the True Dark cell, heavily injured during its eternal war against the Three Supremes. While it has commited acts of great evil, and so have the other cells, its demise would mean a imbalance in reality. Therefore, both sides agreed to cease all hostility, allowing the True Dark cell to recover behind a barrier. Some eager enemy cells, however, may take advantage of this to attack it. Protect the cell at all cost.", size: "", perk1: "Masters of disguise, blending in so well. (Targets can hide under the skin of native cells)", perk2: "Targets to cherish, their value so grand. (Score bonus x2)", perk3: "Sensing danger, the preys spook. (Countdown rate x0.3s)", target: "∞", display: 1, speed: "0.3s", bonus: 2, second: 50, unlocked: 1, score: $record.endless3, high: $high.endless3, }>> <<set $c1_array to [ "linear-gradient(90deg, red, yellow, green)", "linear-gradient(0deg, yellow, red, purple)", "linear-gradient(90deg, blue, yellow, red)", "linear-gradient(0deg, green, yellow, blue)", "linear-gradient(90deg, blue, green, red)", "linear-gradient(0deg, red, blue, green)", "radial-gradient(red, blue, green)", "radial-gradient(red, yellow, green)", "radial-gradient(blue, green, red)", ]>> <<set $c2_array to ["#404040", "#4d4d4d", "#595959", "#666666"]>> <<elseif $endless_mode is 4>> <<set $level to { name: "Underdevelopment", world: "Inoz", desc: "This world is the sanctuary of the True Dark cell, heavily injured during its eternal war against the Three Supremes. While it has commited acts of great evil, and so have the other cells, its demise would mean a imbalance in reality. Therefore, both sides agreed to cease all hostility, allowing the True Dark cell to recover behind a barrier. Some eager enemy cells, however, may take advantage of this to attack it. Protect the cell at all cost.", size: "", perk1: "None", perk2: "None", perk3: "None", target: "∞", display: 1, speed: "0.3s", bonus: 2, second: 50, unlocked: 1, score: $record.endless4, high: $high.endless4, }>> <</if>> <</nobr>>
<<nobr>> <div class="cursor"></div> <div class="cursor2"></div> <<repeat 0.1s>><<script>>setup.changecursor();<</script>><</repeat>> <<if $player is "">> <<set $player to "Nameless">> <</if>> <<display "Bottom sidebar">> /*---------Button for level mode---------*/ <<widget "buttoncolor">> <<set $c1 to either($c1_array)>> <<set $c2 to either($c2_array)>> <<if $c1_chosen isnot true>> <<switch random(1, $level.size-1)>> <<case 1>> <<set $buttoncolor to $c1>> <<set $level.display -= 1>> <<if $level.display is 0>> <<set $c1_chosen to true>> <</if>> <<default>> <<set $buttoncolor to $c2>> <</switch>> <<set $level.size -= 1>> <<else>> <<set $buttoncolor to $c2>> <</if>> <<if $buttoncolor is $c1>> <div class="choice right" @style="'background:' + $c1"> <<button " ">> <<set $score += Math.round($level.second*$level.bonus)>> <<set $target_left -= 1>> <<set $target_found += 1>> <<display "Level calculation">> <<update>> <</button>> </div> <<elseif $c2 isnot "white">> <div class="choice wrong" @style="'background:' + $c2"> <<button " ">> <<set $target_left -= 1>> <<set $target_possible -= 1>> <<display "Level calculation">> <<update>> <</button>> </div> <<else>> <div class="choice inactive" @style="'background:' + $c2"> <<button " ">><</button>></div> <</if>> <</widget>> /*---End button for level mode---*/ /*---Countdown timer---*/ <<if $countdown is "enable">><<silently>> <<repeat $level.speed>> <<set $level.second -= 1>> <<replace "#countdown">> <<if $level.second % 5>> <b>$level.second</b> <<else>> <span style="display: inline-block; -webkit-transform: scale(2); transition-duration: 0.3s;"> $level.second</span> <</if>> <</replace>> <</repeat>> <</silently>><</if>> /*---End countdown timer---*/ /*---Inactive button choice---*/ <<widget "s-button">> <<if _args[1] isnot "">> <<set $button_color to either(_args[0], _args[1])>> <<else>> <<set $button_color to _args[0]>> <</if>> <div class="choice inactive" @style="'background:' + $button_color"> <<button " ">><</button>> </div> <</widget>> /*---End inactive button choice---*/ /*---Target example---*/ <<widget "target">> <<for _i to 0; _i lt $c1_array.length; _i++>> <<set $target_color to $c1_array[_i]>> <div class="target-sample" @style="'background:' + $target_color"> </div> <</for>> <</widget>> /*---End target example---*/ /*---Total score calculation---*/ <<set $total_score = 0>><<for _val range $high>> <<set $total_score += _val>><</for>> /*---End total score calculation---*/ /*---------Button for endless mode---------*/ <<widget "bc-endless">> <<set $c1 to either($c1_array)>> <<set $c2 to either($c2_array)>> <<if $c1_chosen isnot true>> <<switch random(1, $world_size-1)>> <<case 1>> <<set $b_color to $c1>> <<set $level.display -= 1>> <<if $level.display is 0>> <<set $c1_chosen to true>> <</if>> <<default>> <<set $b_color to $c2>> <</switch>> <<set $world_size -= 1>> <<else>> <<set $b_color to $c2>> <</if>> <<if $b_color is $c1>> <div class="choice right" @style="'background:' + $c1"> <<button " ">> <<set $endless_choice to "correct">> <<set $score += Math.round($level.second*$level.bonus)>> <<set $target_found += 1>> <<display "Endless calculation">> <<update>> <</button>> </div> <<else>> <div class="choice wrong" @style="'background:' + $c2"> <<button " ">> <<set $endless_choice to "false">> <<display "Endless calculation">> <<update>> <</button>> </div> <</if>> <</widget>> /*---End button for endless mode---*/ <</nobr>>
<<nobr>><<liveblock>><div id="main-interface" align="center"> <<include "Level desc">> <<set $c1_chosen to false>> <div id="scoring-widget"><<display "Scoring widget">></div> <div id="target-widget"><<display "Level info widget">></div> <<set $shade_color to either("rgba(128,128,128, 0.7)", "rgba(105,105,105, 0.7)", "rgba(0,0,0,0)", "rgba(0,0,0,0)")>> <<set $shadow_inset to "; box-shadow: inset 0 0 9em " + $shade_color>> <<set $c1_array to ["#BF40BF" + $shadow_inset, "#9F2B68" + $shadow_inset, "#AA336A" + $shadow_inset,]>> <table> <<for _i to 0; _i lt 5; _i++>> <tr> <<for _j to 0; _j lt 8; _j++>> <td><<buttoncolor>></td> <</for>> </tr> <</for>> </table> </div><</liveblock>><</nobr>>
<<nobr>><<liveblock>><div id="main-interface" align="center"> <<include "Level desc">> <<set $c1_chosen to false>> <div id="scoring-widget"><<display "Scoring widget">></div> <div id="target-widget"><<display "Level info widget">></div> <table> <tr> <td></td> <td></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td></td> <td></td> </tr> <tr> <td></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td></td> </tr> <tr> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> </tr> <tr> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> </tr> <tr> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<s-button "rgb(108, 122, 137)" "">></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> </tr> <tr> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> </tr> <tr> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> </tr> <tr> <td></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td></td> </tr> <tr> <td></td> <td></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td><<buttoncolor>></td> <td></td> <td></td> </tr> </table> </div><</liveblock>><</nobr>>
<<nobr>><<liveblock>><div id="main-interface" align="center"> <<include "Level desc">> <<set $c1_chosen to false>> <div id="scoring-widget"><<display "Scoring widget">></div> <div id="target-widget"><<display "Level info widget">></div> <<set $level.size to either(56, 64)>> <<if $level.size is 64>><table> <tr> <<for _j to 0; _j lt 10; _j++>> <td><<s-button "black" "">></td><</for>> </tr> <<for _i to 0; _i lt 8; _i++>> <tr> <td><<s-button "black" "">></td> <<for _j to 0; _j lt 8; _j++>> <td><<buttoncolor>></td><</for>> <td><<s-button "black" "">></td> </tr> <</for>> <tr> <<for _j to 0; _j lt 10; _j++>> <td><<s-button "black" "">></td><</for>> </tr> </table><</if>> <<if $level.size is 56>><table> <tr> <td></td> <td></td> <<for _j to 0; _j lt 6; _j++>> <td><<s-button "black" "">></td><</for>> <td></td> <td></td> </tr> <tr> <td></td> <td><<s-button "black" "">></td> <<for _j to 0; _j lt 6; _j++>> <td><<buttoncolor>></td><</for>> <td><<s-button "black" "">></td> <td></td> </tr> <tr> <td></td> <td><<s-button "black" "">></td> <<for _j to 0; _j lt 6; _j++>> <td><<buttoncolor>></td><</for>> <td><<s-button "black" "">></td> <td></td> </tr> <tr> <td><<s-button "black" "">></td> <<for _j to 0; _j lt 8; _j++>> <td><<buttoncolor>></td><</for>> <td><<s-button "black" "">></td> </tr> <tr> <td><<s-button "black" "">></td> <<for _j to 0; _j lt 8; _j++>> <td><<buttoncolor>></td><</for>> <td><<s-button "black" "">></td> </tr> <tr> <td><<s-button "black" "">></td> <<for _j to 0; _j lt 8; _j++>> <td><<buttoncolor>></td><</for>> <td><<s-button "black" "">></td> </tr> <tr> <td><<s-button "black" "">></td> <<for _j to 0; _j lt 8; _j++>> <td><<buttoncolor>></td><</for>> <td><<s-button "black" "">></td> </tr> <tr> <td></td> <td><<s-button "black" "">></td> <<for _j to 0; _j lt 6; _j++>> <td><<buttoncolor>></td><</for>> <td><<s-button "black" "">></td> <td></td> </tr> <tr> <td></td> <td><<s-button "black" "">></td> <<for _j to 0; _j lt 6; _j++>> <td><<buttoncolor>></td><</for>> <td><<s-button "black" "">></td> <td></td> </tr> <tr> <td></td> <td></td> <<for _j to 0; _j lt 6; _j++>> <td><<s-button "black" "">></td><</for>> <td></td> <td></td> </tr> </table><</if>> </div><</liveblock>><</nobr>>
<<nobr>><<liveblock>><div id="main-interface" align="center"> <<include "Level desc">> <<set $c1_chosen to false>> <div id="scoring-widget"><<display "Scoring widget">></div> <div id="target-widget"><<display "Level info widget">></div> <table> <<for _i to 0; _i lt 8; _i++>> <tr> <<for _j to 0; _j lt 8; _j++>> <td><<buttoncolor>></td> <</for>> </tr> <</for>> </table> </div><</liveblock>><</nobr>>
<<nobr>> <<if $target_left is 0>> <<set $record["level" + $level_num] to $score>> <<set $countdown to "disable">> <<if $high["level" + $level_num] < $score or ndef $high["level" + $level_num]>> <<set $high["level" + $level_num] to $score>> <</if>> <<if $score gte $score_ext*80/100>> <<set $nextlevel to $level_num + 1>> <<set $unlock["level" + $nextlevel] to 1>> <<set $record["level" + $nextlevel] to 0>> <<if ndef $high["level" + $nextlevel]>> <<set $high["level" + $nextlevel] to 0>> <</if>> <<notify 7s>> 80% of possible score achieved. <br>Level $level_num completed. <br>Level $nextlevel unlocked. <</notify>> <<set $level_num += 1>> <<else>> <<notify 7s>> 80% of possible score not achieved. <br>Level $level_num incompleted. <</notify>> <</if>> <<set $target_left to 1>> <<goto Level desc>> <</if>> <</nobr>>
<<nobr>><<if $endless_choice isnot "correct">> <<if $endless_choice is "false">> <<notify 7s>> Wrong cell chosen. <br>Mission temporarily called off. <</notify>> <<elseif $endless_choice is "give up">> <<notify 7s>> Mission temporarily changed hand. <br>Other Chromatic Soldiers dispatched. <</notify>> <</if>> <<set $record["endless" + $endless_mode] to $score>> <<if $high["endless" + $endless_mode] < $score>> <<set $high["endless" + $endless_mode] to $score>> <</if>> <<set $countdown to "disable">> <<set $endless_choice to "correct">> <<goto Endless desc>> <</if>><</nobr>>
<<nobr>> <style> #score-table > table { border-collapse: collapse; border: 3px solid black; text-align: left; width: 30vw; } #score-table > table td { border: 1px solid black; padding: 7px; width: fit-content; } #score-table > table th { background: rgba(0,0,0,0.7); color: white; border: 1px solid black; text-align: center; padding: 7px; } </style> <div id="score-table"> <table> <tr><th colspan="5"><b>STORY MODE</b></th></tr> <<set $score_count to 0>><<set $score_count_total to 0>> <<for _i to 0; _i lt 20; _i++>> <tr> <<set $score_count +=1>> <<if def $high["level" + $score_count]>> <<set $score_count_total += $high["level" + $score_count]>> <td><b>Level $score_count</b></td> <td style="text-align: right"><<print $high["level" + $score_count]>></td> <td style="background: rgba(0,0,0,0.7); width: 1px; padding: 0"></td> <</if>> <<set $score_count +=1>> <<if def $high["level" + $score_count]>> <<set $score_count_total += $high["level" + $score_count]>> <td><b>Level $score_count</b></td> <td style="text-align: right"><<print $high["level" + $score_count]>></td> <</if>> </tr> <</for>> <tr><th colspan="5"><b>Total: $score_count_total</b></th></tr> </table> <br> <table> <tr><th colspan="3"><b>ENDLESS MODE</b></th></tr> <tr style="text-align: center"> <td><b>Trial 1</b></td> <td><b>Trial 2</b></td> <td><b>Trial 3</b></td> </tr><tr style="text-align: center"> <td><<print $high.endless1>></td> <td><<print $high.endless2>></td> <td><<print $high.endless3>></td> </tr> <<set $score_count_total to $high.endless1+$high.endless2+$high.endless3>> <tr><th colspan="3"><b>Total: $score_count_total</b></th></tr> </table> </div> <</nobr>>
<<nobr>><<liveblock>><div id="main-interface" align="center"> <<include "Level desc">> <<set $level.display to 1+random($target_found)>> <div id="scoring-widget"><<display "Scoring widget">></div> <div id="target-widget"><<display "Level info widget">></div> <table> <<for _i to 0; _i lt 10; _i++>> <tr> <<for _j to 0; _j lt 9; _j++>> <td><<buttoncolor>></td> <</for>> </tr> <</for>> </table> </div><</liveblock>><</nobr>>
<<nobr>><<liveblock>><div id="main-interface" align="center"> <<include "Level desc">> <<set $target_possible to $level.target>> <<set $target_left to $level.target - $target_found>> <div id="scoring-widget"><<display "Scoring widget">></div> <div id="target-widget"><<display "Level info widget">></div> <table> <<for _i to 0; _i lt 12; _i++>> <tr> <<for _j to 0; _j lt 10; _j++>> <td><<buttoncolor>></td> <</for>> </tr> <</for>> </table> </div><</liveblock>><</nobr>>
<<nobr>><<liveblock>><div id="main-interface" align="center"> <<include "Level desc">> <<set $level.size to 100>> <<set $level.display to $target_left>> <div id="scoring-widget"><<display "Scoring widget">></div> <div id="target-widget"><<display "Level info widget">></div> <table> /*---Layer 1--*/ <tr> <<for _j to 0; _j lt 7; _j++>> <td><<s-button "white" "">></td><</for>> <<for _j to 0; _j lt 7; _j++>> <td><<buttoncolor>></td><</for>> <<for _j to 0; _j lt 7; _j++>> <td><<s-button "white" "">></td><</for>> </tr> /*---Layer 2 to 6--*/ <<set $in_width to 9>> <<for _i to 0; _i lt 5; _i++>><tr> <<set $in_width += 2>><<set $out_width to (21-$in_width)/2>> <<for _j to 0; _j lt $out_width; _j++>> <td><<s-button "white" "">></td><</for>> <<for _j to 0; _j lt $in_width; _j++>> <td><<buttoncolor>></td><</for>> <<for _j to 0; _j lt $out_width; _j++>> <td><<s-button "white" "">></td><</for>> </tr><</for>> /*---Layer 7--*/ <tr> <<for _j to 0; _j lt 1; _j++>> <td><<s-button "white" "">></td><</for>> <<for _j to 0; _j lt 19; _j++>> <td><<buttoncolor>></td><</for>> <<for _j to 0; _j lt 1; _j++>> <td><<s-button "white" "">></td><</for>> </tr> /*---Layer 8--*/ <tr> <<for _j to 0; _j lt 21; _j++>> <td><<buttoncolor>></td><</for>> </tr> /*---Layer 9--*/ <tr> <<for _j to 0; _j lt 8; _j++>> <td><<buttoncolor>></td><</for>> <<for _j to 0; _j lt 5; _j++>> <td style="background: black;"><<s-button "black; transform: scale(1.4);" "#1a1a1a">></td><</for>> <<for _j to 0; _j lt 8; _j++>> <td><<buttoncolor>></td><</for>> </tr> /*---Layer 10 to 11 to negative 10--*/ <<for _i to 0; _i lt 3; _i++>><tr> <<for _j to 0; _j lt 8; _j++>> <td><<buttoncolor>></td><</for>> <td style="background: black;"><<s-button "black" "#1a1a1a; transform: scale(1.6);">></td> <<for _j to 0; _j lt 3; _j++>> <td style="background: black;"> <<s-button "black; transform: scale(2.4);" "black; transform: scale(2);">></td><</for>> <td style="background: black;"><<s-button "black" "#1a1a1a; transform: scale(1.5);">></td> <<for _j to 0; _j lt 8; _j++>> <td><<buttoncolor>></td><</for>> </tr><</for>> /*---Layer negative 9--*/ <tr> <<for _j to 0; _j lt 8; _j++>> <td><<buttoncolor>></td><</for>> <<for _j to 0; _j lt 5; _j++>> <td style="background: black;"><<s-button "black; transform: scale(1.2);" "#1a1a1a">></td><</for>> <<for _j to 0; _j lt 8; _j++>> <td><<buttoncolor>></td><</for>> </tr> /*---Layer negative 8--*/ <tr> <<for _j to 0; _j lt 21; _j++>> <td><<buttoncolor>></td><</for>> </tr> /*---Layer negative 7--*/ <tr> <<for _j to 0; _j lt 1; _j++>> <td><<s-button "white" "">></td><</for>> <<for _j to 0; _j lt 19; _j++>> <td><<buttoncolor>></td><</for>> <<for _j to 0; _j lt 1; _j++>> <td><<s-button "white" "">></td><</for>> </tr> /*---Layer negative 6 to negative 2--*/ <<set $in_width to 19>> <<for _i to 0; _i lt 5; _i++>><tr> <<set $in_width -= 2>><<set $out_width to (21-$in_width)/2>> <<for _j to 0; _j lt $out_width; _j++>> <td><<s-button "white" "">></td><</for>> <<for _j to 0; _j lt $in_width; _j++>> <td><<buttoncolor>></td><</for>> <<for _j to 0; _j lt $out_width; _j++>> <td><<s-button "white" "">></td><</for>> </tr><</for>> /*---Layer negative 1--*/ <tr> <<for _j to 0; _j lt 7; _j++>> <td><<s-button "white" "">></td><</for>> <<for _j to 0; _j lt 7; _j++>> <td><<buttoncolor>></td><</for>> <<for _j to 0; _j lt 7; _j++>> <td><<s-button "white" "">></td><</for>> </tr> </table> </div><</liveblock>><</nobr>>
<<nobr>><<liveblock>><div id="main-interface" align="center"> <<include "Level desc">> <<set $level.display to 1+($target_found*5)>> <<set $level.size to 100>> <div id="scoring-widget"><<display "Scoring widget">></div> <div id="target-widget"><<display "Level info widget">></div> <table> /*---Layer 1--*/ <tr> <<for _j to 0; _j lt 7; _j++>> <td><<s-button "white" "">></td><</for>> <<for _j to 0; _j lt 7; _j++>> <td><<buttoncolor>></td><</for>> <<for _j to 0; _j lt 7; _j++>> <td><<s-button "white" "">></td><</for>> </tr> /*---Layer 2 to 6--*/ <<set $in_width to 9>> <<for _i to 0; _i lt 5; _i++>><tr> <<set $in_width += 2>><<set $out_width to (21-$in_width)/2>> <<for _j to 0; _j lt $out_width; _j++>> <td><<s-button "white" "">></td><</for>> <<for _j to 0; _j lt $in_width; _j++>> <td><<buttoncolor>></td><</for>> <<for _j to 0; _j lt $out_width; _j++>> <td><<s-button "white" "">></td><</for>> </tr><</for>> /*---Layer 7--*/ <tr> <<for _j to 0; _j lt 1; _j++>> <td><<s-button "white" "">></td><</for>> <<for _j to 0; _j lt 19; _j++>> <td><<buttoncolor>></td><</for>> <<for _j to 0; _j lt 1; _j++>> <td><<s-button "white" "">></td><</for>> </tr> /*---Layer 8--*/ <tr> <<for _j to 0; _j lt 8; _j++>> <td><<buttoncolor>></td><</for>> <<for _j to 0; _j lt 5; _j++>> <td style="background: black;"><<s-button "black; transform: scale(1.4);" "#1a1a1a">></td><</for>> <<for _j to 0; _j lt 8; _j++>> <td><<buttoncolor>></td><</for>> </tr> /*---Layer 9 to 11 to negative 9--*/ <<for _i to 0; _i lt 5; _i++>><tr> <<for _j to 0; _j lt 7; _j++>> <td><<buttoncolor>></td><</for>> <td style="background: black;"><<s-button "black" "#1a1a1a; transform: scale(1.6);">></td> <<for _j to 0; _j lt 5; _j++>> <td style="background: black;"> <<s-button "black; transform: scale(2.4);" "black; transform: scale(2);">></td><</for>> <td style="background: black;"><<s-button "black" "#1a1a1a; transform: scale(1.5);">></td> <<for _j to 0; _j lt 7; _j++>> <td><<buttoncolor>></td><</for>> </tr><</for>> /*---Layer negative 8--*/ <tr> <<for _j to 0; _j lt 8; _j++>> <td><<buttoncolor>></td><</for>> <<for _j to 0; _j lt 5; _j++>> <td style="background: black;"><<s-button "black; transform: scale(1.3);" "#1a1a1a">></td><</for>> <<for _j to 0; _j lt 8; _j++>> <td><<buttoncolor>></td><</for>> </tr> /*---Layer negative 7--*/ <tr> <<for _j to 0; _j lt 1; _j++>> <td><<s-button "white" "">></td><</for>> <<for _j to 0; _j lt 19; _j++>> <td><<buttoncolor>></td><</for>> <<for _j to 0; _j lt 1; _j++>> <td><<s-button "white" "">></td><</for>> </tr> /*---Layer negative 6 to negative 2--*/ <<set $in_width to 19>> <<for _i to 0; _i lt 5; _i++>><tr> <<set $in_width -= 2>><<set $out_width to (21-$in_width)/2>> <<for _j to 0; _j lt $out_width; _j++>> <td><<s-button "white" "">></td><</for>> <<for _j to 0; _j lt $in_width; _j++>> <td><<buttoncolor>></td><</for>> <<for _j to 0; _j lt $out_width; _j++>> <td><<s-button "white" "">></td><</for>> </tr><</for>> /*---Layer negative 1--*/ <tr> <<for _j to 0; _j lt 7; _j++>> <td><<s-button "white" "">></td><</for>> <<for _j to 0; _j lt 7; _j++>> <td><<buttoncolor>></td><</for>> <<for _j to 0; _j lt 7; _j++>> <td><<s-button "white" "">></td><</for>> </tr> </table> </div><</liveblock>><</nobr>>
<<nobr>><<liveblock>><div id="main-interface" align="center"> <<include "Level desc">> <<set $c1_chosen to false>> <<set $height_display to 1 + Math.round($target_found/2.5)>> <<set $level.size to $height_display*9>> <div id="scoring-widget"><<display "Scoring widget">></div> <div id="target-widget"><<display "Level info widget">></div> <table> <<for _i to 0; _i lt $height_display; _i++>> <tr> <<for _j to 0; _j lt 9; _j++>> <td><<buttoncolor>></td> <</for>> </tr> <</for>> <<for _i to 0; _i lt 10-$height_display; _i++>> <tr> <<for _j to 0; _j lt 3; _j++>> <td><<s-button "#8B0000" "#EE4B2B">></td> <td><<s-button "#D22B2B" "#EE4B2B">></td> <td><<s-button "#8B0000" "#D22B2B">></td> <</for>> </tr> <</for>> </table> </div><</liveblock>><</nobr>>