new texture added and everything resized; worked on spawning and collision checking
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user