Skip to content

flurrux/canvas-voxel-game

Repository files navigation

simple voxel game

demo gif

a very simple voxel game that i made using only 2d canvas.

the game has simple physics like jumping and collision with voxels. leftclick to place a voxel and rightclick to destroy one.
look at a voxel and press "j" to catapult yourself on top of it.

the code is not optimized at all and adding a couple hunded voxels will cause the framerate to drop!

game: https://ctx-voxel-game.netlify.app/

why and how?

i just had the strong urge to figure out an occlusion algorithm for voxels and then render them with CanvasRenderingContext2D, my favourite graphics API.

check out some sweet visualizations of the occlusion algorithm! (the page contains large gifs so make sure your wifi is on)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published