Questions tagged [tile-bitmasking]

Bitmasking is, in the context of tile-based graphics, a programmatic technique to allow seamless tiling between all tile combinations.

Filter by
Sorted by
Tagged with
5
votes
2answers
204 views

Is there a way to make the boundary between materials wavy?

I have a sea trading game that I'm working on developing. Right now, my world looks like this: There are 4 different "biomes", with more to be added. Internally, this is a large mesh which has 4 ...
2
votes
2answers
344 views

Calculating unique ID number from a set of bitmasked tiles

I'm writing a match3-style game where you as player need to match tiles with three or more of the same type. I'm thinking what is the best method to recognize the shapes without writing a monstrosity ...
8
votes
1answer
3k views

Implementing RPG Maker Auto Tiling

I'm currently working with Phaser, making a game that's procedurally generated. I wanted to use some RPG maker art in my game (for reference, I'm using the RTP). I stumbled across this article, which ...
1
vote
1answer
237 views

Correctly bitmasking path tiles based on existing paths

Currently, I have a bitmasking implementation that sometimes incorrectly bitmasks the tiles. Conventionally, it is done correctly, and the math/etc is sound, but it achieves results such as the ...
1
vote
1answer
196 views

Paint game level algorithm

I have a game, and I have a level editor where you can build your level from blocks. Blocks positioned in cells. So blocks can have no neighbours or have one or few neighbours. My problem is that I ...
11
votes
2answers
5k views

How can I randomly generate 2D tile-based side-scroller terrain?

I want to randomly generate a map for a 2D sidescroller game using the following tileset: I have found a few great articles on the bitmasking process, for example: http://www.angryfishstudios.com/...
5
votes
1answer
1k views

How to march tiles together like in Terraria?

I've been trying to get tile marching to work like in Terraria, and I got something to work. I don't think it's actually very good way of doing this, so I'm wondering what would be really the main way ...