Skip to content

Latest commit

 

History

History
43 lines (35 loc) · 785 Bytes

README.md

File metadata and controls

43 lines (35 loc) · 785 Bytes

pyudmf

Command-line tool for resizing a Doom map formatted with the Universal Doom Map Format (UDMF).

Usage

$ cd pyudmf
$ python -m pyudmf.cli -h
usage: pyudmf.py [-h] infile scalingfactor

Scale an UDMF formatted Doom map.

positional arguments:
  infile         Path to the TEXTMAP lump file.
  scalingfactor  Scaling factor. E.g. if the factor is 0.5, the map will
                 shrink to 25 % of its original area.

optional arguments:
  -h, --help     show this help message and exit

Example

$ cat TEXTMAP.lmp
namespace = "zdoom";
thing { x = 608.000; y = 256.000; }
vertex { x = 256.000; y = 192.000; }

$ python -m pyudmf.cli TEXTMAP.lmp 0.5
namespace = "zdoom";

thing
{
x = 304.000;
y = 128.000;
}

vertex
{
x = 128.000;
y = 96.000;
}