Commit fd489b9afb0c74fe1120a6e02fb843d5272eee63

Authored by Grzegorz Jabłoński
1 parent 16b900f1

Removed redundant code

03-bullet/cannon.c
@@ -5,11 +5,6 @@ int main() { @@ -5,11 +5,6 @@ int main() {
5 if (gfx_init()) 5 if (gfx_init())
6 exit(3); 6 exit(3);
7 7
8 - gfx_filledRect(0, 0, gfx_screenWidth() - 1, gfx_screenHeight() - 1, BLUE);  
9 - gfx_filledCircle(gfx_screenWidth() / 2, gfx_screenHeight(), 100, YELLOW);  
10 - gfx_line(gfx_screenWidth() / 2, gfx_screenHeight() , gfx_screenWidth() / 2, gfx_screenHeight() - 150, YELLOW);  
11 - gfx_updateScreen();  
12 -  
13 double angle = 90.0 * (M_PI/180.0); 8 double angle = 90.0 * (M_PI/180.0);
14 9
15 double bullet_distance = 170.0; 10 double bullet_distance = 170.0;
04-shoot/cannon.c
@@ -5,11 +5,6 @@ int main() { @@ -5,11 +5,6 @@ int main() {
5 if (gfx_init()) 5 if (gfx_init())
6 exit(3); 6 exit(3);
7 7
8 - gfx_filledRect(0, 0, gfx_screenWidth() - 1, gfx_screenHeight() - 1, BLUE);  
9 - gfx_filledCircle(gfx_screenWidth() / 2, gfx_screenHeight(), 100, YELLOW);  
10 - gfx_line(gfx_screenWidth() / 2, gfx_screenHeight() , gfx_screenWidth() / 2, gfx_screenHeight() - 150, YELLOW);  
11 - gfx_updateScreen();  
12 -  
13 double angle = 90.0 * (M_PI/180.0); 8 double angle = 90.0 * (M_PI/180.0);
14 9
15 double bullet_distance; 10 double bullet_distance;
05-target/cannon.c
@@ -5,11 +5,6 @@ int main() { @@ -5,11 +5,6 @@ int main() {
5 if (gfx_init()) 5 if (gfx_init())
6 exit(3); 6 exit(3);
7 7
8 - gfx_filledRect(0, 0, gfx_screenWidth() - 1, gfx_screenHeight() - 1, BLUE);  
9 - gfx_filledCircle(gfx_screenWidth() / 2, gfx_screenHeight(), 100, YELLOW);  
10 - gfx_line(gfx_screenWidth() / 2, gfx_screenHeight() , gfx_screenWidth() / 2, gfx_screenHeight() - 150, YELLOW);  
11 - gfx_updateScreen();  
12 -  
13 double angle = 90.0 * (M_PI/180.0); 8 double angle = 90.0 * (M_PI/180.0);
14 9
15 double bullet_distance; 10 double bullet_distance;