C# library for generating levels in Serious Sam's Bogus Detour.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
NBogus
.gitignore
License.txt
NBogus.sln
Readme.md

Readme.md

NBogus

C# library for generating levels in Serious Sam's Bogus Detour.

Example

var writer = new LevelWriter();

// Fill the level with grass
using (var tileWriter = writer.BeginTiles("tilesets/garden_grass.tileset")) {
  for (int y = -50; y < 50; y++) {
    for (int x = -50; x < 50; x++) {
      // Add grass to grid tile position
      tileWriter.Set(x, y);
    }
  }
}

// Add a statue on pixel position -10, -10
writer.PlaceDoodad(-10, -10, "doodads/generic/statue_anatolia_s.unit");

writer.Save("example.lvl");