Tagged Questions
-3
votes
0answers
51 views
How to animate the Tilemap object in Libgdx? [closed]
I am facing problem to animate or move the object(Cell) of Tilemap??? Is there any solution for this???
1
vote
1answer
104 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 ...
1
vote
1answer
166 views
Tiled map seen from an angle
I have working code to display a tiled map. It's composed of a OrthogonalTiledMapRenderer and an OrthoGraphicCamera :
camera.setToOrtho(false, WORLD_WINDOW_SIZE.x,
WORLD_WINDOW_SIZE.y);
...
0
votes
1answer
116 views
Creating a BufferedImage with several smaller images?
I am making a 2D tile based game. The tiles render fine from a spritesheet and a text file. However, I am using a for loop to draw the map to the screen. When it refreshes, it slows down the loop, and ...
2
votes
1answer
121 views
How do I eliminate black bar artifacts in AndEngine/TMX plugin?
I used AndEngine gles1 along with the tmx plugin to generate my background maps. The image width is not fit to my virtual device, so I increased the tmx image size. Here is my code for the camera ...
-1
votes
1answer
181 views
Should I load a game map as a tile map or as an image map? [closed]
Which is better for game prototyping of a game map: a tile map or an image map? What are their respective pros and cons? Should I, in other words:
Load the map as a png and set collision points ...
-2
votes
2answers
207 views
How can I draw a map that is stored in arrays [closed]
I have spent over 12 hours with no avail trying to successfully draw my map.
The map is stored in an array called Tiles[]. Each value in Tiles can either be 4 numbers:
Grass
Stone
Water
Void (EMPTY ...
18
votes
1answer
732 views
Difference between “staggered” isometric and “normal” isometric tilemaps?
The Tiled Map Editor v0.9 recently added support for staggered tilemaps in addition to its usual isometric tilemap support.
What are the exact technical differences between these two types of ...
0
votes
1answer
159 views
Is caching tiles like this a good idea?
I have a 2d int array which represents tiles on level like this:
0000000000000000000000
0000000000000000000000
0000000000000000000000
1111111111111111111111
I have a tileset vector, where each ...
6
votes
1answer
274 views
Elegant autotiling
I'm looking for information about how people implement autotiling in their tile-based games. So far I have always improvised it with a bunch of hardcoded "if ... else ..." statements, and now I ...
1
vote
2answers
315 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 ...
2
votes
2answers
678 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 ...
1
vote
1answer
221 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
...
0
votes
2answers
1k 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
106 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
924 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
319 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 ...
1
vote
3answers
418 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 ...
5
votes
2answers
949 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
214 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 ...
0
votes
0answers
45 views
How to load tile from an Arcade Rom gdx file?
I'm trying to see how tiles are saved doing some reverse engineering using old roms gfx files (this example trying with snow bros arcade set one) .
This is what I know now :
Each color point to a ...
5
votes
4answers
357 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 ...
27
votes
3answers
5k 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
210 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
124 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
3answers
311 views
For the handling of buildings on a tile-based strategy game, what aproach should I use?
On a tile-based game of the strategy genre, which allows the player to place buildings over the terrain tiles, there are multiple approaches that can be taken for handling such situation.
The ones ...
1
vote
2answers
424 views
How can I efficiently store tilemaps in work memory?
I've been working on different tile-based projects, but never really bothered with being efficient memory-wise. Each tile was represented by a tile class which would hold the following:
X and Y ID ...
-1
votes
2answers
541 views
How to calculate the direction a ball must bounce
I have a tile engine I have made. I can detect collision between the ball(the player) and the tiles. When a collision is detected all the colliding tiles are stored inside a list. My question now is, ...
1
vote
1answer
308 views
Tile transitions - external vs internal
I've been looking at a couple of games and noticed that the transitions between tiles are handled somewhat different.
I was wondering which methods are to be used in different situations and why. ...
3
votes
1answer
789 views
Canvas tile grid, hover effects, single tilesheet, etc
I'm currently in the process of building both the client and server side of an HTML5, canvas, and WebSocket game.
This is what I have thus far for the client: http://jsfiddle.net/dDmTf/20/
Current ...
2
votes
2answers
1k views
2D side scroller - How to implement X/Y movement?
I'm currently writing a small 2D, side-scroller-ish kind of game.
I have a simple camera that follows the player around and the physics are ready.
I'm using 32x32 tiles that build out the world, ...
5
votes
2answers
1k views
Collision Detection, player correction
I am having some problems with collision detection, I have 2 types of objects excluding the player. Tiles and what I call MapObjects. The tiles are all 16x16, where the MapObjects can be any size, but ...
2
votes
2answers
272 views
Calculating the number of tiles shown on an isometric map
I'm currently changing an existing computer game from a top-down view to an isometric view. The map consists of an infinite number of tiles. Only the tiles which are currently visible in the players ...
2
votes
1answer
518 views
Slick2D Tile Based 'Fog of War' Blurring Problem
I'm working on my first Java Game and I have run into a little problem I'm hoping to get some help with. I'm using Slick2D displaying a tile based map, and I'd like to know how I can created a ...
0
votes
1answer
489 views
Moving a sprite over a tile map
I am working on a tile based game in Java. I have a 2D array of tiles (JComponents) in a GridLayout, this is fine for creating the world (I think), but I am stumped at how to move the sprite smoothly ...
0
votes
2answers
486 views
How do I handle specific tile/object collisions?
What do I do after the bounding box test against a tile to determine whether there is a real collision against the contents of that tile? And if there is, how should I move the object in response to ...
3
votes
1answer
421 views
Storing large layered tilemap
My game consists largely of "sea" tiles with sections of tiles that form "islands". The sea tiles are all exactly the time.
The map itself is pretty large and only going to get larger. I'm trying to ...
11
votes
3answers
7k 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 ...
23
votes
3answers
2k views
Random seed function for map generation?
I am looking for a function to generate a random tile-based map as the visual boundaries of the map change (by going through the map). I want the map to be infinitely large, and have maze-like ...

