Patterns of identical shapes (often squares or hexagons) that have no gaps. They usually represent the playfield in various games.

learn more… | top users | synonyms (1)

0
votes
2answers
63 views

How big should my tiles be for tilemaps?

I'm creating my first tilemaps. Tutorials usually do 32x32px (example), but this tutorial did 128x128px, which made it easier for me to see without zooming in so much. In tiled, I did a 40 x 40 tile ...
1
vote
1answer
124 views

Fast, simple procedural 2d island generation

I need to generate tile data for an island based rpg, my goal is have something that looks like this (mountains not required): For the past few days I have been trying to figure out a satisfactory ...
0
votes
1answer
105 views

How do I find the tile I'm standing on?

I want to get the specific tile I am standing on. My Tiles are in an Arraylist so I can destroy them later. How can I do this? Here's my Level-class (where my Lists are): public class Level { ...
0
votes
0answers
11 views

Help with Interactive Grid for Turn-Based-Strategy game [duplicate]

So right now I have all of the menus, and game saving/loading stuff done, but I need help creating my actual game. I have a basic idea of what I want the game to be like. But I just need help with the ...
2
votes
1answer
55 views

Converting from tile to pixel precision

I was curious as to how you would go about converting from pixel to tile precision on a tile map. For example, let's say my map is comprised of 8x6 tiles, each of which are 50x50 pixels in size. If I ...
0
votes
1answer
79 views

How do I handle this type of collision?

So I've been messing around with simple game development for a while and just found an interesting game idea here . I'm using SFML 2.1 with C++ and so far I have a tilemap in a VertexArray using a ...
1
vote
2answers
165 views

How to check for collisions in “diagonal” tiles?

I want to create a tiled map in the following scheme: The player should be able to walk on the blue line (street). Now, what is the best way to solve collision detection in this case? For example, ...
0
votes
1answer
33 views

Rotating a view of a chunked 2d tilemap

I'm working on a top-down (oblique) tile-based engine. I would like for the tiles to have a definable height in the world, with Characters being occluded by them, etc. This has led to a desire to be ...
1
vote
1answer
74 views

Tiles touching all of same color check

I'm currently having a problem that has stopped my productivity for quite a while. I need to check if all tiles of a color is touching each other for each color like this: I have all my code for ...
0
votes
0answers
61 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 ...
0
votes
0answers
51 views

Tiled Map Editor - get a GID listing?

I have about 16 tiles in my spritesheet that I'm using for Tiled, and I'm trying to build a GID map so I can properly convert them in my game. I'm using the JSON format for my map, if that helps. ...
11
votes
4answers
1k views

Generating tile map

I am programming a tile based game and I have some basic tiles (grass, dirt, etc..), but I can't figure out how to make good random map generation, because when I do some really random selection, if ...
2
votes
2answers
149 views

XNA - Making 2D Hexagons Connect With Each Other

Hey so I'm working on a top-down 2D strategy game in XNA, and the tiles are hexagons. I can't have a grid because of the game mechanics, so everything has its own location, and every tile object is ...
0
votes
0answers
19 views

Tiled and tmx files

i started using the software tiled and it very simple to create an image and object positions over there. I am using the library XNA and i would like to load the image and the objects into my code, ...
0
votes
0answers
112 views

Zelda-style Top-down RPG. Storing data for each tile type

I'm creating a Zelda-style RPG using Tiled, C#, and MonoGame. When my code parses the .tmx file, it will get a number to associate with each tile type based off of their position in the tile sheet. If ...
1
vote
0answers
59 views

convert image to spritesheet of tiles for isometric map?

is there a way to convert an isometric image (like the first image) to a spritesheet (like the second image), in order to place each image on the isometric map with the code? The map looks like the ...
5
votes
5answers
994 views

Technical differences between square and hexagon for a grid?

I'm developing a 2D city-building game and trying to decide on the type of grid. There will be vehicles, so the unit movement is important too. I know there are visual differences for using Squares ...
4
votes
1answer
77 views

2D Boxes/Vertices merging

I want to optimize my colliders geometry, at the moment is composed by boxes (it's a tile based game) of the same dimensions, i want to remove the inner vertices to have, at the end, only the shell. ...
2
votes
2answers
364 views

Zelda-style top-down RPG. How to store tile and collision data?

I'm looking to build a Zelda: LTTP style top-down RPG. I've read a lot on the subject and am currently going back and forth on a few solutions. I'm using C#, MonoGame, and Tiled. For my tile maps, ...
1
vote
1answer
199 views

Procedural Generation of tile-based 2d World

I am writing a 2d game that uses tile-based top-down graphics to build the world (i.e. the ground plane). Manually made this works fine. Now I want to generate the ground plane procedurally at run ...
1
vote
1answer
65 views

Textures have lines between them when zoomed out

These are two screenshots from my new game, a top-down RTS with tiles. The first one is from a normal view with no zoom, the second one is a zoomed out view of the whole map: In the first image, ...
-2
votes
1answer
97 views

Pokemon Black White 2 - Ground Tiles Directory? [closed]

I opened up Pokemon Black 2 in Tinke (https://code.google.com/p/tinke/) and I'm looking for the directory that contains the ground tiles. Here's a picture showing what tiles I'm after ...
0
votes
0answers
42 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 ...
0
votes
2answers
134 views

Smooth moving on tile-based map, how to fix simple collisions?

I've already had some experiences about the work of 2 dimensional square-based playfields and moving a player on them. Though, when a square has multiple pixel sizes, and player moves e.g. 1 pixel per ...
1
vote
2answers
80 views

libgdx: How do you remove a cell from TiledMap?

I am making a Terraria-style sidescrolling game with an open world. I am using a TiledMap to render all of the tiles. If I want to remove a tile, like if it is broken, how would I stop it from being ...
-2
votes
1answer
96 views

in a 2D game that has an array as a map how to make graphics look nice?

I have a map that's stored in a 2D Array with 1s being walls, 0s being roads, and 2s being houses. There is a character that is not stored in the map but its position is always checked against the map ...
2
votes
2answers
182 views

How do I make a puzzle piece move smoothly between locations?

I'm building a 2048 clone to sharpen my Libgdx skills, but I don't know how to ease a tiles between board locations. When I slide my finger, the tile moves rather swiftly. How I can make the movement ...
12
votes
6answers
568 views

Seamless tilemap rendering (borderless adjacent images)

I have a 2D game engine that draws tilemaps by drawing tiles from a tileset image. Because by default OpenGL can only wrap the entire texture (GL_REPEAT), and not just part of it, each tile is split ...
1
vote
1answer
39 views

Gaps appearing between Sprites when scaling the stage

  I'm learning to use createjs using this game level to-be as a sandbox: http://www.mboyeman.com/dashingdog/   The level is composed of a single background image and 64X64pixel ...
0
votes
0answers
84 views

Collision in Tiled Map - LibGDX

I have collision code that deals with left or right or top or bottom. I am using Tiled Map with LibGDX. Question is: How do I detect collision with other cells by all 4 sides, and not specifically ...
0
votes
1answer
78 views

Possibly a more efficient way to structure my game's map?

I need a little help with structuring my map. I want to make it efficient but I'm not sure if there's a better way to do this: public class Map { Chunk[][] Chunks; Object[] Objects; } public ...
0
votes
0answers
47 views

Rendering bug in java

I'm using a simple rendering method in java to render tiles. Everything looks fine, but I notice that some rows grow 1 pixel when I move, and dhen shrink back, but I have no idea why. Infos: I'm ...
2
votes
3answers
128 views

(LibGDX) Changing Origin of Box2D World relative to TiledMap (or Vice Versa)

I'm playing around with Box2D and TiledMaps and I've come across this minor annoyance. As you can see, both Box2D and TiledMap render at the center of the screen. This forces me to compensate by ...
0
votes
1answer
114 views

Should I use tiles in a snake game? [closed]

I'm building a simple snake game, which is my first game ever. I'm using LibGDX, which is Java-based. I've looked at the Tiled Map Editor, but I don't know if it is necessary in a simple game like ...
0
votes
0answers
51 views

Working with tiledata of different sizes [duplicate]

I recently bought an asset for my game, basically a tilesheet, with seperate pngs as well, but where as previously I've created tilemaps out of identically sized tiles these are all in varying sizes ...
0
votes
1answer
342 views

Units, Layers, and Isometric Ordering

I'm currently using LibGDX and Tiled map editor to render isometric maps. I'm having a two related difficulties. The first issue is, when do I render units that will end up changing position often ...
-2
votes
2answers
247 views

Why can't I set a single value in a game map Java 2D array? [closed]

I'm trying to set one character on 2D array. map[0][2] = "0"; However, I'm getting 11011 11011 11011 11011 ... I was expecting 11011 11111 11111 11111 ... What am I doing wrong? another ...
9
votes
2answers
982 views

How can I randomly generate 2D tile-based side-scroller terrain?

I want to randomly generate a map for a 2D sidescroller game using the following tileset: I have found a few great articles on the bitmasking process, for example: ...
1
vote
1answer
69 views

How can I communicate changes to a 2D tile-based world state in a P2P context?

Suppose two players in a game want to build a city together on a blank tile-based game world simultaneously in a peer-to-peer connected context. When a player clicks on a tile it changes the state ...
0
votes
1answer
75 views

How can I use the same number of tiles in any screen resolution, with an isometric projection?

I have an isometric grid with 64x32 diamond images. Each tile is a class, each instance is in a 2D array. Players have different screen resolutions and the grid must take up the whole screen. ...
1
vote
2answers
168 views

Collision detection via adjacent tiles - sprite too big

I have managed to create a collision detection system for my tile-based jump'n'run game (written in C++/SFML), where I check on each update what values the surrounding tiles of the player contain and ...
0
votes
2answers
95 views

Algorithmic error in tile engine? [closed]

I'm toying with creating a tile-based 2D java game engine. I can render the "local" area without issues(I.E. deciding which local tiles to render). The problem came when I introduced floating point ...
3
votes
2answers
269 views

How can I “grow” regions representing countries in a 2D grid?

My friend started to make a 'country-generator' type of thing. We have some starting points, and we want to 'grow' countries from them randomly until the whole area is filled. What's is an effect ...
1
vote
1answer
105 views

Get Tile Location On Screen (Java Slick and Tiled2D)

I want to create a rectangle around each tile that's blocked value = true. How can I find the X and Y (on screen) coords of the each individual Tile?
-1
votes
2answers
226 views

How do I draw tile in a side-on perspective? [closed]

All the tutorials I've found regarding using tiles in game engines refer to games with an isometric or top-down view, much like this: I want to make a "beat em up"-game, where the view is tilted. ...
-1
votes
1answer
123 views

java tile based game :tile lag fix

hi I have a game where it reads a txt file and loads a map 0 represents air and 2 represents dirt I have a class for each tile as well as a tilemap I will show u my code. the problem is it lags like ...
0
votes
1answer
72 views

libgdx get the value of a key

I'm trying to do collision detection (which I have working well) but now I want to use it for a little more. I want to check special circumstances for the collision. Right now I'm checking for ...
1
vote
4answers
222 views

Cell Lighting Propagation Problem

I have in place a cell-based lighting system that works basically like this: (Not my actual code) //Light moves up for (int x = 0; x < width; x += 1) { for (int y = 0; y < ...
-2
votes
1answer
47 views

Using an image instead of a colored rectangle

I recently watched a video on how to do tilemaps in java. He has the tiles as colored rectangles. I want them to be images. My code: public void draw(Graphics g){ for(int row = 0; row < ...
0
votes
2answers
167 views

How to get surrounding tiles in a tile array

I've created a tiled map that holds two layers, one for the tile type, and the other for whether it is solid or not. I plan on creating very big maps, and checking every tile seems like it would slow ...