If you've ever had a great idea for a level editor but couldn't implement it due to the apparent complexity of level I/O, FleexCore is for you! This .NET 4.0 DLL is meant to be referenced by level editor programs.
It contains (for now) a single useful class: VortLevel. This class represents a single Keen:Vorticons level. Simply call the shared FromFile function to load a file from disk and ToFile to write any modifications to disk. The level can be modified in-memory by reading/writing individual tiles/sprites with the Tiles or Sprites property.
FleexCore can save in three level formats: FleexFastIO (not readable by Keen, but fast and simple I/O by FleexCore), Keen (the native Keen:Vorticons level format without any compression), or KeenRLEW (normal format with maximum-size-efficiency RLEW compression). The FromFile method will automatically detect the format used.
I will eventually add classes for Galaxy and Dreams levels, and maybe even the Keen graphics formats. Please post bug reports, suggestions, and possible improvements below.
Download FleexCore v1.0
I have a very interesting use for this...
FleexCore - A .NET Keen level API
- Malvineous
- Posts: 113
- Joined: Sat Mar 13, 2004 12:54 am
- Location: Brisbane, Australia
- Contact:
Any chance you'd be interested in implementing Keen map support in Camoto's libgamemaps? It already supports a few games (Monster Bash, Halloween Harry, Cosmo, Xargon, etc.) so it'd be nice to support Keen as well.