package com.stewesho.wator;

import com.badlogic.gdx.ApplicationAdapter;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.OrthographicCamera;

public class Main extends ApplicationAdapter {
	SpriteBatch batch;
	OrthographicCamera cam;
	WorldManager world;

	@Override
	public void create () {
		batch = new SpriteBatch();
		cam = new OrthographicCamera(50, 50);
		world = new WorldManager(25, 25);
	}

	@Override
	public void render () {
		Gdx.gl.glClearColor(0.250f, 0.250f, 0.300f, 1.000f);
		Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);

		batch.setProjectionMatrix(cam.combined);
		batch.begin();

		batch.draw(world.run(), -world.getMap.getWidth()/2, -world.getMap.getHeight()/2);

		batch.end();
	}

	@Override
	public void dispose () {
		batch.dispose();
		// map.disposeResources();
	}
}

@@ -375,29 +375,8 @@
 cam;
-%0A%09WorldManager world;
 %0A%0A%09@
@@ -482,44 +482,8 @@
 0);%0A
-%09%09world = new WorldManager(25, 25);%0A
 %09%7D%0A%0A
@@ -677,24 +677,27 @@
 begin();%0A%0A%09%09
+// 
 batch.draw(w
@@ -699,32 +699,24 @@
 raw(
-world.run(), -world.getM
+map.render(), -m
 ap.g
@@ -733,18 +733,9 @@
 2, -
-world.getM
+m
 ap.g

Revert "added entity lists(libgdx arrays) for fishes and sharks"