ippa / chingu

OpenGL accelerated 2D game framework for Ruby
http://ippa.se/chingu
GNU Lesser General Public License v2.1
308 stars 66 forks source link

Make Chingu::Animation#[] accept Enumerables instead of just Ranges #64

Closed txus closed 11 years ago

txus commented 11 years ago

This way it's easy to extract a subanimation from non-consecutive, frames, like this:

@animation[(1..10).step(2)]
ippa commented 11 years ago

i like it!