Package nl.colorize.multimedialib.tool
Class DemoApplication
- java.lang.Object
-
- nl.colorize.multimedialib.tool.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 when using the framework to implement applications. 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 embedding this class directly.
-
-
Constructor Summary
Constructors Constructor Description DemoApplication(Renderer renderer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMarios(int amount)voidrender(GraphicsContext context)voidstart(SceneContext sceneContext)voidupdate(float deltaTime)Updates this object for the current frame.
-
-
-
Constructor Detail
-
DemoApplication
public DemoApplication(Renderer renderer)
-
-
Method Detail
-
start
public void start(SceneContext sceneContext)
-
update
public void update(float deltaTime)
Description copied from interface:UpdatableUpdates this object for the current frame.
-
render
public void render(GraphicsContext context)
- Specified by:
renderin interfaceRenderable
-
addMarios
public void addMarios(int amount)
-
-