minigl 2.4.0 → 2.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a0cbb7ddb129a7fea30f09ad6d5c89b3cef8b9b9b83d5f7f9eeacc76b09227ca
4
- data.tar.gz: 7297a8c63e1df8cf85d6d61ccfa4fd80cdf8676dc06fe8467aca522ab10bbe38
3
+ metadata.gz: c0de5c7f62aa915f3f4b27bb395d9521f93f21e855192da3e0ae7e9de90b91b6
4
+ data.tar.gz: 1f771f1c1281032ed119d3f4717bbd181c838b124b666df6c70b1e130b298ef3
5
5
  SHA512:
6
- metadata.gz: 0ceda66b6723094d415a11d23cd3c0c5b69a496fe655f7f7a72cb7298bd5606f38d8755d9868a7e878e6a27a56350c2dbe9e513e4d3c247c7ac504a9356bd9b5
7
- data.tar.gz: 8d1dd2b962d597547d54f51e18b2332ec201bbbca19f4fc1d3a584b52bb979937366c9f11719b05ce07fba43aade40137df270530e60935f56cc99b9b36d052f
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 two full games built with MiniGL, both available for free download and also open source.
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.0
45
+ ## Version 2.4.1
41
46
 
42
- * Added the `Localization` class! Check out [the documentation](http://www.rubydoc.info/gems/minigl/MiniGL/Localization) to learn more.
47
+ * Expose `Sprite`'s `img` attribute.
48
+ * Fix `Effect#draw`'s `z_index` parameter.
43
49
 
44
50
  ## Contributing
45
51
 
@@ -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.0
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-03-29 00:00:00.000000000 Z
11
+ date: 2022-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gosu