0.2.3 • Published 8 years ago

nlump v0.2.3

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

nlump

A utility for working with lumps from a WAD file (used by Doom et al)

npm install nlump

NB: doesn't read WAD files, if you have a WAD file and want to get the lumps out of it, try nwad

WORK IN PROGRESS

Currently read only, lump writers to come.

Lump readers currently supported

  • things
  • linedefs
  • sidedefs
  • vertexes
  • segs
  • ssectors
  • nodes
  • sectors
  • blockmap
  • playpal
  • pnames
  • texture
  • colormap
  • flat
  • picture (sprites, UI, walls etc.)

Not implemented yet

Pull requests would be nice!

  • reject
  • sound
  • music
  • demo
  • endoom
  • dmxgus

Usage

const nlump = require( 'nlump' )

//if you have a lump from nwad, the buffer is stored in the 'data' property
const result = nlump( buffer, 'things' )

Example output:

[
  {
    "x": 1056,
    "y": -3616,
    "angle": 90,
    "type": 1,
    "flags": {
      "easy": true,
      "medium": true,
      "hard": true,
      "deaf": false,
      "multiplayer": false
    }
  },
  {
    "x": 1008,
    "y": -3600,
    "angle": 90,
    "type": 2,
    "flags": {
      "easy": true,
      "medium": true,
      "hard": true,
      "deaf": false,
      "multiplayer": false
    }
  }
]
0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago