halive.shootinoutside.ShootinOutside.java Source code

Java tutorial

Introduction

Here is the source code for halive.shootinoutside.ShootinOutside.java

Source

/*******************************************************************************
 * Copyright (c) HALive, 2015.
 * For Licence information see LICENSE.md
 ******************************************************************************/

package halive.shootinoutside;

import com.badlogic.gdx.Game;
import halive.shootinoutside.menu.MainMenu;
import halive.shootinoutside.util.RenderThreadTaskScheduler;

public class ShootinOutside extends Game {

    private RenderThreadTaskScheduler scheduler;

    @Override
    public void render() {
        scheduler.runTasks();
        super.render();
    }

    @Override
    public void create() {
        scheduler = new RenderThreadTaskScheduler();
        setScreen(new MainMenu(this));
    }

    public RenderThreadTaskScheduler getScheduler() {
        return scheduler;
    }
}