public
Description: RLX Common Lisp Game Engine
Homepage: http://dto.github.com/notebook/rlx.html
Clone URL: git://github.com/dto/rlx.git
rlx / INSTALL
100644 105 lines (71 sloc) 3.045 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
This is the INSTALL file for the RLX roguelike engine.
Installation and basic playing instructions are provided.
 
1. You need a Common Lisp implementation. Only tested on SBCL right
   now. You must also have the SDL libraries installed. How to do this
   is beyond the scope of this document. See libsdl.org for more
   information. In addition, the LISPBUILDER-SDL libraries are also
   required and these should be compiled from their latest
   SVN. (see below for instructions.)
 
   Your Linux distribution will have SDL packages for sdl, sdl-image,
   and sdl-mixer, all of which are required libraries.
 
2. If you have not already done so, download RLX:
  
   mkdir ~/src
   cd ~/src
   git clone git://github.com/dto/rlx.git
 
3. Then link the rlx.asd file into your ~/.sbcl/systems directory:
 
   ln -s ~/src/rlx/rlx.asd ~/.sbcl/systems
 
4. Download and install a required library called CLON. Example
   commands:
 
   mkdir ~/src
   cd ~/src
   git clone git://github.com/dto/clon.git
 
   Then link the clon.asd file:
 
   ln -s ~/src/clon/clon.asd ~/.sbcl/systems
 
5a. Install some prerequisites for LISPBUILDER-SDL. This should be quick.
    
   (require :asdf)
   (require :asdf-install)
   (asdf-install:install :cffi)
 
   If it asks about any GPG-KEY-CHECKS, press the appropriate listed
   key to skip them.
 
   Now install your GNU/Linux distribution's packages for libsdl,
   libsdl-image, libsdl-mixer, and libsdl-gfx.
 
5b. The latest development version of LISPBUILDER-SDL is required. Use
    Subversion to check out the source code:
 
   mkdir ~/src
   cd ~/src
   svn checkout http://lispbuilder.googlecode.com/svn/trunk/ lispbuilder
 
   Then symlink all the .asd files in that tree into ~/.sbcl/systems
   (or wherever your .ASD files go) like this:
 
   cd ~/.sbcl/systems
   for i in `find ~/src/lispbuilder -name "*.asd"`; do ln -s $i .; done
 
6. OPTIONAL: configure module directories
 
   Add something like this to a new file called ~/.rlxrc:
 
  (setf rlx:*module-directories* '(#P"/home/dto/src/rlx/"))
 
The filename should be wherever you installed the RLX source
tree. This is auto-detected as the current directory if you don't set
it. NOTE: These must be pathnames (prefixed with #P) and must contain
a trailing slash.
 
7. At the shell, cd to the install directory for RLX, run SBCL, and
   then at the REPL:
 
    (require :rlx)
    (rlx:play "blast")
 
  If you get an error about TRIVIAL-FEATURES-TESTS, try this:
  (require :trivial-features-tests)
  
See the separate file $INSTALLDIR/invader/manual.org for playing
instructions.
 
8. Here is my example .rlxrc:
 
    ;; -*- Mode: lisp -*-
 
    (setf rlx:*module-directories* '(#P"/home/dto/rlx/"
     #P"/home/dto/rlx-modules/"))
    (setf rlx:*user-keyboard-layout* :qwerty)
    (setf rlx:*use-sound* t)
    (setf rlx:*message-logging* t)
     ;; fullscreen is a pain if RLX hangs
    (setf rlx:*fullscreen* nil)
 
9. For dvorak users:
 
   g c r
    \|/
   h-.-n
    /|\
   m w v
 
   Add (setf rlx:*user-keyboard-layout* :dvorak) to your ~/.rlxrc.