(Langband Tour)

The first file in this tour is game.lisp. It's mostly uninteresting unless you're a die-hard lisper. The trick with it is that it loads the show. The show is started with the intuitive and apparent command (lb::a). The a function is defined in the init.lisp file.

init.lisp
This is the file which starts the eminent show. The crucial function is game-init&. The funny ampersand says that the function alters the global environment, and that is probably what one would expect. This function is non-trivial though. What it does:

The bad call is the one to load-variant& which does more than most would hope for. I hope to write more on it another day.

view.lisp
This file basically has line-of-sight code. It's partly optimised.


Stig E. Sandø
Last modified: Fri Sep 21 22:28:46 CEST 2001