Magic Tiles Game (desmos)

I made a game on desmos that’s kind of like the mobile game magic tiles 3, and i was wondering if there is any better optimization to be made to the “code” or whatever it’s called. this is my first (completed) desmos game, so i was wondering how things could be optimized.

i just realized i didnt make it to where higher points means higher difficulty yet

uh,here is a another thing that you need to consider if you redo the code:how do you click two at once?

i have zero idea, i don’t think i would be able to as it is js a capability desmos doesnt have, your only able to click one polygon at once

but 2 can come at the same time,so maybe make a check if there already is one at the same y-cordinate before creating a new one

ooh good idea, ill try that out

Yayyyy I made something exactly like that: Friday Night Funkin | Desmos

@Zynxitey @bhssingul

yes i know @NTMDev ..

It is relatively simple to take keyboard input which this game would greatly benefit from. Simply set a large number of variables (corresponding to, say, a s d f) to some prime numbers (say 2 3 5 7) and have a ticker that resets a different variable to zero each tick. Have the user type a s d or f into that variable and do something different on each tick depending on the value of that variable. For instance if the user types a the variable will have value 2 and you can click the first block. However there is an issue with this: if the user inputs two letters at the same time the result with be a * s or whatever two letters were inputted which is why we gave each letter a prime value. Using the built in factoring method you can recover the initial inputs for a perfect within tick dual input detection.

can u put that into slow ppl terms

Basically, he has a slider, and you can input pre-defined variables that simulate hotkeys.