Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 and columns increased, it became frustratingly slow, then I read how it should've happened to me earlier, because this control is not supposed to work with large number of cells, and I have at least 7500 cells in my smallest level, which made it unbearable to use.

This is what I expect from my new editor: Most importantly, tile type. Tile images or their color codes are fine (seeing map as it is in-game is cool, but the faster, the better).

Secondly, all tile parameters (in text, preferrably editable in a popup or sidebar).

I'm using my own format, so I'm most probably not going to use third party product. Besides, I'm trying to learn how to do it myself.

share|improve this question
You probably want to use a GL or DirectX frame of some kind to render your data. – Tetrad Apr 10 '12 at 17:50
Sounds like you are actually loading the graphics of your entire map at a single time into the control and then panning it around.. Traditional tile engines will want to only draw enough of the tiles to fill the screen plus one set of border tiles so you do not see tiles pop in and out. The point of a tile engine is to load the set of tiles once and use them to draw over and over again. – James Apr 10 '12 at 17:54
James, my game engine works fine, I just need to figure out how to make an editor that will work well too. Right now, I have a slow version of what I need, and there is no was I can make it work faster, but I can with other components and I'm trying to find out which. – user1306322 Apr 10 '12 at 18:35

I use a simple WinForm for a map's canvas and another form for tiles toolbox. No grid is necessary, the user just selects a tile and point-clicks on the canvas. Mouse coords are recalculated according to predefined grid dimensions, and one can easily paint/overwrite the map below the pointer. Another toolbox-form contains varoius objects to place over the map (can be used as a height map). These forms are placed inside a MDI container. It took less than an hour to create the editor, no special controls or DX methods are required, GDI+ works fine.

share|improve this answer

Why not use an existing tile editor? Tiled seems well supported.

share|improve this answer

A simple 3D engine should suffice, depending on your video card and various other factors it shouldn't be too much to expect that it can draw 100000 quads/tiles with no special optimization.

share|improve this answer

If you can play your levels, you can make the editor ingame...

it is not too difficult..

these are two samples one of my tiled games and its ingame editor

1st version ...

3trd version playable...

other editor for non tiled game but ingame too...

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.