Class Demo2D

  • All Implemented Interfaces:
    Scene

    public class Demo2D
    extends java.lang.Object
    implements Scene
    Simple demo application that displays a number of animated Mario sprites on top of a black background.

    The demo application serves two purposes. First, it can be used as an example application when using the framework to implement an application. Second, it can be used for verification purposes to determine if a new platform is fully supported.

    The demo application can be started from the command line using the DemoLauncher. It can also be embedded in applications by creating an instance of this class from the application code.

    • Constructor Detail

      • Demo2D

        public Demo2D()
    • Method Detail

      • start

        public void start​(Application app)
        Description copied from interface: Scene
        Initiallization logic that should be performed every time the scene is started. This method is called by the application that contains the scene.
        Specified by:
        start in interface Scene
      • update

        public void update​(Application app,
                           float deltaTime)
        Specified by:
        update in interface Scene
      • addMarios

        public void addMarios​(int amount)