12/31/2023 0 Comments Minetest fullscreen![]() I've used SFML for input handling, window and opengl context creation, and 2D drawing for the GUI. Assuming 5 bytes per block (which is quite a low number), it sums up to at least 300MB of memory.Īs for CPU/GPU performances, I have at least 30 frames per second with a view distance of 250 blocks and smooth lighting enabled (per vertex lighting and ambient occlusion), while Minecraft runs terribly slow with the same parameters (about twice slower).īut again, I'm missing many features of Minecraft, so maybe I've done some optimizations that I won't be able to keep in the future. To give you an idea, Minecraft can display the world up to a distance of 256 blocks, that means roughly 70 000 000 blocks. If you cache too much, you end up using enormous amounts of memory. On top of that, you can run into memory problems if you're not careful : improving performances implies most of the time to cache calculations to avoid running them on every frame. So that leaves some room for improvements. But it is written in Java, and some even say it is badly written in Java. My first priority was performances : currently, I only have a very crappy laptop at my disposal, on which Minecraft runs smoothly only with the lowest graphics options. So I wanted to give it a shot : could I program such a game myself ? I really like the simplicity of the game, and the vast opportunities it offers. On top of that, you can play this game on a multi-player server, to build and discover with your friends. These will help you to discover some new areas of the game, by allowing you to dig fast in the stone, of traveling the seas with a boat. Very early in the game, you can build some tools using your inventory, torches for example, or a crafting table, which allows you to create many new things (pickaxes, swords. Then, all monsters will catch on fire and die in a matter of seconds, leaving you alone again in this wide world (~4 times the surface of Earth !). At first you can't fight them (unless you're willing to die after earing a *pshhhhh.*), so your only option is to build yourself a house and wait for the sun to return. What is the point of the game ? Well, soon enough, the night starts to fall, and monsters appear. The only tool you have is your bare hands, with which you can destroy most cubes in the world to collect them, and eventually place them wherever you want. The concept is simple : you begin the game in a wild cubic world, with a few animals around, mountains, trees and the see. It recently happened with Minecraft, the fabulous game by Mojang AB (or you could say just Notch). From time to time, I see a game that is inspiring enough for me to either try to re-code them my way or create a new game that is very similar.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |