Tile map is a technique of re-using small graphic pieces, tiles, over and over again to shape the game field.
1
vote
0answers
36 views
Structure gameobjects and call events
I'm working on a 2D tile based game in which the player interacts with other game objects (chests, AI, Doors, Houses etc...). The entire map will be stored in a file which I can read. When loading the ...
1
vote
1answer
34 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 ...
1
vote
1answer
74 views
Adapting tilemap algorithm to support isometric tilemap
I'm using Phaser to build an isometric game. The framework doesn't have support for isometric tilemaps yet, so I'm starting to write a PR for it to support.
What I currently have, loading an ...
0
votes
0answers
35 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 ...
2
votes
0answers
71 views
Best visual way to build a “near isometric” 2D view
I'm working hard in a 2D platform game, as far as I got is a standard 2D view (only x and y are visible)
But I want to change the perspective so I can see the floor also.
But the MapBuilder I ...
2
votes
1answer
87 views
Detect obstacles in path on a tile-based map
I'm creating a 2d game with a tile-based map, but smooth movement. I currently use A* in combination with some other tricks for pathfinding, and one issue what I've been dealing with is getting the ...
1
vote
1answer
45 views
Aspect ratio in LibGdx
I'm learning LibGdx and I need some help with the camera.
Let's see, I'm making a Chu Chu Rocket! clon to start. I've loaded a TiledMap (10x10), and I've created an OrthographicCamera to show the ...
0
votes
1answer
100 views
Tile System with moving Platforms
I am using a tile based system where the level is stored in a char:
char[,] Level2 = {{'.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.'},
...
1
vote
2answers
39 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
97 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 ...
2
votes
3answers
150 views
Tile map propagating fire
I have a Model(I use the MVC pattern), that holds an 2D Array with Tile objects.
A tile object have a member, whether it burns or not, a member how long it takes until the neighboring tiles get fire ...
0
votes
0answers
49 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 ...
2
votes
1answer
227 views
HTML5 - Dynamic canvas grid for scrolling a big map
I've been working on different scrolling algorithms for my JS-based game. My main problem is that I need to draw a huge map and also have it scroll smoothly. I've made a few attempts and while they're ...
0
votes
0answers
47 views
XNA 2D Tile Map zooming to arbitrary point [duplicate]
I'm working on a game in XNA with a 2D tilemap as the playfield. I'm using a spritebatch with a transformation matrix to provide movement and scaling of the playfield. I'm trying to add a zoom ...
0
votes
2answers
135 views
Tile map collision and object handling
I want to program a game.
In this game there is a tile map and objects that interact with it and them self.
For that I made first a TileMap class, in it is only the data of the tile map.
Its a very ...
0
votes
0answers
74 views
Libgdx TileMap size limitations
I have a tmx file of 800*18 size.. It is working but there is some problem like sometimes game is slow or the player jumps too much high or the collision from ground doesn't happen properly and player ...
1
vote
4answers
74 views
Save “Explored Area” to SQL Database
For a strategy game, the area "already explored" has to be saved to a DB, so that the player can (upon resuming his game) see where he has already been.
The game will be a mmo-game, so i have to ...
0
votes
1answer
64 views
Representing multi-tile objects in a tilemap
I'm building an isometric tiled game, where the terrain and objects are represented by a 2-dimensional array of lists. Depth of objects on the map is derived from the tile (and a per-tile sorting ...
9
votes
2answers
566 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:
...
0
votes
2answers
99 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
0answers
60 views
Shadow wall sight problems
i used this tutorial https://github.com/mattdesl/lwjgl-basics/wiki/2D-Pixel-Perfect-Shadows to make my shadows. I think its a pretty nice and easy method.
I render all my shadow in a Framebuffer and ...
1
vote
2answers
82 views
Calculate tile ID on a Reus style world with canvas context.arc()
I need a bit of math help for my game.
I'm using Javascript and the Canvas tag to create a circular world, think God Finger, and Reus. The current version of my game is here: ...
-3
votes
1answer
88 views
How do you divide the screen into tiles? [closed]
I have been reading alot on tile-based game programming but i could not find a satisfying answer to this question.
I want to know how i can divide the screen into tiles of a size like 32?
I am doing ...
0
votes
1answer
78 views
updating 2d array to contain chunk of larger 2d array - for 2d tile map
What i need help with is how can i get a chunk of a large 2d char array and update it so i am only drawing enough tiles to cover the screen?
Currently, i load all the chars from a text file and store ...
-3
votes
1answer
113 views
Simple collision detection implementation [closed]
I'm making a game with C++ where the program extracts the lines out of an image (via openCV), stores them in an std::vector< std::vector< int > > and the builds a tile map out of it which is ...
-1
votes
1answer
100 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
77 views
How can I convert a Tiled level array to a 2D array?
For the code in my game, I want a 2D array which represents the map.
I created an actual map with Tiled but it produces a 1D array. Is there any way to convert it into my desired format wothout ...
0
votes
0answers
55 views
limits of tiles on tilemap, for mobile devices?
how many tiles are we allowed to add on a Tile map, using softwares like Tiled , to target mobile devices? Some devices cannot load a texture that exceeds 2048x2048, would you know how a tilemap works ...
1
vote
0answers
98 views
Eclipse loading old tmxtiledmap instead of fresh one
I am facing a weird issue. I created tiled map using Tiled Editor. Used it in my simple andengine project to test loading of tiledmap correctly. It did load successfully. After that, I made changes to ...
6
votes
3answers
312 views
How can I distribute powerups “fairly”? [closed]
I'm implementing a Bomberman-esque game in which players try to eliminate each other on a square tile-based arena. I'm currently implementing powerups that give the player who collected them a bonus ...
2
votes
3answers
335 views
How would you draw a tile map with in perspective?
I want the maps in the game I'm working (in Java) to be draw with perspective just to sugar coat it, but I'm not sure how that can be done. If anyone has an article about the math behind it or ...
-1
votes
2answers
104 views
Java Tilemap Collision
I have tilemaps represented by values from 0 to 4. How can I make the player collide with tiles represented by 3 and stop the player from passing through it ? Here is my code for the player and ...
0
votes
2answers
404 views
Simple 2d tile based lighting in xna
I am currently trying to implement simple lighting into my game. My world is represented in a 2d array of numbers, each number being a certain tile. I am changing the color parameter in the ...
0
votes
2answers
139 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 ...
1
vote
4answers
124 views
What is the definition of “tiles?”
When we talk of tiles, are we strictly talking about images or the underlying data structures?
For example, I read an article which explains that tiles are a data structure that holds your game data. ...
0
votes
1answer
164 views
Reduce render time for a tiled map in ThreeJS
I'm working on a WebGL game using Three.js, its been a few days and I found my first issue, render time on big maps.
The game runs great, there are even some AI mobs that run around randomly like ...
0
votes
1answer
369 views
Top-Down Tilemap Rendering and Collisions in Libgdx
I'm sorry if this question has been previously answered, but I was unable to find an answer here or through google. I'm trying to make a simple roguelike-like that would feature a top-down tile map, a ...
2
votes
1answer
158 views
Linear filter problem with diagonal lines on adjecent tiles
I am quite new at using OpenGL/GLSL. Basically, the project I am working on is my first 'real' experience with it.
I do not know whether this is relevant, but I use libgdx for my project.
Currently, ...
2
votes
2answers
429 views
How would I implement procedurally generated tiles in libgdx?
I'm creating a simple top down Zelda-esque game in libgdx, and I want to implement tile-based dungeons that are procedurally generated, similar to this.
Libgdx does have a class called TiledMap which ...
2
votes
1answer
108 views
Using latest TiledMap, how do you get a specific tile from x and y index?
Seems basic enough, but I can't seem to find the answer: I am trying to implement collission detecton and for that I need the properties of the tile the player is currently entering. I am using ...
1
vote
3answers
182 views
How do you create your own tileset?
I'd like to create a 2d platformer and I understand that using tiles helps you a lot.
I think many use the map editor "Tiled" but I can't find anywhere how do you make your own tileset from a given ...
0
votes
2answers
200 views
How can I reuse objects going off left side of screen, by putting them offscreen on the right side?
I have an array of roughly 10,000 tiles over a 2d grid. When a tile goes off screen, I'd like to recycle it by disabling the renderer, repositioning it just before it comes on screen again, then turn ...
0
votes
1answer
93 views
Passing through edges of AABB collision
When I move, I grab the tile in front of the player, but when the player is colliding between two tiles, I grab the wrong tile due to rounding error. I made a video explaining what I mean.
As you can ...
0
votes
0answers
15 views
How should I go about making a tile map in Allegro? [duplicate]
How do I make a tile map for Allegro?
0
votes
1answer
132 views
How to find a free patch of area in a tiled map?
I've been trying to formulate the question and try to find some information on Google, but didn't managed to, so here it is...
We've got a nice tropic-themed game that is about to be released soon, ...
0
votes
3answers
72 views
calculating step length with dividing a number that returns digits after the decimal point
Question: How can i get rounded numbers from calculations that returns digits after the decimal point. And all the numbers together will be the number that is divided from.
Explanation:
I am ...
1
vote
0answers
416 views
Two pass blur shader using libgdx tile map renderer
I am trying to apply the following technique: blur effect using two pass shader to my libgdx game using the OrthogonalTiledMapRenderer. The idea is to blur the background wich is also a tilemap but ...
2
votes
2answers
1k views
How can I convert a tilemap to a Box2D world?
I want to use Box2D physics and lighting with a .tmx map. How can I "convert" a tilemap to Box2D world? My basic idea is to go through the tiles on the map and create an object for them in Box2D.
I'm ...
0
votes
3answers
267 views
How can I create a tile set that will allow me to render a soccer pitch in perspective?
I am making a soccer game that needs a large pitch image (the whole play field area is about 3300 * 1200 pixels).
I know I should use the Tiled map editor to create a tile map so that I can create ...
2
votes
2answers
859 views
Algorithm for continuously generating a tile map for a topdown 2D game? [duplicate]
In essence, what I'm looking for is a procedural 2D tilemap continuously generated in a fashion like Minecraft - which is to say generated as the player approaches the edges of the already explored ...