Tagged Questions
Patterns of identical shapes (often squares or hexagons) that have no gaps. They usually represent the playfield in various games.
1
vote
1answer
50 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?
3
votes
1answer
111 views
How can I define a complex collision area on top of a tile map?
As many people recommended, I am using Tiled map editor to create a map for my game and it's great particularly because libgdx framework also provides with API for maps from Tiled.
I understand I can ...
1
vote
1answer
116 views
How to calculate FOV with four-walled tiles?
I'm working on a 2D tile-based game. I'm trying to calculate FOV and I've implemented walls so they don't take up an entire tile. Instead, they just take up a side of each tile. Similar to:
class ...
1
vote
1answer
98 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 ...
3
votes
1answer
120 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 ...
5
votes
2answers
133 views
Tile pair matching algorithm
I'm trying to make a tile matching game. User can select a pair of tiles from a square grid, and if they match, both are removed from the grid.
Tiles are matched if:
they are of the same type ...
4
votes
2answers
144 views
What is the best way to store temporary selected characters and their insertion order?
I'm developing word game similar to word mole. I'm having a hard time determining how to store temporary selected character (and in turn will changed into word).
Here's the situations. Say, I have ...
9
votes
2answers
218 views
.PNG tiles to .PNG map
I was wondering how I can get my 110+ .png map tiles conveniently into a 1:1 pixel ratio size map .png. Ive been scrolling through google and such, and the forum's for the free ware game that I am ...
0
votes
0answers
60 views
How to compute tile offset for different isometric angles?
I am working on an isometric game and the designers want to use a different isometric angle than the default one, where I simply had to do a 2/1 offset based on tile size.
I know what the new ...
4
votes
1answer
144 views
Implementing jumping and heightmaps in 2D RPG/Adventure style games?
I've been putting together, albeit slowly, a traditional style game engine in flash/AS3 along the lines of Alundra/Final Fantasy 3/etc etc..
Everything so far is working smoothly (maps from XML data, ...
6
votes
1answer
208 views
2d, Top-down map with different levels
So, I'm creating a 2d, top down, sprite based (tiled) game, and right now I'm working on maps (well, a map editor at the moment, but it will be creating my maps, so basically the same thing).
The ...
2
votes
0answers
182 views
Collision Detection on floor tiles Isometric game
I am having a very hard to time figuring out a bug in my code. It should have taken me 20 minutes but instead I've been working on it for over 12 hours. I am writing a isometric tile based game where ...
7
votes
2answers
211 views
How to scroll hex tiles?
I don't seem to be able to find an answer to this one. I have a map of hex tiles. I wish to implement scrolling.
Code at present:
drawTilemap = function() {
actualX = Math.floor(viewportX / ...
7
votes
2answers
363 views
In a 2D tile-based game, how should NPCs and tiles reference each other?
I'm making a tile engine for 2D games (seen from the top). Basically the world is composed of a grid of tiles.
Now I want to put for instance NPCs that can move on the map.
What do you think is ...
24
votes
2answers
1k views
In a browser, is it best to use one huge spritesheet or many (10000) different PNG's?
I'm creating a game in jQuery, where I use about 10000 32x32 tiles. Until now, I have been using them all separately (no sprite sheet). An average map uses about 2000 tiles (sometimes re-used PNG's ...
1
vote
1answer
285 views
How do I make magenta in my PNG transparent in HTML5/Canvas/JS?
I'm putting together a simple hex map to use within an HTML5 / Canvas / JS game and before I get round to sorting any custom graphics, I was wondering if anybody knew how to make the pink/magenta ...
2
votes
2answers
376 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
2answers
123 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 ...
9
votes
3answers
637 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 ...
2
votes
1answer
195 views
tiled map - changing textures? (XNA HLSL)
I have successfully created a tiled map of various textures. Right now, i had a Vector4 in my own custom Vertex declaration deciding what texture each of the tiles should be. This is working ...
0
votes
1answer
201 views
AABB for a tile based world
I'm on my way with a tiled based game. I have correctly implemented scrolling, position handling etc.
I have (before) had a simple collision system that is a really bad one, and now I'm going to ...
12
votes
6answers
557 views
Moving players simultaneously?
Consider a 2 x 2 grid of squares. A player can move onto a square if:
no other player wants to move into the square next turn
no other player has waited and is still occupying the square ...
4
votes
3answers
254 views
Rendering tiles on 3/4 perspective
Using a 3/4th perspective, I'm trying to create a way to render cliffs where nothing is overlapped, and it creates an accurate representation of the elevation.
This is a rough mockup of how it might ...
1
vote
2answers
280 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 ...
4
votes
2answers
290 views
How should I represent a tile in OpenGL-es
Let me start with I am currently learning OpenGl-es using Android.
I have been having the hardest time trying to design a simple and logical way of making tiles (2d flat polygons). The tutorials tell ...
3
votes
4answers
325 views
How to prevent fleeing monster from backing himself into a dead end?
I've been building a rogue-like for more than a year now, and so far I've only ever implemented very simple monster behaviour - such as moving toward the player when he's in the line of sight, and ...
1
vote
1answer
393 views
Scrolling tile system
I know this is a common question, but I can't find an answer to it that isn't written using a huge game library sadly.
I'm trying to write a scrollable tile system, which allows the user to move ...
15
votes
1answer
466 views
Are there any good tilesets for hex-based maps that are available for free use?
Does anyone know of any good tilesets for hex-based maps that are available for free use? The tiles from Battle for Wesnoth seem to be under a license that would allow others to use them in their ...
1
vote
1answer
244 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 ...
7
votes
2answers
272 views
What would be the best way to find an open space in a level?
I'm working on a 2D game where you use paint to add tiles to a level and right now I'm working to add warp tiles. I have it set up so certain direction-oriented paints use two points (a start and end) ...
2
votes
2answers
178 views
Which platform and what strategies can I use
There's this game, that I've been wanting to make for quite some time. It's a project that I've started and had to abandon in the middle a couple of times. However, this time I'm determined to finish ...
1
vote
1answer
259 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 ...
3
votes
1answer
366 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 ...
18
votes
3answers
548 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 ...
17
votes
3answers
500 views
Making walls in tile-based games: what am I missing?
After spending time today to jot down some notes regarding the implementation of walls into my tile-based game, I've suddenly realized it's not going to be as simple as I imagined before. While the ...
3
votes
2answers
378 views
Container classes in tile-based games.
I've recently begun working on a tile-based tactical game, and I have questions regarding a couple of key moments.
Is it feasible to organize the tilemap as an array of containers, which can hold the ...
2
votes
2answers
543 views
Best method for 2 layer tile based map scrolling
What is the best general approach to implement scrolling for a 2D tile based game?
I need to scroll the map with a constant speed, lets say 2 pixels every frame (like in a top down shooter).
The ...
0
votes
1answer
248 views
create a simple tilemap programatically
i am working on a tile roguelike
i got some of the basics working using this tutorial
http://www.raywenderlich.com/1163/how-to-make-a-tile-based-game-with-cocos2d
but i want to be able to create a ...
9
votes
2answers
352 views
How do you handle uneven tiles while rendering a tile map?
Here is what I want to do with my tile map that I am unsure of. As you can see the top walls are way larger then the bottom and side ones (this is also an issue with my corners which are odd shapes ...
2
votes
3answers
320 views
Java tilemap not working, Think it has something to do with my image rendering
Hey can someone help me out, I've been trying to fix this for about 2 hours now, and I'm a noob when it comes to game programming and Java(only been reading and programming with it for a week now, ...
2
votes
2answers
406 views
Tile based map and collision; getting stuck
I'm trying to make my character move around a tile map with collisions. Everything works fine except for one thing. I show you a picture with the problem:
http://i.stack.imgur.com/ZWI7x.jpg
That is, ...
2
votes
3answers
159 views
Stitch a collection of images into a tileset
I have a number of tiles as standalone files that I would like to stitch together into a single tileset. Are there any tools that can quickly do this?
7
votes
2answers
228 views
Tile-wide extent tracing on a grid
I'm currently working on A* pathfinding on a grid and I'm looking to smooth the generated path, while also considering the extent of the character moving along it. I'm using a grid for the ...
2
votes
2answers
328 views
How do I get the distance between 2 points on an isometric grid?
How do I get the distance between 2 points on an isometric grid? I'm creating a facebook isometric game (in as3), and when I move around a particular type of building, I need to know if it comes ...
5
votes
1answer
349 views
Finding out which tile a mouse click landed in
I am working on an isometric grid based game and im having an issue trying to link a mouse click from the user to a tile. I have been able to split the problem into 2 parts :
Finding a rectangle ...
5
votes
1answer
806 views
What is a good technique for 2D tile-based terrain generation meeting these requirements?
As a summer project I decided it would be fun to make a Flash game. Right now I'm going for something like the look of Terraria. It's been a lot of fun, but today I've hit a snag. I need a way to ...
1
vote
2answers
202 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
4answers
583 views
tile based isometric depth sorting on different size objects
i am creating a tile based isometric game..
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 ...
1
vote
2answers
198 views
Path finding in grid for objects that occupy more than one tile
In a grid-based game I am working on, I want to add objects that occupy more than one tile of the grid. Are there any algorithms or techniques to find paths for this kind of objects?
6
votes
2answers
314 views
How should one handle positions in a tile-based world?
I have a simple Tower Defense game using a tiled world. Creep and towers are on a tile at all times.
How should I represent the position of creeps in code? (Do creeps know their current tile and ...