new texture added and everything resized; worked on spawning and collision checking

This commit is contained in:
2017-05-31 13:49:18 -05:00
parent 5776586458
commit 70bf120a5f
67 changed files with 73 additions and 33 deletions

View File

@@ -1,5 +1,6 @@
package zero1hd.polyjet.entity;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.assets.AssetManager;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
@@ -23,6 +24,8 @@ public class EntityController {
public EntityController(ShapeRenderer shapeRenderer, AssetManager assetManager) {
ACTIVE_ALLIES = new Array<Entity>();
ACTIVE_ENEMIES = new Array<Entity>();
this.assets = assetManager;
this.shapes = shapeRenderer;
//Enemy pool initialization;
VOID_CIRCLE_POOL = new Pool<VoidCircle>() {
@@ -43,6 +46,7 @@ public class EntityController {
}
public Entity retrieveEntity(Entities entity) {
Gdx.app.debug("EntityController", "spawning entity " + entity.name());
switch (entity) {
case VOID_CIRCLE:
VoidCircle voidCircle = VOID_CIRCLE_POOL.obtain();