Games Can Minecraft Be Built with B4J?

cklester

Well-Known Member
Licensed User
I think Minecraft was originally built in Java. (I'm not sure if it's still that way.) Does that mean that B4J could technically be used to make a clone? Does that also mean it could be multi-platform if built with x-plat in mind? Just curious if it would be as performant. I suspect it should be, since it's just Java all the way down.
 

LucasHeer

Active Member
Licensed User
Longtime User
I think Minecraft was originally built in Java. (I'm not sure if it's still that way.) Does that mean that B4J could technically be used to make a clone? Does that also mean it could be multi-platform if built with x-plat in mind? Just curious if it would be as performant. I suspect it should be, since it's just Java all the way down.
Kinda! B4J and B4X would be awesome for Minecraft.

Even though Minecraft was written in Java, the underlying 3D render engine was written in C/C++. OpenGL handles shaders, rendering, GPU interfacing, camera, etc.. While Java only handles player position, physics, game logic, etc). Rendering could probably be done in B4X/Java, but it would definitely be slower and very time-consuming to develop.

I wrote a CPU-based 3D render engine in pure B4X many years ago, but Minecraft would run at .1FPS with my code 🤣

So you'd want to interface with OpenGL or DirectX. Maybe WebGL.

 

Sandman

Expert
Licensed User
Longtime User
If you don't need to be compatible with Minecraft, it gets easier. There are a number of lightweight clones out there, with their source available. Here's a page I found with a quick search, I bet there are several more.
 
Top