okami 0.0.984 → 0.0.985

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/okami/sprite.rb +4 -0
  2. metadata +1 -1
data/lib/okami/sprite.rb CHANGED
@@ -29,6 +29,10 @@ class Okami::Sprite
29
29
  update_current_image
30
30
  end
31
31
 
32
+ def random_frame_index
33
+ (rand()*@images.length) % @images.length
34
+ end
35
+
32
36
 
33
37
  ## Draw it just like a Gosu::Image !
34
38
  def draw *args; @current_image.draw *args end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: okami
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.984
4
+ version: 0.0.985
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: