Original Post
At the moment, I write the game map editer, but i want to link such as a block of grassplot with a block sandlot£¬hot to link them smoothly?
-------
| |
| |
| |
-------
------- <- alpha value = 0
| | <- north blend tile
------- <- alpha value = 0.5
| |
| | <- original tile
| |
-------
for each tile on the screen:
draw the tile
for each tile on the screen:
if the tile above it is of a different type:
draw the "north blend" version of the tile on the one above
if the tile below it is of a different type:
draw the "south blend" version of the tile on the one brlow
if the tile left of it is of a different type:
draw the "west blend" version of the tile on the one to the left
if the tile right of it is of a different type:
draw the "east blend" version of the tile on the one to the right
This topic has been locked by a moderator. New replies are not allowed.
With your permission, GameDev.net uses analytics cookies to understand how people use the platform. You can accept analytics or continue with necessary cookies only. Learn more