game with fullscreen mode, 640x480 screen resolution game.setup(<b>new YourGame()</b>, new Dimension(640,480), true); game.start(); } }
In applet mode, GameLoader
class need to be subclassed and override {@link #createAppletGame()} method to return the actual game :
public class YourGameApplet extends GameLoader { protected Game createAppletGame() { return new YourGame(); } }
Then point the applet tag code to that
GameLoader
subclass :
(html page)
<html> <head> </head> <body> <applet code="<b>gamepackage.YourGameApplet.class</b>" archive="<b>yourgamearchive.jar,golden_x_x_x.jar</b>" width=640 height=480> </applet> </body> </html>
@see #setup(Game,Dimension,boolean,boolean)
@see #start()
@see #createAppletGame()