Creating a voxel world on the web

bernatixer

Bernat Torres

Posted on May 20, 2020

Creating a voxel world on the web

[Comment]: I wanted to learn how to create WebGL experiences on the website, so I took the three.js library, which makes it easier. I came up with the idea of creating a voxel world, optimised and infinite, just like Minecraft! This way, I could later use it for other projects.

My Final Project

I wanted to learn how to create WebGL experiences on the website, so I took the three.js library, which makes it easier. I came up with the idea of creating a voxel world, optimised and infinite, just like Minecraft! This way, I could later use it for other projects.

Demo Link

https://bernatixer.github.io/Gevolution/

Link to Code

GitHub logo bernatixer / Gevolution

Just... Evolve

Gevolution

Evolution like three.js based game Gevolution

Demo

You can see the progression of the game in the following page.

Note: Demo is not up to date with the code

Installation

git clone git@github.com:bernatixer/Gevolution
npm i

Usage

Development server

npm start

You can view the development server at localhost:3000.

Production build

npm run build

Note: Install http-server globally to deploy a simple server.

npm i -g http-server

You can view the deploy by creating a server in dist.

cd dist && http-server

Author

License

This project is open source and available under the MIT License.




How I built it (what's the stack? did I run into issues or discover something new along the way?)

I used three.js library to handle all the WebGL logic, also in order to pack all the files into one I used webpack. Finally, to host the project I used GitHub pages as the generated files are static.

Additional Thoughts / Feelings / Stories

I am willing to continue with this project and convert it to a game.

[Final Note]: Hopefully by this summer I would get a playable game :D

💖 💪 🙅 🚩
bernatixer
Bernat Torres

Posted on May 20, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related