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
1answer
117 views

Find connected hex of same color

I'm using Lua. I have a hex map. It is randomly generated into an table. hexmap[y][x].color = "red" I wish to find each "group" of hex's. i.e. all hex's of the same color that connect to each other ...
0
votes
4answers
889 views

Storing huge 2D tiled map in a txt file

I'm working on a global startegy game that uses a 2D tiled map. The map is to be 8000x8000 tiles large (this size is fixed, the map stays the way it is throughout the game), since I'm covering a large ...
3
votes
1answer
583 views

Change the tilemap shown on stage in Flixel

I am building a simple platformer using Flixel, beginning with the source code from Flixel creator's EZPlatformer . I would like to adjust the level's tilemap when the player sprite enters/overlaps ...
1
vote
1answer
54 views

Flixel level ceases to show on screen

I was following along with the EZPlatformer flixel tutorial(with some of my own modifications), and suddenly find that my level is not appearing on screen. I am unable to detect any changes I could ...
1
vote
1answer
465 views

How can I implement collision detection for these tiles?

I am wondering how this would be possible, if at all. In the image below: The light brows tiles are ground, while the dark brown is background, so the player can pass over those tiles. Here's the ...
1
vote
2answers
245 views

How do I cap rendering of tiles in a 2D game with SDL?

I have some boilerplate code working, I basically have a tile based map composed of just 3 colors, and some walls and render with SDL. The tiles are in a bmp file, but each tile inside it corresponds ...
2
votes
3answers
2k views

How do I code a 2D tile map? [closed]

I'm new to game development and I want to know how to create a tile map. The map should be divided into squares, such that each square represents a location like x : 10, y : 10. The width and height ...
1
vote
3answers
307 views

Diamond shaped selection on a staggered iso map

I have a staggered isometric tile map and want to do a selection that aligns with the diamond shape of the tiles. This is what I mean: So I got two points on screen and their map cell coordinates. ...
7
votes
3answers
3k views

isometric drawing order with larger than single tile images - drawing order algorithm?

I have an isometric map over which I place various images. Most images will fit over a single tile, but some images are slightly larger. For example, I have a bed of size 2x3 tiles. This creates a ...
2
votes
3answers
452 views

Move a 2D sprite into an irregular terrain

With a tile based engine, in my knowledge, is not possible to move a sprite into an irregular terrain. So which are the techniques to use for implementing that? Maybe an hexagonal tile based engine?
2
votes
2answers
590 views

Collision checking problem on a Tiled map

I'm working on a pacman styled dungeon crawler, using the free oryx sprites. I've created the map using Tiled, separating the floor, walls and treasure in three different layers. After importing the ...
0
votes
0answers
349 views

can it be done with 2D engine or is it real 3D? [duplicate]

Possible Duplicate: How should I sort images in an isometric game so that they appear in the correct order? My isometric game looks flat; how can I improve this? I'm working with ...
5
votes
2answers
4k views

XNA C# Platformer - physics engine or tile based?

I would like to get some opinions on whether i should develop my game using a physics engine (farseer physics seems to be the best option) or follow the traditional tile-based method. Quick ...
2
votes
4answers
2k views

Hide collision layer in libgdx with TiledMap?

I'm making a 2D game with libgdx, and I'm using its TileMapRenderer to render my map which I have made in the map editor Tiled. In Tiled I have a dedicated collision layer. However, I can't figure out ...
0
votes
1answer
201 views

General approach to isometrics

I am currently discovering the world of isometrics, now I found out there are two approaches to creating the tilemap; Just create 2:1 ratio tile-images and draw those. Creating squares and ...
4
votes
5answers
2k views

More Efficient Data Structure for Large Layered Tile Map

It seems like the popular method is to break the map up into regions and load them as needed, my problem is that in my game there are many AI entities other than the player out performing actions in ...
0
votes
1answer
427 views

How to get tilemap transparency color working with TiledLib's Demo implementation?

So the problem I'm having is that when using Nick Gravelyn's tiledlib pipeline for reading and drawing tmx maps in XNA, the transparency color I set in Tiled's editor will work in the editor, but when ...
1
vote
1answer
328 views

Custom Content Pipeline with Automatic Serialization Load Error

I'm running into this error: Error loading "desert". Cannot find type TiledLib.MapContent, TiledLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null. at ...
2
votes
1answer
110 views

Torque2D, Class vs Datablock

I'm scripting my first game with Torque2D and have not fully understood the difference between "Class" and Datablock. To me it seems like Datablock is similar to a struct in C/C++ or a Record in ...
3
votes
1answer
320 views

How do I animate a tilemap in Flixel?

I am trying to animate a tilemap using Flixel 2.55. I found this code that apparently enables the use of sprites as tiles. To my understanding, this loops over the tilemap's graphic and replaces the ...
0
votes
1answer
183 views

Copies of GameScene created when called additional times

UPDATE: It no longer crashes after removing [self removeAllChildrenWithCleanup:YES]; from onExit. The artifacts still remain though. UPDATE 2: Found my problems. See my answer below. I have a game ...
5
votes
3answers
2k 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 ...
5
votes
1answer
1k views

Circle-Rectangle collision in a tile map game

I am making a 2D tile map based putt-putt game. I have collision detection working between the ball and the walls of the map, although when the ball collides at the meeting point between 2 tiles I ...
4
votes
1answer
521 views

Isometric Screen View to World View

I am having trouble working out the math to transform the screen coordinates to the Grid coordinates. The code below is how far I have got but it is totally wrong any help or resources to fix this ...
2
votes
2answers
635 views

Checking if an object is inside bounds of an isometric chunk

How would I check if an object is inside the bounds of an isometric chunk? for example I have a player and I want to check if its inside the bounds of this isometric chunk. I draw the isometric ...
0
votes
2answers
2k views

Efficient way to render tile-based map in Java

Some time ago I posted here because I was having some memory issues with a game I'm working on. That has been pretty much solved thanks to some suggestions here, so I decided to come back with another ...
1
vote
1answer
122 views

What's the difference between Tiled maps' various tilewidth/tileheight values?

I'm parsing Tiled maps (.tmx) for my game, and even after reading the documentation, I don't understand what the difference is between the attributes tilewidth and tileheight of the map element versus ...
1
vote
3answers
2k views

How can I create a flexible system for tiling a 2D RPG map?

Using libgdx here. I've just finished learning some of the basics of creating a 2D environment and using an OrthographicCamera to view it. The tutorials I went through, however, hardcoded their ...
0
votes
1answer
396 views

2D Tile Based Particle Collisions

I have a basic 2D particle system and I'm now looking to implement collisions, however I'm not sure on what the best way to do it is. My game is tile based and runs in XNA Game Studio 4.0. I've seen ...
0
votes
3answers
363 views

Saving and loading large tilemaps

As the title state, I have a large tilemap 400 x 400 x 26. Which currently just about fairs when using it. Saving takes a couple of seconds and it saves to a .ser file which is okay at the moment ...
2
votes
1answer
73 views

What article discusses weightmaps for ai control?

A while back, I read an article on using weightmaps to control ai movement, particularly in an RTS environment. I can't find the article again, so perhaps someone here read it? I'm not asking for a ...
2
votes
3answers
579 views

Compressing 2D level data

So, I'm developing a 2D, tile based game and a map maker thingy - all in Java. The problem is that recently I've been having some memory issues when about 4 maps are loaded. Each one of these maps ...
0
votes
1answer
161 views

Java: Standing Animation

I've been working on a top-down, and the player already has animations for moving left and right. However, if I move a certain distance and stop, it will stop on the walking animation, which isn't ...
7
votes
2answers
2k views

Tilemaps in a Entity System Framework?

I have been reading up on Entity System Frameworks specifically Artemis. I am trying to decide if it is right for me. I strictly work on tile based 2d pixel art games, and I don’t think they will ever ...
0
votes
1answer
320 views

Extracting tiles from a tileset programatically?

How do I programatically extract tiles from a tileset such as this one: http://opengameart.org/sites/default/files/grassland_tiles.png I want to use these tiles in my game. I see that some tiles here ...
5
votes
3answers
896 views

Isometric tile map format

I've just knocked up a fairly basic isometric tile based game and I'm looking for the best way to store the level data. Each tile coordinate is assigned one or more numbers that correspond to a tile ...
3
votes
2answers
4k views

Effecient tilemap rendering

I have done mostly tile based games, but never really bothered with optimization. I always just rendered all the tiles that convered the viewport. I am currently working on platformer for a mobile ...
5
votes
2answers
2k views

3D terrain map with Hexagon Grids

I'm working on a hobby project (I'm a web/backend developer by day) and I want to create a 3D Tile (terrain) engine. I'm using XNA, but I can use MonoGame, OpenGL, or straight DirectX, so the answer ...
4
votes
1answer
1k views

Isometric Tile maps in Cocos2d-x

Is there an specific isometric tile map handler in cocos2d-x? I can't find any.
5
votes
4answers
628 views

Find nearest tile of type x

I currently have an array of tiles which makes up the tilemap (stored as an int array) and I want an NPC to be able to move itself to the nearest tile of type X (ie find the nearest tree and chop it ...
1
vote
4answers
610 views

Implmenting RLE into a tilemap or how to create a large 3D array?

Currently I've been using a 3D array for my tiles in a 2D world but the 3D side comes in when moving down into caves and whatnot. Now this is not memory efficient and I switched over to a 2D array and ...
8
votes
3answers
3k views

Road / river generation on 2d grid map

This is a newbie question, but here it goes: My map is a 2d grid, and I want to generate roads and rivers. The route from the starting to ending point must not be the optimal route in number of ...
33
votes
3answers
13k views

Random map generation

I'm starting/started a 2D tilemap RPG game in Java and I want to implement random map generation. I have a list of different tiles, (dirt/sand/stone/grass/gravel etc) along with water tiles and path ...
1
vote
2answers
249 views

Optimization and Saving/Loading

I'm developing a 2D tile based game and I have a few questions regarding it. First I would like to know if this is the correct way to structure my Tile class: namespace TileGame.Engine { public ...
1
vote
1answer
166 views

Connecting tiles to make a large image based on text file

If I am building my level from a text file 0,0,0,0,0 0,1,0,1,0 0,2,1,0,0 0,0,0,0,0 and I want to draw a large image, how do I go about doing that? do I take the image, separate it in tiles (the ...
1
vote
2answers
805 views

How do I implement fog of war in a tile-based game?

I have created a 2D Tile Based game. The game has a single path that the sprite can move on. I want to create to make the entire screen black except for where the sprite is. The sprite has commands ...
2
votes
1answer
265 views

Units of measurement in a tile world

I've started to make a 2D sidescroller, the camera and world rendering works as I expect, but now comes the physics part of world. What I need is that one tile in x or direction should correspond to ...
2
votes
1answer
321 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 ...
2
votes
2answers
368 views

Tile map collision is not working properly

I am having problems setting collision between my sprite and the tiles. I have only done the code for colision for moving upwards but some places on the map it moves up and some places it doesn't. ...
7
votes
2answers
890 views

Choose tile based on adjacent tiles

I am working on a tiled map editor, and I need to choose tiles automatically, based on the adjacent tiles. For example, when placing a road tile, next to another road tile, the two need to be oriented ...