Skip to content

Command-line tool for scaling an UDMF formatted Doom map

License

Notifications You must be signed in to change notification settings

Sebelino/pyudmf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

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;
}

About

Command-line tool for scaling an UDMF formatted Doom map

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages