Monday, May 31, 2010

Hooray for the simplicity of C++

I've pretty much spent the entire night getting dialog boxes working all properly, unfortunately a small problem with Windows Dialog Boxes is that without setting a particular flag, they change the working directory, meaning anything you are loading relatively will fail.

Before:
opf.Flags = (OFN_PATHMUSTEXIST | OFN_OVERWRITEPROMPT) & ~OFN_ALLOWMULTISELECT;


After:
opf.Flags = (OFN_PATHMUSTEXIST | OFN_OVERWRITEPROMPT | OFN_NOCHANGEDIR) & ~OFN_ALLOWMULTISELECT;


2 hours lost simply because I needed to write append the "OFN_NOCHANGEDIR" flag to the list.

Tuesday, May 25, 2010

Map Editor Progress 2



Still working on the map editor, since the last time I talked about it, I've implemented a better looking selector, changing which page its on (instead of scrolling as tilesets can be ANY size and I feel this is a better way to manage it, you can also type the page number, not only use the arrows)

The Brush selection is done, so you in the future you can select between rectangle collision boxes, triangle collision polygons, tiles and objects when creating the map.

The part I need to work on now is loading a tileset, but before doing that I need to fix my Textbox object as I've broken it, so now you can't type in them :S

Wednesday, May 12, 2010

My Map Editor Progress



Currently I'm working on the Map Editor for my Game engine. This is taking me forever to do mainly just because getting motivated to work on this is hard as it is VERY boring.

So well, now it can load a tilesheet by any width or height as it is divided into pages. (Page selector now yet implemented but it wont take much effort)

All thats needed now is the ability for the user to load a custom tile, load a map file, save a map file, create tiles on screen, create collision bounding boxes, and creating game objects...

... too much work to be done.