Tutorial2/ImageSprite/Example

From FANG

Revision as of 19:10, 5 May 2009 by Jam Jenkins (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

01 package Tutorial2.ImageSprite;
02 
03 import wiki.Wiki;
04 import fang.*;
05 import java.awt.*;
06 import java.awt.geom.*;
07 
08 /**
09  * All about my game here.
10  @author Jam Jenkins
11  */
12 public class Example extends Game
13 {
14    private ImageSprite sprite;
15 
16    public void setup()
17    {
18       sprite=new ImageSprite("Jam.jpg");
19       sprite.setScale(0.5);
20       sprite.setLocation(0.50.5);
21 
22       addSprite(sprite);
23 
24       String helpText="No help needed, this just displays an image.";
25       setHelpText(helpText);
26    }
27 }


Download/View Tutorial2/ImageSprite/Example.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

Games
Games