okami 0.0.982 → 0.0.983

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 +3 -3
  2. metadata +17 -8
data/lib/okami/sprite.rb CHANGED
@@ -18,13 +18,13 @@ class Okami::Sprite
18
18
  update_current_image
19
19
  end
20
20
 
21
- def fps; @add * 60 end
21
+ def fps; @add * 60.0 end
22
22
  def fps= fps; @add = fps / 60.0 end
23
23
 
24
24
  attr_reader :frame_index
25
25
  def frame_index= i
26
26
  @frame_index = i
27
- @frame_index = @last_frame_index if @frame_index > @last_frame_index
27
+ @frame_index = @last_frame_index if @frame_index.abs > @last_frame_index
28
28
  @frame_index = 0 if @frame_index < 0
29
29
  update_current_image
30
30
  end
@@ -104,7 +104,7 @@ class Okami::Sprite
104
104
  end
105
105
 
106
106
  def update_loop
107
- @frame_index = 0 if @frame_index >= @last_frame_index
107
+ @frame_index = 0 if @frame_index.abs > @last_frame_index
108
108
  end
109
109
 
110
110
  def update_backward
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.982
4
+ version: 0.0.983
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-12 00:00:00.000000000Z
12
+ date: 2013-03-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gosu
16
- requirement: &70261882601200 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70261882601200
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: texplay
27
- requirement: &70261882599860 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -32,7 +37,12 @@ dependencies:
32
37
  version: '0'
33
38
  type: :runtime
34
39
  prerelease: false
35
- version_requirements: *70261882599860
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
36
46
  description: Gosu Interface with fancy functionality for simplicity.
37
47
  email: aerotune@gmail.com
38
48
  executables: []
@@ -68,9 +78,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
78
  version: '0'
69
79
  requirements: []
70
80
  rubyforge_project:
71
- rubygems_version: 1.8.10
81
+ rubygems_version: 1.8.25
72
82
  signing_key:
73
83
  specification_version: 3
74
84
  summary: Okami minimal Gosu!
75
85
  test_files: []
76
- has_rdoc: true