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

1
vote
0answers
11 views

Webgl: pixel perfect tilemap rendering?

The problem described below is a follow-up of Seamless tilemap rendering (borderless adjacent images). I'm not sure to fully understand the rendering issue I have, so I'll try to describe as much as ...
4
votes
1answer
301 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 ...
0
votes
0answers
117 views

Box2dMapObjectParser isometric map - bodies have wrong position and size

I'm using Box2dMapObjectParser to load Tiled objects layer onto my IsometricTiledMapRenderer'ed TiledMap. It works OK with a UnitScale of 1 but the position is wrong and some shapes have weird ...
1
vote
5answers
2k views

Unity procedural TileMap generation without creating gameobject per tile

I've been searching all over the internet to find a efficient way to create procedural tilemap without creating a gameobject per each tile. There is none, or simply i couldn't find it, because i ...
6
votes
3answers
3k views

LibGDX keep camera within bounds of TiledMap

I have a simple TiledMap which I can render fine. I have a player hopping (with Box2D) around and my camera follows the player around: cam.position.set( player.position().x * Game.PPM + ...
0
votes
0answers
25 views

Orthogonal Tile Map with Camera's fixed rotation

I am working on a game that will have a 2D orthogonal view and Tile maps like, for example, Super Nintendo's Zelda (or something less old and nostalgic but with similar maps :). It will have mainly ...
2
votes
1answer
57 views

Generating “tile map” by stamping a full map

I'm building a game using Tiled tilemap editor. I was originally creating tilesets to stamp around and create my map in Tiled. Id prefer to create the base map in a Adobe Illustrator and stamp in ...
0
votes
1answer
967 views

How to attach a sprite to a TMXTiledMap at a particular coordinate, in AndEngine?

I am trying to add a sprite at a "grid" location on the tiled map. The TMX tiled Map is like a grid, and you can access the size of the grid by calling mTMXtiledMap.getTileRows() and ...
0
votes
1answer
19 views

Pathfinding onComplete event?

In HaxeFlixel 4 all FlxObjects have a path property which must be a FlxPath instance class FlxObject extends FlxBasic { ... /** * The path this object follows. */ public var ...
5
votes
1answer
110 views

Are there definitive, unambiguous terms for hexagon tile orientations?

I have been working on a tile map editor and plan to support two orientations for hexagons. I have seen various terms used, but these all seem ambiguous to me. Horizontal, Vertical (ambiguous: does ...
1
vote
1answer
2k views

Two pass blur shader using libgdx tile map renderer

I am trying to apply the following technique: blur effect using two pass shader to my libgdx game using the OrthogonalTiledMapRenderer. The idea is to blur the background wich is also a tilemap but ...
1
vote
1answer
224 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"); ...
1
vote
1answer
171 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 ...
0
votes
0answers
28 views

Dealing with floating point imprecisions in a 2D Tiled based game

I'm using unity3d to create a little horizontal tile based platformer game. My entities have a rectangle defining their collision volume. On the other hand I'm using a camera configured to 1 unit = ...
1
vote
2answers
262 views

Slow tile map rendering

I'm having an issue with my tilemap renderer, with small maps (like 40*40 tiles) it works fine but with maps that have 400*400 tiles the framerate becomes really slow when I try to move the camera. ...
1
vote
1answer
312 views

Structure gameobjects and call events

I'm working on a 2D tile based game in which the player interacts with other game objects (chests, AI, Doors, Houses etc...). The entire map will be stored in a file which I can read. When loading the ...
0
votes
0answers
45 views

Why is my tiled map moving when I move the camera in libGDX?

I use LibGDX. I have created a map with Tiled Map Editor and loaded it to the game. Everything else is working well, but when I move the camera, the map moves: it jumps or floats. My code: public ...
1
vote
2answers
405 views

Cocos2d savegame cctmxtiledmap

my game features several tilemaps that are initially loaded from a tmx file and modified during gameplay. How can I save the changed tilemaps in a save game? Will NSCoding do the trick here or is the ...
1
vote
1answer
611 views

How can I load a large tile map with cocos2d?

I am try to design a cocos2d game with a big world. The world's tile map is very big, maybe 20 iPad screen sizes worth of tiles. I want to know how to load this using a CCTMXTiledMap? If I directly ...
0
votes
1answer
269 views

Libgdx texture bleeding in tile map

So I am making a game in Libgdx using an isometric tiled map but when I set the texture filtering of the tiles to linear, black lines show up between all the tiles. This is caused because each tile ...
0
votes
1answer
62 views

Rendering three-dimentional array of tiles (as a tilemap)

I'm trying to create 2d game engine in C++ using SDL2 (actually some code was migrated from SFML). I want to have a flexible multilayer tilemap that can store different types of tiles. My current ...
1
vote
2answers
17 views

Tiled height level collision

I have created the below tilemap in tiled and I am wondering about a good approach to "separate" these two different heights in the map. I would like to keep it tile based, so adding a object layer ...
1
vote
1answer
120 views

Algorithm to make an entity follow tile edges in a tilemap

I'm implementing something like the electric balls seen in this video https://www.youtube.com/watch?v=MWyB56AlAWw (skip to 1:55 and you will see this electrical balls follow tile edges in the ...
0
votes
0answers
28 views

Jumping to tiles in y coordinate before displaying all tiles in x?

I am learning how to load in tile maps and I have successfully done so, sort of. The problem is that the program is jumping to the tiles in the y coordinate before displaying all the tiles in the x. ...
0
votes
0answers
34 views

Tilemap not rendering properly

I'm making a single-screen scrolling platformer (OpenGL/SDL) and I've made a tilemap out of a 2D array, pre-sized with variables of the LEVEL_HEIGHT and LEVEL_WIDTH. Each element in this 2D array ...
4
votes
2answers
116 views

Tilemap Object Placement

I am looking for a way to select tiles within a bounding box for object placement within a scene/world, similar to Roller Coaster Tycoon and other simulation games. In the above screenshot of Theme ...
0
votes
1answer
71 views

2D Animated Tile rendering

The current game I've been working on needs to have animated tiles. I have a code for Tile and TileMap from my previous game that I recycled. However, it does not support tile animations. The tile ...
0
votes
1answer
50 views

How to figure out which tiles are within view, and where to draw them in the grid

I know there are a few questions on here similar to mine, but none of them seem to fit my needs. I'm using pygame to implement a tile based game similar to final fantasy or zelda from the early ...
1
vote
1answer
61 views

Libgdx, TiledMap, and tearing

My TiledMap tears when the window is specific sizes, resized, or the camera moves. The tileset is padded by 2px and have tried as high as 10px. Each tile is 70x70. Here are the pack.json ...
0
votes
1answer
28 views

LibGDX - Getting Tile Map Layers Problem

While following a tutorial with LibGDX, I am working with tile maps. This is the method that I'm using: tilemap.getLayers().get("Collision Layer"); or tilemap.getLayers().get(1); //1 is the ...
1
vote
2answers
95 views

Calculate Position on Tile Map by single Index

I stumble about a Math Problem for calculating a Position on a dynamic tile-map. So i got a List of Tile Entities. Every Tile got his one unique Index Value and i have to set the parameters for Map ...
17
votes
3answers
25k views

How can I create a random “world” in a tile engine?

I am designing a game that is working on a classic tile engine, but whose world is generated randomly. Are there existing games or algorithms that do this? The procedural generation algorithms I have ...
5
votes
5answers
4k views

Is it possible to map mouse coordinates to isometric tiles with this coordinate system?

I'm trying to implement mouse interaction in a 2D isometric game, but I'm not sure if it's possible given the coordinate system used for tile maps in the game. I've read some helpful things like ...
0
votes
1answer
43 views

Tile collision detection

Right. So I was making this simple game. The player is two tiles wide, and four tiles high. My current code is really buggy (it was better before my rewrite) Here it is: float newx = position.x ...
2
votes
3answers
97 views

How to center a tilemap in Phaser?

In Phaser, I am loading a Tilemap from JSON. I would like my Tilemap to display in a particular position (for simplicity here I say the middle of the screen). var map = ...
0
votes
0answers
122 views

How do I draw a tilemap in SFML (C++)?

I've been working with SFML and I've used what I know to try and create a TileMap. However, opening the RenderWindow will only display a black screen and the image I have loaded in the files will not ...
1
vote
2answers
34 views

Tile tilemapping render error

I'm having rendering issues in Tiled with a border tile I'm applying to shapes. In Tiled: In game: I'm using Tile Flipping to reduce work. I thought this may be the issue, so I tested out a few ...
0
votes
0answers
22 views

Projection type/camera angle in Alien Soldier

I am trying to build a 2D game similar to Alien Soldier from oldies (Sega Genesis). The problem I am having is with assets. What kind of projection/camera angle does the Alien Soldier use for it's ...
20
votes
2answers
4k 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 ...
2
votes
1answer
243 views

How do I reverse “Cartesian->Isometric” 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
2answers
177 views

Optimization for lots of UV coordinates update for tilemap animation

In my game, I procedurally generate tile map mesh and modify it when travelling around the "world". Each tile is a quad. So they each, have their own UV points. (Obviously) I am using Unity for this, ...
-1
votes
1answer
44 views

LibGDX - Map Boundaries

Synopsis Well, I'm making a little top-down JRPG and today I was like 'Yeah, I'm gonna bust out this whole map collision thing!'. I failed. Problem So I went on the internet and looked up 'LibGDX ...
5
votes
1answer
140 views

Adding terrain features to a perlin noise heightmap

I'm currently using Perlin Noise to generate heightmaps and model moisture levels as well as tree density to create terrain (in the form of 2D tilemaps - think dwarf fortress). How can I generate ...
2
votes
1answer
189 views

Wang tiles generating

I'm trying to get rid of repetition on terrain, when viewed from up high. To achieve that, I've chosen Wang tiles. One thing I'm missing, and can't really find is any kind of generator that can take a ...
1
vote
2answers
114 views

Making Edges of Hand-Drawn Tileset Match Up

I'm making a tile-based platformer. A friend at college is doing all my art, and so far it's beautifully hand-drawn. The problem is, I can't seem to make the edges of the tilesets match up. He ...
2
votes
1answer
93 views

How to use 16/32 square pixel tiles in tilemap on arbitrarily sized canvas in Phaser

My question is about Phaser and Tiled but I'm not quite sure how to ask it so please bear with me. Do I need to make the size of the canvas or area on which I want to display my tilemap a multiple ...
2
votes
1answer
84 views

How to prevent tendencies to upper-left corner? [closed]

In a 2D tile-based game I'm making, I have a loop that runs through each of the tiles to check and apply values. One of the effects is intended to make a circle around itself, using a similar method. ...
1
vote
1answer
124 views

How to combine tiles in a procedurally generated level in 2D tile based maps?

I am developing a 2D tile-based top-down game. It is currently instantiating square objects with a sprite renderer to procedurally generate the map. Each floor and wall is a 1-unit wide object. I ...
0
votes
1answer
80 views

LibGDX hexagonal tilemap getting adjacent tiles

How do I get all adjacent tiles to a hexagonal tile, my tile map is using a staggered co ordinate system with an odd stagger index and I am using libgdx java. if (x % 2 == 0) { hexAdj[0] ...
0
votes
1answer
65 views

XNA Platformer - Where should tile collision handling be?

I've started using XNA and am working on a simple 2D platformer (single level). However, I am stuck as to where the collision detection should be handled. Here is my current project structure: The ...