pprog assigment0 - messing with graphics
[matches/honours.git] / course / semester2 / pprog / assignment0 / main.c
index d355687..a0d4671 100644 (file)
@@ -22,7 +22,7 @@ int main(int argc, char ** argv)
                Graphics_Init("N-Body", 640, 480);
        #endif //_GRAPHICS_H
 
-       for (unsigned a = 0; a < 100; ++a)
+       for (unsigned a = 0; a < 2; ++a)
        {
                float m = ((float)(rand() % 100))/1000.0;
                float x[DIMENSIONS];
@@ -34,13 +34,13 @@ int main(int argc, char ** argv)
                }
                System_AddBody(&system, m, x, v);
        }
-       System_AddBody(&system, 1.1, (float[2]){0,0}, (float[2]){0,0});
+       System_AddBody(&system, 1.0, (float[2]){0,0}, (float[2]){0,0});
 
        while (true)
        {
 
                System_Step(&system);
-               //System_WriteData(&system, stdout);
+               System_WriteData(&system, stdout);
                #ifdef _GRAPHICS_H
                        Graphics_Clear(1, 1, 1); //Clear screen
                        System_Draw(&system); //Draw system

UCC git Repository :: git.ucc.asn.au