Fill#rect bugfix

This commit is contained in:
Anuken
2021-12-08 19:39:44 -05:00
parent 5fbfe52d0a
commit acb4593390
14 changed files with 36 additions and 23 deletions

View File

@@ -20,6 +20,7 @@ public class ContinuousFlameBulletType extends ContinuousBulletType{
public Color flareColor = Color.valueOf("e189f5");
public float flareWidth = 3f, flareInnerScl = 0.5f, flareLength = 40f, flareInnerLenScl = 0.5f, flareLayer = Layer.bullet - 0.0001f, flareRotSpeed = 1.2f;
public boolean rotateFlare = false;
public Interp lengthInterp = Interp.slope;
/** Lengths, widths, ellipse panning, and offsets, all as fractions of the base width and length. Stored as an 'interleaved' array of values: LWPO1 LWPO2 LWPO3... */
public float[] lengthWidthPanOffsets = {
@@ -53,7 +54,7 @@ public class ContinuousFlameBulletType extends ContinuousBulletType{
@Override
public void draw(Bullet b){
float mult = b.fslope();
float mult = b.fin(lengthInterp);
float realLength = (pierceMax <= 0 ? length : Damage.findPierceLength(b, pierceMax, length)) * mult;
float sin = Mathf.sin(Time.time, oscScl, oscMag);