Cyningstan DOS Games

Games for Early PCs

LevelMap Level Generator Library

LevelMap is a simple C library for generating small dungeons and similar levels for turn-based games. Features include the ability set dimensions of the maps or leave them random, generation of both rooms and corridors, and if desired, connected textures.

Levels can be up to 256 blocks in size, of dimensions anywhere from 28x9 through 16x16 to 9x28. LevelMap does not directly handle the graphics, but does generate the data, including what is needed to show connected textures. Neither does it generate the inhabitants of the level, which is best left to the developer of the host project.

So far, LevelMap has been used in Star Cadre: Combat Class, a science fiction squad combat game, and in The Chambers Beneath, a fantasy roguelike RPG. Squad combat games and role-playing games are the primary use case for this library.

Available downloads include a binary version of the library that can be linked with your own projects, and a source code version which you can compile for systems other than MS-DOS, and modify if you please.

LevelMap Binaries

Download: levelmap.zip
Size 32kb, downloads 6.

This is the LevelMap binary distribution. Download this if you want to create a project for MS-DOS that uses the library for level generation. (read more...)

LevelMap Source Code

Download: levelsrc.zip
Size 16kb, downloads 4.

This is the source code distribution for LevelMap. Use this if you want to compile the library for use in projects for operating systems other than MS-DOS, or if you want to customise the library and add additional capabilities to it. (read more...)

A sample dungeon generated by the LevelMap library Star Cadre: Combat Class in play The Chambers Beneath: exploring the dungeons

Comments

New Comment

Yes No