public class World
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) boolean[][] |
fields |
boolean |
gameOver |
(package private) static int |
grassColumnNO |
(package private) Pixmap[][] |
grassPixmap |
(package private) int[][] |
grassPosX |
(package private) int[][] |
grassPosY |
(package private) static int |
grassRowNO |
Player |
player |
int |
score |
(package private) static int |
SCORE_INCREMENT |
(package private) static float |
tick |
(package private) static float |
TICK_DECREMENT |
(package private) static float |
TICK_INITIAL |
(package private) float |
tickTime |
(package private) static int |
WORLD_HEIGHT |
(package private) static int |
WORLD_WIDTH |
Constructor and Description |
---|
World()
The constructor is initialising the grass and creating a natural effect of grass, by randomly picking the left side grass picture or the right
|
static final int WORLD_WIDTH
static final int WORLD_HEIGHT
static final int SCORE_INCREMENT
static final float TICK_INITIAL
static final float TICK_DECREMENT
public Player player
public boolean gameOver
public int score
boolean[][] fields
float tickTime
static float tick
static final int grassColumnNO
static final int grassRowNO
int[][] grassPosX
int[][] grassPosY
Pixmap[][] grassPixmap