local TESTHELPER_unlocks = false and not _RELEASE_MODE
someone's trying very hard to make sure this option isn't turned on!
Tarot = HEX('424e54'),--HEX('29adff'),
heh. I love seeing this sort of thing in a released game: clearly the color used to be 29adff, and someone changed it to 424e54, but they weren't sure if it was gonna stay that way, so they just commented out the old color
although getting this game to rendering anything like pixels is going to be tricky. it's infinitely scalable so you are always looking at scaled graphics, and usually through a CRT filter
so fun fact about balatro: It's possible to break the game's score counter by very carefully setting up a situation where you score infinity points.
Here's a video of RT doing it:
https://www.youtube.com/watch?v=ICrA_os9enY
EDIT: corrected video link
This is what you see when that happens:
"naneinf". which is confusing? why not an infinity symbol, or just NaN?
it turns out this is because of how it's switched to exponential notation, as the number is over 100,000,000,000.
It's rendering two numbers, separated by an "e". The first number is NaN, the second number is Infinity.
thus the weirdness that is "naneinf"
to represent the same sort of nonsense:
local x = math.acos(1/0)
local y = 1/0
print(x .. "e" .. y)
prints "naneinf"
the actual code is more complicated (because they're calculating the X and Y on the fly from one initial number, but I suspect that initial number is simply infinity. I'll have to check how it acts for really-big-but-not-infinity numbers
The absolute largest score you can have in Balatro is:
179750000000000001574318625484977898947260384037600330576926950431334251464818957550608705465051390139071003182796667378943344166189795259975644251354948785593376457287055832302290103144793299576893201789058992181691677134208984158120331833402432578197933132694173654650337834325389943879700658027417024069631
It will render as 1.797e308
fun comment:
WHY ON EARTH DOES THIS LINE MAKE IT RUN 2X AS FAST???
that next line is commented out, though
I accidentally made all the cards invisible, which is going to make it a little hard to play
@foone I don't play Balatro but if anyone else had posted this I would've assumed this was just a thing the game would let you do to yourself
@thepi oh it definitely is. some blinds make you do this.
@foone excellent