Skip to content

VoxLords - ThreeJS WebGL game with a simple voxel engine

License

Notifications You must be signed in to change notification settings

konoplyanikovd/VoxLords

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VoxLords

Play the game here: https://voxlords.webgl.nu

Also on Chrome Experiments: https://www.chromeexperiments.com/experiment/voxlords

A little game engine test: https://threejs.webgl.nu

Description

VoxLords is a ThreeJS WebGL game with a simple voxel engine. It also provides a implementation for loading .vox files that are created with MagicaVoxel (https://voxel.codeplex.com/).

The code is free to use but I would appreciate if you give me credit when using it.

The code has NOT been polished and is provided "as is". There are a lot of code that are redundant and there are tons of improvements that can be made.

I haven't had time to create some description of the code layout but if you have any questions, feel free to contact me ([email protected]).

The game implements the following (and more):

  • Voxel engine with chunks
  • Basic greedy algorithm for optimizing chunks
  • Sound loader with volume based on length to objects
  • Basic block physics
  • Voxel explosions
  • Reading game maps from PNG image files
  • ".vox" file loading into chunks
  • etc..

Testing

Install nodejs and run "cd server; nodejs server.js". Then point your browser to https://localhost:8081

Screenshot

alt tag

About

VoxLords - ThreeJS WebGL game with a simple voxel engine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 96.2%
  • HTML 3.7%
  • Shell 0.1%