Class World
java.lang.Object
com.codingame.gameengine.module.entities.World
The World represents a coordinate mapping from the positions of entities to the pixels on screen. The viewer's canvas has 1920x1080 pixels and so
the default World's width and height are also 1920 and 1080.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The default World's height.static final int
The default World's width. -
Method Summary
-
Field Details
-
DEFAULT_WIDTH
public static final int DEFAULT_WIDTHThe default World's width.- See Also:
-
DEFAULT_HEIGHT
public static final int DEFAULT_HEIGHTThe default World's height.- See Also:
-
-
Method Details
-
getWidth
public int getWidth()Returns the width of this world.- Returns:
- the width of this world.
-
getHeight
public int getHeight()Returns the height of this world.- Returns:
- the height of this world.
-