lotu 0.1.6 → 0.1.7
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.
- data/VERSION +1 -1
- data/examples/hello_world/hello_world.rb +2 -0
- data/examples/mouse_pointer/mouse_pointer.rb +2 -0
- data/examples/steering_behaviors/steering.rb +5 -3
- data/lib/lotu/text_box.rb +4 -0
- data/lotu.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.7
|
|
@@ -53,6 +53,8 @@ class Example < Lotu::Window
|
|
|
53
53
|
@info.watch(@cursor1, :color => 0xff0099ff, :font_size => 15)
|
|
54
54
|
@info.watch("@cursor2 data:")
|
|
55
55
|
@info.watch(@cursor2, :color => 0xff99ff00, :font_size => 15)
|
|
56
|
+
@info.text("")
|
|
57
|
+
@info.text("Move @cursor1 with mouse and @cursor2 with arrow keys (click with space!)", :font_size => 15)
|
|
56
58
|
end
|
|
57
59
|
|
|
58
60
|
end
|
|
@@ -39,11 +39,13 @@ class Example < Lotu::Window
|
|
|
39
39
|
@ruby2.evader = @ruby
|
|
40
40
|
end
|
|
41
41
|
|
|
42
|
-
@window_info = Lotu::TextBox.new
|
|
43
|
-
@window_info.watch(@fps_counter)
|
|
42
|
+
@window_info = Lotu::TextBox.new(:font_size => 15)
|
|
43
|
+
@window_info.watch(@fps_counter, :font_size => 20)
|
|
44
44
|
@window_info.watch(@cursor, :color => 0xffff0000)
|
|
45
|
+
@window_info.text("Click to start the simulation")
|
|
46
|
+
@window_info.text("One will pursuit while the other evades, right click to center evader on screen")
|
|
45
47
|
|
|
46
|
-
@ruby_info = Lotu::TextBox.new(:attach_to => @ruby, :font_size =>
|
|
48
|
+
@ruby_info = Lotu::TextBox.new(:attach_to => @ruby, :font_size => 14)
|
|
47
49
|
@ruby_info.watch(@ruby)
|
|
48
50
|
end
|
|
49
51
|
|
data/lib/lotu/text_box.rb
CHANGED
data/lotu.gemspec
CHANGED