4 ms·
Minecraft is also one of those rare scenarios where OOP is super useful. Can't think of something more OOP than a block-based world with entities that have simi
by sam0x17 4y ago
Minecraft is also one of those rare scenarios where OOP is super useful. Can't think of something more OOP than a block-based world with entities that have similar but varying capabilities, and Java, is of course, the reference implementation for most people for OOP.
- glouwbug 4y agoAll games use some form of OOP polymorphism until cache misses outpace code readability. Entity systems (think of C unions with enums for the type) fix most cache coherency performance issues [1]. On Bedrock chunks are just stored in a forked Google leveldb [2]. Working on Minecraft is a multiplatform backend database gig first and foremost. It's like working at AWS, but your customers are predominantly children, and their businesses are the worlds they create [1] https://github.com/skypjack/entt https://github.com/skypjack/entt [2] https://minecraft.fandom.com/wiki/Bedrock_Edition_level_format https://minecraft.fandom.com/wiki/Bedrock_Edition_level_form...