Questions tagged [tile-bitmasking]
Bitmasking is, in the context of tile-based graphics, a programmatic technique to allow seamless tiling between all tile combinations.
13 questions
0
votes
1
answer
283
views
How to correctly set up peering bits for terrain sets/autotiling?
I'm trying to set up autotiling for this tileset in Godot:
I set the peering bits like this:
However, when I try to place the terrain tiles, all I get is this mess:
What am I doing wrong?
0
votes
0
answers
62
views
How to use sensors and ray casting for collision detection in Pygame (using a custom Mask/sensor class)?
I am making a Sonic game in Pygame and I have recently gotten my hands on a Python class that uses pygame.rect and pygame.mask in unison to create sensors that can be used to accurately detect the ...
1
vote
0
answers
175
views
How would I setup the autotile bitmask for this tile set?
I'm using Godot. I've figured out how to do the main tiles like you see in the following image, but I have no clue where to go from here. The tile set is from PixiVan located here PixiVan Forest Tile ...
2
votes
1
answer
4k
views
How would I bitmask these tiles?
I am using Cup Noobles's Sprout Lands asset pack for my small game. I want to use the wooden house tileset, but I am confused about how to set up its Autotile bitmask in Godot. How can I achieve this?
15
votes
4
answers
6k
views
What is a 'Mask' in Game development?
What does it mean a 'mask' in 2D (and possibly 3D) Game development?
What would an experience Game Dev understands if I say ´make this Rect a mask´?
I know it could be a very broad term and it may ...
3
votes
1
answer
2k
views
How do I bitmask these tiles?
Using Godot. I can't figure out how to bitmask these tiles in order to autotile them.
I've examined the templates shown in the Godot Docs Tilemaps tutorial, but none seem appropriate. My own attempts ...
4
votes
2
answers
297
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
2
answers
591
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 ...
7
votes
1
answer
4k
views
How can I implement an RPG-maker style
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
1
answer
429
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
1
answer
262
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
2
answers
6k
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/2011/...
5
votes
1
answer
2k
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 ...