Java tutorial
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.jmd.asteroidshooter; import com.badlogic.gdx.Game; import com.badlogic.gdx.graphics.g2d.BitmapFont; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.jmd.asteroidshooter.screens.MainMenuScreen; /** * * @author jared */ public class AsteroidShooterGame extends Game { private SpriteBatch batch; private BitmapFont font; @Override public void create() { batch = new SpriteBatch(); font = new BitmapFont(); this.setScreen(new MainMenuScreen(this)); } public void render() { super.render(); } public void dispose() { batch.dispose(); font.dispose(); } public SpriteBatch getSpriteBatch() { return batch; } }