Questions tagged [tile]

Patterns of identical shapes that have no gaps. They usually represent the playfield in various games. They are also used in web development for reducing the count of images which needs to be transmitted.

Tiles are a very common element in games, used to store information in a simple tessellated format. Because tile grids can easily represent the space of the entire screen, tiles are a very common means of organizing level structure.

The utility of tiles ranges from the layout of ground to hard restrictions on the movement of in-game entities. It may apply to only parts of the game such as over world movement, or it could represent the entirety of all meaningful interactions in the game.

In web development they are commonly used to reduce the amount of data which needs to be transfer. They are also used for implementing a fast hover effect, where just the view port is moved to display another state.

946 questions
-1
votes
2 answers

Identify duplicate tiles

I have one BufferedImage with multiple tiles in it. What I want is to compare the tiles against each other to see if they are identical. So how do I extract the data out of each individual tile from the buffered image that can be used in the hash…
adrix89
  • 490
  • 5
  • 13
-2
votes
2 answers

Get Specific Tile when colliding - Unity3D

How can I get the specific tile that is colliding with my object. I have a collider that walks through the tilemap, I want to identify the specific tile that is being collided with and not the entire tilemap. Tilemap Image
Nophi
  • 305
  • 1
  • 2
  • 5
-2
votes
1 answer

How to find all empty tiles and instantiate objects in them?

I have created a "PacMan" map in Unity with Tilemaps, but I've never worked with them before, so I want to know, how to find ALL empty tiles on my map in code and spawn objects in them? my map
Grape
  • 19
  • 1
  • 4
-2
votes
1 answer

Java AWT drawing tiles laves gap

I am trying to make a tile based game in Java and I have noticed a problem with the drawing. There is about a one pixel gap between some of the tiles and I am not sure what is causing it. Here is a screenshot of it: Here is my code so far: Main…
-2
votes
1 answer

Is there anyway to develop a game of maze without using .tmx file in cocos 2d

I am new in cocos2d developement.I have to develop a game of maze by using tile map.The game is all of containing a fish which has to be moved through the maze and the maze will also contain some enemy fish from which the Hero fish has to…
RAVI
  • 151
  • 2
  • 12
-2
votes
1 answer

Tilemap with enormous tileset data for OpenGL rendering (texture as an image is not an option)

I have big binary file. It contains 32x32 pixels tiles. Each pixel is 32 bits RBG color. Because of the binary file structure, it cannot be rendered to the texture image. Last time I've tried to load generated texture with SFML with next…
-2
votes
1 answer

"Nonetype object has no attribute 'take turn' in Pygame. Hung up on a single line

I am creating a rogue-like game with python 2.7, using pygame and libtcodpy libraries. It is a tile based game, and when I tried to implement a function called 'take turn' that would move the enemy one space to the left every time the player moved -…
Will
  • 133
  • 1
  • 10
-2
votes
1 answer

js array binary insertion sorted by rows and columns

I have an initial array of Tiles ordered by [row,col] like this [0,1] [0,2] [0,3] [1,1] [1,2] [1,3] i need to binary insert elements ordered by row and colum like this binaryInsert([0,0]) binaryInsert([1,0]) and the expected result will be an…
-2
votes
1 answer

How to use a custom tile overlay in android?

Making an Android application where a map is overlaid on to a google map. I used map tiler to convert my image into map tiles , but wondering how would I be able to implement this in my application?
-2
votes
1 answer

How to create a dynamic tile portfolio?

I wanted to know what is the way of creating a tile-based portfolio like this: http://prothemeus.com/demo/litho/ I mean I know it must be a mixed thing of jQuery and CSS3 and stuff... I wanted to know how should I create one! Thanks in advance
Musketeer
  • 37
  • 5
-4
votes
1 answer

how can we make beautiful tile in flutter?

my amigos... can i get the code of this in flutter? i don't have any explanation more. bring me the code right now!! i'm so new about flutter, help me pls. Container( padding: EdgeInsets.fromLTRB(10, 10, 10, 0), height: 220, …
dinner formal
  • 59
  • 1
  • 7
-4
votes
1 answer
-4
votes
1 answer

How can I make zoomable square table in SFML?

How can I make zoomable square table like in the picture below? At first, there is no tile in squares. but when zoom in, tiles are slowly appearing inside squares. And another question, can I have paint bucket tool and use to fill my tile then…
delio
  • 91
  • 1
  • 2
  • 9
-4
votes
3 answers

javascript 2d tile based game rendering (terraria-style)

I have made terraria clones in the past. They're quite fun as a project, I find. But with the 1.2 update of Terraria, I want a clone that I can run on any computer anywhere anytime. So I'm working with HTML5. At first, I thought it would be simple -…
1 2 3
62
63