Bounding boxes and shadows added.

Bounding boxes and shadows added.

I’ve been busy refactoring things into more modularized code.

Also, the scene now uses bounding boxes around the tiles so that not visible tiles are culled, reducing the number of draw calls.

The default Babylon.js framework provided poisson sampled (4-tap) PCF shadows are also enabled.

The camera now follows the player character object, it’s the grey rectangular prism, which we can now move around with the keyboard.

Shadows, the grey rectangular beginnings of a player, and organized code making it all happen!
Bounding boxes around each tile, used to detect which tiles we need to draw. Tiles outside of the camera view aren't drawn.

Bean

Bean
I'm Bean. From BeanstalkBlue.
https://beanstalk.blue

Robust character collision!

Player character now detects collision. Continue reading

Collision beginnings

Published on March 24, 2017

Collision beginnings

Published on March 24, 2017