101102103104105106107108109110111
sceneStack = new Stack<Scene>(); pushScene(new MainMenuScene()); pushScene(new DebugOverlay()); clock = new SimpleClock(); while (running) { beginStep(); // Get a copy of the scene stack Scene[] array = new Scene[sceneStack.size()];
17181920212223
import engine.interfaces.Sound; import engine.interfaces.Font.Style; public final class Factory { public static Clock makeClock() { return new SimpleClock(); }