jam/SpriteMosaic

From ggc

Jump to: navigation, search

01 package jam;
02 
03 import fang.*;
04 import java.awt.*;
05 import java.awt.geom.*;
06 
07 /**
08  * All about my game.
09  @author My Name Here
10  */
11 public class SpriteMosaic extends Game
12 {
13   /**sets up the game*/
14   public void setup()
15   {
16     PieSprite pie=new PieSprite(.5.12545180);
17     //pie.setSize(0.25);
18     pie.setLocation(0.50.7);
19     pie.setColor(Palette.getColor("Midnight Blue"));
20     addSprite(pie);
21 
22     PieSprite pie2=new PieSprite(10.545180);
23     pie2.setSize(0.5);
24     pie2.setLocation(0.70.7);
25     pie2.setColor(Palette.getColor("Midnight Blue"));
26     addSprite(pie2);
27 
28     PolygonSprite poly=new PolygonSprite(
29                            0.00.0,
30                            1.00.0,
31                            0.01.0);
32     poly.setLocation(0.50.5);
33     addSprite(poly);
34   }
35 
36   /**handle input and game events*/
37   public void advance()
38   {}
39 }


Download/View jam/SpriteMosaic.java





Views
Personal tools
Add to 
del.icio.usAdd to 
diggAdd to 
FacebookAdd to 
favoritesAdd to 
GoogleAdd to 
MySpaceAdd to 
PrintAdd to 
SlashdotAdd to 
StumbleUponAdd to 
Twitter