java.lang.Object
com.codingame.gameengine.module.entities.World

public class World extends Object
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 Details

    • DEFAULT_WIDTH

      public static final int DEFAULT_WIDTH
      The default World's width.
      See Also:
    • DEFAULT_HEIGHT

      public static final int DEFAULT_HEIGHT
      The 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.