
package utm.csc492.diamondfire;

import com.badlogic.gdx.ApplicationAdapter;
import com.badlogic.gdx.Game;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
//import com.badlogic.gdx.graphics.GL10;
//import com.badlogic.gdx.graphics.Texture;
//import com.badlogic.gdx.graphics.g2d.SpriteBatch;

import utm.csc492.diamondfire.screens.CityScreen;
import utm.csc492.diamondfire.screens.Test;


public class DiamondFire extends ApplicationAdapter {

    private Screen screen;


	//SpriteBatch batch;
	//Texture img;
	
	@Override
	public void create () {
		//batch = new SpriteBatch();
		//img = new Texture("badlogic.jpg");
//		try {
//			new FreeTypeFontGenerator(Gdx.files.internal("test.fnt"));
//		} catch(Exception e) {
//			e.printStackTrace();
//		}
//		Bullet.init();

        setScreen(new CityScreen(this));
	}

	@Override
	public void render () {
		/*
		Gdx.gl.glClearColor(1, 0, 0, 1);
		Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
		batch.begin();
		batch.draw(img, 0, 0);
		batch.end();
		*/

        if (screen != null) screen.render(Gdx.graphics.getDeltaTime());
    }

    /** use to set current screen **/
    public void setScreen (Screen screen) {
        if (this.screen != null) this.screen.hide();
        this.screen = screen;
        if (this.screen != null) {
            this.screen.show();
            this.screen.resize(Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
        }
    }

    /** return currently active screen **/
    public Screen getScreen () {
        return screen;
    }
}

@@ -1,9 +1,8 @@
-%0A
 package 
@@ -164,145 +164,8 @@
 een;
-%0A//import com.badlogic.gdx.graphics.GL10;%0A//import com.badlogic.gdx.graphics.Texture;%0A//import com.badlogic.gdx.graphics.g2d.SpriteBatch;
 %0A%0Aim
@@ -216,52 +216,8 @@
 en;%0A
-import utm.csc492.diamondfire.screens.Test;%0A
 %0A%0Apu
@@ -301,535 +301,124 @@
 n;%0A%0A
-%0A%09//SpriteBatch batch;%0A%09//Texture img;%0A%09%0A%09@Override%0A%09public void create () %7B%0A%09%09//batch = new SpriteBatch();%0A%09%09//img = new Texture(%22badlogic.jpg%22);%0A//%09%09try %7B%0A//%09%09%09new FreeTypeFontGenerator(Gdx.files.internal(%22test.fnt%22));%0A//%09%09%7D catch(Exception e) %7B%0A//%09%09%09e.printStackTrace();%0A//%09%09%7D%0A//%09%09Bullet.init();%0A%0A        setScreen(new CityScreen(this));%0A%09%7D%0A%0A%09@Override%0A%09public void render () %7B%0A%09%09/*%0A%09%09Gdx.gl.glClearColor(1, 0, 0, 1);%0A%09%09Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT);%0A%09%09batch.begin();%0A%09%09batch.draw(img, 0, 0);%0A%09%09batch.end();%0A%09%09*/%0A
+%09@Override%0A%09public void create () %7B%0A        setScreen(new CityScreen(this));%0A%09%7D%0A%0A%09@Override%0A%09public void render () %7B
 %0A   

Remove some commented out code.