|
GTGE API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.golden.gamedev.Game
com.golden.gamedev.funbox.LibInfo
public class LibInfo
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 |
|---|
public LibInfo()
LibInfo class constructor, do nothing.
| Method Detail |
|---|
public void initResources()
Game
This method is called only once for every newly created Game
class.
initResources in class GameGame.getImage(String),
Game.getImages(String, int, int),
Game.playMusic(String),
Game.setMaskColor(Color),
com.golden.gamedev.objectpublic void update(long elapsedTime)
Game
update in class GameGame.keyDown(int),
Game.keyPressed(int)public void render(Graphics2D g)
Game
render in class Gameg - backbuffer graphics contextpublic static void main(String[] args)
|
GTGE API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||