Implemented new custom serialization

This commit is contained in:
Anuken
2018-01-16 23:30:24 -05:00
parent f6a465d917
commit b266516fad
16 changed files with 638 additions and 105 deletions
@@ -352,7 +352,7 @@ public abstract class BulletType extends BaseBulletType<Bullet>{
public void draw(Bullet b){
Draw.thick(2f);
Draw.color(lightOrange, Color.WHITE, 0.4f);
Draw.polygon(b.y, b.x, 3, 1.6f, b.angle());
Draw.polygon(b.x, b.y, 3, 1.6f, b.angle());
Draw.thick(1f);
Draw.color(Color.WHITE, lightOrange, b.ifract()/2f);
Draw.alpha(b.ifract());
@@ -84,7 +84,7 @@ public class EMP extends TimedEntity{
}
Draw.thick(fract()*2f);
Draw.polygon(y, x, 34, radius * Vars.tilesize);
Draw.polygon(x, y, 34, radius * Vars.tilesize);
Draw.reset();
}