jmmk / clash-attack-sim

https://jmmk.github.io/clash-attack-sim/
Other
3 stars 1 forks source link

reduce system boilerplate #7

Closed jmmk closed 9 years ago

jmmk commented 9 years ago
jmmk commented 9 years ago

Might look something like this:

(defsystem attack [world]
  {:entities [attacking [:attacker :attacking]
              alive [:attackable :alive]]
   :frame-count 15
   :fn do-attacks})