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

4
votes
1answer
309 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 ...
4
votes
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 ...
2
votes
1answer
64 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 ...
2
votes
1answer
215 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
1answer
135 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 tilemap)....
1
vote
1answer
255 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"); this->...
1
vote
1answer
191 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
1answer
348 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; ...
1
vote
1answer
286 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 ...
1
vote
1answer
339 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 ...
1
vote
1answer
980 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 mTMXtiledMap....
1
vote
1answer
631 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
59 views

Monogame - custom json content importer

I am trying to build a JSON tile map importer for the content pipeline of Monogame but I'm having difficulty doing so. I have been following this tutorial and got something... But now it appears my ...
3
votes
0answers
37 views

Java image in JFrame rendered weirdly

I'm not sure if this is intended or not, if it is, I'd like to know a way of preventing this: I've got this image (which is for testing purposes, the actual one has a texture, but I'm not using it ...
2
votes
0answers
51 views

How can I model AI Interactions across the entire game world without computing them individually?

I'm making a 2D top-down tile-based game in C++ using SDL2. The game uses a very large world map (think Dwarf Fortress). My world terrain is generated using a noise function, another function is ...
2
votes
0answers
49 views

Hex axial coordinates to table coordinates conversion

I am developing internet game based on hex map. I am storing my data based on axial coordinates system. I developed function which shows me axial coordinates of hexes within $distance from a given ...
2
votes
0answers
188 views

generate box2d bodies from isometric tiled map

I followed the tutorial here to generate box2d bodies from a tiled map and that worked fine.... for orthogonal tiled maps. Unfortunately isometric maps use their own coordinate system where (0, 0) is ...
2
votes
0answers
258 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 ...
1
vote
0answers
74 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 ...
1
vote
0answers
46 views

State machines and map transitions

I've implemented a [basic] FSM in my game and it currently does its job very well. Recently I have come across a "problem" that I need to show a "Loading map. Please wait..." screen for as long the ...
1
vote
0answers
28 views

Error rendering map android

I'm trying to read this text file and render the corresponding tiles on the screen. The code for reading the map is as follows: private void loadMap(InputStream is) throws IOException { ...
1
vote
0answers
86 views

Climate / weather generation on 3d hex map

I am working on 3d hex map game. I am aiming to dynamical generate map (as new players joins). To make the map realistic I am looking for some climate/weather models which possibly I could use so that ...
1
vote
0answers
264 views

Tilemap layer scaling and Camera issue in Phaser

I'm working with the Phaser framework and I'm struggling with a camera/rendering issue when scaling a tilemap layer to simulate a zoom feature in my project. The camera size is set to 1024x768px.(...
1
vote
0answers
184 views

Smooth player movement in a tile map based engine

The character is moving too much fast, it teleports! Note that a tile is 80x80. Each cell has 4 bools to say if you can go up, down, right, left. Am I doing something wrong with Lerp? This is the ...
1
vote
0answers
237 views

Multi-layered tilemap

I need to be able to efficiently render a tilemap which can be constructed this way: There is one non-transparent base layer Then there can be 3 partially-transparent layers on top of it. Each tile ...
1
vote
0answers
141 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 ...
1
vote
0answers
449 views

Sprites on scrolling tmx map (LibGDX)

I have .tmx map loaded, and a camera to see it. The map is bigger than the camera viewport, so I need to move that viewport scrolling the camera. Now I want to draw a sprite on the map. To do that, at ...
1
vote
0answers
123 views

How can I modify my procedural shadows to also show some of the walls?

I'm rendering shadows in Libgdx with the method from this tutorial. I think it's a nice and easy method. I render all my shadows in a framebuffer, then invert it. Before invert: After Invert: #...
1
vote
0answers
217 views

Rendering tile maps for mobile devices

Hitting a bit of a roadblock with my game's development and I'm just looking for some outside advice. I'm trying to render a tilemap for my mobile game (Android) and I'm using LibGDX. Now, here's ...
1
vote
0answers
395 views

Touch Gesture Map Movement

I really dig the way that the map is moved in Clash of Clans (https://itunes.apple.com/ca/app/clash-of-clans/id529479190?mt=8)... I can recognize the pinch and finger movement needed for the zooming ...
0
votes
0answers
31 views

What's the best way to store tiles' infos in a 2D table?

I need to know what's the less time / memory consuming way to store the infos about each tile in a 2D table. The first thing that came to my mind was creating a table holding the infos, and then ...
0
votes
0answers
37 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 ...
0
votes
0answers
152 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 ...
0
votes
0answers
40 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 = ...
0
votes
0answers
53 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 ...
0
votes
0answers
31 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
36 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 ...
0
votes
0answers
153 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 ...
0
votes
0answers
24 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 ...
0
votes
0answers
24 views

Generating hexagonal tilemap in libGDX

How would I go about generating a hexagonal tilemap in Libgdx? My idea before was to just use a prebuilt tilemap and then change tiles on it but I'm having problems with the hexagonal co ordinate ...
0
votes
0answers
41 views

Hexagonal Tilemap is being distorted

So i made a hexagonal tilemap of ocean tiles and then picked a few tiles to be land when i pick all adjacent tiles to the hexagon it usually work but for tiles that are on certain columns it does not ...
0
votes
0answers
29 views

Libgdx HexagonalTiledMapRenderer

How does the hexagonal tiled map renderer work in libgdx I'm trying to render a hexagonal tiled map and I can't quite get it to display correctly I've used the orthogonal tiled map renderer before and ...
0
votes
0answers
117 views

How do I create tile based world generation

I was planning on making a tile based 2D game that has a random world generation. The game world itself is made out of several floating islands and the later half of the game world is generated as a ...
0
votes
0answers
100 views

Using EaselJS, my spritesheet-based map is not showing up

I have a random map that generates based on a level and a set of Tile ID's, constructed using a Height Map generator I wrote using the BitmapData extension. I've confirmed that the Tile IDs are ...
0
votes
0answers
54 views

XNA 2D Tile Baseed Map Collision Messing Up On Inside Corners

I'm creating a 2D Over the head game and the collision system works fine for straight walls and outside corners although not for inside corners. The walls are done by each solid tile having a ...
0
votes
0answers
1k 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 ...
0
votes
0answers
152 views

XNA - Finding boundaries in isometric tilemap

I have an issue with my 2D isometric engine. I'm using my own 2D camera class which works with matrices and need to find the tilemaps boundaries so the user always sees the map. Currently my map size ...
0
votes
0answers
352 views

limits of tiles on tilemap, for mobile devices?

how many tiles are we allowed to add on a Tile map, using softwares like Tiled , to target mobile devices? Some devices cannot load a texture that exceeds 2048x2048, would you know how a tilemap works ...
0
votes
0answers
106 views

Tilemap mesh issue with z, -z axis

I don't understand why the created mesh is upside down if z ( z*tileSize ) is positive, the mesh is then rendered with the texture looking down. With "-z", the mesh texture is looking up correctly, ...
-1
votes
0answers
32 views

How does Perlin noise works and how can i use it for generating a map in C?

I'm starting to make a roguelike game(something like NetHack or Rogue) with a friend, but before getting really into it we wanted to make some search of what will be needed. And one of the first ...