minigl 2.4.0 → 2.4.1
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.
- checksums.yaml +4 -4
- data/README.md +9 -3
- data/lib/minigl/game_object.rb +4 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0de5c7f62aa915f3f4b27bb395d9521f93f21e855192da3e0ae7e9de90b91b6
|
4
|
+
data.tar.gz: 1f771f1c1281032ed119d3f4717bbd181c838b124b666df6c70b1e130b298ef3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 745596ac394298301ef9cb3d9490aa447931a160de16505634715c888ac31d267b6b059120b15cb48d6ef7f792f889dde07bb0b5c0e41af44204c72232cc6dd0
|
7
|
+
data.tar.gz: 8306f0e0f22122ccd0e7df3ccf318539132b96028aee6f724ff355a9fc2fb63245f1aed8650e3bfdc9910b3868595c7a05719b04578d04034874b3ba32e8e601
|
data/README.md
CHANGED
@@ -16,9 +16,14 @@ to victordavidsantos@gmail.com.
|
|
16
16
|
|
17
17
|
## Made with MiniGL
|
18
18
|
|
19
|
-
Below are
|
19
|
+
Below are some games built with MiniGL, all available for free download and also open source.
|
20
20
|
* [Super Bombinhas](https://github.com/victords/super-bombinhas)
|
21
21
|
* [ConnecMan](https://github.com/victords/connecman)
|
22
|
+
* [SokoAdventure](https://github.com/victords/sokoadventure)
|
23
|
+
* [Spheres](https://github.com/victords/spheres)
|
24
|
+
* [Willy the droid](https://github.com/gavr-games/willy_the_droid)
|
25
|
+
|
26
|
+
Download Super Bombinhas, ConnecMan, SokoAdventure and Spheres in my [itch.io page](https://victords.itch.io).
|
22
27
|
|
23
28
|
If you create a project using MiniGL, feel free to open a PR to include it in this list.
|
24
29
|
|
@@ -37,9 +42,10 @@ After installing the Gosu dependencies, you can just `gem install minigl`.
|
|
37
42
|
* The [wiki](https://github.com/victords/minigl/wiki) is a work in progress with tutorials and examples.
|
38
43
|
* Test package and examples aren't complete!
|
39
44
|
|
40
|
-
## Version 2.4.
|
45
|
+
## Version 2.4.1
|
41
46
|
|
42
|
-
*
|
47
|
+
* Expose `Sprite`'s `img` attribute.
|
48
|
+
* Fix `Effect#draw`'s `z_index` parameter.
|
43
49
|
|
44
50
|
## Contributing
|
45
51
|
|
data/lib/minigl/game_object.rb
CHANGED
@@ -3,6 +3,9 @@ require_relative 'movement'
|
|
3
3
|
module MiniGL
|
4
4
|
# This class represents an (optionally animated) image inside the game screen.
|
5
5
|
class Sprite
|
6
|
+
# The list of images of this sprite (i.e. the spritesheet).
|
7
|
+
attr_reader :img
|
8
|
+
|
6
9
|
# The index of the current sprite in the spritesheet being drawn.
|
7
10
|
attr_reader :img_index
|
8
11
|
|
@@ -384,7 +387,7 @@ module MiniGL
|
|
384
387
|
@dead = true if @elapsed_time == @lifetime
|
385
388
|
end
|
386
389
|
|
387
|
-
def draw(map = nil, scale_x = 1, scale_y = 1, alpha = 0xff, color = 0xffffff, angle = nil, z_index = 0)
|
390
|
+
def draw(map = nil, scale_x = 1, scale_y = 1, alpha = 0xff, color = 0xffffff, angle = nil, flip = nil, z_index = 0, round = false)
|
388
391
|
super unless @dead
|
389
392
|
end
|
390
393
|
|
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.4.
|
4
|
+
version: 2.4.1
|
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: 2022-
|
11
|
+
date: 2022-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gosu
|