updated flake texture fixed collision issue, and minor value changes
Before Width: | Height: | Size: 342 B After Width: | Height: | Size: 248 B |
Before Width: | Height: | Size: 395 B After Width: | Height: | Size: 317 B |
Before Width: | Height: | Size: 373 B After Width: | Height: | Size: 294 B |
Before Width: | Height: | Size: 577 B After Width: | Height: | Size: 487 B |
Before Width: | Height: | Size: 658 B After Width: | Height: | Size: 503 B |
Before Width: | Height: | Size: 696 B After Width: | Height: | Size: 608 B |
Before Width: | Height: | Size: 993 B After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 211 B After Width: | Height: | Size: 167 B |
@ -134,7 +134,6 @@ public class EntityController {
|
|||||||
pelletPool.free(pellet);
|
pelletPool.free(pellet);
|
||||||
break;
|
break;
|
||||||
case SHARD:
|
case SHARD:
|
||||||
System.out.println("freed");
|
|
||||||
Shard shard = (Shard) entity;
|
Shard shard = (Shard) entity;
|
||||||
shard.remove();
|
shard.remove();
|
||||||
shardPool.free(shard);
|
shardPool.free(shard);
|
||||||
|
@ -24,6 +24,7 @@ public class PolyJetEntity extends Actor implements Entity {
|
|||||||
private float speed, accel;
|
private float speed, accel;
|
||||||
private float rate;
|
private float rate;
|
||||||
public PolyJetEntity(AssetManager assets, float speed, float accel, String jet) {
|
public PolyJetEntity(AssetManager assets, float speed, float accel, String jet) {
|
||||||
|
health = 100;
|
||||||
this.speed = speed;
|
this.speed = speed;
|
||||||
this.accel = accel;
|
this.accel = accel;
|
||||||
setSize(1.5f, 1.5f);
|
setSize(1.5f, 1.5f);
|
||||||
|
@ -73,7 +73,7 @@ public class Shard extends Actor implements Entity, Poolable {
|
|||||||
public void draw(Batch batch, float parentAlpha) {
|
public void draw(Batch batch, float parentAlpha) {
|
||||||
sprite.setCenter(getX()+center.x, getY()+center.y);
|
sprite.setCenter(getX()+center.x, getY()+center.y);
|
||||||
|
|
||||||
sprite.setColor((float)hp/(float)maxHp, 1f, 0.5f, 1f);
|
sprite.setColor((float)hp/(float)maxHp, 0f, 0f, 1f);
|
||||||
sprite.draw(batch);
|
sprite.draw(batch);
|
||||||
batch.setColor(Color.WHITE);
|
batch.setColor(Color.WHITE);
|
||||||
super.draw(batch, parentAlpha);
|
super.draw(batch, parentAlpha);
|
||||||
|
@ -40,7 +40,7 @@ public class SpawnerWindow extends Window {
|
|||||||
mod1 = new Slider(0.1f, 50f, 0.01f, true, skin);
|
mod1 = new Slider(0.1f, 50f, 0.01f, true, skin);
|
||||||
mod2 = new Slider(0f, 15f, 0.01f, true, skin);
|
mod2 = new Slider(0f, 15f, 0.01f, true, skin);
|
||||||
mod3 = new Slider(0.1f, 15f, 0.01f, true, skin);
|
mod3 = new Slider(0.1f, 15f, 0.01f, true, skin);
|
||||||
mod4 = new Slider(1f, 8f, 0.01f, true, skin);
|
mod4 = new Slider(1f, 12f, 0.01f, true, skin);
|
||||||
|
|
||||||
listOfEntities = new List<>(skin);
|
listOfEntities = new List<>(skin);
|
||||||
listOfEntities.setItems(Entities.values());
|
listOfEntities.setItems(Entities.values());
|
||||||
@ -62,7 +62,7 @@ public class SpawnerWindow extends Window {
|
|||||||
private Vector2 coords = new Vector2();
|
private Vector2 coords = new Vector2();
|
||||||
@Override
|
@Override
|
||||||
public void act(float delta) {
|
public void act(float delta) {
|
||||||
if (Gdx.input.justTouched() && Gdx.input.isKeyPressed(Keys.SHIFT_LEFT)) {
|
if (Gdx.input.justTouched() && Gdx.input.isKeyPressed(Keys.CONTROL_LEFT)) {
|
||||||
coords.set(Gdx.input.getX(), Gdx.input.getY());
|
coords.set(Gdx.input.getX(), Gdx.input.getY());
|
||||||
stage.screenToStageCoordinates(coords);
|
stage.screenToStageCoordinates(coords);
|
||||||
|
|
||||||
|