I've started to make a 2D game engine in Clojure using Penumbra and JBox2D 
(I'm thinking of calling it "Enjine", but the name was already taken by a 
JavaScript game engine.)

Because FSM's are such an integral part of game programming, I'd like to 
build them into the design.  In particular, I'd like to enable hierarchical 
state-based method dispatch for classes.

UnrealScript (http://en.wikipedia.org/wiki/UnrealScript) does something 
similar.  In addition to allowing classes to inherit methods from other 
classes, each class can define a set of states,
in which methods can be further overloaded.

Clojure's combination of multimethods, hierarchies, and macros seem ideally 
suited to this task.  My question is: does anybody know of any existing 
implementations of such a system in Clojure?

Thanks.

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

Reply via email to