v0.3.1a: updated deprecated method usage
This commit is contained in:
parent
a077406c8e
commit
669ebb9794
|
@ -88,13 +88,13 @@ public class Flare extends Visual {
|
||||||
for (int i=0; i < nRays; i++) {
|
for (int i=0; i < nRays; i++) {
|
||||||
|
|
||||||
float a = i * 3.1415926f * 2 / nRays;
|
float a = i * 3.1415926f * 2 / nRays;
|
||||||
v[0] = FloatMath.cos( a ) * radius;
|
v[0] = (float)Math.cos( a ) * radius;
|
||||||
v[1] = FloatMath.sin( a ) * radius;
|
v[1] = (float)Math.sin( a ) * radius;
|
||||||
vertices.put( v );
|
vertices.put( v );
|
||||||
|
|
||||||
a += 3.1415926f * 2 / nRays / 2;
|
a += 3.1415926f * 2 / nRays / 2;
|
||||||
v[0] = FloatMath.cos( a ) * radius;
|
v[0] = (float)Math.cos( a ) * radius;
|
||||||
v[1] = FloatMath.sin( a ) * radius;
|
v[1] = (float)Math.sin( a ) * radius;
|
||||||
vertices.put( v );
|
vertices.put( v );
|
||||||
|
|
||||||
indices.put( (short)0 );
|
indices.put( (short)0 );
|
||||||
|
|
|
@ -394,9 +394,9 @@ public class Speck extends Image {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CHANGE:
|
case CHANGE:
|
||||||
am = (float)FloatMath.sqrt( (p < 0.5f ? p : 1 - p) * 2);
|
am = (float)Math.sqrt( (p < 0.5f ? p : 1 - p) * 2);
|
||||||
scale.y = (1 + p) * 0.5f;
|
scale.y = (1 + p) * 0.5f;
|
||||||
scale.x = scale.y * FloatMath.cos( left * 15 );
|
scale.x = scale.y * (float)Math.cos( left * 15 );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case HEART:
|
case HEART:
|
||||||
|
@ -430,7 +430,7 @@ public class Speck extends Image {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case COIN:
|
case COIN:
|
||||||
scale.x = FloatMath.cos( left * 5 );
|
scale.x = (float)Math.cos( left * 5 );
|
||||||
rm = gm = bm = (Math.abs( scale.x ) + 1) * 0.5f;
|
rm = gm = bm = (Math.abs( scale.x ) + 1) * 0.5f;
|
||||||
am = p < 0.9f ? 1 : (1 - p) * 10;
|
am = p < 0.9f ? 1 : (1 - p) * 10;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user