Eva's Development Blog

  1. her@evajolene.com

  2. Twittertwitter.com/killingeva
  3. RSSevajolene.com/blog/feed

Depth correction

I fixed that problem I had yesterday. The characters aren’t disappearing through the walls anymore.

If you were to take a look at what’s going on outside of the game, you’d know the character sprites were definitely going through the wall.

But now in the game the character sprites show up in front! Cool!

To do this, I offset the depth per-vertex, with the top vertices’ depths being pulled closer to the viewer. I tried to offset everything before, but that created situations where sprites that should have been blocked by something would sometimes show up in front of it.

Besides dealing with the depth problem, I added some basic shadows below the sprites. Like everything in the game, they’ll be improved upon later!

  1. Copyright 2020 Eva Sydney Lee