Posts under WinForms

Displaying image thumbnails in the level editor

To display the sprite thumbnails in my level editor application, I wrote a couple of simple custom controls. The first control extends from the .NET PictureBox control, and just has an additional property to track whether it’s been selected. Then, in the OnPaint method, if the SelectablePictureBox is selected, then I draw a border over […]

XNA Level Editor

I’m working on a level editor for creating XNA games. At the moment, it only supports the 2D game engine I’m working on, but I’m planning to extend both the engine and editor to support 3D graphics (but keeping it to 2D logic for the time-being). This is what the editor looks like when it […]