The asteroids Reference Manual

Table of Contents

Next: , Previous: , Up: (dir)   [Contents][Index]

The asteroids Reference Manual

This is the asteroids Reference Manual, generated automatically by Declt version 2.3 "Robert April" on Wed Mar 14 02:56:10 2018 GMT+0.


Next: , Previous: , Up: Top   [Contents][Index]

1 Introduction

asteroids

Classic asteroids arcade game in Common Lisp, using SDL.

Originally ported from Python by andyhd (thanks, andyhd!). The game now has sounds, keyboard controls, a built-in REPL (triggered by ESC key) and is very playable.

Installation (no git cloning needed)

Install SBCL (or CCL) and quicklisp as described here)

IMPORTANT - install native sdl libraries! For linux, that means apt-get install

Now, in lisp (ql:quickload "asteroids") (asteroids:main)

Quicklisp updates monthly. If you want the newest version, git clone this repo into an asdf-visible directory (see Xach's article). ql:quickload will load the local repo first

Play Instructions

The game plays like original asteroids, except instead of saucers you get powerups. Ram the powerups to pick up super-missiles that go through anything, shields, or to stop time.

Keyboard controls:

Q - quit A - rotate ship left F - rotate ship right J - thrust SPC - fire ESC - REPL

P starts the game in attract mode.

Notes

Code has been re-organized and cleaned up. Names have been altered to make it more sensible and bugs fixed. Now loading with quicklisp

ESC now brings you to a REPL. Examine the game state, recompile anything (carefully).

I also added audio using MAME asteroids samples. lispbuilder-sdl-mixer is fragile and very sensitive to being shut down correctly in an interactive environment.

Background music is courtesy http://teknoaxe.com/Home.php.

TODO:


Next: , Previous: , Up: Top   [Contents][Index]

2 Systems

The main system appears first, followed by any subsystem dependency.


Previous: , Up: Systems   [Contents][Index]

2.1 asteroids

Author

stacksmith stack@sdf.org

License

Do Whatever The Fuck You Want (DWTFYF)

Description

An improved asteroids game with sounds

Dependencies
Source

asteroids.asd (file)

Components

Next: , Previous: , Up: Top   [Contents][Index]

3 Files

Files are sorted by type and then listed depth-first from the systems components trees.


Next: , Previous: , Up: Files   [Contents][Index]

3.1 Lisp


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.1 asteroids.asd

Location

asteroids.asd

Systems

asteroids (system)


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.2 asteroids/package.lisp

Parent

asteroids (system)

Location

package.lisp

Packages

asteroids


Previous: , Up: Lisp files   [Contents][Index]

3.1.3 asteroids/asteroids.lisp

Dependency

package.lisp (file)

Parent

asteroids (system)

Location

asteroids.lisp

Exported Definitions

main (function)

Internal Definitions

Previous: , Up: Files   [Contents][Index]

3.2 Other


Next: , Previous: , Up: Other files   [Contents][Index]

3.2.1 asteroids/sounds/banjo.mp3

Dependency

asteroids.lisp (file)

Parent

asteroids (system)

Location

sounds/banjo.mp3


Next: , Previous: , Up: Other files   [Contents][Index]

3.2.2 asteroids/sounds/biding.mp3

Dependency

sounds/banjo.mp3 (file)

Parent

asteroids (system)

Location

sounds/biding.mp3


Next: , Previous: , Up: Other files   [Contents][Index]

3.2.3 asteroids/sounds/explode1.wav

Dependency

sounds/biding.mp3 (file)

Parent

asteroids (system)

Location

sounds/explode1.wav


Next: , Previous: , Up: Other files   [Contents][Index]

3.2.4 asteroids/sounds/explode2.wav

Dependency

sounds/explode1.wav (file)

Parent

asteroids (system)

Location

sounds/explode2.wav


Next: , Previous: , Up: Other files   [Contents][Index]

3.2.5 asteroids/sounds/explode3.wav

Dependency

sounds/explode2.wav (file)

Parent

asteroids (system)

Location

sounds/explode3.wav


Next: , Previous: , Up: Other files   [Contents][Index]

3.2.6 asteroids/sounds/fire.wav

Dependency

sounds/explode3.wav (file)

Parent

asteroids (system)

Location

sounds/fire.wav


Next: , Previous: , Up: Other files   [Contents][Index]

3.2.7 asteroids/sounds/haters.mp3

Dependency

sounds/fire.wav (file)

Parent

asteroids (system)

Location

sounds/haters.mp3


Next: , Previous: , Up: Other files   [Contents][Index]

3.2.8 asteroids/sounds/life.wav

Dependency

sounds/haters.mp3 (file)

Parent

asteroids (system)

Location

sounds/life.wav


Next: , Previous: , Up: Other files   [Contents][Index]

3.2.9 asteroids/sounds/lsaucer.wav

Dependency

sounds/life.wav (file)

Parent

asteroids (system)

Location

sounds/lsaucer.wav


Next: , Previous: , Up: Other files   [Contents][Index]

3.2.10 asteroids/sounds/music.mp3

Dependency

sounds/lsaucer.wav (file)

Parent

asteroids (system)

Location

sounds/music.mp3


Next: , Previous: , Up: Other files   [Contents][Index]

3.2.11 asteroids/sounds/phaser.wav

Dependency

sounds/music.mp3 (file)

Parent

asteroids (system)

Location

sounds/phaser.wav


Next: , Previous: , Up: Other files   [Contents][Index]

3.2.12 asteroids/sounds/sfire.wav

Dependency

sounds/phaser.wav (file)

Parent

asteroids (system)

Location

sounds/sfire.wav


Next: , Previous: , Up: Other files   [Contents][Index]

3.2.13 asteroids/sounds/ssaucer.wav

Dependency

sounds/sfire.wav (file)

Parent

asteroids (system)

Location

sounds/ssaucer.wav


Next: , Previous: , Up: Other files   [Contents][Index]

3.2.14 asteroids/sounds/thrust.wav

Dependency

sounds/ssaucer.wav (file)

Parent

asteroids (system)

Location

sounds/thrust.wav


Next: , Previous: , Up: Other files   [Contents][Index]

3.2.15 asteroids/sounds/thumphi.wav

Dependency

sounds/thrust.wav (file)

Parent

asteroids (system)

Location

sounds/thumphi.wav


Previous: , Up: Other files   [Contents][Index]

3.2.16 asteroids/sounds/thumplo.wav

Dependency

sounds/thumphi.wav (file)

Parent

asteroids (system)

Location

sounds/thumplo.wav


Next: , Previous: , Up: Top   [Contents][Index]

4 Packages

Packages are listed by definition order.


Previous: , Up: Packages   [Contents][Index]

4.1 asteroids

Source

package.lisp (file)

Use List
Exported Definitions

main (function)

Internal Definitions

Next: , Previous: , Up: Top   [Contents][Index]

5 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


Next: , Previous: , Up: Definitions   [Contents][Index]

5.1 Exported definitions


Previous: , Up: Exported definitions   [Contents][Index]

5.1.1 Functions

Function: main ()
Package

asteroids

Source

asteroids.lisp (file)


Previous: , Up: Definitions   [Contents][Index]

5.2 Internal definitions


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.1 Constants

Constant: +degrees+
Package

asteroids

Source

asteroids.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.2 Special variables

Special Variable: *explosion-color*
Package

asteroids

Source

asteroids.lisp (file)

Special Variable: *explosion-max-radius*
Package

asteroids

Source

asteroids.lisp (file)

Special Variable: *friction*
Package

asteroids

Source

asteroids.lisp (file)

Special Variable: *is-thrusting*
Package

asteroids

Source

asteroids.lisp (file)

Special Variable: *lr-map*
Package

asteroids

Source

asteroids.lisp (file)

Special Variable: *missile-velocity*
Package

asteroids

Source

asteroids.lisp (file)

Special Variable: *powerup-max-age*
Package

asteroids

Source

asteroids.lisp (file)

Special Variable: *rock-sides*
Package

asteroids

Source

asteroids.lisp (file)

Special Variable: *screen-height*
Package

asteroids

Source

asteroids.lisp (file)

Special Variable: *screen-width*
Package

asteroids

Source

asteroids.lisp (file)

Special Variable: *sound*
Package

asteroids

Source

asteroids.lisp (file)

Special Variable: *thrust-factor*
Package

asteroids

Source

asteroids.lisp (file)

Special Variable: *window*
Package

asteroids

Source

asteroids.lisp (file)

Special Variable: *world*
Package

asteroids

Source

asteroids.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.3 Macros

Macro: handling-errors &body BODY
Package

asteroids

Source

asteroids.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.4 Functions

Function: apres WORLD TIMER-NAME &key SECONDS FUN
Package

asteroids

Source

asteroids.lisp (file)

Function: asteroids ()
Package

asteroids

Source

asteroids.lisp (file)

Function: key-processor WORLD KEY &key DOWN
Package

asteroids

Source

asteroids.lisp (file)

Function: key-processor-attract WORLD KEY &key DOWN
Package

asteroids

Source

asteroids.lisp (file)

Function: key-processor-game WORLD KEY &key DOWN
Package

asteroids

Source

asteroids.lisp (file)

Function: make-random-powerup &key POS VELOCITY
Package

asteroids

Source

asteroids.lisp (file)

Function: music-finished-action ()
Package

asteroids

Source

asteroids.lisp (file)

Function: my-distance A B
Package

asteroids

Source

asteroids.lisp (file)

Function: polygon1 COORDS RADIUS-OF DIRECTION

return a list of vertices (points) suitable for draw-polygon

Package

asteroids

Source

asteroids.lisp (file)

Function: radial-point-from P RADIUS ANGLE
Package

asteroids

Source

asteroids.lisp (file)

Function: radial-points-from COORD RADIUS ANGLES

return a list of points located along the radius around p, at list of angles

Package

asteroids

Source

asteroids.lisp (file)

Function: repl ()
Package

asteroids

Source

asteroids.lisp (file)

Function: sample-finished-action ()
Package

asteroids

Source

asteroids.lisp (file)

Function: ship-fire SHIP
Package

asteroids

Source

asteroids.lisp (file)

Function: update-world WORLD
Package

asteroids

Source

asteroids.lisp (file)

Function: xy-off-create ANGLE-RAD MAGNITUDE

Create a ’xy-off’

Package

asteroids

Source

asteroids.lisp (file)

Function: xy-off-scale V FACTOR
Package

asteroids

Source

asteroids.lisp (file)

Function: xy-off-subtract A B
Package

asteroids

Source

asteroids.lisp (file)

Function: xy-off-sum A B
Package

asteroids

Source

asteroids.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.5 Generic functions

Generic Function: acceleration-of OBJECT
Generic Function: (setf acceleration-of) NEW-VALUE OBJECT
Package

asteroids

Methods
Method: acceleration-of (SHIP ship)

automatically generated reader method

Source

asteroids.lisp (file)

Method: (setf acceleration-of) NEW-VALUE (SHIP ship)

automatically generated writer method

Source

asteroids.lisp (file)

Generic Function: add-freeze WORLD &key SECONDS
Package

asteroids

Methods
Method: add-freeze (WORLD world) &key SECONDS
Source

asteroids.lisp (file)

Generic Function: add-score WORLD SCORE
Package

asteroids

Methods
Method: add-score (WORLD world) (ROCK rock)
Source

asteroids.lisp (file)

Method: add-score (WORLD world) (POWERUP powerup)
Source

asteroids.lisp (file)

Method: add-score (WORLD world) (SCORE number)
Source

asteroids.lisp (file)

Generic Function: add-shield SHIP &key SECONDS
Package

asteroids

Methods
Method: add-shield (SHIP ship) &key SECONDS
Source

asteroids.lisp (file)

Generic Function: add-super-missiles SHIP &key SECONDS
Package

asteroids

Methods
Method: add-super-missiles (SHIP ship) &key SECONDS
Source

asteroids.lisp (file)

Generic Function: add-to WORLD MOB
Package

asteroids

Methods
Method: add-to (WORLD world) (POWERUP powerup) after
Source

asteroids.lisp (file)

Method: add-to (WORLD world) (SHIP ship) after
Source

asteroids.lisp (file)

Method: add-to (WORLD world) (ROCK rock) after
Source

asteroids.lisp (file)

Method: add-to (WORLD world) (MOB mob)
Source

asteroids.lisp (file)

Generic Function: best-level OBJECT
Generic Function: (setf best-level) NEW-VALUE OBJECT
Package

asteroids

Methods
Method: best-level (WORLD world)

automatically generated reader method

Source

asteroids.lisp (file)

Method: (setf best-level) NEW-VALUE (WORLD world)

automatically generated writer method

Source

asteroids.lisp (file)

Generic Function: break-down ROCK WORLD
Package

asteroids

Methods
Method: break-down (ROCK rock) (WORLD world)
Source

asteroids.lisp (file)

Generic Function: collide MOB OTHER WORLD
Package

asteroids

Methods
Method: collide (MISSILE missile) (ROCK rock) (WORLD world) before
Source

asteroids.lisp (file)

Method: collide (SHIP ship) (ROCK rock) (WORLD world) before
Source

asteroids.lisp (file)

Method: collide (SHIP ship) (POWERUP powerup-freeze) (WORLD world) before
Source

asteroids.lisp (file)

Method: collide (SHIP ship) (POWERUP powerup) (WORLD world) before
Source

asteroids.lisp (file)

Method: collide (SHIP ship) (POWERUP powerup-missile) (WORLD world) before
Source

asteroids.lisp (file)

Method: collide (SHIP ship) (POWERUP powerup-shield) (WORLD world) before
Source

asteroids.lisp (file)

Method: collide (MOB mob) (OTHER mob) (WORLD world)
Source

asteroids.lisp (file)

Generic Function: direction-of OBJECT
Generic Function: (setf direction-of) NEW-VALUE OBJECT
Package

asteroids

Methods
Method: direction-of (MOB-ROT mob-rot)

automatically generated reader method

Source

asteroids.lisp (file)

Method: (setf direction-of) NEW-VALUE (MOB-ROT mob-rot)

automatically generated writer method

Source

asteroids.lisp (file)

Generic Function: done TIMER
Package

asteroids

Methods
Method: done (TIMER timer)
Source

asteroids.lisp (file)

Generic Function: fade OBJECT
Generic Function: (setf fade) NEW-VALUE OBJECT
Package

asteroids

Methods
Method: fade (X-SHIP x-ship)

automatically generated reader method

Source

asteroids.lisp (file)

Method: (setf fade) NEW-VALUE (X-SHIP x-ship)

automatically generated writer method

Source

asteroids.lisp (file)

Generic Function: frozen-p WORLD
Package

asteroids

Methods
Method: frozen-p (WORLD world)
Source

asteroids.lisp (file)

Generic Function: high-score OBJECT
Generic Function: (setf high-score) NEW-VALUE OBJECT
Package

asteroids

Methods
Method: high-score (WORLD world)

automatically generated reader method

Source

asteroids.lisp (file)

Method: (setf high-score) NEW-VALUE (WORLD world)

automatically generated writer method

Source

asteroids.lisp (file)

Generic Function: in-world-p WORLD MOB
Package

asteroids

Methods
Method: in-world-p (WORLD world) (MOB mob)
Source

asteroids.lisp (file)

Generic Function: initialize SOUND
Package

asteroids

Methods
Method: initialize (SOUND sound)
Source

asteroids.lisp (file)

Generic Function: intersects-p MOB OTHER
Package

asteroids

Methods
Method: intersects-p (MOB mob) (OTHER mob)
Source

asteroids.lisp (file)

Generic Function: level OBJECT
Generic Function: (setf level) NEW-VALUE OBJECT
Package

asteroids

Methods
Method: level (WORLD world)

automatically generated reader method

Source

asteroids.lisp (file)

Method: (setf level) NEW-VALUE (WORLD world)

automatically generated writer method

Source

asteroids.lisp (file)

Generic Function: level-cleared-p WORLD
Package

asteroids

Methods
Method: level-cleared-p (WORLD world)
Source

asteroids.lisp (file)

Generic Function: lifetime OBJECT
Generic Function: (setf lifetime) NEW-VALUE OBJECT
Package

asteroids

Methods
Method: lifetime (X-SHIP x-ship)

automatically generated reader method

Source

asteroids.lisp (file)

Method: (setf lifetime) NEW-VALUE (X-SHIP x-ship)

automatically generated writer method

Source

asteroids.lisp (file)

Method: lifetime (POWERUP powerup)

automatically generated reader method

Source

asteroids.lisp (file)

Method: (setf lifetime) NEW-VALUE (POWERUP powerup)

automatically generated writer method

Source

asteroids.lisp (file)

Method: lifetime (MISSILE missile)

automatically generated reader method

Source

asteroids.lisp (file)

Method: (setf lifetime) NEW-VALUE (MISSILE missile)

automatically generated writer method

Source

asteroids.lisp (file)

Generic Function: lives OBJECT
Generic Function: (setf lives) NEW-VALUE OBJECT
Package

asteroids

Methods
Method: lives (WORLD world)

automatically generated reader method

Source

asteroids.lisp (file)

Method: (setf lives) NEW-VALUE (WORLD world)

automatically generated writer method

Source

asteroids.lisp (file)

Generic Function: map-coords MOB
Package

asteroids

Methods
Method: map-coords (MOB mob)

create a point from mob’s fractional coordinates

Source

asteroids.lisp (file)

Generic Function: map-radius MOB
Package

asteroids

Methods
Method: map-radius (MOB mob)
Source

asteroids.lisp (file)

Generic Function: mobs OBJECT
Generic Function: (setf mobs) NEW-VALUE OBJECT
Package

asteroids

Methods
Method: mobs (WORLD world)

automatically generated reader method

Source

asteroids.lisp (file)

Method: (setf mobs) NEW-VALUE (WORLD world)

automatically generated writer method

Source

asteroids.lisp (file)

Generic Function: music OBJECT
Generic Function: (setf music) NEW-VALUE OBJECT
Package

asteroids

Methods
Method: music (SOUND sound)

automatically generated reader method

Source

asteroids.lisp (file)

Method: (setf music) NEW-VALUE (SOUND sound)

automatically generated writer method

Source

asteroids.lisp (file)

Generic Function: num-of-rocks OBJECT
Generic Function: (setf num-of-rocks) NEW-VALUE OBJECT
Package

asteroids

Methods
Method: num-of-rocks (WORLD world)

automatically generated reader method

Source

asteroids.lisp (file)

Method: (setf num-of-rocks) NEW-VALUE (WORLD world)

automatically generated writer method

Source

asteroids.lisp (file)

Generic Function: opened OBJECT
Generic Function: (setf opened) NEW-VALUE OBJECT
Package

asteroids

Methods
Method: opened (SOUND sound)

automatically generated reader method

Source

asteroids.lisp (file)

Method: (setf opened) NEW-VALUE (SOUND sound)

automatically generated writer method

Source

asteroids.lisp (file)

Generic Function: paused OBJECT
Generic Function: (setf paused) NEW-VALUE OBJECT
Package

asteroids

Methods
Method: paused (WORLD world)

automatically generated reader method

Source

asteroids.lisp (file)

Method: (setf paused) NEW-VALUE (WORLD world)

automatically generated writer method

Source

asteroids.lisp (file)

Generic Function: period OBJECT
Generic Function: (setf period) NEW-VALUE OBJECT
Package

asteroids

Methods
Method: period (THUMPER thumper)

automatically generated reader method

Source

asteroids.lisp (file)

Method: (setf period) NEW-VALUE (THUMPER thumper)

automatically generated writer method

Source

asteroids.lisp (file)

Generic Function: phasex OBJECT
Generic Function: (setf phasex) NEW-VALUE OBJECT
Package

asteroids

Methods
Method: phasex (THUMPER thumper)

automatically generated reader method

Source

asteroids.lisp (file)

Method: (setf phasex) NEW-VALUE (THUMPER thumper)

automatically generated writer method

Source

asteroids.lisp (file)

Generic Function: play-explode1 SOUND
Package

asteroids

Methods
Method: play-explode1 (SOUND sound)
Source

asteroids.lisp (file)

Generic Function: play-explode2 SOUND
Package

asteroids

Methods
Method: play-explode2 (SOUND sound)
Source

asteroids.lisp (file)

Generic Function: play-explode3 SOUND
Package

asteroids

Methods
Method: play-explode3 (SOUND sound)
Source

asteroids.lisp (file)

Generic Function: play-fire SOUND
Package

asteroids

Methods
Method: play-fire (SOUND sound)
Source

asteroids.lisp (file)

Generic Function: play-music SOUND LEVEL
Package

asteroids

Methods
Method: play-music (SOUND sound) LEVEL
Source

asteroids.lisp (file)

Generic Function: play-phaser SOUND
Package

asteroids

Methods
Method: play-phaser (SOUND sound)
Source

asteroids.lisp (file)

Generic Function: play-thrust SOUND
Package

asteroids

Methods
Method: play-thrust (SOUND sound)
Source

asteroids.lisp (file)

Generic Function: play-thrust-stop SOUND
Package

asteroids

Methods
Method: play-thrust-stop (SOUND sound)
Source

asteroids.lisp (file)

Generic Function: play-thump-stop SOUND
Package

asteroids

Methods
Method: play-thump-stop (SOUND sound)
Source

asteroids.lisp (file)

Generic Function: play-thumphi SOUND
Package

asteroids

Methods
Method: play-thumphi (SOUND sound)
Source

asteroids.lisp (file)

Generic Function: play-thumplo SOUND
Package

asteroids

Methods
Method: play-thumplo (SOUND sound)
Source

asteroids.lisp (file)

Generic Function: play-ufo1 SOUND
Package

asteroids

Methods
Method: play-ufo1 (SOUND sound)
Source

asteroids.lisp (file)

Generic Function: play-ufo1-stop SOUND
Package

asteroids

Methods
Method: play-ufo1-stop (SOUND sound)
Source

asteroids.lisp (file)

Generic Function: play-ufo2 SOUND
Package

asteroids

Methods
Method: play-ufo2 (SOUND sound)
Source

asteroids.lisp (file)

Generic Function: play-ufo2-stop SOUND
Package

asteroids

Methods
Method: play-ufo2-stop (SOUND sound)
Source

asteroids.lisp (file)

Generic Function: pos-of OBJECT
Generic Function: (setf pos-of) NEW-VALUE OBJECT
Package

asteroids

Methods
Method: pos-of (MOB mob)

automatically generated reader method

Source

asteroids.lisp (file)

Method: (setf pos-of) NEW-VALUE (MOB mob)

automatically generated writer method

Source

asteroids.lisp (file)

Generic Function: powerup-active-p SHIP POWERUP
Package

asteroids

Methods
Method: powerup-active-p (SHIP ship) POWERUP
Source

asteroids.lisp (file)

Generic Function: radii OBJECT
Generic Function: (setf radii) NEW-VALUE OBJECT
Package

asteroids

Methods
Method: radii (ROCK rock)

automatically generated reader method

Source

asteroids.lisp (file)

Method: (setf radii) NEW-VALUE (ROCK rock)

automatically generated writer method

Source

asteroids.lisp (file)

Generic Function: radius-of OBJECT
Generic Function: (setf radius-of) NEW-VALUE OBJECT
Package

asteroids

Methods
Method: radius-of (MOB mob)

automatically generated reader method

Source

asteroids.lisp (file)

Method: (setf radius-of) NEW-VALUE (MOB mob)

automatically generated writer method

Source

asteroids.lisp (file)

Generic Function: remove-from WORLD MOB
Package

asteroids

Methods
Method: remove-from (WORLD world) (POWERUP powerup) after
Source

asteroids.lisp (file)

Method: remove-from (WORLD world) (SHIP ship) after
Source

asteroids.lisp (file)

Method: remove-from (WORLD world) (ROCK rock) after
Source

asteroids.lisp (file)

Method: remove-from (WORLD world) (MOB mob)
Source

asteroids.lisp (file)

Generic Function: render MOB
Package

asteroids

Methods
Method: render (X-SHIP x-ship)
Source

asteroids.lisp (file)

Method: render (SHIP ship)
Source

asteroids.lisp (file)

Method: render (POWERUP powerup-shield)
Source

asteroids.lisp (file)

Method: render (POWERUP powerup-freeze)
Source

asteroids.lisp (file)

Method: render (POWERUP powerup-missile)
Source

asteroids.lisp (file)

Method: render (EXPLOSION explosion)
Source

asteroids.lisp (file)

Method: render (MISSILE missile)
Source

asteroids.lisp (file)

Method: render (ROCK rock)
Source

asteroids.lisp (file)

Method: render (MOB mob)
Source

asteroids.lisp (file)

Generic Function: render-attract WORLD
Package

asteroids

Methods
Method: render-attract (WORLD world)
Source

asteroids.lisp (file)

Generic Function: render-world WORLD
Package

asteroids

Methods
Method: render-world (WORLD world)
Source

asteroids.lisp (file)

Generic Function: render-world-game WORLD
Package

asteroids

Methods
Method: render-world-game (WORLD world)
Source

asteroids.lisp (file)

Generic Function: reset SOUND
Package

asteroids

Methods
Method: reset (WORLD world)
Source

asteroids.lisp (file)

Method: reset (SOUND sound)
Source

asteroids.lisp (file)

Generic Function: rotation-of OBJECT
Generic Function: (setf rotation-of) NEW-VALUE OBJECT
Package

asteroids

Methods
Method: rotation-of (MOB-ROT mob-rot)

automatically generated reader method

Source

asteroids.lisp (file)

Method: (setf rotation-of) NEW-VALUE (MOB-ROT mob-rot)

automatically generated writer method

Source

asteroids.lisp (file)

Generic Function: sample OBJECT
Generic Function: (setf sample) NEW-VALUE OBJECT
Package

asteroids

Methods
Method: sample (SOUND sound)

automatically generated reader method

Source

asteroids.lisp (file)

Method: (setf sample) NEW-VALUE (SOUND sound)

automatically generated writer method

Source

asteroids.lisp (file)

Generic Function: score OBJECT
Generic Function: (setf score) NEW-VALUE OBJECT
Package

asteroids

Methods
Method: score (WORLD world)

automatically generated reader method

Source

asteroids.lisp (file)

Method: (setf score) NEW-VALUE (WORLD world)

automatically generated writer method

Source

asteroids.lisp (file)

Generic Function: set-radius NEW-VALUE OBJECT
Package

asteroids

Methods
Method: set-radius NEW-VALUE (MOB mob)

automatically generated writer method

Source

asteroids.lisp (file)

Generic Function: set-seconds TIMER SECONDS
Package

asteroids

Methods
Method: set-seconds (TIMER timer) SECONDS
Source

asteroids.lisp (file)

Generic Function: ship OBJECT
Generic Function: (setf ship) NEW-VALUE OBJECT
Package

asteroids

Methods
Method: ship (WORLD world)

automatically generated reader method

Source

asteroids.lisp (file)

Method: (setf ship) NEW-VALUE (WORLD world)

automatically generated writer method

Source

asteroids.lisp (file)

Generic Function: ship-moved WORLD SHIP
Package

asteroids

Methods
Method: ship-moved (WORLD world) (SHIP ship)
Source

asteroids.lisp (file)

Generic Function: shoot SHIP WORLD
Package

asteroids

Methods
Method: shoot (SHIP ship) (WORLD world)

Fire a missile using ship’s direction

Source

asteroids.lisp (file)

Generic Function: shut-down SOUND
Package

asteroids

Methods
Method: shut-down (SOUND sound)
Source

asteroids.lisp (file)

Generic Function: size-of OBJECT
Generic Function: (setf size-of) NEW-VALUE OBJECT
Package

asteroids

Methods
Method: size-of (ROCK rock)

automatically generated reader method

Source

asteroids.lisp (file)

Method: (setf size-of) NEW-VALUE (ROCK rock)

automatically generated writer method

Source

asteroids.lisp (file)

Generic Function: start-next-level WORLD
Package

asteroids

Methods
Method: start-next-level (WORLD world)
Source

asteroids.lisp (file)

Generic Function: stop-music SOUND
Package

asteroids

Methods
Method: stop-music (SOUND sound)
Source

asteroids.lisp (file)

Generic Function: super-p OBJECT
Generic Function: (setf super-p) NEW-VALUE OBJECT
Package

asteroids

Methods
Method: super-p (MISSILE missile)

automatically generated reader method

Source

asteroids.lisp (file)

Method: (setf super-p) NEW-VALUE (MISSILE missile)

automatically generated writer method

Source

asteroids.lisp (file)

Generic Function: target OBJECT
Generic Function: (setf target) NEW-VALUE OBJECT
Package

asteroids

Methods
Method: target (THUMPER thumper)

automatically generated reader method

Source

asteroids.lisp (file)

Method: (setf target) NEW-VALUE (THUMPER thumper)

automatically generated writer method

Source

asteroids.lisp (file)

Method: target (TIMER timer)

automatically generated reader method

Source

asteroids.lisp (file)

Method: (setf target) NEW-VALUE (TIMER timer)

automatically generated writer method

Source

asteroids.lisp (file)

Generic Function: thrust SHIP
Package

asteroids

Methods
Method: thrust (SHIP ship)

Set ship’s acceleration using *thrust-factor* and ship’s direction

Source

asteroids.lisp (file)

Generic Function: thrust-0 SHIP
Package

asteroids

Methods
Method: thrust-0 (SHIP ship)

Set ship’s acceleration to null

Source

asteroids.lisp (file)

Generic Function: thumper OBJECT
Generic Function: (setf thumper) NEW-VALUE OBJECT
Package

asteroids

Methods
Method: thumper (WORLD world)

automatically generated reader method

Source

asteroids.lisp (file)

Method: (setf thumper) NEW-VALUE (WORLD world)

automatically generated writer method

Source

asteroids.lisp (file)

Generic Function: timers OBJECT
Generic Function: (setf timers) NEW-VALUE OBJECT
Package

asteroids

Methods
Method: timers (WORLD world)

automatically generated reader method

Source

asteroids.lisp (file)

Method: (setf timers) NEW-VALUE (WORLD world)

automatically generated writer method

Source

asteroids.lisp (file)

Method: timers (SHIP ship)

automatically generated reader method

Source

asteroids.lisp (file)

Method: (setf timers) NEW-VALUE (SHIP ship)

automatically generated writer method

Source

asteroids.lisp (file)

Generic Function: update MOB TIME-DELTA WORLD
Package

asteroids

Methods
Method: update (SHIP ship) TIME-DELTA (WORLD world) around
Source

asteroids.lisp (file)

Method: update (POWERUP powerup) TIME-DELTA (WORLD world) after
Source

asteroids.lisp (file)

Method: update (EXPLOSION explosion) TIME-DELTA (WORLD world) after
Source

asteroids.lisp (file)

Method: update (ROCK rock) TIME-DELTA (WORLD world)
Source

asteroids.lisp (file)

Method: update (X-SHIP x-ship) TIME-DELTA (WORLD world) after
Source

asteroids.lisp (file)

Method: update (MISSILE missile) TIME-DELTA (WORLD world) after
Source

asteroids.lisp (file)

Method: update (MOB mob) TIME-DELTA (WORLD world)
Source

asteroids.lisp (file)

Generic Function: update-thumper THUMPER
Package

asteroids

Methods
Method: update-thumper (THUMPER thumper)
Source

asteroids.lisp (file)

Generic Function: velocity-of OBJECT
Generic Function: (setf velocity-of) NEW-VALUE OBJECT
Package

asteroids

Methods
Method: velocity-of (MOB mob)

automatically generated reader method

Source

asteroids.lisp (file)

Method: (setf velocity-of) NEW-VALUE (MOB mob)

automatically generated writer method

Source

asteroids.lisp (file)


Previous: , Up: Internal definitions   [Contents][Index]

5.2.6 Classes

Class: explosion ()
Package

asteroids

Source

asteroids.lisp (file)

Direct superclasses

mob (class)

Direct methods
Class: missile ()
Package

asteroids

Source

asteroids.lisp (file)

Direct superclasses

mob (class)

Direct methods
Direct slots
Slot: super
Initargs

:super

Readers

super-p (generic function)

Writers

(setf super-p) (generic function)

Slot: lifetime
Initform

(make-instance (quote asteroids::timer) :ms 1000)

Readers

lifetime (generic function)

Writers

(setf lifetime) (generic function)

Class: mob ()
Package

asteroids

Source

asteroids.lisp (file)

Direct superclasses

standard-object (class)

Direct subclasses
Direct methods
Direct slots
Slot: pos
Initargs

:pos

Initform

(quote (0.5 0.5))

Readers

pos-of (generic function)

Writers

(setf pos-of) (generic function)

Slot: radius
Initargs

:radius

Initform

0

Readers

radius-of (generic function)

Writers
Slot: velocity
Initargs

:velocity

Initform

(quote (0 0))

Readers

velocity-of (generic function)

Writers

(setf velocity-of) (generic function)

Class: mob-rot ()
Package

asteroids

Source

asteroids.lisp (file)

Direct superclasses

mob (class)

Direct subclasses
Direct methods
Direct slots
Slot: rotation
Initform

0

Readers

rotation-of (generic function)

Writers

(setf rotation-of) (generic function)

Slot: direction
Initargs

:direction

Initform

0

Readers

direction-of (generic function)

Writers

(setf direction-of) (generic function)

Class: powerup ()
Package

asteroids

Source

asteroids.lisp (file)

Direct superclasses

mob (class)

Direct subclasses
Direct methods
Direct slots
Slot: lifetime
Initform

(make-instance (quote asteroids::timer) :ms asteroids::*powerup-max-age*)

Readers

lifetime (generic function)

Writers

(setf lifetime) (generic function)

Class: powerup-freeze ()
Package

asteroids

Source

asteroids.lisp (file)

Direct superclasses

powerup (class)

Direct methods
Class: powerup-missile ()
Package

asteroids

Source

asteroids.lisp (file)

Direct superclasses

powerup (class)

Direct methods
Class: powerup-shield ()
Package

asteroids

Source

asteroids.lisp (file)

Direct superclasses

powerup (class)

Direct methods
Class: rock ()
Package

asteroids

Source

asteroids.lisp (file)

Direct superclasses

mob-rot (class)

Direct methods
Direct slots
Slot: size
Initargs

:size

Initform

1

Readers

size-of (generic function)

Writers

(setf size-of) (generic function)

Slot: radii
Readers

radii (generic function)

Writers

(setf radii) (generic function)

Class: ship ()
Package

asteroids

Source

asteroids.lisp (file)

Direct superclasses

mob-rot (class)

Direct methods
Direct slots
Slot: timers
Initform

(make-hash-table)

Readers

timers (generic function)

Writers

(setf timers) (generic function)

Slot: acceleration
Initform

(quote (0 0))

Readers

acceleration-of (generic function)

Writers

(setf acceleration-of) (generic function)

Class: sound ()
Package

asteroids

Source

asteroids.lisp (file)

Direct superclasses

standard-object (class)

Direct methods
Direct slots
Slot: opened
Readers

opened (generic function)

Writers

(setf opened) (generic function)

Slot: sample
Readers

sample (generic function)

Writers

(setf sample) (generic function)

Slot: music
Readers

music (generic function)

Writers

(setf music) (generic function)

Class: thumper ()
Package

asteroids

Source

asteroids.lisp (file)

Direct superclasses

standard-object (class)

Direct methods
Direct slots
Slot: target
Initform

1000

Readers

target (generic function)

Writers

(setf target) (generic function)

Slot: phasex
Initform

1

Readers

phasex (generic function)

Writers

(setf phasex) (generic function)

Slot: period
Initargs

:period

Initform

1500

Readers

period (generic function)

Writers

(setf period) (generic function)

Class: timer ()
Package

asteroids

Source

asteroids.lisp (file)

Direct superclasses

standard-object (class)

Direct methods
Direct slots
Slot: target
Initargs

:ms

Initform

0

Readers

target (generic function)

Writers

(setf target) (generic function)

Class: world ()
Package

asteroids

Source

asteroids.lisp (file)

Direct superclasses

standard-object (class)

Direct methods
Direct slots
Slot: mobs
Readers

mobs (generic function)

Writers

(setf mobs) (generic function)

Slot: ship
Readers

ship (generic function)

Writers

(setf ship) (generic function)

Slot: timers
Initform

(make-hash-table)

Readers

timers (generic function)

Writers

(setf timers) (generic function)

Slot: level
Initform

0

Readers

level (generic function)

Writers

(setf level) (generic function)

Slot: num-of-rocks
Initform

0

Readers

num-of-rocks (generic function)

Writers

(setf num-of-rocks) (generic function)

Slot: score
Initform

0

Readers

score (generic function)

Writers

(setf score) (generic function)

Slot: best-level
Initform

0

Readers

best-level (generic function)

Writers

(setf best-level) (generic function)

Slot: high-score
Initform

0

Readers

high-score (generic function)

Writers

(setf high-score) (generic function)

Slot: lives
Initform

1

Readers

lives (generic function)

Writers

(setf lives) (generic function)

Slot: paused
Readers

paused (generic function)

Writers

(setf paused) (generic function)

Slot: thumper
Initform

(make-instance (quote asteroids::thumper) :period 1000)

Readers

thumper (generic function)

Writers

(setf thumper) (generic function)

Class: x-ship ()
Package

asteroids

Source

asteroids.lisp (file)

Direct superclasses

mob-rot (class)

Direct methods
Direct slots
Slot: lifetime
Initform

(make-instance (quote asteroids::timer) :ms 1000)

Readers

lifetime (generic function)

Writers

(setf lifetime) (generic function)

Slot: fade
Initform

255

Readers

fade (generic function)

Writers

(setf fade) (generic function)


Previous: , Up: Top   [Contents][Index]

Appendix A Indexes


Next: , Previous: , Up: Indexes   [Contents][Index]

A.1 Concepts

Jump to:   A   F   L   O  
Index Entry  Section

A
asteroids.asd: The asteroids<dot>asd file
asteroids/asteroids.lisp: The asteroids/asteroids<dot>lisp file
asteroids/package.lisp: The asteroids/package<dot>lisp file
asteroids/sounds/banjo.mp3: The asteroids/sounds/banjo<dot>mp3 file
asteroids/sounds/biding.mp3: The asteroids/sounds/biding<dot>mp3 file
asteroids/sounds/explode1.wav: The asteroids/sounds/explode1<dot>wav file
asteroids/sounds/explode2.wav: The asteroids/sounds/explode2<dot>wav file
asteroids/sounds/explode3.wav: The asteroids/sounds/explode3<dot>wav file
asteroids/sounds/fire.wav: The asteroids/sounds/fire<dot>wav file
asteroids/sounds/haters.mp3: The asteroids/sounds/haters<dot>mp3 file
asteroids/sounds/life.wav: The asteroids/sounds/life<dot>wav file
asteroids/sounds/lsaucer.wav: The asteroids/sounds/lsaucer<dot>wav file
asteroids/sounds/music.mp3: The asteroids/sounds/music<dot>mp3 file
asteroids/sounds/phaser.wav: The asteroids/sounds/phaser<dot>wav file
asteroids/sounds/sfire.wav: The asteroids/sounds/sfire<dot>wav file
asteroids/sounds/ssaucer.wav: The asteroids/sounds/ssaucer<dot>wav file
asteroids/sounds/thrust.wav: The asteroids/sounds/thrust<dot>wav file
asteroids/sounds/thumphi.wav: The asteroids/sounds/thumphi<dot>wav file
asteroids/sounds/thumplo.wav: The asteroids/sounds/thumplo<dot>wav file

F
File, Lisp, asteroids.asd: The asteroids<dot>asd file
File, Lisp, asteroids/asteroids.lisp: The asteroids/asteroids<dot>lisp file
File, Lisp, asteroids/package.lisp: The asteroids/package<dot>lisp file
File, other, asteroids/sounds/banjo.mp3: The asteroids/sounds/banjo<dot>mp3 file
File, other, asteroids/sounds/biding.mp3: The asteroids/sounds/biding<dot>mp3 file
File, other, asteroids/sounds/explode1.wav: The asteroids/sounds/explode1<dot>wav file
File, other, asteroids/sounds/explode2.wav: The asteroids/sounds/explode2<dot>wav file
File, other, asteroids/sounds/explode3.wav: The asteroids/sounds/explode3<dot>wav file
File, other, asteroids/sounds/fire.wav: The asteroids/sounds/fire<dot>wav file
File, other, asteroids/sounds/haters.mp3: The asteroids/sounds/haters<dot>mp3 file
File, other, asteroids/sounds/life.wav: The asteroids/sounds/life<dot>wav file
File, other, asteroids/sounds/lsaucer.wav: The asteroids/sounds/lsaucer<dot>wav file
File, other, asteroids/sounds/music.mp3: The asteroids/sounds/music<dot>mp3 file
File, other, asteroids/sounds/phaser.wav: The asteroids/sounds/phaser<dot>wav file
File, other, asteroids/sounds/sfire.wav: The asteroids/sounds/sfire<dot>wav file
File, other, asteroids/sounds/ssaucer.wav: The asteroids/sounds/ssaucer<dot>wav file
File, other, asteroids/sounds/thrust.wav: The asteroids/sounds/thrust<dot>wav file
File, other, asteroids/sounds/thumphi.wav: The asteroids/sounds/thumphi<dot>wav file
File, other, asteroids/sounds/thumplo.wav: The asteroids/sounds/thumplo<dot>wav file

L
Lisp File, asteroids.asd: The asteroids<dot>asd file
Lisp File, asteroids/asteroids.lisp: The asteroids/asteroids<dot>lisp file
Lisp File, asteroids/package.lisp: The asteroids/package<dot>lisp file

O
Other File, asteroids/sounds/banjo.mp3: The asteroids/sounds/banjo<dot>mp3 file
Other File, asteroids/sounds/biding.mp3: The asteroids/sounds/biding<dot>mp3 file
Other File, asteroids/sounds/explode1.wav: The asteroids/sounds/explode1<dot>wav file
Other File, asteroids/sounds/explode2.wav: The asteroids/sounds/explode2<dot>wav file
Other File, asteroids/sounds/explode3.wav: The asteroids/sounds/explode3<dot>wav file
Other File, asteroids/sounds/fire.wav: The asteroids/sounds/fire<dot>wav file
Other File, asteroids/sounds/haters.mp3: The asteroids/sounds/haters<dot>mp3 file
Other File, asteroids/sounds/life.wav: The asteroids/sounds/life<dot>wav file
Other File, asteroids/sounds/lsaucer.wav: The asteroids/sounds/lsaucer<dot>wav file
Other File, asteroids/sounds/music.mp3: The asteroids/sounds/music<dot>mp3 file
Other File, asteroids/sounds/phaser.wav: The asteroids/sounds/phaser<dot>wav file
Other File, asteroids/sounds/sfire.wav: The asteroids/sounds/sfire<dot>wav file
Other File, asteroids/sounds/ssaucer.wav: The asteroids/sounds/ssaucer<dot>wav file
Other File, asteroids/sounds/thrust.wav: The asteroids/sounds/thrust<dot>wav file
Other File, asteroids/sounds/thumphi.wav: The asteroids/sounds/thumphi<dot>wav file
Other File, asteroids/sounds/thumplo.wav: The asteroids/sounds/thumplo<dot>wav file

Jump to:   A   F   L   O  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.2 Functions

Jump to:   (  
A   B   C   D   F   G   H   I   K   L   M   N   O   P   R   S   T   U   V   X  
Index Entry  Section

(
(setf acceleration-of): Internal generic functions
(setf acceleration-of): Internal generic functions
(setf best-level): Internal generic functions
(setf best-level): Internal generic functions
(setf direction-of): Internal generic functions
(setf direction-of): Internal generic functions
(setf fade): Internal generic functions
(setf fade): Internal generic functions
(setf high-score): Internal generic functions
(setf high-score): Internal generic functions
(setf level): Internal generic functions
(setf level): Internal generic functions
(setf lifetime): Internal generic functions
(setf lifetime): Internal generic functions
(setf lifetime): Internal generic functions
(setf lifetime): Internal generic functions
(setf lives): Internal generic functions
(setf lives): Internal generic functions
(setf mobs): Internal generic functions
(setf mobs): Internal generic functions
(setf music): Internal generic functions
(setf music): Internal generic functions
(setf num-of-rocks): Internal generic functions
(setf num-of-rocks): Internal generic functions
(setf opened): Internal generic functions
(setf opened): Internal generic functions
(setf paused): Internal generic functions
(setf paused): Internal generic functions
(setf period): Internal generic functions
(setf period): Internal generic functions
(setf phasex): Internal generic functions
(setf phasex): Internal generic functions
(setf pos-of): Internal generic functions
(setf pos-of): Internal generic functions
(setf radii): Internal generic functions
(setf radii): Internal generic functions
(setf radius-of): Internal generic functions
(setf radius-of): Internal generic functions
(setf rotation-of): Internal generic functions
(setf rotation-of): Internal generic functions
(setf sample): Internal generic functions
(setf sample): Internal generic functions
(setf score): Internal generic functions
(setf score): Internal generic functions
(setf ship): Internal generic functions
(setf ship): Internal generic functions
(setf size-of): Internal generic functions
(setf size-of): Internal generic functions
(setf super-p): Internal generic functions
(setf super-p): Internal generic functions
(setf target): Internal generic functions
(setf target): Internal generic functions
(setf target): Internal generic functions
(setf thumper): Internal generic functions
(setf thumper): Internal generic functions
(setf timers): Internal generic functions
(setf timers): Internal generic functions
(setf timers): Internal generic functions
(setf velocity-of): Internal generic functions
(setf velocity-of): Internal generic functions

A
acceleration-of: Internal generic functions
acceleration-of: Internal generic functions
add-freeze: Internal generic functions
add-freeze: Internal generic functions
add-score: Internal generic functions
add-score: Internal generic functions
add-score: Internal generic functions
add-score: Internal generic functions
add-shield: Internal generic functions
add-shield: Internal generic functions
add-super-missiles: Internal generic functions
add-super-missiles: Internal generic functions
add-to: Internal generic functions
add-to: Internal generic functions
add-to: Internal generic functions
add-to: Internal generic functions
add-to: Internal generic functions
apres: Internal functions
asteroids: Internal functions

B
best-level: Internal generic functions
best-level: Internal generic functions
break-down: Internal generic functions
break-down: Internal generic functions

C
collide: Internal generic functions
collide: Internal generic functions
collide: Internal generic functions
collide: Internal generic functions
collide: Internal generic functions
collide: Internal generic functions
collide: Internal generic functions
collide: Internal generic functions

D
direction-of: Internal generic functions
direction-of: Internal generic functions
done: Internal generic functions
done: Internal generic functions

F
fade: Internal generic functions
fade: Internal generic functions
frozen-p: Internal generic functions
frozen-p: Internal generic functions
Function, apres: Internal functions
Function, asteroids: Internal functions
Function, key-processor: Internal functions
Function, key-processor-attract: Internal functions
Function, key-processor-game: Internal functions
Function, main: Exported functions
Function, make-random-powerup: Internal functions
Function, music-finished-action: Internal functions
Function, my-distance: Internal functions
Function, polygon1: Internal functions
Function, radial-point-from: Internal functions
Function, radial-points-from: Internal functions
Function, repl: Internal functions
Function, sample-finished-action: Internal functions
Function, ship-fire: Internal functions
Function, update-world: Internal functions
Function, xy-off-create: Internal functions
Function, xy-off-scale: Internal functions
Function, xy-off-subtract: Internal functions
Function, xy-off-sum: Internal functions

G
Generic Function, (setf acceleration-of): Internal generic functions
Generic Function, (setf best-level): Internal generic functions
Generic Function, (setf direction-of): Internal generic functions
Generic Function, (setf fade): Internal generic functions
Generic Function, (setf high-score): Internal generic functions
Generic Function, (setf level): Internal generic functions
Generic Function, (setf lifetime): Internal generic functions
Generic Function, (setf lives): Internal generic functions
Generic Function, (setf mobs): Internal generic functions
Generic Function, (setf music): Internal generic functions
Generic Function, (setf num-of-rocks): Internal generic functions
Generic Function, (setf opened): Internal generic functions
Generic Function, (setf paused): Internal generic functions
Generic Function, (setf period): Internal generic functions
Generic Function, (setf phasex): Internal generic functions
Generic Function, (setf pos-of): Internal generic functions
Generic Function, (setf radii): Internal generic functions
Generic Function, (setf radius-of): Internal generic functions
Generic Function, (setf rotation-of): Internal generic functions
Generic Function, (setf sample): Internal generic functions
Generic Function, (setf score): Internal generic functions
Generic Function, (setf ship): Internal generic functions
Generic Function, (setf size-of): Internal generic functions
Generic Function, (setf super-p): Internal generic functions
Generic Function, (setf target): Internal generic functions
Generic Function, (setf thumper): Internal generic functions
Generic Function, (setf timers): Internal generic functions
Generic Function, (setf velocity-of): Internal generic functions
Generic Function, acceleration-of: Internal generic functions
Generic Function, add-freeze: Internal generic functions
Generic Function, add-score: Internal generic functions
Generic Function, add-shield: Internal generic functions
Generic Function, add-super-missiles: Internal generic functions
Generic Function, add-to: Internal generic functions
Generic Function, best-level: Internal generic functions
Generic Function, break-down: Internal generic functions
Generic Function, collide: Internal generic functions
Generic Function, direction-of: Internal generic functions
Generic Function, done: Internal generic functions
Generic Function, fade: Internal generic functions
Generic Function, frozen-p: Internal generic functions
Generic Function, high-score: Internal generic functions
Generic Function, in-world-p: Internal generic functions
Generic Function, initialize: Internal generic functions
Generic Function, intersects-p: Internal generic functions
Generic Function, level: Internal generic functions
Generic Function, level-cleared-p: Internal generic functions
Generic Function, lifetime: Internal generic functions
Generic Function, lives: Internal generic functions
Generic Function, map-coords: Internal generic functions
Generic Function, map-radius: Internal generic functions
Generic Function, mobs: Internal generic functions
Generic Function, music: Internal generic functions
Generic Function, num-of-rocks: Internal generic functions
Generic Function, opened: Internal generic functions
Generic Function, paused: Internal generic functions
Generic Function, period: Internal generic functions
Generic Function, phasex: Internal generic functions
Generic Function, play-explode1: Internal generic functions
Generic Function, play-explode2: Internal generic functions
Generic Function, play-explode3: Internal generic functions
Generic Function, play-fire: Internal generic functions
Generic Function, play-music: Internal generic functions
Generic Function, play-phaser: Internal generic functions
Generic Function, play-thrust: Internal generic functions
Generic Function, play-thrust-stop: Internal generic functions
Generic Function, play-thump-stop: Internal generic functions
Generic Function, play-thumphi: Internal generic functions
Generic Function, play-thumplo: Internal generic functions
Generic Function, play-ufo1: Internal generic functions
Generic Function, play-ufo1-stop: Internal generic functions
Generic Function, play-ufo2: Internal generic functions
Generic Function, play-ufo2-stop: Internal generic functions
Generic Function, pos-of: Internal generic functions
Generic Function, powerup-active-p: Internal generic functions
Generic Function, radii: Internal generic functions
Generic Function, radius-of: Internal generic functions
Generic Function, remove-from: Internal generic functions
Generic Function, render: Internal generic functions
Generic Function, render-attract: Internal generic functions
Generic Function, render-world: Internal generic functions
Generic Function, render-world-game: Internal generic functions
Generic Function, reset: Internal generic functions
Generic Function, rotation-of: Internal generic functions
Generic Function, sample: Internal generic functions
Generic Function, score: Internal generic functions
Generic Function, set-radius: Internal generic functions
Generic Function, set-seconds: Internal generic functions
Generic Function, ship: Internal generic functions
Generic Function, ship-moved: Internal generic functions
Generic Function, shoot: Internal generic functions
Generic Function, shut-down: Internal generic functions
Generic Function, size-of: Internal generic functions
Generic Function, start-next-level: Internal generic functions
Generic Function, stop-music: Internal generic functions
Generic Function, super-p: Internal generic functions
Generic Function, target: Internal generic functions
Generic Function, thrust: Internal generic functions
Generic Function, thrust-0: Internal generic functions
Generic Function, thumper: Internal generic functions
Generic Function, timers: Internal generic functions
Generic Function, update: Internal generic functions
Generic Function, update-thumper: Internal generic functions
Generic Function, velocity-of: Internal generic functions

H
handling-errors: Internal macros
high-score: Internal generic functions
high-score: Internal generic functions

I
in-world-p: Internal generic functions
in-world-p: Internal generic functions
initialize: Internal generic functions
initialize: Internal generic functions
intersects-p: Internal generic functions
intersects-p: Internal generic functions

K
key-processor: Internal functions
key-processor-attract: Internal functions
key-processor-game: Internal functions

L
level: Internal generic functions
level: Internal generic functions
level-cleared-p: Internal generic functions
level-cleared-p: Internal generic functions
lifetime: Internal generic functions
lifetime: Internal generic functions
lifetime: Internal generic functions
lifetime: Internal generic functions
lives: Internal generic functions
lives: Internal generic functions

M
Macro, handling-errors: Internal macros
main: Exported functions
make-random-powerup: Internal functions
map-coords: Internal generic functions
map-coords: Internal generic functions
map-radius: Internal generic functions
map-radius: Internal generic functions
Method, (setf acceleration-of): Internal generic functions
Method, (setf best-level): Internal generic functions
Method, (setf direction-of): Internal generic functions
Method, (setf fade): Internal generic functions
Method, (setf high-score): Internal generic functions
Method, (setf level): Internal generic functions
Method, (setf lifetime): Internal generic functions
Method, (setf lifetime): Internal generic functions
Method, (setf lifetime): Internal generic functions
Method, (setf lives): Internal generic functions
Method, (setf mobs): Internal generic functions
Method, (setf music): Internal generic functions
Method, (setf num-of-rocks): Internal generic functions
Method, (setf opened): Internal generic functions
Method, (setf paused): Internal generic functions
Method, (setf period): Internal generic functions
Method, (setf phasex): Internal generic functions
Method, (setf pos-of): Internal generic functions
Method, (setf radii): Internal generic functions
Method, (setf radius-of): Internal generic functions
Method, (setf rotation-of): Internal generic functions
Method, (setf sample): Internal generic functions
Method, (setf score): Internal generic functions
Method, (setf ship): Internal generic functions
Method, (setf size-of): Internal generic functions
Method, (setf super-p): Internal generic functions
Method, (setf target): Internal generic functions
Method, (setf target): Internal generic functions
Method, (setf thumper): Internal generic functions
Method, (setf timers): Internal generic functions
Method, (setf timers): Internal generic functions
Method, (setf velocity-of): Internal generic functions
Method, acceleration-of: Internal generic functions
Method, add-freeze: Internal generic functions
Method, add-score: Internal generic functions
Method, add-score: Internal generic functions
Method, add-score: Internal generic functions
Method, add-shield: Internal generic functions
Method, add-super-missiles: Internal generic functions
Method, add-to: Internal generic functions
Method, add-to: Internal generic functions
Method, add-to: Internal generic functions
Method, add-to: Internal generic functions
Method, best-level: Internal generic functions
Method, break-down: Internal generic functions
Method, collide: Internal generic functions
Method, collide: Internal generic functions
Method, collide: Internal generic functions
Method, collide: Internal generic functions
Method, collide: Internal generic functions
Method, collide: Internal generic functions
Method, collide: Internal generic functions
Method, direction-of: Internal generic functions
Method, done: Internal generic functions
Method, fade: Internal generic functions
Method, frozen-p: Internal generic functions
Method, high-score: Internal generic functions
Method, in-world-p: Internal generic functions
Method, initialize: Internal generic functions
Method, intersects-p: Internal generic functions
Method, level: Internal generic functions
Method, level-cleared-p: Internal generic functions
Method, lifetime: Internal generic functions
Method, lifetime: Internal generic functions
Method, lifetime: Internal generic functions
Method, lives: Internal generic functions
Method, map-coords: Internal generic functions
Method, map-radius: Internal generic functions
Method, mobs: Internal generic functions
Method, music: Internal generic functions
Method, num-of-rocks: Internal generic functions
Method, opened: Internal generic functions
Method, paused: Internal generic functions
Method, period: Internal generic functions
Method, phasex: Internal generic functions
Method, play-explode1: Internal generic functions
Method, play-explode2: Internal generic functions
Method, play-explode3: Internal generic functions
Method, play-fire: Internal generic functions
Method, play-music: Internal generic functions
Method, play-phaser: Internal generic functions
Method, play-thrust: Internal generic functions
Method, play-thrust-stop: Internal generic functions
Method, play-thump-stop: Internal generic functions
Method, play-thumphi: Internal generic functions
Method, play-thumplo: Internal generic functions
Method, play-ufo1: Internal generic functions
Method, play-ufo1-stop: Internal generic functions
Method, play-ufo2: Internal generic functions
Method, play-ufo2-stop: Internal generic functions
Method, pos-of: Internal generic functions
Method, powerup-active-p: Internal generic functions
Method, radii: Internal generic functions
Method, radius-of: Internal generic functions
Method, remove-from: Internal generic functions
Method, remove-from: Internal generic functions
Method, remove-from: Internal generic functions
Method, remove-from: Internal generic functions
Method, render: Internal generic functions
Method, render: Internal generic functions
Method, render: Internal generic functions
Method, render: Internal generic functions
Method, render: Internal generic functions
Method, render: Internal generic functions
Method, render: Internal generic functions
Method, render: Internal generic functions
Method, render: Internal generic functions
Method, render-attract: Internal generic functions
Method, render-world: Internal generic functions
Method, render-world-game: Internal generic functions
Method, reset: Internal generic functions
Method, reset: Internal generic functions
Method, rotation-of: Internal generic functions
Method, sample: Internal generic functions
Method, score: Internal generic functions
Method, set-radius: Internal generic functions
Method, set-seconds: Internal generic functions
Method, ship: Internal generic functions
Method, ship-moved: Internal generic functions
Method, shoot: Internal generic functions
Method, shut-down: Internal generic functions
Method, size-of: Internal generic functions
Method, start-next-level: Internal generic functions
Method, stop-music: Internal generic functions
Method, super-p: Internal generic functions
Method, target: Internal generic functions
Method, target: Internal generic functions
Method, thrust: Internal generic functions
Method, thrust-0: Internal generic functions
Method, thumper: Internal generic functions
Method, timers: Internal generic functions
Method, timers: Internal generic functions
Method, update: Internal generic functions
Method, update: Internal generic functions
Method, update: Internal generic functions
Method, update: Internal generic functions
Method, update: Internal generic functions
Method, update: Internal generic functions
Method, update: Internal generic functions
Method, update-thumper: Internal generic functions
Method, velocity-of: Internal generic functions
mobs: Internal generic functions
mobs: Internal generic functions
music: Internal generic functions
music: Internal generic functions
music-finished-action: Internal functions
my-distance: Internal functions

N
num-of-rocks: Internal generic functions
num-of-rocks: Internal generic functions

O
opened: Internal generic functions
opened: Internal generic functions

P
paused: Internal generic functions
paused: Internal generic functions
period: Internal generic functions
period: Internal generic functions
phasex: Internal generic functions
phasex: Internal generic functions
play-explode1: Internal generic functions
play-explode1: Internal generic functions
play-explode2: Internal generic functions
play-explode2: Internal generic functions
play-explode3: Internal generic functions
play-explode3: Internal generic functions
play-fire: Internal generic functions
play-fire: Internal generic functions
play-music: Internal generic functions
play-music: Internal generic functions
play-phaser: Internal generic functions
play-phaser: Internal generic functions
play-thrust: Internal generic functions
play-thrust: Internal generic functions
play-thrust-stop: Internal generic functions
play-thrust-stop: Internal generic functions
play-thump-stop: Internal generic functions
play-thump-stop: Internal generic functions
play-thumphi: Internal generic functions
play-thumphi: Internal generic functions
play-thumplo: Internal generic functions
play-thumplo: Internal generic functions
play-ufo1: Internal generic functions
play-ufo1: Internal generic functions
play-ufo1-stop: Internal generic functions
play-ufo1-stop: Internal generic functions
play-ufo2: Internal generic functions
play-ufo2: Internal generic functions
play-ufo2-stop: Internal generic functions
play-ufo2-stop: Internal generic functions
polygon1: Internal functions
pos-of: Internal generic functions
pos-of: Internal generic functions
powerup-active-p: Internal generic functions
powerup-active-p: Internal generic functions

R
radial-point-from: Internal functions
radial-points-from: Internal functions
radii: Internal generic functions
radii: Internal generic functions
radius-of: Internal generic functions
radius-of: Internal generic functions
remove-from: Internal generic functions
remove-from: Internal generic functions
remove-from: Internal generic functions
remove-from: Internal generic functions
remove-from: Internal generic functions
render: Internal generic functions
render: Internal generic functions
render: Internal generic functions
render: Internal generic functions
render: Internal generic functions
render: Internal generic functions
render: Internal generic functions
render: Internal generic functions
render: Internal generic functions
render: Internal generic functions
render-attract: Internal generic functions
render-attract: Internal generic functions
render-world: Internal generic functions
render-world: Internal generic functions
render-world-game: Internal generic functions
render-world-game: Internal generic functions
repl: Internal functions
reset: Internal generic functions
reset: Internal generic functions
reset: Internal generic functions
rotation-of: Internal generic functions
rotation-of: Internal generic functions

S
sample: Internal generic functions
sample: Internal generic functions
sample-finished-action: Internal functions
score: Internal generic functions
score: Internal generic functions
set-radius: Internal generic functions
set-radius: Internal generic functions
set-seconds: Internal generic functions
set-seconds: Internal generic functions
ship: Internal generic functions
ship: Internal generic functions
ship-fire: Internal functions
ship-moved: Internal generic functions
ship-moved: Internal generic functions
shoot: Internal generic functions
shoot: Internal generic functions
shut-down: Internal generic functions
shut-down: Internal generic functions
size-of: Internal generic functions
size-of: Internal generic functions
start-next-level: Internal generic functions
start-next-level: Internal generic functions
stop-music: Internal generic functions
stop-music: Internal generic functions
super-p: Internal generic functions
super-p: Internal generic functions

T
target: Internal generic functions
target: Internal generic functions
target: Internal generic functions
thrust: Internal generic functions
thrust: Internal generic functions
thrust-0: Internal generic functions
thrust-0: Internal generic functions
thumper: Internal generic functions
thumper: Internal generic functions
timers: Internal generic functions
timers: Internal generic functions
timers: Internal generic functions

U
update: Internal generic functions
update: Internal generic functions
update: Internal generic functions
update: Internal generic functions
update: Internal generic functions
update: Internal generic functions
update: Internal generic functions
update: Internal generic functions
update-thumper: Internal generic functions
update-thumper: Internal generic functions
update-world: Internal functions

V
velocity-of: Internal generic functions
velocity-of: Internal generic functions

X
xy-off-create: Internal functions
xy-off-scale: Internal functions
xy-off-subtract: Internal functions
xy-off-sum: Internal functions

Jump to:   (  
A   B   C   D   F   G   H   I   K   L   M   N   O   P   R   S   T   U   V   X  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.3 Variables

Jump to:   *   +  
A   B   C   D   F   H   L   M   N   O   P   R   S   T   V  
Index Entry  Section

*
*explosion-color*: Internal special variables
*explosion-max-radius*: Internal special variables
*friction*: Internal special variables
*is-thrusting*: Internal special variables
*lr-map*: Internal special variables
*missile-velocity*: Internal special variables
*powerup-max-age*: Internal special variables
*rock-sides*: Internal special variables
*screen-height*: Internal special variables
*screen-width*: Internal special variables
*sound*: Internal special variables
*thrust-factor*: Internal special variables
*window*: Internal special variables
*world*: Internal special variables

+
+degrees+: Internal constants

A
acceleration: Internal classes

B
best-level: Internal classes

C
Constant, +degrees+: Internal constants

D
direction: Internal classes

F
fade: Internal classes

H
high-score: Internal classes

L
level: Internal classes
lifetime: Internal classes
lifetime: Internal classes
lifetime: Internal classes
lives: Internal classes

M
mobs: Internal classes
music: Internal classes

N
num-of-rocks: Internal classes

O
opened: Internal classes

P
paused: Internal classes
period: Internal classes
phasex: Internal classes
pos: Internal classes

R
radii: Internal classes
radius: Internal classes
rotation: Internal classes

S
sample: Internal classes
score: Internal classes
ship: Internal classes
size: Internal classes
Slot, acceleration: Internal classes
Slot, best-level: Internal classes
Slot, direction: Internal classes
Slot, fade: Internal classes
Slot, high-score: Internal classes
Slot, level: Internal classes
Slot, lifetime: Internal classes
Slot, lifetime: Internal classes
Slot, lifetime: Internal classes
Slot, lives: Internal classes
Slot, mobs: Internal classes
Slot, music: Internal classes
Slot, num-of-rocks: Internal classes
Slot, opened: Internal classes
Slot, paused: Internal classes
Slot, period: Internal classes
Slot, phasex: Internal classes
Slot, pos: Internal classes
Slot, radii: Internal classes
Slot, radius: Internal classes
Slot, rotation: Internal classes
Slot, sample: Internal classes
Slot, score: Internal classes
Slot, ship: Internal classes
Slot, size: Internal classes
Slot, super: Internal classes
Slot, target: Internal classes
Slot, target: Internal classes
Slot, thumper: Internal classes
Slot, timers: Internal classes
Slot, timers: Internal classes
Slot, velocity: Internal classes
Special Variable, *explosion-color*: Internal special variables
Special Variable, *explosion-max-radius*: Internal special variables
Special Variable, *friction*: Internal special variables
Special Variable, *is-thrusting*: Internal special variables
Special Variable, *lr-map*: Internal special variables
Special Variable, *missile-velocity*: Internal special variables
Special Variable, *powerup-max-age*: Internal special variables
Special Variable, *rock-sides*: Internal special variables
Special Variable, *screen-height*: Internal special variables
Special Variable, *screen-width*: Internal special variables
Special Variable, *sound*: Internal special variables
Special Variable, *thrust-factor*: Internal special variables
Special Variable, *window*: Internal special variables
Special Variable, *world*: Internal special variables
super: Internal classes

T
target: Internal classes
target: Internal classes
thumper: Internal classes
timers: Internal classes
timers: Internal classes

V
velocity: Internal classes

Jump to:   *   +  
A   B   C   D   F   H   L   M   N   O   P   R   S   T   V  

Previous: , Up: Indexes   [Contents][Index]

A.4 Data types

Jump to:   A   C   E   M   P   R   S   T   W   X  
Index Entry  Section

A
asteroids: The asteroids system
asteroids: The asteroids package

C
Class, explosion: Internal classes
Class, missile: Internal classes
Class, mob: Internal classes
Class, mob-rot: Internal classes
Class, powerup: Internal classes
Class, powerup-freeze: Internal classes
Class, powerup-missile: Internal classes
Class, powerup-shield: Internal classes
Class, rock: Internal classes
Class, ship: Internal classes
Class, sound: Internal classes
Class, thumper: Internal classes
Class, timer: Internal classes
Class, world: Internal classes
Class, x-ship: Internal classes

E
explosion: Internal classes

M
missile: Internal classes
mob: Internal classes
mob-rot: Internal classes

P
Package, asteroids: The asteroids package
powerup: Internal classes
powerup-freeze: Internal classes
powerup-missile: Internal classes
powerup-shield: Internal classes

R
rock: Internal classes

S
ship: Internal classes
sound: Internal classes
System, asteroids: The asteroids system

T
thumper: Internal classes
timer: Internal classes

W
world: Internal classes

X
x-ship: Internal classes

Jump to:   A   C   E   M   P   R   S   T   W   X