@Override public void render(float delta) { Engine.getSpriteBatch().begin(); sprite.render(delta); Engine.getDefaultFont().draw(Engine.getSpriteBatch(), "This is scene A", 200, 200); Engine.getSpriteBatch().end(); }
private SceneA() { sprite = new AdvanceSprite(Engine.resource("A", Texture.class)); sprite.setSize(Engine.getWidth(), Engine.getHeight()); sprite.setColor(Color.RED); }