In a test game engine I developed, I simply used maps and created a
sort of "duck" typing. It actually worked quite well. For instance,
each entity would have a :physics-update function:

((:physics-update entity) entity timespan)

It ended up working very well. I had a few thousand entities, all
using agents to update. The graphics front-end would then just deref
each entity and then do:

((:draw-func entity) entity))

To draw it.

Timothy

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to