Vlog 009: The Loneliness


Hi, folks!

I continue my suffering. After a sleepless weekends, I understood that a simple 2D canvas tricks with opacity and layering is not enough to achieve the results I'd like to see in terms of scenery, environment, etc.

So, game is in process of transferring to a WebGL with BabylonJS... 😅 And I'm pretty happy with that. Thanks to my 3D dev background, working with textures/materials/meshes/shaders is not that hard.

BTW:
I saw a lot of questions in the Internet like 'How do I convert units of 3d spaces to pixels'. There are a lot of answers. I'd like to share my point of view on that matter.

Unit === anything you'd like it to be. Just be consistent down the road. So in my game, 1 unit === 16px. Knowing this, it's not hard to calculate unit position or grid size. If you need to place a unit at a {200;120} position, divide the above values by 16 and you get the position in units. The same works the other way round.

Sure this is MHO.

Cheers!

Leave a comment

Log in with itch.io to leave a comment.