Log In  


i hacked the game so you can buy clickers any time

Cart #bugsbugsbugs-2 | 2023-04-28 | Code ▽ | Embed ▽ | No License

it puts 0.5999 when you try to get 0.6



haha once you get above like 115 per second you can hold down X and C and still make a profit. also I somehow won even though I only had 16961 clicks?


Looks like an oddity with float precision, because adding 0.1 STARTING from 0.5 makes 0.6.
P8 or Lua doesn't have built in rounding, but something like this should work (In theory. I haven't tested it yet):

function round10(n)
  return flr((n + .05) * 10) / 10
end

xps = round10(xps + .1)

thanks for the idea, @Verb!



[Please log in to post a comment]