summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/src/main.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/src/main.rb b/test/src/main.rb
index b7bbe85..84a47bd 100644
--- a/test/src/main.rb
+++ b/test/src/main.rb
@@ -30,8 +30,8 @@ def init()
$model = CandyGear::Model.new(mesh, texture);
$sprite = CandyGear::Sprite.new(
texture, CandyGear::Vector4D.new(0, 0, 1.0, 1.0));
- $rectangle = CandyGear::Rectangle.new(102.0, 1.0, 101.0, 101.0)
- $sprite_position = CandyGear::Vector4D.new(1.0, 1.0, 101.0, 101.0);
+ $rectangle = CandyGear::Vector4D.new(103.0, 1.0, 100.0, 100.0);
+ $sprite_position = CandyGear::Vector4D.new(1.0, 1.0, 100.0, 100.0);
$instances = [
CandyGear::Vector3D.new(5.0, 0.0, 0.0),
@@ -88,7 +88,7 @@ def quit() = CandyGear.quit();
def tick()
$sprite.draw($view1, $sprite_position);
$instances_rotation.rotate(0.0, BOX_ROTATION_SPEED);
- $rectangle.draw($view1, $color);
+ $rectangle.draw_rectangle($view1, $color);
$instances.each do |i|
$model.draw(i, $instances_rotation);
end