Patterns of identical shapes (often squares or hexagons) that have no gaps. They usually represent the playfield in various games.
0
votes
1answer
163 views
Iterating 1D array and getting 2D tile position
I know I'm missing something very obvious here, but I have a 1D array that contains integers.I have a map that is 30 x 30 and the center coordinate is 0,0 (This is actually 3D, but I'm essentially ...
0
votes
0answers
172 views
Pushing Block in Tile Based 2D Game in XNA
i am currently working on a 2D Platformer with XNA (just for fun). At the moment i am using a tile system to represent the map where the tiles are getting loaded according to a template like so:
...
3
votes
1answer
115 views
Coordinates on the top left corner or center of the tile
I'm setting up a tile system where every tile has x and y coordinates. Right now I assume that the top left corner of the tile is positioned on it's coordinate on the screen, x = tileX * tileWidth and ...
1
vote
4answers
858 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 ...
2
votes
1answer
170 views
Collision detection problems - Javascript/Canvas game
What I want to do:
I simply want the have a 2D array to represent my game map.
I want a player sprite and I want that sprite to be able to move around my map freely using the keyboard and also have ...
1
vote
2answers
516 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 ...
14
votes
6answers
1k views
Elegant solution for coloring chess tiles
I am re-developing a chess game I wrote in Java, and was wondering if there is an elegant algorithm to color chess tiles on a numbered chess board.
Right now my solution uses if else statements to ...
-3
votes
1answer
208 views
Isometric Rendering and Picking [duplicate]
Possible Duplicate:
Isometric rendering and picking?
I've been looking for a formula to plot (world->screen) and mouse pick (world->screen) isometric tiles in a non-diamond-shaped world. ...
0
votes
1answer
95 views
How to achieve selection of a tile from a tile sheet based on an ID?
Let's say I have a tile sheet that contains 8 sprites per sheet. Each sprite is a tile of 30x30.
I wrote my own custom map parser/map loader however I'm having trouble extracting a certain tile ...
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
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 ...
2
votes
2answers
673 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
0answers
722 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 ...
3
votes
1answer
294 views
Problem with Ogmo Editor (is Tiled Editor a solution?)
I made a level editor for a puzzle game with Ogmo Editor and gave it to our designer/level designer. When he downloaded and started Ogmo, his CPU went to 100%. I looked at my CPU usage while Ogmo is ...
-1
votes
1answer
163 views
Get coordinates of arraylist
Here's my map class:
public class map{ public static final int CLEAR = 0;
public static final ArrayList<Integer> STONE = new ArrayList<Integer>();
public static final int GRASS = 2;
...
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
...
3
votes
4answers
637 views
What would be a good way to implement/render a 2D tiled map for a browser game?
I've made this little RPG Ruby game I did while learning and now I'd like to make it into a browser game. I've already set up Sinatra framework to serve it, so what I am looking for, before everything ...
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 ...
-4
votes
1answer
306 views
Smooth scrolling a staggered iso map [closed]
I got a staggered iso map that I want to be able to drag scroll with the mouse. I have it almost working but it is a bit glitchy, especially near the borders. Maybe you have an idea how to fix that.
...
0
votes
0answers
85 views
Determine how to display a tile based on surrounding tiles [duplicate]
Possible Duplicate:
Choose tile based on adjacent tiles
I have a game engine which generates maps randomly, set on a 2d grid which is composed of 34px square graphical tiles.
These tiles ...
0
votes
0answers
169 views
Cocos2d Tiled Dynamic Object Layer
I'm trying to develop a cocos2d tiled based game using a sort of 'dynamic' object layer. What I want to do is after the tiled map is loaded, the user can drag something into the map and that will ...
0
votes
2answers
242 views
Shuffle tiles position in the beginning of the game XNA Csharp
I'm trying to create a puzzle game where you move tiles to certain positions to make a whole image. I need help with randomizing the tiles start position so that they don't create the whole image at ...
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
0answers
94 views
What are the document grid settings in inkscape for making an isometric tilemap for tiled?
I am using inkscape to create a isometric tilemap. What settings do I need on the grid in document properties in inkscape to make it match up to a 64 x 32 grid in tiled?
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 ...
4
votes
1answer
309 views
How to use caching to increase render performance?
First of all I am going to cover the basic design of my 2d tile-based engine written with SDL in C++, then I will point out what I am up to and where I need some hints.
Concept of my engine
My ...
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 ...
4
votes
1answer
1k views
Repeat texture in libgdx
How to fill region with repeated texture? Now I'm using next method:
spriteBatch.begin();
final int tWidth = texture.getWidth();
final int tHeight = texture.getHeight();
for (int i = 0; i < ...
1
vote
2answers
625 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
1answer
125 views
How to Use Images Instead Of Drawing Primitives [closed]
I want to build backgammon game. I have successfully built the board using primitives such as lines, triangles and circles. I'm curious whether it's possible to draw the board using images which will ...
1
vote
3answers
918 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 ...
3
votes
3answers
396 views
Tile based platformer, using larger tiles?
So for my tile based platformer, It has a grid of tiles Occupying 1x1 block for each one.
However, What if I want larger tiles? Maybe doors, tables, etc. They wouldnt fit in a 1x1 tile, so what I ...
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 ...
0
votes
0answers
132 views
Farseer non-colliding bodies affect eachother
I'm trying to use Farseer to make a tile engine, but bodies that are not colliding with a sprite are still having an effect on it.
In this image there is a single sprite(the green box) and a single ...
1
vote
2answers
544 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
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 ...
0
votes
2answers
265 views
How many Fringe/Base layers in a 2D map editor?
I'm creating a highly flexible 2D tile-based map editor in XNA to make some of my future projects easier (will work for side-scrollers and top-down games). This editor can work with any sized tile.
...
4
votes
1answer
469 views
Efficient physics and collision detection for RTS
I'm thinking about writing my own RTS game and while I'm more or less clear about how the game engine should work, I need some directions as to how to implement physics and collision detection.
Now, ...
5
votes
2answers
946 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 ...
2
votes
2answers
302 views
How create a respawn area in a tiled map
I'm creating a RPG game, I need to create a monster respawn area like the Pokemon games where if I walk through the long grass areas a Pokemon can appear. I already created the battle scene, I've seen ...
0
votes
1answer
212 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 ...
3
votes
2answers
1k views
Map tile terrain transitions with 3-4 different types
Making transitions between two different tiles is a fairly well understood problem. The easiest way is to look at the 0.5, 0.5 and use the resulting 4 corner points to select a transition tile, as ...
-2
votes
1answer
203 views
Tile engine Texture not updating when numbers in array change
I draw my map from a txt file. I am using java with slick2d library. When I print the array the number changes in the array, but the texture doesn't change.
public class Tiles {
public Image[] tiles ...
0
votes
0answers
471 views
Pac - Man game collision ActionScript 3.0
I'm making a very simple Pac - Man game and have everything working except for a small bug. I'm using a grid based system where Pac - Man can only move if the tiles in front of him are open. ...
-1
votes
1answer
1k views
Isometric 2D game without tiles. Is there a solution?
Is it possible to create an isometric view of the game without the use of tiles
Looking at this forum and stackoverflow.com and gamedev.stackexchange.com.
(I work with Corona SDK and could not find a ...
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 ...
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 ...
7
votes
3answers
524 views
Multiplayer tile based movement synchronization
I have to synchronize the movement of multiple players over the Internet, and I'm trying to figure out the safest way to do that.
The game is tile based, you can only move in 4 directions, and every ...
5
votes
4answers
356 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 ...
