summaryrefslogtreecommitdiffstats
path: root/chapter5/loco.rkt
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2018-06-13 01:06:23 +0000
committerrsiddharth <s@ricketyspace.net>2018-06-13 01:06:23 +0000
commit4978f48ca3455e59c1e7a867b3c62e2fd2c76dd2 (patch)
tree9cf1578db0a8859332b8e9c9d52e32b20879509f /chapter5/loco.rkt
parent0896611c9210d15db5fa0c9329d3cb75e2c4b663 (diff)
net: snake.rkt: Add obstacles.
* net/ricketyspace/ror/six/resources/obstacle.gif: New file. * net/ricketyspace/ror/six/snake.rkt (pit): Update struct. (obstactle): New struct. (OBSTACLE-EXPIRATION-TIME, OBSTACLE-IMG): New constants. (start-snake, next-pit, render-pit, dead?, world-change-dir): Update functions. (age-obstacle, renew-obstacles, rot-obstacles, obstacle-expired?) (decay-obstacle, fresh-obstacle, obstacle-list+scene) (obstacle-colliding?): New functions.
Diffstat (limited to 'chapter5/loco.rkt')
0 files changed, 0 insertions, 0 deletions