UP | HOME

des-mode

Nethack is an extensible game, in the sense that you can add new dungeons and levels to any nethack installation. Both dungeons and levels are designed on description files (.des files) and then compiled into opaque data files.

The description language is a pretty and visual one: you paint the map in ascii, and then declare objects and monsters.

MAZE: "Arc-goal", ' '
GEOMETRY:center,center
MAP
                                                                            
                                  ---------                                 
                                 |..|.|..|                                 
                       -----------|..S.S..|-----------                      
                      |.|........|+-|.|-+|........|.|                      
                      |.S........S..|.|..S........S.|                      
                      |.|........|..|.|..|........|.|                      
                    ------------------+------------------                   
                   |..|..........|.......|..........|..|                   
                   |..|..........+.......|..........S..|                   
                   |..S..........|.......+..........|..|                   
                   |..|..........|.......|..........|..|                   
                    ------------------+------------------                   
                      |.|........|..|.|..|........|.|                      
                      |.S........S..|.|..S........S.|                      
                      |.|........|+-|.|-+|........|.|                      
                       -----------|..S.S..|-----------                      
                                 |..|.|..|                                 
                                  ---------                                 
                                                                            
ENDMAP

paxed from #emacs wrote a major mode for edit nethack description files. It is extremely useful for anyone hacking nethack files, and paxed claim he has no time to maintain the mode. So I am hosting the mode here.

Download the major mode from http://es.gnu.org/~jemarch/downloads/nethack-des-mode.el

Bug reports and improvement suggestions to jemarch@gnu.org. Thanks.

Author: Jose E. Marchesi

Date: 2013-11-20 20:15:15 CET

HTML generated by org-mode 7.4 in emacs 24

Copyright (C) 2010 Jose E. Marchesi. Verbatim copying and redistribution of this entire page are permitted provided this notice is preserved.