Commit c0b03426 authored by David Quiroga's avatar David Quiroga
Browse files

Cleaned code comment

parent 310caeec
......@@ -18,8 +18,6 @@ public class GSDL.GameLoop : Object {
private Circle2D circle1;
private Rectangle2D rectangle1;
private OrientedRectangle2D oriented_rectangle1;
//private Geometry2D geo;
//private Line2D line2;
public GameLoop () {
wsdl = new GSDL.Wsdl ();
......@@ -27,7 +25,6 @@ public class GSDL.GameLoop : Object {
text = new GSDL.Text (wsdl);
SGP.Utils.renderer = wsdl.renderer;
this.rand = new GLib.Rand ();
//geo = new Geometry2D ();
create_shapes ();
}
......@@ -38,29 +35,20 @@ public class GSDL.GameLoop : Object {
private void create_shapes () {
//SGP.Utils.smooth = false;
line_c = new Line2D (new Point2D (150, 300), new Point2D (250, 350));
//line1.rotate_center (13);
circle_c = new Circle2D (new Point2D (400, 400), 40);
rectangle_c = new Rectangle2D (new Point2D (100, 100),
new Point2D (150, 150));
oriented_rect_c = new OrientedRectangle2D (new Point2D (100, 100),
new Vector2D (25, 50), 00.0f);
//shape_c = circle_c;
// shape_c = oriented_rect_c;
//shape_c = rectangle_c;
shape_c = line_c;
shape_c = line_c;
line1 = new Line2D (new Point2D (100, 400), new Point2D (300, 400));
//line1.rotate_center (13);
circle1 = new Circle2D (new Point2D (400, 400), 40);
rectangle1 = new Rectangle2D (new Point2D (600, 350),
new Point2D (750, 450));
oriented_rectangle1 = new OrientedRectangle2D (new Point2D (1050, 400),
new Vector2D (100, 50), 00.0f);
//oriented_rectangle1.rotation = 13;
//line2 = new Line2D (new Point2D (1150, 371), new Point2D (1180, 500));
//geo = new Geometry2D ();
reset_cursor ();
}
private void reset () {
......@@ -72,9 +60,6 @@ public class GSDL.GameLoop : Object {
var v_y = rand.int_range (50, 150);
rectangle1.rsize = new Vector2D (v_x, v_y);
line1.rotate_center (degress);
//var colision = geo.line_oriented_rectangle (line2, oriented_rectangle1);
//print ("colision %s rotate %.05f\n", colision.to_string (), degress);
}
private void reset_cursor () {
......@@ -157,11 +142,8 @@ public class GSDL.GameLoop : Object {
line1.draw ();
rectangle1.draw ();
oriented_rectangle1.draw ();
circle1.draw ();
shape_c.draw ();
//line2.draw ();
//shape_c.draw ();
circle1.draw ();
shape_c.draw ();
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment