Patterns of identical shapes (often squares or hexagons) that have no gaps. They usually represent the playfield in various games.
0
votes
1answer
55 views
How to store NPC movement data?
In my 2D tile-based game, I have NPCs that move around on a fixed path. I am putting the information about the NPCs in a .plist file that is loaded on startup. The thing is, I'm not sure how to format ...
-1
votes
1answer
44 views
Slick2D and TileD [closed]
I've been learning Java for a while, and with my aims of being a game developer later in life, I've came across Slick2D+lwjgl and following tutorials and making some little things. However; I don't ...
-1
votes
0answers
23 views
TMX loader for Gosu
Is there a fully operational and updated TMX tiled map loader for gosu?
If not, is there another option for tiled maps that will save me the need to write my own implementation?
0
votes
0answers
32 views
Need help with collision with player and tiles XNA [closed]
I have a player collision with the rectangle size 16x32
and the tiles are in 16x16 sizes. I have a problem checking collision with player touching 2(or more) tiles ontop of each other.
My code works ...
-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???
0
votes
2answers
117 views
Displaying possible movement tiles
What's the fastest way to highlight all possible movement tiles for a player on a square grid? Players can only move up, down, left, right. Tiles can cost more than one movement, multiple levels are ...
1
vote
3answers
164 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 ...
-3
votes
0answers
48 views
Bullet not return when player shoot to any object [closed]
package com.example.game4;
import java.io.IOException;
import java.util.Iterator;
import java.util.LinkedList;
import javax.microedition.khronos.opengles.GL10;
import ...
2
votes
1answer
88 views
Get average tile color
In my 2D game I have TileSet class that loads the texture and creates Rectangle[] array which stores each tile coordinates. Pretty basic stuff. Now I'd like to also calculate and store the average ...
0
votes
0answers
65 views
Why does Slick import Tiled object rectangles without width, height, and name tags?
I tried using Tiled rectangle objects as walls with Slick's TiledMapPlus class, but as I soon realized that each GroupObject would return 0 for width and height. The code I used looks like this:
...
0
votes
0answers
133 views
2D tile-based collision: avoid tunneling
We have a box that tries to move from A to B. In order to avoid tunneling we need to check if there is a collision in the path described by its four corners.
Let's focus on the bottom-right corner of ...
2
votes
1answer
136 views
How to know the boundaries of an isometric tile?
In a 4x4 square tile, it's easy to know which pixels are inside the tile's boundaries. I know immediately that the 4th vertical pixel is supposed to be drawn but the 5th isn't.
However, on a ...
0
votes
3answers
209 views
How to create levels (tile maps) [closed]
I am new to game programming and I am having so much hard time learn on my own. My goal is to make a game with different levels.
so far my plan:
i have 2 classes
1 - main.java
2 - level_01.java
3 ...
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 ...
2
votes
2answers
233 views
Implementing tile-based movement on 2D platformer
I'm trying to make a cinematic platformer, in the veins of the first two Oddworld games, Flashback, Prince of Persia, Blackthorne and so on. This article describes very well how this kind of movement ...
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 ...
1
vote
1answer
288 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, ...
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 ...
-1
votes
2answers
414 views
How to make a map [closed]
For school my group and I are going to make a 2d turn based strategy game on android.
We are trying to make a simple version of Advanced Wars(screenshot1 Gameplay).
But we don't really know how to ...
1
vote
0answers
67 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 ...
-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 ...
1
vote
3answers
156 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 ...
-2
votes
3answers
422 views
Does Unity support 2D tiles/blocks? [closed]
I'm working on an XNA isometric game and I've already done lot of work. Since
XNA is going to be discontinued, I'm not sure if I should change engines or not. So I'm looking into alternatives.
I'm ...
2
votes
1answer
45 views
pytmx: issue trying to get the correct texture rectangle for sprite for objetcs on map
:D Hello :D
I am currently developing a game engine. I'm using maps designed with Tiled and I placed several objects on a test map to develop the feature of loading objects as sprites/entities and ...
1
vote
1answer
144 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 ...
0
votes
2answers
223 views
How can I move an object over a drawn tile map in HTML 5 without constant buffering?
I've been messing around with HTML5 for quite some time now but this is something that I guess I haven't figured out how to handle well yet. I'm sure there's an extremely easy solution and I just ...
1
vote
2answers
189 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
6answers
433 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
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
69 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 ...
0
votes
1answer
49 views
Saving an arbitrary sized 2d array
I'm trying to create an arbitrary sized(but not infinite) 2d tilebased world. My question is, how do i save a world like this?
My idea was to split up the tiles into bigger chunks and then save those ...
0
votes
2answers
234 views
How to draw only visible tiles?
I have a big map with isometric tiles(3d camera), how can i draw only visible tiles ?
Whats the best way to do that ? space partitionning (octrees etc...)?
0
votes
1answer
278 views
Please help me with my 2D isometric tile picking [duplicate]
Possible Duplicate:
How to convert mouse coordinates to isometric indexes?
Okay, I apologise in advance if I make no sense here.
Basically, I've got a simple application that takes in a ...
-1
votes
2answers
115 views
Tile collision, can't get correct behaviour [closed]
I define a tile with a rectangle. This is displayed below.
public class Tile : Sprite
{
Rectangle rectangle;
public Rectangle GetRectangle
{
get
{
return ...
6
votes
2answers
227 views
Algorithm to select all cells inside rooms/regions
I have a 2d game map consisting of several 'rooms'
For example, here is a 2D map grid: (Brown cells = wall tiles)
If I click on a tile (that isn't brown), I would like to obtain an array of all ...
0
votes
2answers
73 views
Images not rendering in Slick
I have built a game that uses the Slick framework. The maps are tmx files and were built using TileD. The game iterates through a list of players and maps - once a game with a player and map is ...
0
votes
1answer
115 views
Tile Draw Order
I started working on a tile engine recently and have been trying to get this depth sorting for the tiles right. I am using XNA and the SpriteSortMode.Deferred to get the tiles to sort correctly in the ...
-3
votes
1answer
354 views
Slick2D TileD Map Editor Properties [closed]
So I used the following post to help me render my isometric map in Slick2D:
Slick2D Isometric TiledMap Rendering Problem
Big thanks and credit to arminb for the code supplied and for the fix to be ...
4
votes
2answers
202 views
How to fill a rectangle with tilable texture in XNA?
So, question in the title. I don't know how to create infinite seamless background.
3
votes
2answers
454 views
Slick2D Isometric TiledMap Rendering Problem
I created a Tiled Map using the Tiled Map Editor. In the Editor it looks like this:
Desired State
In my java program it looks like this:
Actual State
My java code is:
public class Game extends ...
2
votes
1answer
173 views
How to handle slopes/bridges in a 2d grid turn based strategy game [duplicate]
I was wondering about the following:
In a 2D turn-based strategy game (using some grid(i.e. tiles, isometric hexagons) as movement), what techniques do they use to determine where a character moves ...
5
votes
5answers
1k views
Best technique for drawing isometric tiles
I'm thinking about making a simple isometric game with HTML5 Canvas, and wondering what's the fastest way to render the tiles.
Since the tiles are diamond shaped, but drawImage draws rectangles, I ...
2
votes
2answers
181 views
How to stack units in a tile based game?
I'm trying to make it so that no more than 5 units can be stacked on a tile. I have a Tile class that creates each tile's preferences. Should I store the units in an array or arraylist in this class?
2
votes
1answer
227 views
Collision detection with XNA and TiledLib
I recently started learning XNA and after getting annoyed with creating individuals rectangles each time I wanted to add something I went with TiledLib so I could more easily create levels using the ...
-4
votes
2answers
162 views
Programming language choice [closed]
I'm interested in 2d tile game development. What's your experience with that? What programming language would be wise to choose? I am thinking of C# or Java... Either way, I have some experiences, but ...
2
votes
1answer
254 views
Non-square Isometric tiled maps
I'm beginning to make a tile-based 4x game, but I ran into a conceptual issue: My inspiration for this game are the Civilization games, particularly Civ 2, and I noticed something I was interested in ...


