Jump to content
  • Advertisement
Sign in to follow this  
Danie Clawson

Lights and Shadows in multi-height 2d tilemaps

This topic is 1215 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am in the process of writing a 2d isometric game from scratch, and I'd like to know how/if I can add lights and shadows.

The code I have so far can be found here, but it should be enough to know that right now, the maps are simple 3d arrays of true/false values. Later I will have different block types, and I'd like to add slopes. Here is a shot of the environment: 


If it were a single layer tilemap it would be straight forward. I can understand the simple raycasting in 2d that is required.

However, given that my maps have multiple levels of height as well as caves/interiors, I don't really know where to start. Any advice or opinions would be greatly appreciated

Edited by noxabellus

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!