gosu_extensions 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.6
1
+ 0.1.7
@@ -39,6 +39,10 @@ module Moveable
39
39
  end
40
40
  end
41
41
 
42
+ def random_rotation
43
+ rotation { 2*Math::PI*rand }
44
+ end
45
+
42
46
  end
43
47
 
44
48
  # Directly set the position of our Moveable using a vector.
data/lib/units/thing.rb CHANGED
@@ -150,10 +150,11 @@ class Thing
150
150
  space.add_shape @shape
151
151
  end
152
152
 
153
- # TODO
153
+ # TODO include size
154
154
  #
155
155
  def draw
156
- self.image.draw_rot self.position.x, self.position.y, self.layer, self.drawing_rotation
156
+ # size = self.momentary_size TODO
157
+ self.image.draw_rot self.position.x, self.position.y, self.layer, self.drawing_rotation, 0.5, 0.5, 1.0, 1.0
157
158
  end
158
159
 
159
160
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 6
9
- version: 0.1.6
8
+ - 7
9
+ version: 0.1.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - Florian Hanke
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-03-17 00:00:00 +01:00
17
+ date: 2010-03-19 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency