ArbitraryPathExample

From ggc

Jump to: navigation, search

01 import fang.*;
02 import java.awt.*;
03 import java.awt.geom.*;
04 import Beta.*;
05 
06 /**
07  * All about my game here.
08  @author Jam Jenkins
09  */
10 public class ArbitraryPathExample extends GameLoop
11 {
12   /**an oval*/
13   private Sprite oval;
14   private OutlineTracker track;
15   /**sets up the game*/
16   public void startGame()
17   {
18     makeSprites();
19     addSprites();
20   }
21 
22   /**makes the sprites*/
23   private void makeSprites()
24   {
25     oval=new OvalSprite(21);
26     oval.setScale(0.75);
27     oval.setLocation(0.50.5);
28     track=new OutlineTracker(0.2001100);
29     track.setLooping(true);
30     oval.setTracker(track);
31     oval.setLocation(track.getCurrentPoint());
32   }
33 
34   /**adds the sprites to the screen*/
35   private void addSprites()
36   {
37     canvas.addSprite(oval);
38   }
39 }

Compiler Errors:
----------
1. ERROR in ArbitraryPathExample.java (at line 14)
	private OutlineTracker track;
	        ^^^^^^^^^^^^^^
The type OutlineTracker is ambiguous
----------
2. ERROR in ArbitraryPathExample.java (at line 28)
	track=new OutlineTracker(0.2, 0, 0, 1, 1, 0, 0);
	^^^^^
track cannot be resolved
----------
6 problems (6 errors)

Download/View ArbitraryPathExample.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