GTGE API

com.golden.gamedev.funbox
Class LibInfo

java.lang.Object
  extended by com.golden.gamedev.Game
      extended by com.golden.gamedev.funbox.LibInfo

public class LibInfo
extends Game

Class to inform beginner GTGE users that GTGE is a library, thus it can't be run by double clicking it like a normal application, GTGE does not have any GUI/form/frame.


Field Summary
 
Fields inherited from class com.golden.gamedev.Game
bsGraphics, bsInput, bsIO, bsLoader, bsMusic, bsSound, bsTimer, distribute, fontManager, GTGE_VERSION
 
Constructor Summary
LibInfo()
          LibInfo class constructor, do nothing.
 
Method Summary
 void initResources()
          All game resources initialization, everything that usually goes to constructor should be put in here.
static void main(String[] args)
          Main method to run this info frame.
 void render(Graphics2D g)
          Renders game to the screen.
 void update(long elapsedTime)
          Updates game variables.
 
Methods inherited from class com.golden.gamedev.Game
checkPosMouse, checkPosMouse, click, drawFPS, finish, getCurrentFPS, getFPS, getHeight, getImage, getImage, getImages, getImages, getImages, getImages, getImages, getImages, getMouseX, getMouseY, getRandom, getWidth, hideCursor, initEngine, isDistribute, isFinish, isRunning, keyDown, keyPressed, notifyError, notifyExit, playMusic, playSound, rightClick, setFPS, setMaskColor, showCursor, showLogo, start, stop, takeScreenShot, takeScreenShot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LibInfo

public LibInfo()
LibInfo class constructor, do nothing.

Method Detail

initResources

public void initResources()
Description copied from class: Game
All game resources initialization, everything that usually goes to constructor should be put in here.

This method is called only once for every newly created Game class.

Specified by:
initResources in class Game
See Also:
Game.getImage(String), Game.getImages(String, int, int), Game.playMusic(String), Game.setMaskColor(Color), com.golden.gamedev.object

update

public void update(long elapsedTime)
Description copied from class: Game
Updates game variables.

Specified by:
update in class Game
See Also:
Game.keyDown(int), Game.keyPressed(int)

render

public void render(Graphics2D g)
Description copied from class: Game
Renders game to the screen.

Specified by:
render in class Game
Parameters:
g - backbuffer graphics context

main

public static void main(String[] args)
Main method to run this info frame.


GTGE API

Copyright © 2003-2005 Golden T Studios. All rights reserved. Use is subject to license terms.
GoldenStudios.or.id