Patterns of identical shapes (often squares or hexagons) that have no gaps. They usually represent the playfield in various games.
0
votes
1answer
261 views
Scale DIV with tiles
I am trying to create a repeating background. I have a main DIV with a grid of small 16x16 DIVs. I am trying to scale the main DIV in CSS; when the small DIVs simply have a red background color ...
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 ...
12
votes
2answers
5k views
Hexagonal grid/tiles tutorials
Are there any platform or language agnostic (preferably step by step) tutorials regarding creating hexagonal grid based maps/games? I'm mainly interested in grid/tiles basics and not advanced game ...
1
vote
2answers
523 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
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
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 ...
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 ...
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???
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 ...
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 ...
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
135 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 ...
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 ...
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
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 ...
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, ...
65
votes
8answers
14k views
How do you generate tileable Perlin noise?
Related:
Simple noise generation
Understanding Perlin Noise
I'd like to generate tileable Perlin noise. I'm working from Paul Bourke's PerlinNoise*() functions, which are like this:
// alpha is ...
-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 ...
3
votes
1answer
1k views
How to create a 3D world with 2D sprites similar to Ragnorak online?
As far as I know Ragnorak Online is a 3D game world with 2D sprites overlayed. I would like to use this style in a game I am making in Unity, so I would like the player to be able to select little ...
-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 ...
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
...
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 ...
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 ...
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 ...
1
vote
4answers
865 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
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 ...
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 ...
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 ...
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 ...
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 ...
2
votes
4answers
2k views
Tile based isometric depth sorting on different size objects.
I am creating a tile based isometric game.
The problem we are having is with depth sorting, we tried a lot of methods but none work.
They all do a great job but its not perfect, they seem to bug ...
2
votes
1answer
171 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 ...



