Commit e8a6647252246ba215f3e79ac2f61c9a255e3266

Authored by Grzegorz Jabłoński
1 parent a2e50973

Simplified cannon

01-cannon/cannon.c
@@ -6,11 +6,6 @@ int main(int argc, char *argv[]) { @@ -6,11 +6,6 @@ int main(int argc, char *argv[]) {
6 if (gfx_init()) 6 if (gfx_init())
7 exit(3); 7 exit(3);
8 8
9 - gfx_filledRect(0, 0, gfx_screenWidth() - 1, gfx_screenHeight() - 1, BLUE);  
10 - gfx_filledCircle(gfx_screenWidth() / 2, gfx_screenHeight(), 100, YELLOW);  
11 - gfx_line(gfx_screenWidth() / 2, gfx_screenHeight() , gfx_screenWidth() / 2, gfx_screenHeight() - 150, YELLOW);  
12 - gfx_updateScreen();  
13 -  
14 double angle = 90.0 * (M_PI/180.0); 9 double angle = 90.0 * (M_PI/180.0);
15 while(1) 10 while(1)
16 { 11 {
02-cannon_wide/cannon.c
@@ -6,11 +6,6 @@ int main(int argc, char *argv[]) { @@ -6,11 +6,6 @@ int main(int argc, char *argv[]) {
6 if (gfx_init()) 6 if (gfx_init())
7 exit(3); 7 exit(3);
8 8
9 - gfx_filledRect(0, 0, gfx_screenWidth() - 1, gfx_screenHeight() - 1, BLUE);  
10 - gfx_filledCircle(gfx_screenWidth() / 2, gfx_screenHeight(), 100, YELLOW);  
11 - gfx_line(gfx_screenWidth() / 2, gfx_screenHeight() , gfx_screenWidth() / 2, gfx_screenHeight() - 150, YELLOW);  
12 - gfx_updateScreen();  
13 -  
14 double angle = 90.0 * (M_PI/180.0); 9 double angle = 90.0 * (M_PI/180.0);
15 while(1) 10 while(1)
16 { 11 {