src/proto2/Graphics.cc
changeset 94 08bebac3d0c2
parent 91 0a6d675099dc
child 96 4a801210096c
--- a/src/proto2/Graphics.cc	Fri Nov 21 22:42:55 2008 +0000
+++ b/src/proto2/Graphics.cc	Sun Nov 23 18:19:53 2008 +0000
@@ -65,6 +65,9 @@
 
     if (keyboard.get_keycode(CL_KEY_RIGHT))
             input_move |= INPUT_MOVE_RIGHT;
+
+	if (keyboard.get_keycode(CL_KEY_I))
+		player->debugInfo();
     
     // apply movement if applicable
     if (input_move)
@@ -92,10 +95,10 @@
         // draw quad
         gc->fill_quad(
             CL_Quad(
-                (loc.x-shape[0].x) * factorX, (loc.y-shape[0].y) * factorY,
-                (loc.x-shape[1].x) * factorX, (loc.y-shape[1].y) * factorY,
-                (loc.x-shape[2].x) * factorX, (loc.y-shape[2].y) * factorY,
-                (loc.x-shape[3].x) * factorX, (loc.y-shape[3].y) * factorY
+                (loc.x+shape[0].x) * factorX, (loc.y+shape[0].y) * factorY,
+                (loc.x+shape[1].x) * factorX, (loc.y+shape[1].y) * factorY,
+                (loc.x+shape[2].x) * factorX, (loc.y+shape[2].y) * factorY,
+                (loc.x+shape[3].x) * factorX, (loc.y+shape[3].y) * factorY
            	), CL_Color::green
         );
     }