本文整理汇总了Java中com.watabou.noosa.particles.Emitter.recycle方法的典型用法代码示例。如果您正苦于以下问题:Java Emitter.recycle方法的具体用法?Java Emitter.recycle怎么用?Java Emitter.recycle使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.watabou.noosa.particles.Emitter
的用法示例。
在下文中一共展示了Emitter.recycle方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: emit
import com.watabou.noosa.particles.Emitter; //导入方法依赖的package包/类
@Override
public void emit(Emitter emitter, int index, float x, float y) {
PixelParticle p = (PixelParticle) emitter
.recycle(PixelParticle.Shrinking.class);
p.reset(x, y, color, 4, Random.Float(0.5f, 1.0f));
p.speed.polar(Random.Float(dir - cone / 2, dir + cone / 2),
Random.Float(40, 80));
p.acc.set(0, +100);
}
示例2: emit
import com.watabou.noosa.particles.Emitter; //导入方法依赖的package包/类
@Override
public void emit(Emitter emitter, int index, float x, float y) {
LeafParticle p = ((LeafParticle) emitter
.recycle(LeafParticle.class));
p.color(ColorMath.random(0x004400, 0x88CC44));
p.reset(x, y);
}
示例3: emit
import com.watabou.noosa.particles.Emitter; //导入方法依赖的package包/类
@Override
public void emit( Emitter emitter, int index, float x, float y ) {
PixelParticle p = (PixelParticle)emitter.recycle( PixelParticle.Shrinking.class );
p.reset( x, y, color, 4, Random.Float( 0.5f, 1.0f ) );
p.speed.polar( Random.Float( dir - cone / 2, dir + cone / 2 ), Random.Float( 40, 80 ) );
p.acc.set( 0, +100 );
}
示例4: emit
import com.watabou.noosa.particles.Emitter; //导入方法依赖的package包/类
@Override
public void emit(Emitter emitter, int index, float x, float y) {
WaterParticle p = (WaterParticle) emitter
.recycle(WaterParticle.class);
p.reset(x, y);
}
示例5: emit
import com.watabou.noosa.particles.Emitter; //导入方法依赖的package包/类
@Override
public void emit(Emitter emitter, int index, float x, float y) {
SmokeParticle p = (SmokeParticle) emitter
.recycle(SmokeParticle.class);
p.reset(x, y);
}
示例6: emit
import com.watabou.noosa.particles.Emitter; //导入方法依赖的package包/类
@Override
public void emit( Emitter emitter, int index, float x, float y ) {
WaterParticle p = (WaterParticle)emitter.recycle( WaterParticle.class );
p.reset( x, y );
}
示例7: emit
import com.watabou.noosa.particles.Emitter; //导入方法依赖的package包/类
@Override
public void emit( Emitter emitter, int index, float x, float y ) {
SmokeParticle p = (SmokeParticle)emitter.recycle( SmokeParticle.class );
p.reset( x, y );
}
示例8: emit
import com.watabou.noosa.particles.Emitter; //导入方法依赖的package包/类
@Override
public void emit( Emitter emitter, int index, float x, float y ) {
LeafParticle p = ((LeafParticle)emitter.recycle( LeafParticle.class ));
p.color( ColorMath.random( 0x004400, 0x88CC44 ) );
p.reset( x, y );
}