java.lang.Runnablepublic class Game
extends java.lang.Object
implements java.lang.Runnable
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
version |
current version
|
| Constructor | Description |
|---|---|
Game(java.lang.String title,
int width,
int height) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
run() |
Code of the main game thread.
|
void |
start() |
Starts main game thread.
|
void |
stop() |
Stops main game thread and closes the game window.
|
public Game(java.lang.String title,
int width,
int height)
title - title of the game windowwidth - width of the game windowheight - height of the game windowpublic void run()
run in interface java.lang.Runnablepublic void start()
public void stop()