r/ProgrammerHumor • • Oct 07 '26

Meme minecraftException

Post image
9.3k Upvotes

830 comments sorted by

View all comments

Show parent comment

75

u/2580374 Oct 07 '26

I had no idea about slay the spire, that's crazy

131

u/WeirdIndividualGuy Oct 07 '26

And it worked out so well, the dev decided not to use Java ever again in their games

28

u/BrodatyBear Oct 08 '26

To be fair, for those types of games, devs switch from languages like Java and C#/MonoGame (example: Hades switched to custom C++ engine before release), at least before MS introduced solid, native AOT. Not because the language is problematic (it's fine for this type of game) but because porting them is painful or impossible without rewrite or strange hacks.
There's no official JVM for consoles, and moreover, platforms themselves just disallow JIT compilation due to security reasons. That's one of the reasons why Unity created IL2CPP (their AOT compiler)).

16

u/CAPS_LOCK_OR_DIE Oct 07 '26

Its actually very cool to poke around in if you have the opportunity. There's some spaghetti, but overall its a pretty clever codebase.

1

u/CheezeyCheeze Oct 08 '26

What makes it clever? Link?

3

u/CAPS_LOCK_OR_DIE Oct 08 '26

The way they handle block and damage I found to be an interesting solution. Rather than making each card have a block value and damage value, Block and Damage are a separate class that gets called be each card as needed.

I'm no game dev, so I thought that was a neat way to handle it. The code base isn't anywhere I can link to that I know of. I found this out poking through the local game file on my desktop.

-1

u/MoonHash Oct 07 '26

That's because it's not true lol STS1 was built in unity

4

u/Gimegkos Oct 07 '26

No, its libgdx