minigl 2.0.13 → 2.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +2 -2
  3. data/lib/minigl/game_object.rb +1 -1
  4. metadata +23 -23
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: abab859c710be5d1a75c3ae287c41e134faebd2f
4
- data.tar.gz: ec838ad93a3136cbb3fb9d9fdcb572cbe3ebf637
2
+ SHA256:
3
+ metadata.gz: d8502603cb11f5bd4ba16fdf248114d7a393a21a400325ccbd1b496a7c5d1613
4
+ data.tar.gz: edd54a018d1da6d43cb9a7bc5f2a21ac3461e13e62892da39f2e503ed64ac64d
5
5
  SHA512:
6
- metadata.gz: 49e9aef48eb2c67ce4e2a1abb0491a3d628414e5fbf76c40a31ef196a32ebd3c0c689dff12008d315a6a42e7ec8ad03532aa1a4b30f3a04bb021d81bf8a0bcd0
7
- data.tar.gz: 4d5bdf1d4cad2187c594c326ecfbc3423858f40719eb97f907711e619f62664fd7e4c19dcaf36569c94f1e2c7f995ebd8c4812570e7d2f4b14966f749a4e55ac
6
+ metadata.gz: 72b4a3eef0eb6c6e0dc4b5b5c59156cc8b2662d9939b4ed74707a14b25833d10c97fd10086b3e57cf45bf364038052cd938d0a3f2da36ff7bbc1d145de1ffca8
7
+ data.tar.gz: 15b819271348631c396d43271b64bdf0030738db8337326f55ab5e39e6ffd5b78c9d4fa10d53ed71a7a6f7969eb802d7a6efbf572005f00f79c007d938d6e912
data/README.md CHANGED
@@ -29,6 +29,6 @@ After installing the Gosu dependencies, you can just `gem install minigl`.
29
29
  * The [wiki](https://github.com/victords/minigl/wiki) is a work in progress with tutorials and examples.
30
30
  * Test package and examples aren't complete!
31
31
 
32
- ## Version 2.0.13
32
+ ## Version 2.0.14
33
33
 
34
- * Bug fix in `Sprite#animate_once`.
34
+ * Bug fix in `Sprite#animate` (for very specific scenarios when switching between indices arrays).
@@ -63,7 +63,7 @@ module MiniGL
63
63
  @anim_counter += 1
64
64
  if @anim_counter >= interval
65
65
  @index_index += 1
66
- @index_index = 0 if @index_index == indices.length
66
+ @index_index = 0 if @index_index >= indices.length
67
67
  @img_index = indices[@index_index]
68
68
  @anim_counter = 0
69
69
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minigl
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.13
4
+ version: 2.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor David Santos
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-02 00:00:00.000000000 Z
11
+ date: 2018-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gosu
@@ -94,41 +94,41 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  version: '0'
95
95
  requirements: []
96
96
  rubyforge_project:
97
- rubygems_version: 2.6.14.1
97
+ rubygems_version: 2.7.7
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: MiniGL
101
101
  test_files:
102
- - test/game.rb
103
102
  - test/game_object_tests.rb
104
- - test/iso_game.rb
105
- - test/map_tests.rb
103
+ - test/vector_tests.rb
106
104
  - test/movement_tests.rb
107
- - test/mov_game.rb
108
105
  - test/res_tests.rb
109
- - test/vector_tests.rb
106
+ - test/iso_game.rb
107
+ - test/mov_game.rb
108
+ - test/map_tests.rb
109
+ - test/game.rb
110
110
  - test/test.png
111
111
  - test/data/font/font1.ttf
112
- - test/data/img/barbg.png
113
- - test/data/img/barbg.svg
114
- - test/data/img/barfg.png
115
- - test/data/img/barfg.svg
112
+ - test/data/img/square.svg
116
113
  - test/data/img/btn.png
117
- - test/data/img/check.png
114
+ - test/data/img/square3.svg
118
115
  - test/data/img/image.png
119
- - test/data/img/img1.png
120
- - test/data/img/square.png
121
- - test/data/img/square.svg
116
+ - test/data/img/tile2.svg
117
+ - test/data/img/tile2.png
118
+ - test/data/img/tile1.png
119
+ - test/data/img/check.png
120
+ - test/data/img/barbg.svg
121
+ - test/data/img/barfg.png
122
122
  - test/data/img/square2.png
123
- - test/data/img/square2.svg
123
+ - test/data/img/square.png
124
+ - test/data/img/tile1b.png
125
+ - test/data/img/img1.png
124
126
  - test/data/img/square3.png
125
- - test/data/img/square3.svg
126
- - test/data/img/text.png
127
- - test/data/img/tile1.png
128
127
  - test/data/img/tile1.svg
129
- - test/data/img/tile1b.png
130
- - test/data/img/tile2.png
131
- - test/data/img/tile2.svg
128
+ - test/data/img/barbg.png
129
+ - test/data/img/square2.svg
130
+ - test/data/img/text.png
131
+ - test/data/img/barfg.svg
132
132
  - test/data/img/tile2b.png
133
133
  - test/data/sound/1.wav
134
134
  - test/data/tileset/tileset1.png