Skip to content

j0nat/HLMapFileLoader

Repository files navigation

Half-Life .map File Loader

Map-Files .map parser, written by Stefan Hajnoczi, partly ported to C#.

Ported

  • Parse .map file
  • Turn brush into polygon
  • Calculate texture coordinates
  • Sort vertices

Not ported

  • CSG Union
  • CMF Export
  • WAD Code (Uses MonoGame Content.Load)

Extra

  • Uses MonoGame Framework (textures, vectors etc...)
  • Inverse function to rotate output correctly

Prerequisites

  • Microsoft Visual Studio 2012+
  • MonoGame

Check out the example project