scg/ch03/Hello

From FANG

Jump to: navigation, search

01 package scg.ch03;
02 
03 import fang2.core.Game;
04 import fang2.sprites.StringSprite;
05 
06 // FANG Demonstration program: StringSprite
07 public class Hello
08   extends Game {
09   // Called before game loop: Draws one string
10   @Override
11   public void setup() {
12     StringSprite string = new StringSprite("Hello");
13     string.setLineHeight(0.25);
14     string.setColor(getColor("misty rose"));
15     string.setLocation(0.50.5);
16     addSprite(string);
17   }
18 }
19 
20 //Uploaded on Mon Mar 29 21:39:51 EDT 2010


Download/View scg/ch03/Hello.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