Re:Asteroids in under 600 lines of Common Lisp (uses SBCL an...
by fusiongyro on Friday August 24, 2012 @05:36PM
(#4429814)
The Lisp code used multiple dispatch to handle collisions between objects, whereas your Clojure code instead uses list comprehensions to generate pairs of colliding objects by type. I know Clojure also supports multiple dispatch, so I'm wondering if you could comment on this design decision.
Re:Asteroids in under 600 lines of Common Lisp (uses SBCL an...
by prospero on Friday August 24, 2012 @06:16PM
(#4429976)
The only collisions I care about in my implementation are asteroid/ship and bullet/asteroid, and they're easier to express directly. The OP's version appears to have many more types of collisions, which makes multiple dispatch a more obvious choice.
Re:Asteroids in under 600 lines of Common Lisp (uses SBCL an...
by nemoniac on Saturday August 25, 2012 @07:41AM
(#4431809)
Could you update the penumbra README? I'd like to try it out but the instructions are outdated.
Some of the design decisions are discussed in detail at http://ideolalia.com/creating-a-simple-game-in-clojure