Class DemoApplication

  • All Implemented Interfaces:
    Renderable, Scene, Updatable

    public class DemoApplication
    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

      • DemoApplication

        public DemoApplication​(Renderer renderer)
    • Method Detail

      • update

        public void update​(float deltaTime)
        Description copied from interface: Updatable
        Updates this object for the current frame.
        Specified by:
        update in interface Updatable
        Parameters:
        deltaTime - Elapsed time since the last frame, in seconds.
      • addMarios

        public void addMarios​(int amount)