Identically shaped objects (often squares or hexagons) representing spatial information.

learn more… | top users | synonyms

4
votes
1answer
167 views

How would one generate a Navigation Grid for a 3d world?

I am attempting to find a solution to this problem. I'm trying to build a navigation mesh in the format of a grid of verticies locked to x,y floored coordinates in the shape of squares for 3D space. ...
2
votes
1answer
225 views

Wang tiles generating

I'm trying to get rid of repetition on terrain, when viewed from up high. To achieve that, I've chosen Wang tiles. One thing I'm missing, and can't really find is any kind of generator that can take a ...
1
vote
1answer
22 views

Custom Tile Collision Detection Has Trouble With Edges

So, I'm writing my own game to expand on my abilities as a programmer. However, I have come to a writer's-block of sorts. The game I am building uses tile collision, but allows the player to be in an ...
-1
votes
1answer
852 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; ...
-2
votes
1answer
227 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 ...
2
votes
0answers
268 views

How can I mimic an isometric perspective using square tiles?

Can an isometric perspective be mimicked with traditional square tiles? Can't the effects of the 45-degree overhead view simply be "drawn in" to the square? How would this work? Picture this: the ...
1
vote
0answers
19 views

Rectangle in object-layer has wrong coordinates in game

I extended the SuperKoalio LibGDX Example about an Tiled Object Layer in the Tiled Level-Editor and draw a rectangle on this layer. Now I would like to draw this rectangle in my game using the ...
1
vote
0answers
53 views

How do I create tileable 3D Perlin/Simplex noise?

I have a library which provides functions for 1/2/3/4-D simplex noise. With that I successfuly created a tileable 2D cloud texture (see How do you generate tileable Perlin noise?). Now I want to ...
1
vote
0answers
77 views

2d grid vision(eye sensor) for a neural network bot?

I have a 2d grid and neural network bots living above it. What is a good way to give them vision of tiles in front of them? Below I describe my idea that I don't know how to efficiently(or ...
1
vote
0answers
73 views

Building Irregular terrain in tile-based approach

I'm starting to build a 2D game, metroidvania-like, tile-based and all. I've had some prior experience in it, and one of the major letdowns of those prior games was that worlds seemed too "blockish", ...
1
vote
0answers
90 views

Tile Collision - subtracting a minor value to the box size

I'm having a certain problem when doing collision checks on bounding boxes that have their edges aligned with upper or right tiles. It shouldn't count as an intersection but I don't know a good ...
1
vote
0answers
129 views

Tiled map editor and objects

Ive been searching for an easy way to group multiple sprites of a spritesheet into a single entity. Im using tiled editor as written at the title. Some objects might be larger than the tile size and i ...
1
vote
0answers
216 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 ...
1
vote
0answers
2k 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 OrthographicCamera(...
0
votes
0answers
32 views

Jumping to tiles in y coordinate before displaying all tiles in x?

I am learning how to load in tile maps and I have successfully done so, sort of. The problem is that the program is jumping to the tiles in the y coordinate before displaying all the tiles in the x. ...
0
votes
0answers
50 views

How to fix my issue with movement?

I am making a 2D tile game in Java, and I am having problems with movement, could someone tell me what I am doing wrong please? I am having difficulty in "calling" the function vectorFromKey in main. ...
0
votes
0answers
59 views

Deterministic steering behaviors

I'm working on a turn based strategy game (like Jagged Alliance), where the player moves his units individually during his turn, while the enemies (zombies) all move and react simultaneously. I use ...
0
votes
0answers
158 views

Snap gameObject to grid tile

I'm making a 2D TD game and currently I have made using quill18 tutorials a simple building system. However I'm trying to have it snap on my tiles as I mouse over them. This is my script applied to ...
0
votes
0answers
90 views

Grab all tiles within a radius?

I'm working on a 2D tile based game. I want NPC's to be able to destroy tiles, and ideally I would have a function, which takes a central x,y and then based upon a circular area from that point (...
0
votes
0answers
376 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 ...