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
2answers
939 views

textures in tilemap games: use 2d planes or 3d objects? (example with Dragons of Atlantis)

How to create the textures in games such as Dragons of Atlantis? I was thinking about 2 ways: using 2d planes to save space and memory, using the color from the 3d software adding a very simple ...
0
votes
2answers
454 views

How to make different layers in a 2d game map

My question is this: How do I make a gamemap from the drawings on my spritesheet? The tutorial I have followed for making a java 2D game uses this technique to make a gamemap: in photoshop I create ...
-1
votes
1answer
207 views

How to draw a map for the game? [closed]

I wanted to make a small game, it will be about space. But I had a couple of questions, how to draw a map for the game? I would like to have lots of planets, possible consolidation of the system (as ...
3
votes
1answer
279 views

Why is my Tiled map distorted when rendered with LibGDX?

I have a Tiled map that looks like this in the editor: But when I load it using an AssetManager (full static source available on GitHub) it appears completely askew. I believe the relevant ...
0
votes
1answer
282 views

A*, Tile costs and heuristic; How to approach

I'm doing exercises in tile games and AI to improve my programming. I've written a highly unoptimised pathfinder that does the trick and a simple tile class. The first problem i ran into was that the ...
2
votes
1answer
196 views

Masking OpenGL texture by a pattern

Tiled terrain. User wants to build a structure. He presses build and for each tile there is an "allow" or "disallow" tile sprite added to the scene. FPS drops right away, since there are 600+ tiles ...
1
vote
0answers
127 views

Drawing visible tiles - side scrolling

Currently I'm calling drawMap every time repaint is called. This is the code I've written for my drawMap method so far. public void drawMap(Graphics2D g2d) { int minOffsetX = 0, minOffsetY = 0; ...
2
votes
1answer
236 views

Handling buildings in isometric tile based games

A simple question, to which i couldn't find a definitive answer - how to manage buildings on a tiled map? Should the building be sliced in to tiles or one big image? EDIT: The game is being built ...
-3
votes
1answer
256 views

How do I export a .tmx file into a custom format?

I just created a map in tiled software. The problem is that it has created a .tmx file. But I need a different format than that, something I can easily store in 2D int array. By 2D int array I mean: ...
3
votes
1answer
364 views

How do I detect a tile map collision's direction? [duplicate]

I'm implementing collision detection with the map for my platformer. I have a method that generates a polygon on every tile and checks if the player hits it -- that's all fine. The problem is that ...
1
vote
1answer
329 views

What's the most memory efficient way to load a tiled map?

Currently I am working on a simple 2D platformer and I want to load a tiled map. What I've started working on is loading the tiles using a text file. My first question is simple: is a text file the ...
0
votes
0answers
122 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
2answers
387 views

How do I make a Box2D object that makes objects passing through it slower?

I wish to have a sort of "slow motion" or "slow down" effect on a players character when they walk in a mud area, usually the character velocity is 3f constant in any one direction. The problem is I ...
1
vote
1answer
295 views

Making a 2D TMX tile map

Should there be a specific link between the characters height as well as the tile size for the tile maps? That is if a tile is 32x32 does that mean that a character sprite has to be the same size? ...
0
votes
1answer
241 views

Tile Maps and vertexZ order for sprites

Here is the setup. I have a orthogonal tile map made with Tiled. There are 5 layers. The bottom 4 comprise the background, while the top layer is the foreground that I will refer to as the “tree” ...
6
votes
2answers
219 views

Should an actor know its position (or map should know it)

In a tile-based game (in this case MMO), should an actor (e.g., player) know its position, or should only the map know its position? If an actor is placed on a grid map, it is placed on a specific ...
0
votes
3answers
395 views

Tile Map World Background

I am making a 2D top-down game in Java using the Slick2D library. However, this question applies to all ways of making games of this nature. My question is: How would I do a background for the world. ...
3
votes
1answer
343 views

Javascript tile map -> bitmap or JSON

I would like to know which idea is better in terms of performance. The map is 5000x5000 tiles and I plan to expand it even more. It is split into 50x50 regions and camera doesn't move with player, ...
1
vote
2answers
296 views

Full map image loading, vs individual tile loading

I want to make a isometric tile game in java, like a lot of strategy games out there. What is the best approach to loading the map for this game? Would it be better practice to load one single image ...
0
votes
1answer
249 views

Map handling - Indoors/Outdoors and loading large maps

I have two questions regarding the handling of maps. Question 1. My map will consist of outdoor enviroments as well as dungeons, houses etc. How would I go on about connecting the outdoors with the ...
-1
votes
1answer
770 views

Xna tile map collision

I finally found a tutorial on tile maps and loading them in from a file that I understand (http://circlessuck.blogspot.co.uk/2012/09/xna-tutorial-basic-tile-engine-part-2.html), however the tutorial ...
5
votes
2answers
519 views

storing procedurally generated roguelike world into zones

I am currently developing a 3D roguelike game which will take place in a very large world. The world is generated by procedural algorithm supplied by external script in run time. To speed up rendering ...
1
vote
2answers
199 views

Map logical coordinates to graphical for walking

I'm having a problem with mapping logical coordinates to graphical ones when my character is walking. I've been able to map them without the graphical walking in between, i.e it just "jumps" from one ...
0
votes
3answers
1k views

OpenGL tile rendering

Currently I'm trying to render a TileMap using OpenGL 2.1, GLSL 1.2. I would like to draw every tile in just one draw call. I use a single texture with all tiles, identifying each one by an index. ...
1
vote
1answer
2k views

How do I detect and handle collisions using a tile property with Slick2D?

I am trying to set up collision detection in Slick2D based on a tilemap. I currently have two layers on the maps I'm using, a background layer, and a collision layer. The collision layer has a tile ...
2
votes
2answers
653 views

Loading map in tile based game

I'm currently working on a simple 2D tile based game. I want to let users (=players) to create really large maps without problems with performance. That is why I'm searching the way how to optimalize ...
-1
votes
2answers
399 views

how to do turn based board game movement on a 2d map

I don't know if what I programmed worth anything, I've never programmed something like that, I just need to handle a player movement on a map, I thought a tile map will work, but I don't know anymore. ...
1
vote
2answers
170 views

Cocos3D: weird line between adjuscent 3d planes

I have created a textured plane in blender of size 2×2 and I am using that as a tile. This is the screenshot of what I have done in blender. Nothing special, the default plane on origin, I just added ...
2
votes
1answer
332 views

Fitting tilemap to any screen resolution

My game is a 2D Single-Screen (i.e. non-scrolling) platformer for Android, but the question here doesn't require a code-specific answer. Basically it's easier for me to show the problem using a ...
1
vote
1answer
268 views

Tiled based pathfinding in a 1- or 2-dimensional array

As far as I know all tile based map editors export a JSON object containing one dimensional arrays. While most pathfinding libraries/tutorials are only provided for two dimensional arrays. Also if ...
3
votes
2answers
343 views

Word Search Game Issue

I am developing a game like word search. I have used AndEngine for this and for displayig grid of words I have used TiledMap. In this game, we need to join letters to make a word as we drag our ...
2
votes
1answer
808 views

How to handle a Tile Map Scrolling [duplicate]

i'm making a video game, and i'm having, i think, a concept problem. The game will be a platformer which will use tile maps, so to start i will create a mask matrix indicating the tiles to be loaded, ...
0
votes
1answer
185 views

Should I make the Cells in a Tiledmap as null when my player hits it

I am making a Tile Based game using Libgdx. I took the idea from SuperKoalio platformer demo by Mario Zencher. When I wanted to implement Collectables in my game , I simply draw the coins using Tiled ...
2
votes
2answers
812 views

How do I create curved ground in a 2D runner game?

If I use tiled based map I can have only rectangular objects. What is a strategy for creating slanted or curved ground in that case? Should I use a tile-based map, or should I define corner points ...
2
votes
2answers
348 views

How to draw tile edges when you don't know where they're going.

This is more of an art question than a programing one but still game development. I have a tile engine that makes a map randomly from tiles, each tile is a square 3x3 grid. The problem is that while ...
0
votes
1answer
383 views

How can I create a tile-based game map from a large source image?

I'm trying to make a huge tile-based map for my game. I've authored a large source image of the map and saved it, but now I'm unsure how to break this up into tiles and render it as a grid so I can ...
1
vote
1answer
380 views

How can efficiently I edit my 2D tile-based maps?

I've been developing a very basic 2D tile-based game for my own experience. I read what must be hundreds of tutorials on what I found on Google with "tile based maps". Almost every tutorial I see is ...
0
votes
0answers
381 views

TIled map rendering in libgdx

Good day. First of all, some explanation of situation. Init tiled map code: map = new TmxMapLoader().load("maps/map.tmx"); mapRenderer = new OrthogonalTiledMapRenderer(map, 1f / 32f); Rendering ...
0
votes
1answer
469 views

How exactly do you deconstruct the Tiled Map Editor exported tile ID?

I am trying to build 2D maps with Tiled Map Editor for my game, and I export them under text format, so a tile can look like this: 1,2,3,15,2,12,2 5,23,1,6,2,3,4,6 and so on, for many rows. ...
1
vote
1answer
2k views

how to get width and height of TiledMap in the latest Version of Libgdx

I am making a tiled based game, I want not to let the camera show places, where there is no map... this is a obvious solution I got from a tutorial if(camera.position.x<400){ ...
8
votes
3answers
415 views

Is it feasible for a Server to send nothing more than a tile-based area to a Client?

To start, I have a good amount of background in networking (hardware, routers, ex.) but very little knowledge past the basics of network programming. This may seem like a stupid question, but I want ...
0
votes
0answers
108 views

libGDX TileMapRenderer not doing anything

I was using this tutorial and tried to make the TileMapRenderer work, but I can't. It never renders anything, no matter what i do. EDIT: I found out that the problem has nothing to do with the code. ...
8
votes
2answers
394 views

Diagonal line of sight with two corners

Right now I'm using Bresenham's line algorithm for line of sight. The problem is I've found an edge case where players can look through walls. Occurs when the player looks between two corners of a ...
2
votes
1answer
1k views

Tilemap collision in component based entity system

I am trying to set up a collision system for a tilemap in my component based entity system, but having trouble with figuring out how to do so. Currently I have the following approach: My tilemap ...
1
vote
2answers
484 views

best structure to handle entities in an entity component based game engine

I am trying to develop a 2D entity component based game with multiple layers as tilemaps (front or back from the scene). I currently handle the tilemap layers in a 3 dimension array[z][y][x]. Each ...
1
vote
1answer
1k views

What can i use as a 3d Tile map editor? [closed]

I need to make grid based levels with 3d models for a dungeon crawler ( as a recent example Legend of Grimrock), but i need to have several layers and place entities with properties and position, ...
4
votes
1answer
406 views

Working principle of an RPG map

I am currently thinking of building a basic browser-based 2D(that would eventually become 2.5D) RPG. I have planned everything and I think that would be able to accomplish the current goals, but it ...
5
votes
2answers
721 views

3D models on 2D tilemap perspective when scrolling

I am creating a small top-down game, where the player traverses a 2D tilemap, with an illusion of depth provided by 3D models for things like buildings or trees. Having gotten to the point where I ...
0
votes
0answers
143 views

How to manage multiple objects for a tile based game for collision?

So I'm making the tile-based 2D sandbox platformer...thing to get an idea of how to manage different elements of coding games. Currently I'm at the point where my collision system works fine for a ...
1
vote
1answer
174 views

Help developing grid maps

I have been working with Tiled and Cocos2d lately but am having problems understanding how Im suppose to be doing the maps. Tiled is not an image editor, so I create my tileset in Gimp. However it ...