Support for team-only lighting
This commit is contained in:
@@ -166,7 +166,7 @@ public abstract class BulletType extends Content{
|
||||
}
|
||||
|
||||
public void drawLight(Bulletc b){
|
||||
Drawf.light(b, lightRadius, lightColor, lightOpacity);
|
||||
Drawf.light(b.team(), b, lightRadius, lightColor, lightOpacity);
|
||||
}
|
||||
|
||||
public void init(Bulletc b){
|
||||
|
||||
@@ -72,7 +72,7 @@ public class ContinuousLaserBulletType extends BulletType{
|
||||
|
||||
Tmp.v1.trns(b.rotation(), baseLen * 1.1f);
|
||||
|
||||
Drawf.light(b.x(), b.y(), b.x() + Tmp.v1.x, b.y() + Tmp.v1.y, 40, Color.orange, 0.7f);
|
||||
Drawf.light(b.team(), b.x(), b.y(), b.x() + Tmp.v1.x, b.y() + Tmp.v1.y, 40, Color.orange, 0.7f);
|
||||
Draw.reset();
|
||||
}
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ public class LaserBulletType extends BulletType{
|
||||
Draw.reset();
|
||||
|
||||
Tmp.v1.trns(b.rotation(), baseLen * 1.1f);
|
||||
Drawf.light(b.x(), b.y(), b.x() + Tmp.v1.x, b.y() + Tmp.v1.y, width * 1.4f * b.fout(), colors[0], 0.6f);
|
||||
Drawf.light(b.team(), b.x(), b.y(), b.x() + Tmp.v1.x, b.y() + Tmp.v1.y, width * 1.4f * b.fout(), colors[0], 0.6f);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user