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.

Date: 2011-07-22 15:08:39 CEST

Author: Jose E. Marchesi

Org version 7.5 with Emacs version 23

Validate XHTML 1.0