Merge pull request #1 from mfelleisen/patch-1

MF's comments on protocol description.
This commit is contained in:
Sam Caldwell 2015-10-21 16:14:39 -04:00
commit 3b40a8287e
1 changed files with 9 additions and 4 deletions

View File

@ -10,11 +10,12 @@ Layers:
- External Events - External Events
key press/release (interrupts from the outside world) key press/release (interrupts from the outside world)
explain timer
- Ground - Ground
corresponds to computer itself corresponds to computer itself
device drivers device drivers
applications applications (?)
- Game - Game
running application running application
@ -26,9 +27,13 @@ Layers:
model of the game world model of the game world
actors represent entities in the world, mostly actors represent entities in the world, mostly
misc actors do physicsish things misc actors do physicsish things
there is physics actor, which could become an "active" network
## Common Data Definitions ## Common Data Definitions
(struct vec (x y))
(struct point (x y)) ; C
A Vec is a (vec Number Number) A Vec is a (vec Number Number)
A Point is a (point Number Number) A Point is a (point Number Number)
@ -203,8 +208,8 @@ the named gamepiece
An Aspect is either An Aspect is either
- 'player -- the named piece is a player avatar - 'player -- the named piece is a player avatar
- 'enemy - the named piece is an enemy - 'enemy - the named piece is an enemy
- 'solid - the named piece can be stood on / jumped from - 'furniture - the named piece can be stood on / jumped from
- 'goal - the named piece, if touched, causes the level to - 'gold-star - the named piece, if touched, causes the level to
End The Game In Victory End The Game In Victory
An InitialPosition is an (initial-position ID Point), an assertion specifying An InitialPosition is an (initial-position ID Point), an assertion specifying
@ -281,4 +286,4 @@ Player -> Physics: (jump)
(struct velocity (id vect) #:prefab) (struct velocity (id vect) #:prefab)
(struct damage (id pts) #:prefab) (struct damage (id pts) #:prefab)
(struct attr (id (struct attr (id