PC Gamer
Published
·
Balatro's mind-bending code uses mouse jitter for random number generation, along with a bunch of clever maths…
A deep dive into the source code of the roguelike deckbuilder Balatro reveals clever mathematical tricks and unconventional methods for random number generation, including the use of mouse sensor jitter. While some aspects of the code are described as 'horrible' or 'bad practices,' the overall implementation is praised for its ingenuity.
▸ entities in this article