Tagged Questions
1
vote
3answers
156 views
Splitting tileset into individual tiles
I'm trying to split a tileset (from here) into individual tiles.
For debugging purposes I wrote some code to split the tileset into individual tiles and display them on screen, but some aren't being ...
0
votes
0answers
131 views
2D tile-based collision: avoid tunneling
We have a box that tries to move from A to B. In order to avoid tunneling we need to check if there is a collision in the path described by its four corners.
Let's focus on the bottom-right corner of ...
-1
votes
2answers
397 views
How to make a map [closed]
For school my group and I are going to make a 2d turn based strategy game on android.
We are trying to make a simple version of Advanced Wars(screenshot1 Gameplay).
But we don't really know how to ...
0
votes
1answer
158 views
Is caching tiles like this a good idea?
I have a 2d int array which represents tiles on level like this:
0000000000000000000000
0000000000000000000000
0000000000000000000000
1111111111111111111111
I have a tileset vector, where each ...
1
vote
2answers
184 views
Tile-based game with DirectX - issues with transparency and StretchRect
In my current project I have a class which loads a map file and then it should load all associated tilesets (no transparent tiles - I used to work with magenta as a colorkey) and precreate a surface ...
1
vote
6answers
431 views
Is it good to sort objects list before every rendering?
I need to render a "tile" game, which are like these:
or
or
I don't know how to render them in correct order. I intend to perform a sorting operator before every rendering (depending on their ...
0
votes
1answer
277 views
Please help me with my 2D isometric tile picking [duplicate]
Possible Duplicate:
How to convert mouse coordinates to isometric indexes?
Okay, I apologise in advance if I make no sense here.
Basically, I've got a simple application that takes in a ...
-4
votes
2answers
160 views
Programming language choice [closed]
I'm interested in 2d tile game development. What's your experience with that? What programming language would be wise to choose? I am thinking of C# or Java... Either way, I have some experiences, but ...
0
votes
1answer
160 views
Iterating 1D array and getting 2D tile position
I know I'm missing something very obvious here, but I have a 1D array that contains integers.I have a map that is 30 x 30 and the center coordinate is 0,0 (This is actually 3D, but I'm essentially ...
0
votes
0answers
85 views
Determine how to display a tile based on surrounding tiles [duplicate]
Possible Duplicate:
Choose tile based on adjacent tiles
I have a game engine which generates maps randomly, set on a 2d grid which is composed of 34px square graphical tiles.
These tiles ...
1
vote
1answer
125 views
How to Use Images Instead Of Drawing Primitives [closed]
I want to build backgammon game. I have successfully built the board using primitives such as lines, triangles and circles. I'm curious whether it's possible to draw the board using images which will ...
3
votes
3answers
396 views
Tile based platformer, using larger tiles?
So for my tile based platformer, It has a grid of tiles Occupying 1x1 block for each one.
However, What if I want larger tiles? Maybe doors, tables, etc. They wouldnt fit in a 1x1 tile, so what I ...
1
vote
3answers
415 views
Compressing 2D level data
So, I'm developing a 2D, tile based game and a map maker thingy - all in Java.
The problem is that recently I've been having some memory issues when about 4 maps are loaded. Each one of these maps ...
0
votes
2answers
265 views
How many Fringe/Base layers in a 2D map editor?
I'm creating a highly flexible 2D tile-based map editor in XNA to make some of my future projects easier (will work for side-scrollers and top-down games). This editor can work with any sized tile.
...
1
vote
1answer
1k views
XNA 2D Collision with specific tiles
I am new to game programming and to these sites for help. I am making a 2D game but I can't seem to get the collision between my character and certain tiles. I have a map filled with grass tiles and ...
4
votes
1answer
232 views
How to cull liquids
I use culling on my Tiles in my 2D Platformer (XNA), so only ones needed are drawn on screen. Thats easy to do.
However, My Liquid tiles (Water, lava, etc) require an Update Method aswell as the ...
1
vote
2answers
208 views
Optimization and Saving/Loading
I'm developing a 2D tile based game and I have a few questions regarding it.
First I would like to know if this is the correct way to structure my Tile class:
namespace TileGame.Engine {
public ...
2
votes
3answers
4k views
2D Tile-based Collision Detection
I've been planning an indie game project for a while now. I'll summarise it for you so I can get right to the question.
It's done entirely using the latest version of XNA through Visual Studio. ...
7
votes
2answers
147 views
How do I check to see if a tile corner is visible in 2d space?
I am trying to implement fog of war, and I have run into trouble. I want to check to see if the player is able to see the corners of each tile within a certain radius, however I am unsure how to check ...
-3
votes
1answer
362 views
How to remaster a retro game's graphics?
I want to remake an old game, which graphics is pretty old (1980s game), and I want to make a "HD version" of it. Of course, the game will have an "old graphics" setting, but I want to remaster the ...
2
votes
1answer
200 views
What broad-phase collision algorithms are suited to a static tiled world with dynamic objects of different sizes?
Sorry for this routine question, but I can't think of what broad-phase collision algorithms really work in the following, reasonably standard, setup:
2D tile based world, consisting of objects that ...
2
votes
4answers
765 views
What should I use (controls, methods) to make a 2D tile based map editor?
I'm making a 2d game where each tile is a square and it's viewed at straight angle, no skewing, no rotation, it's pretty simple.
Two weeks ago I tried using DataGridView, but as the number of rows ...
2
votes
1answer
532 views
2D Camera Acceleration/Lag
I have a nice camera set up for my 2D xna game. Im wondering how I should make the camera have 'acceleration' or 'lag' so it smoothly follows the player, instead of 'exactly' like mine does now. Im ...
2
votes
2answers
1k views
2D side scroller - How to implement X/Y movement?
I'm currently writing a small 2D, side-scroller-ish kind of game.
I have a simple camera that follows the player around and the physics are ready.
I'm using 32x32 tiles that build out the world, ...
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 ...
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 ...
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 ...
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 ...
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 ...
12
votes
2answers
653 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
825 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, ...
1
vote
2answers
402 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 ...
7
votes
4answers
3k views
Designing a flexible tile-based engine
I'm trying to create a flexible tile-based game engine to make all sorts of non-realtime puzzle games, just as Bejeweled, Civilization, Sokoban, and so on.
The first approach I had was to have a 2D ...
1
vote
2answers
2k views
How to Create a Grid for a 2D Game?
So I'm currently writing the engine for my videogame. I've almost integrated Tiled (I think) so I should have a map-creator here soon.
My question is, how do I actually make the grid? I'm really ...
2
votes
2answers
852 views
Projectiles in tile mapped turn-based tactics game?
I am planning to make a Laser Squad clone and I think I have most of the aspects covered. But the major headache is the projectiles shot/thrown.
The easy way would be to figure out the probability of ...
7
votes
1answer
1k views
Tile-based 2D collision detection problems
I'm trying to follow this tutorial http://www.tonypa.pri.ee/tbw/tut05.html to implement real-time collisions in a tile-based world.
I find the center coordinates of my entities thanks to these ...
11
votes
1answer
3k views
Tile sizes in 2D games
While developing a small game using tile-mapping method a question came to my mind:
I would develop the game on Windows but wouldn't exclude adapting it to another platform.
What size(in pixels) ...
6
votes
3answers
2k views
2D Top down view maps
I was wondering how this works.
Do you load the complete map when the game starts up, or do you load parts of the map at runtime?
And how would you save the maps? Would it be in XML or some binary ...
1
vote
1answer
275 views
How is a moving object like a platform represented in a 2d Tilemap
I'm having trouble understanding how I would implement a moving platform in the actual map file. Lets say its a file of character's and maybe the letter 'P' would stand for Platform. Then, how would ...
3
votes
2answers
867 views
Representing 3D World Space with 2D Tiles
How can I represent 3D world space with 2D tiles? I do not mean isometric, which is visually represent 3D objects in 2D space.
Let's say there's some height map, and each 2D tile (X, Y) represents a ...
11
votes
4answers
8k views
Best Way to Create A Map for a 2D Game?
I apologize for the subjective "best" keyword.
My friend and I have started creation of a 2D adventure game. It will be top-down in the style of pokemon or zelda (just the perspective). We have been ...
3
votes
3answers
954 views
Generating background tiles for a side-scroller with variable player speed
I'm currently working on a side-scroller which lets the player alter their speed and I wondered how should I properly generate and control background tiles for such a kind o game. I'm using Flixel but ...
10
votes
5answers
3k views
2D Level design/editing/saving questions
I thought about making a simple 2D Sidescroller game like SuperMario.
Then i wondered about how to save, load or create the levels for the game. The first thing i thought of was drawing a simple ...
9
votes
4answers
895 views
Finding unoccluded tiles in tile-based game
I am working on a 2D tile-based game, and right now I'm trying to get a 2d equivalent of shadow volumes to work. I'm having trouble finding the surfaces that should cast shadows. From any point in the ...
5
votes
8answers
813 views
Tilemap-based level editor wishlist
I'll be likely writing one this year. It will end up having unique design so things turn out on its own anyway.
Though, what an experienced level designer would want from a level editor? ...
