responsive battleships

26
Responsive Battleships The battleship animation we created needs to respond to user input to be considered a game. The user will be able to launch an attack at any place on the game board. Lines will be use to designate where the user is aiming. The arrow keys and spacebar will function.

Upload: aitana

Post on 25-Feb-2016

41 views

Category:

Documents


0 download

DESCRIPTION

Responsive Battleships. The battleship animation we created needs to respond to user input to be considered a game. The user will be able to launch an attack at any place on the game board. Lines will be use to designate where the user is aiming. The arrow keys and spacebar will function. . - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Responsive Battleships

Responsive Battleships

• The battleship animation we created needs to respond to user input to be considered a game. The user will be able to launch an attack at any place on the game board. Lines will be use to designate where the user is aiming. The arrow keys and spacebar will function.

Page 2: Responsive Battleships

Targeting Sequence

var keyX = 100;var keyY = 200;var boomX = 100;

//show target designatorstroke(random(1,150),0,0);strokeWeight(3);line(keyX-30,keyY,keyX+30,keyY);line(keyX,keyY-30,keyX,keyY+30);

Page 3: Responsive Battleships

Weapons Launch//modify ellipses in draw function ellipse(boomX, boomY,w*60,w*60);

void keyPressed() {if (keyCode == RIGHT) keyX = keyX + 15;

//press spacebar to fire if (keyCode == "32") {

boomX = keyX;boomY = keyY;}}

Page 4: Responsive Battleships

Practice 1: 20%

• Use the example code given to create the targeting and firing system.

• Use the examples given to have the boats move in different directions, independently.

• Improve the boats so they are not just rectangles and look like battleships.

Page 5: Responsive Battleships

Review

• Responsive Battleships• Targeting Sequence• Weapons Launch• Practice 1: 20%

Page 6: Responsive Battleships

Responsive Paddleball

• Our rainbow bouncy ball animation can be modified into a game where the player tries to keep the ball on the screen. By adding a paddle and modifying the conditional, a programmer can make the ball only stay on the screen if the player correctly catches the ball.

Page 7: Responsive Battleships

Input Commands

var keyX = 550; //put me with my variable friends

void keyPressed() {if (keyCode == LEFT) keyX = keyX - 100;

if (keyCode == RIGHT) keyX = keyX + 100; if (keyCode == "32") {

}}

Page 8: Responsive Battleships

Player Controlled Game Piece

//replace bottom bounce conditionalif (y >= 640 && x > keyX && x < keyX +150) b = -b;

//paddle for the draw functionfill(50,50,50);rect(keyX,680,250,20);

Page 9: Responsive Battleships

Practice 2: 20%

• Use the example code to modify the animation so that it bounces back up on the paddle and not on the bottom of the canvas.

• Make something interesting happen when the player presses the space bar.

• Increase the game complexity by adding multiple game rainbow balls. (slow them down to make it possible to play)

Page 10: Responsive Battleships

Review

• Responsive Paddleball• Input Commands• Player Controlled Game Piece• Practice 2: 20%

Page 11: Responsive Battleships

Hugmaster 5000

• For this canvas programmers will enable a stick figure to walk around the screen. Instead of weapons or machines, this animation will create a game where one of the stick figures will go and hug the other players!

Page 12: Responsive Battleships

Input Commands

void keyPressed() { if (keyCode == LEFT) keyX = keyX - 50; if (keyCode == RIGHT) keyX = keyX + 50; if (keyCode == UP) keyY = keyY - 50; if (keyCode == DOWN) keyY = keyY + 50; if (keyCode == "32") {

}}

Page 13: Responsive Battleships

Dancing Hugger//bodyline(200-yHand+keyX,240+keyY,200-yHand+keyX,340+keyY);//headellipse(200-yHand+keyX,200+keyY,80-yHand,80);//legsline(200-yHand+keyX,340+keyY,170-yHand+keyX,460+keyY);line(200-yHand+keyX,340+keyY,230-yHand+keyX,460+keyY);//upper armsline(200-yHand+keyX,240+yHand+keyY,170+keyX,300-yHand+keyY);line(200-yHand+keyX,240+yHand+keyY,225+keyX,300-yHand+keyY);

Page 14: Responsive Battleships

Practice 3: 20%

• Use the example code to enable the Hugmaster to move around the screen.

• Make something appropriate and interesting happen when the player presses the spacebar.

• Design a game that will be fun for children to play.

Page 15: Responsive Battleships

• Hugmaster 5000• Input Commands• Dancing Hugger• Practice 3: 20%

Review

Page 16: Responsive Battleships

Space Adventure

• This animation will enable objects in our space animation to be controlled by the player. Programmers should pick an object that will move from keyboard commands such as the alien space ship.

• The ship will try to get things, avoid things or any combination that the programmer chooses for a great game.

Page 17: Responsive Battleships

Input Commands

void keyPressed() { if (keyCode == LEFT) keyX = keyX - 50; if (keyCode == RIGHT) keyX = keyX + 50; if (keyCode == UP) keyY = keyY - 50; if (keyCode == DOWN) keyY = keyY + 50; if (keyCode == "32") {

}}

Page 18: Responsive Battleships

UFO//UFO

noStroke();fill(100,100,100);ellipse(125+x*700,275,100,100);fill(50,50,50);ellipse(150+x*700,325,50,50);ellipse(100+x*700,325,50,50);fill(50,75,50);

quad(225+x*700,325,175+x*700,275,75+x*700,275,25+x*700,325);

Page 19: Responsive Battleships

Practice 4: 20%

• Make the UFO or any other game piece fly around the screen with user input from the arrow keys using the example.

• Create some other game objects for the UFO to either capture or avoid such as stopping missiles/astroids or obtaining powerups/coins/treasure.

Page 20: Responsive Battleships

Review

• Space Adventure• Input Commands• UFOs• Practice 4: 20%

Page 21: Responsive Battleships

Continue Improvement: Battleship

• The battleship game has to be designed to be fun in order to attract users to want to play.

• Improve the graphics by having the game field, boats, targeting device, look more realistic and/or more attractive.

• Improve the function of the game by having enough game pieces move better and for the player to shoot at and/or to capture and/or to avoid.

Page 22: Responsive Battleships

Continue Improvement: Paddleball

• Improve the aesthetics of the PaddleBall game by having the game field look more realistic/attractive the ball look nicer and the paddle look nice.

• Improve the function of the game by having something happen when the player looses, making the paddle work better, adding other bouncy rainbow balls.

Page 23: Responsive Battleships

Continue Improvement: Hugmaster 5000

• Improve the function of the game by having the player move in a way that will enable to encounter multiple ways of obtaining a hug and/or avoiding unwanted obstacles.

• Improve the aesthetics of the game by having the moveable game piece do more realistic functions and having super happy fun things appear such as hearts, diamonds etc.

Page 24: Responsive Battleships

Continue Improvement: Space Adventure

• Improve the aesthetics of the solar system by having the planets, orbits, sun and game pieces look more original and/or realistic.

• Improve the function of the game by having many objects appear to either destroy or to rescue. Have nice happy fun things appear such as rainbows, stars, diamonds etc.

Page 25: Responsive Battleships

Review

• Continue Improvement: Battleship• Continue Improvement: Paddleball• Continue Improvement: Hugmaster 5000• Continue Improvement: Space Adventure

Page 26: Responsive Battleships

• <h ead >• <ti tle>G ab ri el le' s Ga mes </tit le>• <sc rip t typ e ="tex t/jav ascr ip t" src=" h ttp ://w ww .sco ttb u n in .co m/p ro ce ssin g.js "></sc rip t >• <sc rip t typ e ="tex t/jav ascr ip t" src=" h ttp ://w ww .sco ttb u n in .co m/in i t. j s">< /scri p t>• </h ead >

• <b o d y>• <cen t er>

• <scrip t ty p e= "ap p l ica tio n /p ro cess in g ">• size(5 0 0 ,5 0 0 );

• var a = 1 ;• var b = 1 ;• var x = 6 0 ;• var y = 6 0 ;•

• var w = .1 ;• var t = .1 ;

• vo id d ra w() {

• b ackg ro u n d (6 4 ,2 2 4 ,2 0 8 );• stro k e(0 , 0 ,0 );• stro k eWe igh t(1 ) ;

• //h o rizo n ta l gri d• l in e( 0 ,5 0 ,8 0 0 ,5 0 );• l in e( 0 ,1 0 0 ,8 0 0 ,1 0 0 ) ;

• l in e( 0 ,1 5 0 ,8 0 0 ,1 5 0 ) ;• l in e( 0 ,2 0 0 ,8 0 0 ,2 0 0 ) ;• l in e( 0 ,2 5 0 ,8 0 0 ,2 5 0 ) ;• l in e( 0 ,3 0 0 ,8 0 0 ,3 0 0 ) ;

• l in e( 0 ,3 5 0 ,8 0 0 ,3 5 0 ) ;

• l in e( 0 ,4 0 0 ,8 0 0 ,4 0 0 ) ;• l in e( 0 ,4 5 0 ,8 0 0 ,4 5 0 ) ;• l in e( 0 ,5 0 0 ,8 0 0 ,5 0 0 ) ;

• //verti cal grid• l in e( 5 0 , 0 ,5 0 ,8 0 0 );• l in e( 1 0 0 ,0 ,1 0 0 ,8 0 0 ) ;

• l in e( 1 5 0 ,0 ,1 5 0 ,8 0 0 ) ;

• l in e( 2 0 0 ,0 ,2 0 0 ,8 0 0 ) ;• l in e( 2 5 0 ,0 ,2 5 0 ,8 0 0 ) ;• l in e( 3 0 0 ,0 ,3 0 0 ,8 0 0 ) ;

• l in e( 3 5 0 ,0 ,3 5 0 ,8 0 0 ) ;

• l in e( 4 0 0 ,0 ,4 0 0 ,8 0 0 ) ;• l in e( 4 5 0 ,0 ,4 5 0 ,8 0 0 ) ;• l in e( 5 0 0 ,0 ,5 0 0 ,8 0 0 ) ;

•• //b o at 3• stro k eWe igh t(3 ) ;

• stro k e(2 0 5 , 2 0 5 ,0 ) ;

• fi l l (2 5 5 ,2 5 5 ,0 );

• rect(3 5 0 ,5 0 ,3 0 ,1 5 0 );

• //b o at 4

• stro k eWe igh t(3 ) ;

• stro k e(0 , 2 0 5 ,0 );• fi l l (0 ,2 5 5 , 0 );

• rect(3 0 0 ,3 5 0 ,1 5 0 ,3 0 );

• //b o at 5• stro k eWe igh t(3 ) ;

• stro k e(0 , 2 0 5 ,2 0 5 ) ;

• fi l l (0 , 2 5 5 , 2 5 5 );

• rect(2 5 0 ,1 8 0 ,3 0 ,1 5 0 );

• //b o at 6

• stro k eWe igh t(3 ) ;• stro k e(0 , 0 ,2 0 5 );• fi l l (0 ,0 , 2 5 5 );

• rect(3 2 0 ,2 6 0 ,1 5 0 ,3 0 );

• //b o at 7• stro k eWe igh t(3 ) ;

• stro k e(7 8 ,0 ,7 8 );

• fi l l (1 2 8 , 0 , 1 2 8 );• rect(1 6 0 ,1 0 0 ,3 0 ,1 5 0 );

• //b o at 8

• stro k eWe igh t(3 ) ;• stro k e(2 0 5 , 1 4 2 ,1 5 3 );• fi l l (2 5 5 ,1 9 2 ,2 0 3 );

• rect(3 0 ,2 7 0 ,1 5 0 ,3 0 );

•• //mo vin g b o ats• stro keW eigh t(3 ) ;

• stro ke(2 0 5 , 0 ,0 );

• fi l l ( 2 5 5 ,0 , 0 );• rect( x,y,3 0 ,1 5 0 );• i f (x < 3 0 0 ) x = x + a;• i f (x > 2 9 9 ) y = y + b ;

• i f (y > 2 0 0 ) y = 2 0 0 ;•• stro keW eigh t(3 ) ;• stro ke(2 0 5 , 1 1 5 ,0 );

• fi l l ( 2 5 5 ,1 6 5 ,0 );• rect( x,y,1 5 0 ,3 0 );• i f (x < 3 0 0 ) x = x + a;• i f (x > 2 9 9 ) y = y + b ;

• i f (y > 2 0 0 ) y = 2 0 0 ;

• //exp lo s io n s• n o S tro k e();

• fi l l ( 2 5 5 ,0 , 0 );• el l ip se(3 5 0 ,3 5 0 ,w *4 0 ,w*4 0 );• fi l l ( 2 5 5 ,1 6 5 ,0 );• el l ip se(3 5 0 ,3 5 0 ,w *3 0 ,w*3 0 );• fi l l ( 2 5 5 ,2 5 5 ,0 );• el l ip se(3 5 0 ,3 5 0 ,w *2 0 ,w*2 0 );• w = w + t;• i f (w >2 ) t = -t;• i f (w <.2 ) t = -t;•• n o S tro k e();• fi l l ( 2 5 5 ,0 , 0 );• el l ip se(3 5 0 ,1 0 0 ,w *3 0 ,w*3 0 );• fi l l ( 2 5 5 ,1 6 5 ,0 );• el l ip se(3 5 0 ,1 0 0 ,w *2 0 ,w*2 0 );• fi l l ( 2 5 5 ,2 5 5 ,0 );• el l ip se(3 5 0 ,1 0 0 ,w *1 0 ,w*1 0 );• w = w + t;• i f (w >2 ) t = -t;• i f (w <.2 ) t = -t;•• n o S tro k e();• fi l l ( 2 5 5 ,0 , 0 );• el l ip se(1 0 0 ,1 0 0 ,w *3 0 ,w*3 0 );• fi l l ( 2 5 5 ,1 6 5 ,0 );• el l ip se(1 0 0 ,1 0 0 ,w *2 0 ,w*2 0 );• fi l l ( 2 5 5 ,2 5 5 ,0 );• el l ip se(1 0 0 ,1 0 0 ,w *1 0 ,w*1 0 );• w = w + t;• i f (w >2 ) t = -t;• i f (w <.2 ) t = -t;•• }• </scri p t>< can vas>< /can vas>

• <b r>• <b r>

• <scrip t ty p e= "ap p l ica tio n /p ro cess in g ">

• size(7 0 0 , 7 0 0 ) ;• b ackg ro u n d (1 0 0 ,2 5 5 , 2 5 5 );• stro k e(2 5 5 , 2 5 5 ,2 5 5 );• stro k eWe igh t(1 ) ;

• var x = 1 0 0 ;• var y = 1 0 0 ;• var a = 1 5 ;

• var b = 1 5 ;

• vo id d ra w() {•

• x = x + a;• y = y + b ;•• i f (x >= 6 4 0 ) a = -a + (ran d o m(-5 0 ,5 0 )) /3 0 ;

• i f (x <= 6 0 ) a = - a;

•• i f (y >= 6 4 0 ) b = -b ;• i f (y <= 6 0 ) b = -b ;

•• fi l l ( ran d o m (1 ,2 5 5 ),2 5 5 ,2 5 5 );• el l ip se(x ,y,1 2 0 , 1 2 0 );• fi l l ( 0 ,0 ,2 5 0 );

• el l ip se(x ,y,1 0 0 , 1 0 0 );

• fi l l ( 0 ,0 ,2 0 0 );• el l ip se(x ,y,8 0 ,8 0 );• fi l l ( 0 ,0 ,1 5 0 );

• el l ip se(x ,y,6 0 ,6 0 );

• fi l l ( 0 ,0 ,1 0 0 );• el l ip se(x ,y,4 0 ,4 0 );• fi l l ( 0 ,0 ,5 0 );

• el l ip se(x ,y,2 0 ,2 0 );

• }

• </scri p t>< can vas>< /can vas>

• <b r>• <b r>

• <scrip t ty p e= "ap p l ica tio n /p ro cess in g ">

• size(1 1 0 0 , 6 0 0 );

• var xA l l = 0 ;

• var yH an d = 0 ;

• var t= -1 ;

• vo id d ra w() {

• i f (xA l l < 5 0 0 ) xAl l = xA l l + 5 ;

• i f (xA l l > = 5 0 0 ) yHa n d = yHa n d + t;• i f (yH an d >= 3 0 ) t = -t;

• i f (yH an d <= 0 ) t = - t;

• stro k e(2 5 5 , 0 ,0 );• stro k eWe igh t(5 ) ;

• b ackg ro u n d (1 0 0 ,1 0 0 , 1 0 0 );• //b o d y• l in e( 2 0 0 -yH an d ,2 4 0 ,2 0 0 - yHan d , 3 4 0 );

• //h ea d

• el l ip se(2 0 0 -yHa n d , 2 0 0 ,8 0 -yHa n d ,8 0 );• //legs• l in e( 2 0 0 -yH an d ,3 4 0 ,1 7 0 - yHan d , 4 6 0 );

• l in e( 2 0 0 -yH an d ,3 4 0 ,2 3 0 - yHan d , 4 6 0 );

• //u p p er arm s• l in e( 2 0 0 -yH an d ,2 4 0 +y Han d ,1 7 0 , 3 0 0 -yH an d );• l in e( 2 0 0 -yH an d ,2 4 0 +y Han d ,2 2 5 , 3 0 0 -yH an d );

• stro k e(2 5 5 , 1 6 5 ,0 ) ;

• //b o d y

• l in e( 3 0 0 -yH an d ,2 4 0 ,3 0 0 - yHan d , 3 4 0 );

• //h ea d• el l ip se(3 0 0 -yHa n d , 2 0 0 ,8 0 -yHa n d ,8 0 );• //legs• l in e( 3 0 0 -yH an d ,3 4 0 ,2 7 0 - yHan d , 4 6 0 );

• l in e( 3 0 0 -yH an d ,3 4 0 ,3 3 0 - yHan d , 4 6 0 );• //u p p er arm s• l in e( 3 0 0 -yH an d ,2 4 0 ,2 7 0 + yHan d , 3 0 0 -yH an d );• l in e( 3 0 0 -yH an d ,2 4 0 ,3 2 5 + yHan d , 3 0 0 -yH an d );

• stro k e(2 5 5 , 2 5 5 ,0 ) ;

• //b o d y

• l in e( 4 0 0 ,2 4 0 , 4 0 0 -yH an d , 3 4 0 );• //h ea d• el l ip se(4 0 0 ,2 0 0 ,8 0 -yH an d ,8 0 );• //legs

• l in e( 4 0 0 -yH an d ,3 4 0 ,3 7 0 - yHan d , 4 6 0 );• l in e( 4 0 0 -yH an d ,3 4 0 ,4 3 0 - yHan d , 4 6 0 );• //u p p er arm s• l in e( 4 0 0 ,2 4 0 , 3 7 0 +yH an d , 3 0 0 -yH an d );• l in e( 4 0 0 ,2 4 0 , 4 2 5 +yH an d , 3 0 0 +yH an d );

• stro k e(0 , 2 5 5 ,0 );

• //b o d y• l in e( 5 0 0 ,2 4 0 , 5 0 0 -yH an d , 3 4 0 );• //h ea d• el l ip se(5 0 0 ,2 0 0 ,8 0 -yH an d ,8 0 );• //legs• l in e( 5 0 0 -yH an d ,3 4 0 ,4 7 0 - yHan d , 4 6 0 );• l in e( 5 0 0 -yH an d ,3 4 0 ,5 3 0 - yHan d , 4 6 0 );• //u p p er arm s• l in e( 5 0 0 ,2 4 0 , 4 7 0 +yH an d , 3 0 0 +yH an d );• l in e( 5 0 0 ,2 4 0 , 5 2 5 +yH an d , 3 0 0 -yH an d );

• stro k e(0 , 2 5 5 , 2 5 5 );

• //b o d y• l in e( 6 0 0 +yH an d ,2 4 0 ,6 0 0 + yHan d , 3 4 0 );• //h ea d• el l ip se(6 0 0 +yHa n d , 2 0 0 +yHa n d , 8 0 +yHa n d , 8 0 ) ;• //legs• l in e( 6 0 0 +yH an d ,3 4 0 ,5 7 0 + yHan d , 4 6 0 );• l in e( 6 0 0 +yH an d ,3 4 0 ,6 3 0 + yHan d , 4 6 0 );• //u p p er arm s• l in e( 6 0 0 +yH an d ,2 4 0 +y Han d ,5 7 0 - yHan d ,3 0 0 -yHan d );• l in e( 6 0 0 +yH an d ,2 4 0 +y Han d ,6 2 5 - yHan d ,3 0 0 -yHan d );

• stro k e(0 , 0 ,2 5 5 );

• //b o d y• l in e( 7 0 0 +yH an d ,2 4 0 ,7 0 0 + yHan d , 3 4 0 );• //h ea d• el l ip se(7 0 0 +yHa n d , 2 0 0 ,8 0 +yHa n d ,8 0 );• //legs

• l in e( 7 0 0 +yH an d ,3 4 0 ,6 7 0 + yHan d , 4 6 0 );• l in e( 7 0 0 +yH an d ,3 4 0 ,7 3 0 + yHan d , 4 6 0 );• //u p p er arm s• l in e( 7 0 0 +yH an d ,2 4 0 ,6 7 0 - yHan d , 3 0 0 -yH an d );

• l in e( 7 0 0 +yH an d ,2 4 0 ,7 2 5 - yHan d , 3 0 0 -yH an d );

• stro k e(1 2 8 , 0 , 1 2 8 );

• //b o d y• l in e( 8 0 0 +yH an d ,2 4 0 ,8 0 0 + yHan d , 3 4 0 );• //h ea d• el l ip se(8 0 0 +yHa n d , 2 0 0 ,8 0 +yHa n d ,8 0 );

• //legs• l in e( 8 0 0 +yH an d ,3 4 0 ,7 7 0 + yHan d , 4 6 0 );• l in e( 8 0 0 +yH an d ,3 4 0 ,8 3 0 + yHan d , 4 6 0 );• //u p p er arm s

• l in e( 8 0 0 +yH an d ,2 4 0 +y Han d ,7 7 0 , 3 0 0 -yH an d );

• l in e( 8 0 0 +yH an d ,2 4 0 +y Han d ,8 2 5 , 3 0 0 -yH an d );

• stro k e(2 5 5 , 1 9 2 ,2 0 3 );

• //b o d y• l in e( 9 0 0 +yH an d ,2 4 0 ,9 0 0 + yHan d , 3 4 0 );• //h ea d

• el l ip se(9 0 0 +yHa n d , 2 0 0 ,8 0 +yHa n d ,8 0 );

• //legs• l in e( 9 0 0 +yH an d ,3 4 0 ,8 7 0 + yHan d , 4 6 0 );• l in e( 9 0 0 +yH an d ,3 4 0 ,9 3 0 + yHan d , 4 6 0 );

• //u p p er arm s

• l in e( 9 0 0 +yH an d ,2 4 0 +y Han d ,8 7 0 , 3 0 0 -yH an d );• l in e( 9 0 0 +yH an d ,2 4 0 +y Han d ,9 2 5 , 3 0 0 -yH an d );

• }

• </scri p t>< can vas>< /can vas>

• <b r>

• <b r>

• <scrip t ty p e= "ap p l ica tio n /p ro cess in g ">

• size(8 0 0 ,5 1 5 );

• var t = .0 1• var x = 1 . 0 ;

• vo id d ra w() {

• b ack gro u n d (1 0 ,1 0 ,1 0 );

• x = x - t;

• i f(x < 0 . 0 ) t = -t ;

• i f(x > 1 . 0 ) t = -t ;

•• //sta rs

• stro ke(ra n d o m(1 ,2 5 5 ), ran d o m (1 ,2 5 5 ),ra n d o m(1 ,2 5 5 ));

• fi l l ( ran d o m (1 ,2 5 5 ),ran d o m(1 ,2 5 5 ),r an d o m( 1 ,2 5 5 ) );• el l ip se(r an d o m( 1 ,8 0 0 ) ,ran d o m (1 , 5 0 0 ),1 ,1 );• stro ke(ra n d o m(1 ,2 5 5 ), ran d o m (1 ,2 5 5 ),ra n d o m(1 ,2 5 5 ));

• fi l l ( ran d o m (1 ,2 5 5 ),ran d o m(1 ,2 5 5 ),r an d o m( 1 ,2 5 5 ) );

• el l ip se(r an d o m( 1 ,8 0 0 ) ,ran d o m (1 , 5 0 0 ),1 ,1 );• stro ke(ra n d o m(1 ,2 5 5 ), ran d o m (1 ,2 5 5 ),ra n d o m(1 ,2 5 5 ));• fi l l ( ran d o m (1 ,2 5 5 ),ran d o m(1 ,2 5 5 ),r an d o m( 1 ,2 5 5 ) );

• el l ip se(r an d o m( 1 ,8 0 0 ) ,ran d o m (1 , 5 0 0 ),1 ,1 );

• stro ke(ra n d o m(1 ,2 5 5 ), ran d o m (1 ,2 5 5 ),ra n d o m(1 ,2 5 5 ));• fi l l ( ran d o m (1 ,2 5 5 ),ran d o m(1 ,2 5 5 ),r an d o m( 1 ,2 5 5 ) );• el l ip se(r an d o m( 1 ,8 0 0 ) ,ran d o m (1 , 5 0 0 ),1 ,1 );

• stro ke(ra n d o m(1 ,2 5 5 ), ran d o m (1 ,2 5 5 ),ra n d o m(1 ,2 5 5 ));

• fi l l ( ran d o m (1 ,2 5 5 ),ran d o m(1 ,2 5 5 ),r an d o m( 1 ,2 5 5 ) );• el l ip se(r an d o m( 1 ,8 0 0 ) ,ran d o m (1 , 5 0 0 ),1 ,1 );• stro ke(ra n d o m(1 ,2 5 5 ), ran d o m (1 ,2 5 5 ),ra n d o m(1 ,2 5 5 ));

• fi l l ( ran d o m (1 ,2 5 5 ),ran d o m(1 ,2 5 5 ),r an d o m( 1 ,2 5 5 ) );

• el l ip se(r an d o m( 1 ,8 0 0 ) ,ran d o m (1 , 5 0 0 ),1 ,1 );• stro ke(ra n d o m(1 ,2 5 5 ), ran d o m (1 ,2 5 5 ),ra n d o m(1 ,2 5 5 ));• fi l l ( ran d o m (1 ,2 5 5 ),ran d o m(1 ,2 5 5 ),r an d o m( 1 ,2 5 5 ) );

• el l ip se(r an d o m( 1 ,8 0 0 ) ,ran d o m (1 , 5 0 0 ),1 ,1 );

• stro ke(ra n d o m(1 ,2 5 5 ), ran d o m (1 ,2 5 5 ),ra n d o m(1 ,2 5 5 ));• fi l l ( ran d o m (1 ,2 5 5 ),ran d o m(1 ,2 5 5 ),r an d o m( 1 ,2 5 5 ) );• el l ip se(r an d o m( 1 ,8 0 0 ) ,ran d o m (1 , 5 0 0 ),1 ,1 );• stro ke(ra n d o m(1 ,2 5 5 ), ran d o m (1 ,2 5 5 ),ra n d o m(1 ,2 5 5 ));

• fi l l ( ran d o m (1 ,2 5 5 ),ran d o m(1 ,2 5 5 ),r an d o m( 1 ,2 5 5 ) );• el l ip se(r an d o m( 1 ,8 0 0 ) ,ran d o m (1 , 5 0 0 ),1 ,1 );• stro ke(ra n d o m(1 ,2 5 5 ), ran d o m (1 ,2 5 5 ),ra n d o m(1 ,2 5 5 ));• fi l l ( ran d o m (1 ,2 5 5 ),ran d o m(1 ,2 5 5 ),r an d o m( 1 ,2 5 5 ) );

• el l ip se(r an d o m( 1 ,8 0 0 ) ,ran d o m (1 , 5 0 0 ),1 ,1 );• stro ke(ra n d o m(1 ,2 5 5 ), ran d o m (1 ,2 5 5 ),ra n d o m(1 ,2 5 5 ));• fi l l ( ran d o m (1 ,2 5 5 ),ran d o m(1 ,2 5 5 ),r an d o m( 1 ,2 5 5 ) );• el l ip se(r an d o m( 1 ,8 0 0 ) ,ran d o m (1 , 5 0 0 ),1 ,1 );

• stro ke(ra n d o m(1 ,2 5 5 ), ran d o m (1 ,2 5 5 ),ra n d o m(1 ,2 5 5 ));• fi l l ( ran d o m (1 ,2 5 5 ),ran d o m(1 ,2 5 5 ),r an d o m( 1 ,2 5 5 ) );• el l ip se(r an d o m( 1 ,8 0 0 ) ,ran d o m (1 , 5 0 0 ),1 ,1 );• stro ke(ra n d o m(1 ,2 5 5 ), ran d o m (1 ,2 5 5 ),ra n d o m(1 ,2 5 5 ));

• fi l l ( ran d o m (1 ,2 5 5 ),ran d o m(1 ,2 5 5 ),r an d o m( 1 ,2 5 5 ) );• el l ip se(r an d o m( 1 ,8 0 0 ) ,ran d o m (1 , 5 0 0 ),1 ,1 );• stro ke(ra n d o m(1 ,2 5 5 ), ran d o m (1 ,2 5 5 ),ra n d o m(1 ,2 5 5 ));• fi l l ( ran d o m (1 ,2 5 5 ),ran d o m(1 ,2 5 5 ),r an d o m( 1 ,2 5 5 ) );• el l ip se(r an d o m( 1 ,8 0 0 ) ,ran d o m (1 , 5 0 0 ),1 ,1 );• stro ke(ra n d o m(1 ,2 5 5 ), ran d o m (1 ,2 5 5 ),ra n d o m(1 ,2 5 5 ));• fi l l ( ran d o m (1 ,2 5 5 ),ran d o m(1 ,2 5 5 ),r an d o m( 1 ,2 5 5 ) );• el l ip se(r an d o m( 1 ,8 0 0 ) ,ran d o m (1 , 5 0 0 ),1 ,1 );• stro ke(ra n d o m(1 ,2 5 5 ), ran d o m (1 ,2 5 5 ),ra n d o m(1 ,2 5 5 ));• fi l l ( ran d o m (1 ,2 5 5 ),ran d o m(1 ,2 5 5 ),r an d o m( 1 ,2 5 5 ) );• el l ip se(r an d o m( 1 ,8 0 0 ) ,ran d o m (1 , 5 0 0 ),1 ,1 );• stro ke(ra n d o m(1 ,2 5 5 ), ran d o m (1 ,2 5 5 ),ra n d o m(1 ,2 5 5 ));• fi l l ( ran d o m (1 ,2 5 5 ),ran d o m(1 ,2 5 5 ),r an d o m( 1 ,2 5 5 ) );• el l ip se(r an d o m( 1 ,8 0 0 ) ,ran d o m (1 , 5 0 0 ),1 ,1 );• stro ke(ra n d o m(1 ,2 5 5 ), ran d o m (1 ,2 5 5 ),ra n d o m(1 ,2 5 5 ));• fi l l ( ran d o m (1 ,2 5 5 ),ran d o m(1 ,2 5 5 ),r an d o m( 1 ,2 5 5 ) );• el l ip se(r an d o m( 1 ,8 0 0 ) ,ran d o m (1 , 5 0 0 ),1 ,1 );• stro ke(ra n d o m(1 ,2 5 5 ), ran d o m (1 ,2 5 5 ),ra n d o m(1 ,2 5 5 ));• fi l l ( ran d o m (1 ,2 5 5 ),ran d o m(1 ,2 5 5 ),r an d o m( 1 ,2 5 5 ) );• el l ip se(r an d o m( 1 ,8 0 0 ) ,ran d o m (1 , 5 0 0 ),1 ,1 );• stro ke(ra n d o m(1 ,2 5 5 ), ran d o m (1 ,2 5 5 ),ra n d o m(1 ,2 5 5 ));• fi l l ( ran d o m (1 ,2 5 5 ),ran d o m(1 ,2 5 5 ),r an d o m( 1 ,2 5 5 ) );• el l ip se(r an d o m( 1 ,8 0 0 ) ,ran d o m (1 , 5 0 0 ),1 ,1 );• stro ke(ra n d o m(1 ,2 5 5 ), ran d o m (1 ,2 5 5 ),ra n d o m(1 ,2 5 5 ));• fi l l ( ran d o m (1 ,2 5 5 ),ran d o m(1 ,2 5 5 ),r an d o m( 1 ,2 5 5 ) );• el l ip se(r an d o m( 1 ,8 0 0 ) ,ran d o m (1 , 5 0 0 ),1 ,1 );• stro ke(ra n d o m(1 ,2 5 5 ), ran d o m (1 ,2 5 5 ),ra n d o m(1 ,2 5 5 ));• fi l l ( ran d o m (1 ,2 5 5 ),ran d o m(1 ,2 5 5 ),r an d o m( 1 ,2 5 5 ) );• el l ip se(r an d o m( 1 ,8 0 0 ) ,ran d o m (1 , 5 0 0 ),1 ,1 );• stro ke(ra n d o m(1 ,2 5 5 ), ran d o m (1 ,2 5 5 ),ra n d o m(1 ,2 5 5 ));• fi l l ( ran d o m (1 ,2 5 5 ),ran d o m(1 ,2 5 5 ),r an d o m( 1 ,2 5 5 ) );• el l ip se(r an d o m( 1 ,8 0 0 ) ,ran d o m (1 , 5 0 0 ),1 ,1 );• stro ke(ra n d o m(1 ,2 5 5 ), ran d o m (1 ,2 5 5 ),ra n d o m(1 ,2 5 5 ));• fi l l ( ran d o m (1 ,2 5 5 ),ran d o m(1 ,2 5 5 ),r an d o m( 1 ,2 5 5 ) );• el l ip se(r an d o m( 1 ,8 0 0 ) ,ran d o m (1 , 5 0 0 ),1 ,1 );• stro ke(ra n d o m(1 ,2 5 5 ), ran d o m (1 ,2 5 5 ),ra n d o m(1 ,2 5 5 ));• fi l l ( ran d o m (1 ,2 5 5 ),ran d o m(1 ,2 5 5 ),r an d o m( 1 ,2 5 5 ) );• el l ip se(r an d o m( 1 ,8 0 0 ) ,ran d o m (1 , 5 0 0 ),1 ,1 );•

• //su n• n o S tro k e();• fi l l ( 2 5 5 ,2 5 5 ,0 0 ) ;• el l ip se(4 0 0 ,2 5 5 ,1 0 0 , 1 0 0 );

•• //p l an et o rb i ts• n o F i l l () ;• stro ke(2 5 5 , 2 5 5 ,2 5 5 );

• el l ip se(4 0 0 ,2 5 5 ,x *2 0 0 ,1 5 0 ); // x i s a p ercen tage • el l ip se(4 0 0 ,2 5 5 ,( 1 -x)* 2 5 0 ,2 0 0 ); //o p p o si te p at h o f o t h er o rb i t• el l ip se(4 0 0 ,2 5 5 ,x *3 0 0 ,2 5 0 );• el l ip se(4 0 0 ,2 5 5 ,( 1 -x)* 3 5 0 ,3 0 0 );

• el l ip se(4 0 0 ,2 5 5 ,x *4 0 0 ,3 5 0 );• el l ip se(4 0 0 ,2 5 5 ,( 1 -x)* 4 5 0 ,4 0 0 );• el l ip se(4 0 0 ,2 5 5 ,x *5 0 0 ,4 5 0 );• el l ip se(4 0 0 ,2 5 5 ,( 1 -x)* 5 5 0 ,5 0 0 );

•• //p l an et s• n o S tro k e();• fi l l ( 2 5 5 ,0 , 0 );

• el l ip se(4 0 0 -x*1 0 0 ,2 5 5 ,1 5 ,1 5 );

• fi l l ( 2 5 5 ,1 6 5 ,0 );• el l ip se(5 2 5 -x*1 2 5 ,2 5 5 ,2 0 ,2 0 );• fi l l ( 2 0 5 ,2 0 5 ,0 );

• el l ip se(4 0 0 +x*1 5 0 ,2 5 5 ,2 5 ,2 5 );

• fi l l ( 0 ,2 5 5 , 0 );• el l ip se(2 2 5 +x*1 7 5 ,2 5 5 ,1 5 ,1 5 );• fi l l ( 0 ,2 5 5 , 2 5 5 );

• el l ip se(4 0 0 -x*2 0 0 ,2 5 5 ,2 0 ,2 0 );

• fi l l ( 0 ,0 ,2 5 5 );• el l ip se(6 2 5 -x*2 2 5 ,2 5 5 ,2 5 ,2 5 );• fi l l ( 1 2 8 ,0 , 1 2 8 );

• el l ip se(4 0 0 +x*2 5 0 ,2 5 5 ,3 0 ,3 0 );

• fi l l ( 2 5 5 ,1 9 2 ,2 0 3 );• el l ip se(1 2 5 +x*2 7 5 ,2 5 5 ,3 5 ,3 5 );

•• //UF O

• n o S tro k e();• fi l l ( 1 0 0 ,1 0 0 ,1 0 0 );

• el l ip se(1 2 5 +x*7 0 0 ,2 7 5 ,1 0 0 ,1 0 0 );

• fi l l ( 5 0 , 5 0 , 5 0 ) ;

• el l ip se(1 5 0 +x*7 0 0 ,3 2 5 ,5 0 ,5 0 );• el l ip se(1 0 0 +x*7 0 0 ,3 2 5 ,5 0 ,5 0 );

• fi l l ( 5 0 , 7 5 , 5 0 ) ;

• q u a d (2 2 5 + x*7 0 0 , 3 2 5 ,1 7 5 +x* 7 0 0 ,2 7 5 , 7 5 +x *7 0 0 ,2 7 5 , 2 5 + x*7 0 0 ,3 2 5 );

• }

• </scri p t>< can vas>< /can vas>

• <b r>• <b r>

• <a h r ef="fi le: ///C :/Us ers/s tu d e n t/D o c u me n ts/ Gab riel le /in d ex. h tm "> C LIC K HER E TO SE E M Y OT HER P R O JEC TS</ a>

• </cen ter>

• </b o d y>