Main namespace for FGGE. More...
Namespaces | |
package | GUI |
GUI Management tools. | |
package | Keyboard |
Manage input from keyboard. | |
package | Media |
Sound related tools. | |
package | Mouse |
Manage input from mouse. | |
package | Renderer |
Rendering tools. | |
package | Saving |
Saving/Loading tools. | |
package | Touch |
Manage input from touchscreen on touch-enabled devices. | |
Functions | |
startGame (var gameFunction) | |
Load media and start game. | |
Main namespace for FGGE.
This namespace contains all FGGE classes and functions and it is accessible from anywhere.
GameEngine.startGame | ( | var | gameFunction | ) |
Load media and start game.
Place this after setting all your objects, gameFunction will be called continuously as all objects will be loaded.
This is useful to start executing the game only when everything is ready, this will prevent freezing to load additional media.
gameFunction | A function to be called continuously (every frame). |