LWJGL Forum

Programming => General Java Game Development => Topic started by: Murloc992 on June 03, 2012, 13:27:58

Title: Tiled game design question
Post by: Murloc992 on June 03, 2012, 13:27:58
Hello, I am a new member here and I would ask one question regarding 2D tiled game design.

I am making a MotherLoad inspired digger game and am doing pretty well, but don't know how I should go about one graphical aspect of the game - the borders of the dirt tiles.

This is how the randomly generated level looks now:
(http://img152.imageshack.us/img152/2926/screentt.th.png) (http://imageshack.us/photo/my-images/152/screentt.png/)
(That creeper face was totally not intended.)

The tileset I am using/developing:
(http://img62.imageshack.us/img62/9753/tset64.th.png) (http://imageshack.us/photo/my-images/62/tset64.png/)

And this is how MotherLoad level looks like:
(http://img151.imageshack.us/img151/4055/screen2zo.th.png) (http://imageshack.us/photo/my-images/151/screen2zo.png/)

The question is simple, how should I approach round corners on tiles? Alpha blending or some other trickery?
Title: Re: Tiled game design question
Post by: broumbroum on June 03, 2012, 18:38:43
IMO For your patterns – tilemaps, add a border tile to your set of tiles. One tile will be sampled into 4-5 smaller tiles : 4 borders (w/ rounded corners) and 1 center tile. If you intend to have several patterns (grass crossing sand, or grass crossing water, etc.) the more rounded borders collection you have to collect..  ::)