minigl 2.0.13 → 2.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +2 -2
- data/lib/minigl/game_object.rb +1 -1
- metadata +23 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: d8502603cb11f5bd4ba16fdf248114d7a393a21a400325ccbd1b496a7c5d1613
|
4
|
+
data.tar.gz: edd54a018d1da6d43cb9a7bc5f2a21ac3461e13e62892da39f2e503ed64ac64d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
32
|
+
## Version 2.0.14
|
33
33
|
|
34
|
-
* Bug fix in `Sprite#
|
34
|
+
* Bug fix in `Sprite#animate` (for very specific scenarios when switching between indices arrays).
|
data/lib/minigl/game_object.rb
CHANGED
@@ -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
|
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.
|
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-
|
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.
|
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/
|
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/
|
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/
|
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/
|
114
|
+
- test/data/img/square3.svg
|
118
115
|
- test/data/img/image.png
|
119
|
-
- test/data/img/
|
120
|
-
- test/data/img/
|
121
|
-
- test/data/img/
|
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/
|
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/
|
130
|
-
- test/data/img/
|
131
|
-
- test/data/img/
|
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
|