Nice! it does start lagging in the end, i tried to avoid this but i guess javascript is not built for these quantities, thanks for playing!
pyroxdd
Creator of
Recent community posts
i can see that youre spending the third (last) currency on upgrades instead of merging into tier 3 unit, always get a tier 3 unit and upgrade it as much as possible,
i dont have any problems winning with radiation / explosion / ray but thats probably because i know what to do, youre really close from getting into the part where you say "thats all they can do?" :D because tier 3 units get really OP really fast when done correctly
theres two buttons labeled "merge", one is for merging tier 1 units, and one is for merging tier 2 units
once you click the button, you need to select 3 units, either by clicking at them directly, or in the unit list.
when the button says 3/3, you can click the button next to it to buy the upgraded unit (if you cant afford it, you cant finish merging)
i am aware of this, it was the only thing i could think of to make multiple of them at the same time, because otherwise every time you start playing it, the previous sound (from the same file) would stop, and it sounds pretty weird, as far as i know there isnt a way to make custom audio callback in JS, which ive done already in SDL, so there wouldnt be a problem to remake it in JS.
I didnt know it downloads the sound every time.
I dont think its the source of the lag, i think the obfuscation is
you arent upgrading global radiation crit chance, as well as crit chance on the unit itself, YOU CAN GO BEYOND 100%, it makes huge difference for each 100% crit chance the damage multiplies by crit damage, so in your case you have 100% crit chance and 3400% crit damage, so you get damage x34, if you would get 100% more crit chance, you would have x34x34 damage which is x1156 and so on
i think i did something wrong when obfuscating the code and it somehow makes it slower, i dont remember it being laggy at all, just when i released it on itch it started...
the enemy damage should be the same everywhere, i cant think of a way how it could be different on different machines,
maybe you forgot to upgrade everything, maybe the stats on the unit itself? the crit chance/damage starts doing magic in the lategame, because there isnt limit on crit chance and it scales multiplicatively