minigl 2.0.11 → 2.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/minigl/movement.rb +3 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de08bb65a8a409c7836bead4ac0f74d802f668f8
|
4
|
+
data.tar.gz: 485c0a2f73628d127de80667a8ef6965f5b6df02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
32
|
+
## Version 2.0.12
|
33
33
|
|
34
|
-
*
|
34
|
+
* Fixed `Movement#move` so that an object doesn't collide with itself.
|
data/lib/minigl/movement.rb
CHANGED
@@ -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
|
-
|
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?
|
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.
|
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-
|
11
|
+
date: 2018-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gosu
|