From 1bd0e4073438488aa18d2f324a78c7c3e5079cca Mon Sep 17 00:00:00 2001 From: Matthias Felleisen Date: Wed, 21 Oct 2015 16:07:26 -0400 Subject: [PATCH] Update game.rkt --- examples/platformer/game.rkt | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/examples/platformer/game.rkt b/examples/platformer/game.rkt index dd5fd3a..b9e77ce 100644 --- a/examples/platformer/game.rkt +++ b/examples/platformer/game.rkt @@ -10,11 +10,12 @@ Layers: - External Events key press/release (interrupts from the outside world) + explain timer - Ground corresponds to computer itself device drivers - applications + applications (?) - Game running application @@ -26,9 +27,13 @@ Layers: model of the game world actors represent entities in the world, mostly misc actors do physicsish things + there is physics actor, which could become an "active" network ## Common Data Definitions +(struct vec (x y)) +(struct point (x y)) ; C + A Vec is a (vec Number Number) A Point is a (point Number Number) @@ -203,8 +208,8 @@ the named gamepiece An Aspect is either - 'player -- the named piece is a player avatar - 'enemy - the named piece is an enemy - - 'solid - the named piece can be stood on / jumped from - - 'goal - the named piece, if touched, causes the level to + - 'furniture - the named piece can be stood on / jumped from + - 'gold-star - the named piece, if touched, causes the level to End The Game In Victory An InitialPosition is an (initial-position ID Point), an assertion specifying @@ -281,4 +286,4 @@ Player -> Physics: (jump) (struct velocity (id vect) #:prefab) (struct damage (id pts) #:prefab) -(struct attr (id \ No newline at end of file +(struct attr (id