Patterns of identical shapes (often squares or hexagons) that have no gaps. They usually represent the playfield in various games.
2
votes
1answer
516 views
Slick2D Tile Based 'Fog of War' Blurring Problem
I'm working on my first Java Game and I have run into a little problem I'm hoping to get some help with. I'm using Slick2D displaying a tile based map, and I'd like to know how I can created a ...
0
votes
2answers
329 views
Detecting collision between a sprite and many tiles
I have been looking at the following question:- Tile coordinates and am thinking of using this for collision detection in my tile game.
The set up in my game is similar to this, in that there is a ...
0
votes
1answer
489 views
Moving a sprite over a tile map
I am working on a tile based game in Java. I have a 2D array of tiles (JComponents) in a GridLayout, this is fine for creating the world (I think), but I am stumped at how to move the sprite smoothly ...
65
votes
8answers
13k 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
vote
1answer
220 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 ...
0
votes
2answers
486 views
How do I handle specific tile/object collisions?
What do I do after the bounding box test against a tile to determine whether there is a real collision against the contents of that tile? And if there is, how should I move the object in response to ...
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?
10
votes
1answer
2k 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 ...
2
votes
1answer
339 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
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 ...
3
votes
1answer
420 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
560 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
162 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
503 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
212 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
450 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, ...
7
votes
1answer
574 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
612 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
697 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
735 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 ...
31
votes
2answers
2k 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 ...
2
votes
1answer
2k 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
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
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 ...
11
votes
3answers
7k 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
392 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
684 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 ...
13
votes
6answers
649 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
803 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
659 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
1k 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
431 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 ...
3
votes
1answer
2k 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 ...
18
votes
2answers
1k 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
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 ...
8
votes
2answers
344 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
301 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
542 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 ...
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 ...
23
votes
3answers
2k 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 ...
20
votes
3answers
934 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 ...
4
votes
2answers
798 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
1k 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 ...
3
votes
1answer
685 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 ...
12
votes
2answers
652 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
824 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
812 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
378 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?
8
votes
2answers
383 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 ...
5
votes
2answers
769 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 ...