Patterns of identical shapes (often squares or hexagons) that have no gaps. They usually represent the playfield in various games.
2
votes
2answers
1k views
How can I achieve smooth animation of sprites between discrete tiles?
I'm currently learning game development with C# and XNA and my current assignment is to create a Pac-Man clone.
The game is partially tile based, which means that the level itself is built out of an ...
1
vote
6answers
431 views
Is it good to sort objects list before every rendering?
I need to render a "tile" game, which are like these:
or
or
I don't know how to render them in correct order. I intend to perform a sorting operator before every rendering (depending on their ...
1
vote
3answers
917 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 ...
1
vote
3answers
308 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
3answers
276 views
(int) Math.floor(x / TILESIZE) or just (int) (x / TILESIZE)
I have a Array that stores my map data and my Tiles are 64X64. Sometimes I need to convert from pixels to units of tiles. So I was doing:
int x
int y
public void myFunction()
{
getTile((int) ...
1
vote
2answers
624 views
How can I make a tile appear on top of another without completely blocking the tile below?
Making a small RPG with libdgx just for learning about how to draw tiled maps and move around in them. I've got the tiles drawn and OrthographicCamera stuff figured out so I can see my world. My ...
1
vote
2answers
355 views
How can I create tiles that scale to multiple resolutions?
I am trying to create a multiplayer version of the popular Flash game N in Java. However, I'm not sure how to create a tileset that will scale up. Are the tiles for N pre-drawn or are they defined ...
1
vote
2answers
436 views
Detecting a click on a tile
I'm making a simple tile-map system in LWJGL, and I'm trying to figure out how to detect if the mouse is clicking inside of a tile. So far no matter where I click it's always the same tile that is ...
1
vote
2answers
2k views
How to Create a Grid for a 2D Game?
So I'm currently writing the engine for my videogame. I've almost integrated Tiled (I think) so I should have a map-creator here soon.
My question is, how do I actually make the grid? I'm really ...
1
vote
2answers
514 views
Efficient collision detection - tile based HTML5/Javascript game
I'm building a basic RPG game and I'm looking at collisions/pickups etc now.
It's tile based and I'm using HTML5 and Javascript.
I use a 2D array to create my tilemap.
I'm currently using a switch ...
1
vote
2answers
219 views
How to detect whether or not a tile is occupied?
I'm using Python 2.7 on Win7x64 with PyGame
What is the best way to iterate over all the tiles in the game or screen, efficienty? Ideally I have about 800 tiles, but that is a dynamic number I've ...
1
vote
1answer
221 views
How can I change the path a sprite is following in real time?
Is there a common way to implement a character following path that is issued and replaced in real time?
For example: the character follows a path issued, and while it's on that path, if a new path is ...
1
vote
4answers
856 views
Tile-based maps in AS3
I want to make a tile-based platformer in AS3.
I want my game to read an external maps file (in xml or json or somethimg similar) to draw a tile-based map.
I've seen loads of tutorials for this in ...
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
1k views
Drawing hexagonal grid on Android
I'm trying to draw a hexagon grid in my Android application. I don't want to reinvent the wheel here so I'm looking for some frameworks/libraries or just some basic ideas about how should one do this. ...
1
vote
1answer
307 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. ...
1
vote
1answer
538 views
How to draw a tileset using HTML5 canvas?
I have a tileset something like this:
0, 1, 2, 3, 4, 5,
6, 7, 8, 9, 10, 11,
12, 13, 14, 15, 16,
17, 18, 19, 20
My tileset draw code looks like this:
var image = new Image();
image.src = ...
1
vote
2answers
402 views
Level Creating Help
I am making a little 2d overhead RPG type game just for fun. I have almost all the basic stuff set up, but I just need a little help on level creation. I can already make a level and place each tile ...
1
vote
1answer
102 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
284 views
How to render a tilemap efficiently? [duplicate]
I'm using this code to load a tiled map, composed of 1000x1000 32x32px tiles:
map = new TmxMapLoader().load("levels/xyz.tmx");
camera = new OrthographicCamera();
camera.setToOrtho(false, ...
1
vote
3answers
155 views
XNA seams between 3d primitives in tiled terrain
Every time I draw two primitives side by side, in this case two quads, I always get this seam-like tearing effect right along the sides of them. I'd like to think there is just an easy fix, but the ...
1
vote
1answer
241 views
Saving a list of points into a text file
I recently posted a question about this, but was not really sure where to go. I've gotten some progress, and have generated some simple noise here:
http://pastie.org/5408655
That works well enough ...
1
vote
1answer
123 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
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
vote
2answers
598 views
Image splitting / tiling software for Mac
I have been programming for a bit and for 2D games and other applications I frequently make large images for the levels / the maps. Before I place these into the games I split the large images down ...
1
vote
1answer
578 views
Tile based game engine for WP7?
I showed my friend a demo of what I was doing with the farseer physics engine on the windows phone and he wanted to know if farseer would be good for a game he wants to develop. It's a tile based game ...
1
vote
2answers
314 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 ...
1
vote
2answers
543 views
Java: Tile-based Collision Detection with Rectangles
There are a few tile-based collision detection questions out there, but none seemed to suit my need.
I guess I really would like to know why this method for collision detection isn't working.
It ...
1
vote
3answers
519 views
Collision Detection Problems
So I'm making a 2D tile based game but I can't quite get the collisions working properly. I've taken the code from the Platformer Sample and implemented it into my game as seen below.
One problem I'm ...
1
vote
1answer
230 views
How to unpack tileset or image atlas
In order to define boundary of each tile, I need to have individual image of the tile. Is there any way to extract each image of tiles from a tileset?
1
vote
1answer
250 views
How do I determine if a tile is a slope based on the tile image?
In my game, every tile is a 32x32 texture. All the slopes are a 0 - 45 degree angle. I would like to determine, at the time I load the tile, if the is sloped by examining its texture/bitmap data. How ...
1
vote
2answers
660 views
2d very large tile based game, zoom and pan considerations
what's a sensible way of implementing zoom and panning for my game?
each tile is very large, 100,000 x 100,000 pixels, with some objects possibly being only a single pixel at maximum zoom (small ...
1
vote
1answer
2k views
Collision Detection for sidescrolling Tile based Game
I've been working on a tile based game with a 2d array as fundamental ground for my tiles. Now my next step is to have the wall tiles be impenetrable, so that the player can walk ontop of them and ...
1
vote
1answer
275 views
How is a moving object like a platform represented in a 2d Tilemap
I'm having trouble understanding how I would implement a moving platform in the actual map file. Lets say its a file of character's and maybe the letter 'P' would stand for Platform. Then, how would ...
1
vote
3answers
159 views
Splitting tileset into individual tiles
I'm trying to split a tileset (from here) into individual tiles.
For debugging purposes I wrote some code to split the tileset into individual tiles and display them on screen, but some aren't being ...
1
vote
1answer
165 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);
...
1
vote
1answer
65 views
TiledMaps and real objects
I'm creating a simple game for the iPhone using Cocos2d.
I'm having a hard time understanding how add real objects to a tiled map.
I know that you can add an object-layer to the tiled map and set the ...
1
vote
1answer
219 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
...
1
vote
1answer
220 views
SDL: How would I add tile layers with my area class as a singleton?
I´m trying to wrap my head around how to get this done, if at all possible. So basically I have a Area class, Map class and Tile class. My Area class is a singleton, and this is causing some ...
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
417 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 ...
1
vote
1answer
1k views
XNA 2D Collision with specific tiles
I am new to game programming and to these sites for help. I am making a 2D game but I can't seem to get the collision between my character and certain tiles. I have a map filled with grass tiles and ...
1
vote
2answers
502 views
Grid pathfinding with a lot of entities
I'd like to explain this problem with a screenshot from a released game, DROD: Gunthro's Epic Blunder, by Caravel Games.
The game is turn-based and tile-based.
I'm trying to create something very ...
1
vote
1answer
543 views
hexagon tiles to square tiled map
in a previous question asked here:how-to-create-a-hexagon-world-map @Tim Holt has provided code that does the job that i'm wanted to do, the only difference I would like is to have it as squares ...
1
vote
0answers
65 views
How do I make a custom tileset for Flixel that supports autotiling?
I've been Googling this problem for a while now. I'm currently porting one of my Java games to Flixel, and I want to use the original 16x16 tileset I made. In the original game I implemented my own ...
1
vote
1answer
143 views
Tile Based Engine: Storing Tiles and Levels
I've worked with tile-based engines before (a few years ago when I was pretty green). Now that I know a bit more, I want to revisit tile-based engines but I want to approach it correctly. I want to ...
1
vote
2answers
185 views
Tile-based game with DirectX - issues with transparency and StretchRect
In my current project I have a class which loads a map file and then it should load all associated tilesets (no transparent tiles - I used to work with magenta as a colorkey) and precreate a surface ...
1
vote
1answer
68 views
Automatic Tile Transitions Not Working Correctly [closed]
I've started writing a tile based game in XNA today using the tutorials here. I'm on the Part 6 - Side Topic - Auto Transitions at the moment. My transitions aren't working correctly as you can see ...
1
vote
0answers
717 views
TileMapRenderer in libGDX not drawing anything
So I followed the tutorial on the libGDX wiki to draw Tiled maps but it doesn't seem to render anything.
Here's how I setup my OrthographicCamera and load the map:
camera = new ...
1
vote
0answers
245 views
Need to produce an animated texture of Water where each image tiles in all directions
I need to produce a 2D 'animated' texture of "water" for a game in which each image tiles in 'all' directions, much like those produced by the Caustics Generator, but with the power and flexibility of ...
