Ask coding questions

← Back to all posts
CSS to make a 3d voxel game
Yimmee

Will i be able to use CSS on images to make a 3d game about cubes. Like minecraft, but entirely css; no canvas allowed.

Voters
Yimmee
Comments
hotnewtop
Coder100

it would be pretty hard

first off, how will you be able to add player movement? how about collisions?
second of all, how will you be able to create a variable amount of 3d cubes without using any javascript? how about positioning them?

finally, how will you make sure your solution won't be so convoluted and bloated that it only works on your computer?

ch1ck3n

yeah sure but it will be very hard I tell you

Yimmee

@ch1ck3n it cant be harder than learning three.js

Coder100

oh but it will be @Yimmee

theohalpern

Doing 3d animation with CSS is possible (https://codepen.io/wallaceerick/pen/IGxim), but without js you won't be able to do a lot of user input. It is possible, but very math heavy and extremely development heavy.

Yimmee

@theohalpern i meant css for the visuals.

Coder100

using it only for css visuals would both be kinda slow and very inefficient, perhaps you would like to take some time to properly learn js before tackling something as big as mc @Yimmee