minigl 2.0.11 → 2.0.12

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 +4 -4
  2. data/README.md +2 -2
  3. data/lib/minigl/movement.rb +3 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 16a68505db92c45427222c02e72c96d04bef3d9d
4
- data.tar.gz: 7f5be28681b92f29d9954ed396bdc0ef2fbf5d0d
3
+ metadata.gz: de08bb65a8a409c7836bead4ac0f74d802f668f8
4
+ data.tar.gz: 485c0a2f73628d127de80667a8ef6965f5b6df02
5
5
  SHA512:
6
- metadata.gz: 106e5e610adacbe686b111970addb33030a744745a5f88940e6a1920247dc8c075c16dd840317e18c78665542461001e7d23370fabbb156c5daf6bceebbc1374
7
- data.tar.gz: 836e2bfbf62d9ffde5637b293d3b57525dc36ab83e4e59823f35909acbf48a85295fd366264caaaabd6e29da44bc9a5ae8a605347509131b4e27a740d6d35708
6
+ metadata.gz: c268339a0ef7ea74834eba71d7f232795b73311a79651b97abea18d92b1c4ba0edeb8da01db720117d9ab36e126341819b9acbab14fefca37d14634812a51b08
7
+ data.tar.gz: e784bc4be532a6be37b1637779ab2f7fcf7209455502b0ae6b58b74c77bdda74e5fb07601aaf056c4617c02db716718b61e25d307ed6ebbffc38338356946241
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.11
32
+ ## Version 2.0.12
33
33
 
34
- * Updated the available keys for the `KB` methods.
34
+ * Fixed `Movement#move` so that an object doesn't collide with itself.
@@ -207,7 +207,8 @@ module MiniGL
207
207
  # be applied in the next time +move+ is called.
208
208
  attr_accessor :stored_forces
209
209
 
210
- attr_reader :prev_speed # :nodoc:
210
+ # A Vector containing the speed of the object in the previous frame.
211
+ attr_reader :prev_speed
211
212
 
212
213
  # Returns the bounding box as a Rectangle.
213
214
  def bounds
@@ -265,7 +266,7 @@ module MiniGL
265
266
  move_bounds = Rectangle.new x, y, w, h
266
267
  coll_list = []
267
268
  obst.each do |o|
268
- coll_list << o if move_bounds.intersect? o.bounds
269
+ coll_list << o if o != self && move_bounds.intersect?(o.bounds)
269
270
  end
270
271
  ramps.each do |r|
271
272
  r.check_can_collide move_bounds
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.11
4
+ version: 2.0.12
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-04-14 00:00:00.000000000 Z
11
+ date: 2018-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gosu