Tile map is a technique of re-using small graphic pieces, tiles, over and over again to shape the game field.

learn more… | top users | synonyms

0
votes
0answers
9 views

LibGDX Tiled Map - how to get embedded objects

I am using LibGDX to learn Game Development. I have reached the phase I am learning to use Tiled Maps. In Tiled map editor, there is a feature where we can pick a tile in the tile set, go to View -> ...
1
vote
1answer
158 views

How do I reverse this function?

I'm working on an isometric tile rendering engine and I need to reverse a function I used to translate the Cartesian coordinates into isometric coordinates. I've already written a function for this, ...
1
vote
1answer
77 views

Tile Map Shader?

I'm trying to write a shader in unity that will take tiles from a sprite sheet and draw them onto a tile map. I'm new to shaders so this might be totally wrong, I think it might just be a math error ...
-1
votes
1answer
89 views

Tile map optimization algorithm

I've read this artical on tilemap optimization https://www.scirra.com/blog/ashley/3/tech-blog-tilemap-tidbits and wondering what algorithm is used to achieve something like this. I'm wondering ...
0
votes
1answer
47 views

Store metadata for tile in Tiled Map Editor

In my tilemap-based game, I need to associate lights with light switches, buttons with doors etc. I am using the Tiled map editor (mapeditor.org), but I have yet to find a way to store these ...
1
vote
0answers
39 views

Efficiently rendering tiled map on OS X

I'm writing an original (top-down) SimCity clone in Swift and attempting to use SpriteKit as the basis for the game. However, I am running into performance issues when rendering and animating the tile ...
0
votes
1answer
78 views

How can I store tile maps as PNG images?

I want to let players of my top-down game save, load and share worlds as PNG images. How do I read the colors in a PNG file or change them? I imagine something like this: BufferedImage mapImg = ...
0
votes
1answer
52 views

How to draw the simplest grid map OpenGL 1.0 [closed]

I want to draw a simple black & white grid map, like that: I have been searching for a way to generate tile, a tile map and tho and I want to draw this map and thats all. I mean that I want to ...
1
vote
0answers
25 views

How can i get a value from object in tmx file in Cocos2d x 3.x?

I want to set my sprite in x coordinate based on an object in TMX map file, this is my code: tileMap = cocos2d::TMXTiledMap::create("ground.tmx"); ground = tileMap->layerNamed("ground"); ...
0
votes
0answers
28 views

How can i get object from TMXTiledMap and store it in Dictionary variable ?

I've been following a tutorial to make tiled map in cocos2d x 3.0 , but i couldnt complete the rest of the tutorial because its for coco2d x 2.0 version, How can i get a value of property that is ...
1
vote
2answers
85 views

HLSL Pixel Shader - Color depending on condition

I am new to shaders and HLSL so bare with me on this one. I have a 2D tile map in my game and want to create a mini-map, at first I was just copying all the data from one sprite batch to another and ...
0
votes
1answer
65 views

Datastructure for infinite 2D map [duplicate]

I started a 2D Tilegame programmed with libgdx which needs potentially infinite tiles. That means when the player arrives the border of the map it should be possible to generate even more tiles. So a ...
0
votes
1answer
28 views

Network tilebased game updates design

I have a top/down grid based multi-player game. So I have a 2D array on the server that holds the entire map and a much smaller 2D array on the client that holds only what the client needs to see of ...
0
votes
0answers
48 views

How import and draw a tiledmap with slick2d

How I can import and draw a tilemap with different layers? I have the next code and send me error if the tilemap have more than one layer. public class Map { private TiledMap map = null; ...
0
votes
0answers
36 views

how to detect collision with libgdx and tiledmap [duplicate]

As you see , it's a picture from my game map , i have to create a 2d rpg game when a character can do many things. Currently i'm looking for a solution to handle collision between the character and ...
1
vote
1answer
110 views

Hexagonal buttons

I'm trying to create a map of touchable hexagons and the playing area would be like in Catan game. I would like to use Sprite Kit to do the job but is it cabable of doing that? Process goes like ...
0
votes
0answers
148 views

Create a Minimap of a Tiled Map with LIBGDX

thanks for stopping by to help! Having a little trouble with OrthogonalTiledMapRenderer. I've got a Tiled map that is 250x250 tiles, each 16x16 pixels. Trying to use a separate camera to draw a ...
1
vote
1answer
197 views

AI movement in 2D

I've got a prototype of a game I've been mocking up and found myself struggling to find a solution for AI movement in a 2D tile based game. Here's the issue: The player is free to roam throughout the ...
2
votes
1answer
115 views

Easiest way to make a 3D overworld [closed]

Using something like Blender, would it be easier and more time and space efficient to create 'tiles', and use some kind of software like Tiled to use these tiles in the various maps, or would it be ...
0
votes
1answer
85 views

Rendering mountains around a tile layer [closed]

When making a 2D Pokémon game, I just faked elevation by putting mountain tiles underneath the land. Now my tiles are 3D models, so I'm using layer properties to define their elevation. What I don't ...
4
votes
4answers
192 views

Storing walls that are between tiles

I am writing isometric engine in c++. I decided to take a more realistic approach and make walls occupy space between two tiles, not a single whole tile, as shown in the picture below (just like in ...
0
votes
0answers
150 views

Help slope tile collision platformer (XNA/C#) 2D

I have been creating a platform game in C# and XNA, everything works pretty well least the slope (down left and right). This is the project that I have so far. PlatformGameEngine.rar if the ...
1
vote
2answers
98 views

Memory strategy for multilayer, tilebased maps

I am currently developing a 2d mmorpg and am having some memory issues with regards to my tile based map. The client takes a little while to load and then sits around 1GB ram, because I am loading ...
1
vote
1answer
78 views

How can my entities avoid walking on certain tiles?

In my tile map, created with 'Tiled', I placed some tiles that need to be avoided by my mobiles. Tiles like water or obstacles. The entities "wander" in the map, choosing random directions, and their ...
1
vote
0answers
153 views

How can I mimic an isometric perspective using square tiles?

Can an isometric perspective be mimicked with traditional square tiles? Can't the effects of the 45-degree overhead view simply be "drawn in" to the square? How would this work? Picture this: the ...
0
votes
1answer
1k views

How do I draw a tilemap within unity3d?

I'm pretty new to Unity and after a bit of googling around I have come up with this code to draw my tilemap (the script is attached to my camera). I am simply trying to use nested for-loops to draw a ...
0
votes
1answer
68 views

Tile map only rendering 1 layer when it should be 3 [closed]

I've been working on this for a while and I can not seem to figure it out. I had the fileParser() method in the constructor and it worked fine. Then I was told it's very bad practice to have it in the ...
1
vote
1answer
97 views

How can I tell if a set of tiles form an enclosure?

I have this tile-based game I've been messing around with and I want to have a way to check if a set of wall tiles make an enclosed space. Here's some more details: I have a tile map. Each tile has ...
0
votes
0answers
321 views

How to overlay texture materials on top of each other in Unity 2D tiled game

I'm learning how to do a 2D tile-based game. So far, I have followed this tutorial which seems like a good starting point. With his method of building the raw triangles and then applying the uvs, I ...
-1
votes
1answer
61 views

Screen flashing while window is open [closed]

The screen renders everything in the right place but the entire screen flickers/flashes while it's open. Any Ideas? TileMapEditor class import com.stardust.main.gfx.Assets; import java.awt.Graphics; ...
0
votes
1answer
70 views

TileMap not not rendering [closed]

I have a tile map that I would like to be able to move while playing the game. In the code you will see the posX and posY variables. I used these variables so that when I complete this, I can have the ...
2
votes
1answer
116 views

How to create polygons from tilemap areas?

I'm currently working on a project which needs simple AI's to walk around using pathfinding. I'm trying to find a way to generate a polygon based on the connected tiles (explained below), an i'm ...
2
votes
3answers
314 views

How to handle tiles on top of players

I am creating an 2d bird view tile game using the pixijs render framework. Like pokemon or oldtime zelda. In those games you sometimes walk behind buildings where the tile would be drawn on top of ...
0
votes
1answer
144 views

Tiling 2D textures in random order

I am wondering what the best way to make a random set of 2D textures. Currently I have tried the follow code but I am aware that when this comes to collisions that would be an issue. Therefore I would ...
2
votes
1answer
128 views

LibGDX Box2D TileGame Efficiency

I am trying to implement Box2D into my top down tile game in LibGDX. Each world consists of a set of chunks, and each chunk is 16 tiles wide/long. The maximum/minimum chunks loaded at one time is 9 (a ...
1
vote
1answer
121 views

Hexagonal Game Board Modal?

Tile-based games like Chess have a simple modal: an array of arrays, each coordinate with an X and a Y value. This is easy to implement, and it is easy to figure out what is going on. However, ...
0
votes
2answers
84 views

Gameobject-Component model with many background tiles - long iteration time

So I'm making a game engine for a game I'm making - the game is a 2D tile-based game I've implemented a gameobject-component style for the engine, for decoupling reasons However, every frame, the ...
0
votes
1answer
107 views

I can load new tiles but how do I load new chunks?

I have successfully been able to add new tiles and place random trees on a 2d map grid however I haven't used chunks. I just load a new tile when the player moves and save it to the map array. But I ...
0
votes
4answers
292 views

Is there any way to load pieces of a tile-map as and when needed, and not the entire map at once?

I created a tile-based rpg game in java, but it runs really really slow, the reason is the big tile-map that is stored in the buffer. Is there any way to programmatically load pieces of the map when ...
1
vote
1answer
273 views

Best practice to implement persistent data when using Tiled TMX map files?

A friend of mine and I are always talking about our current progress in learning game development. Recently, saving the game (data persistence) came up, and when I summarized how I tackled that for my ...
0
votes
1answer
55 views

Create dynamic cities of perspective angle x with least amount of tiles

I found you can create unique building sizes with perspective with six tiles using parallel projection, whose angles are always 45 degrees... this allows you to connect to the next tile without issue: ...
2
votes
3answers
152 views

Smooth path/direct movement

I have a tile based isometric map and an A* algorithm that returns a path. I am looking to smooth this path efficiently but with good aesthetics. Basically i am using my grid for building the map and ...
-2
votes
2answers
82 views

isometric tile tiled format javascript [closed]

Okay im having a problem with drawing an isometric map exported from tiled. Here is my problem. where it should be like this Here is the code that i used to reproduce the 1st image, what's wrong ...
12
votes
1answer
1k views

Efficient way to calculate “vision cones” on 2D tile map?

I'm trying to calculate which tiles a particular unit can "see" if facing a certain direction on a tile map (within a certain range and angle of facing). The easiest way would be to draw a certain ...
1
vote
1answer
370 views

Procedual level generation for a platformer game (tilebased) using player physics

I have been searching for information about how to build a 2d world generator (tilebased) for a platformer game I am developing. The levels should look like dungeons with a ceiling and a floor and ...
0
votes
1answer
194 views

Is there a size limit when using UICollectionView as tiled map for iOS game?

I'm working on a turn-based strategy game for iOS, (picture Civilization 2 as an example), and I'm considering using a UICollectionView as my game map. Each cell would be a tile, and I could use the ...
0
votes
1answer
70 views

Is it possible to make a TileMap that adjust it self to multiple screens?

I need to build a tile map that is supposed to fit nicely in several screen Sizes. However, Tiled the tile map editor I use allows only to produce absolute fixed size tile maps. Is there an easy way ...
8
votes
3answers
242 views

How can I author objects with perspective that fit into a tile-based map but span multiple tiles?

I'm creating a tilemap city and trying to figure out the most efficient way to create unique building scenes. The trick is, I need to maintain a sort of 2D, almost-top-down perspective, which is hard ...
1
vote
3answers
290 views

What datastructure would you use for a collision-detection in a tilemap?

Currently I save those blocks in my map that could be colliding with the player in a HashMap (Vector2, Block). So the Vector2 represents the coordinates of the blog. Whenever the player moves I then ...
16
votes
2answers
2k views

Algorithm for procedureral 2D map with connected paths

Problem to solve: Generate a random 2D dungeon map for a tile-based game where all rooms are connected. I am looking for better solutions than what I currently have. My current solution is that I ...