Ability to draw debug shapes on the game display (lines, spheres, rect...)

Hi !

I think that a nice feature to debug our programs would be the possibility to draw debug shapes in the display of the game :

We could use something like that :
To draw a sphere : std::cerr << “DRAW SPHERE X Y Radius Color LineWidth” << std::endl;
To draw a rect : std::cerr << “DRAW RECT X Y Height Width Color LineWidth” << std::endl;
To draw a line : std::cerr << “DRAW LINE X1 Y1 X2 Y2 Color LineWidth” << std::endl;
To draw a text : std::cerr << “DRAW TEXT X Y Color Text” << std::endl;

This should allow us to debug more effectively and concentrate more on the solution itself !

9 Likes

Awesome idea @Gwi! :smiley:

Could be REALY usefull on “Coder Stike Back” :slight_smile:

(And apparently something already here as we can see line between our pads and our Destination points for exemple…) just need to be abble to draw ours ^^

2 Likes