BoolClub / ProjectCrusade

First project of RHS Software Development Club
0 stars 0 forks source link

In-game layers #40

Closed christiancosgrove closed 8 years ago

christiancosgrove commented 8 years ago

Looking at the new tiles @Authman2 added, should we re-implement tile layers? This would be one of the only ways to have tile transparency.

I might be able to implement culling for occluded tiles-i.e. if a "wall tile" is not transparent, don't render the tile behind it.

Authman2 commented 8 years ago

I like the idea of not rendering tiles under it if the tile is not transparent, but if that is the case then I can just draw it accordingly in Tiled. Unless it is easier to organize with layers, or unless that is the only way to have transparency, I think it's ok if we don't have them.

christiancosgrove commented 8 years ago

Ok. So no layers for now. We have to add floor tiles in the background of the tent then.

As for future levels using new tile families, we need to make sure we design each of the tiles included in the TileFamily class.

On Mar 13, 2016, at 11:53 AM, Authman2 notifications@github.com wrote:

I like the idea of not rendering tiles under it if the tile is not transparent, but if that is the case then I can just draw it accordingly in Tiled. Unless it is easier to organize with layers, or unless that is the only way to have transparency, I think it's ok if we don't have them.

— Reply to this email directly or view it on GitHub.

christiancosgrove commented 8 years ago

What I mean is that we won't have layers in game, but we can (and should) use layers in Tiled. Putting tiles on the "Wall" layer indicates that it will be solid in game.