// Key constants public static final int FIRE = 0; public static final int UP = FIRE + 1; public static final int DOWN = UP + 1; public static final int LEFT = DOWN + 1; public static final int RIGHT = LEFT + 1;
// Global identity matrix Transform identity = new Transform();
// Global Graphics3D object Graphics3D g3d = null;
/** Constructs the canvas */ public M3GCanvas(int fps) { // We don't want to capture keys normally super(true);
// We want a fullscreen canvas setFullScreenMode(true);
// Load our world loadWorld();
// Load our camera loadCamera(); }
/** When fullscreen mode is set, some devices will call * this method to notify us of the new width/height. * However, we don't really care about the width/height * in this tutorial so we just let it be */