Archive for 'Uncategorized'
TileSets, now in XML
cubed2D
November 17th, 2007.
over the passed two days ive cleaned up my tile engine to allow for it to be serialized in to Xml. now, TileSets are read in from xml sheets created in a new simple TileSet builder tool Ive made. Im now working on a map builder, which will beable to save out maps in Xml.
1. open up the TileSet Builder tool, small splash screen.
2. next, you select tile image file that holds the tiles
3. now we can input some basic info about the TileSet, such as the amount of tiles on the sheet, the size of any spacing between the tiles and the height and width of each tile. A preview of the tile set is shown as well, you can click on it to see it full size and unstreached. Later im going to try and a grid over the preview image so you can check if the inputs are correct.
4. next we define the base tile information
5. and then we can tweak it more in more detail! this is mainly for setting up anumated tile sets, you can remove a tile from the set(you only want the base animation frame to be part of the set), change the FPS and ID numer of a tile aswell as add and remove frames from the animation list.
6. finaly were all done, and can save out the TileSet
At the moment the tool is a bit sloppy, you can probably tell its far from idea, but its great for buiding up XML files for quick testing!
First screenshot of CrimsonEngine’s new Tile based map support
cubed2D
November 12th, 2007.
(note: mouse not showing up on screen shots :(, trust me, the tile location stuff is right
)
Currently Supports
- - Maps of any size with any amount of layers
- - smooth scrolling
- - basic saving and loading
- - tile picking
- - multiple tile sheets
- - tiles with attached data
Coming in the next few builds
- better camera support (zooming, possibly rotation)
- better file definition
- quadtree based object renderer
- intergration with CrimsonEngine’s object and console systems
- improved resolution independance
The Traveling Biologist Problem
cubed2D
June 06th, 2007.
Today i check my email and found a list of end of term challenge questions sent to us by our programming lecturer. Naturally, the traveling salesman was one of the challenges. I’ve never implemented a solution to it before, so I thought id give it a shot. I remembered reading an article on implementing a genetic algorithm to solve it, so I decided to give it a shot. I’m half way through at the moment and its brilliant fun! Anyone interested in AI and GA should give it a shot! only problem is that it has to be in java. I keep writing c# syntax!
ahh well, if it goes well I might post it! wish me luck.