L3P3 / minicraft

A voxel-based 3d game, entirely in your browser!
https://l3p3.de/minicraft
22 stars 5 forks source link
game lui minecraft raytracing voxel

minicraft

Screenshot

Minecraft, but based on ray tracing and written in JavaScript, following my own rules.

>>> START MINICRAFT <<<

User manual

Heavily inspired by and somewhat based on the work of @xNotch.

TODOs

How to run locally

I highly recommend using Visual Studio Code and the extension "Live Server". Start it via "Go Live" and open "http://localhost:5500/app-dev.html" to see the result.

If you use another IDE that does not have a similar feature, you may once do sudo apt install esbuild, then run npm start and click the link and open app-dev.html. But I do not recommend this approach.

Build instructions

Building is not needed unless my server is down and you want to mirror https://l3p3.de/minicraft!

After cloning, you need to run npm install once to install the build tools. The build script is designed to run under Linux, see the GitHub actions file and the build script itself to learn more about the build environment.

To bundle the app, run npm run build. The result will be put into the /dist directory and can be tested at "http://localhost:5500/app-prod.html".

My tools

Contribution

I am really happy to answer any questions or getting any kind of feedback. Feel free to open issues or suggest changes by opening a pull request!

License

Just ZLib license, I do not care too much about it.

This game includes slightly modified textures from Minecraft, which is of course owned by Microsoft. Since this is a purely educational project, I deem this fair use.