本文整理汇总了Java中com.watabou.noosa.tweeners.AlphaTweener类的典型用法代码示例。如果您正苦于以下问题:Java AlphaTweener类的具体用法?Java AlphaTweener怎么用?Java AlphaTweener使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AlphaTweener类属于com.watabou.noosa.tweeners包,在下文中一共展示了AlphaTweener类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: spawnAt
import com.watabou.noosa.tweeners.AlphaTweener; //导入依赖的package包/类
public static RedWraith spawnAt(int pos) {
if (Level.passable[pos] && Actor.findChar(pos) == null) {
RedWraith w = new RedWraith();
w.adjustStats(Dungeon.depth);
w.pos = pos;
w.state = w.HUNTING;
GameScene.add(w, SPAWN_DELAY);
w.sprite.alpha(0);
w.sprite.parent.add(new AlphaTweener(w.sprite, 1, 0.5f));
w.sprite.emitter().burst(ShadowParticle.CURSE, 5);
return w;
} else {
return null;
}
}
示例2: spawnAt
import com.watabou.noosa.tweeners.AlphaTweener; //导入依赖的package包/类
public static Wraith spawnAt(int pos) {
if (Level.passable[pos] && Actor.findChar(pos) == null) {
Wraith w = new Wraith();
w.adjustStats(Dungeon.depth);
w.pos = pos;
w.state = w.HUNTING;
GameScene.add(w, SPAWN_DELAY);
w.sprite.alpha(0);
w.sprite.parent.add(new AlphaTweener(w.sprite, 1, 0.5f));
w.sprite.emitter().burst(ShadowParticle.CURSE, 5);
return w;
} else {
return null;
}
}
示例3: spawnAt
import com.watabou.noosa.tweeners.AlphaTweener; //导入依赖的package包/类
public static Eye spawnAt(int pos) {
if (Level.passable[pos] && Actor.findChar(pos) == null) {
Eye e = new Eye();
e.pos = pos;
e.state = e.HUNTING;
GameScene.add(e, SPAWN_DELAY);
e.sprite.alpha(0);
e.sprite.parent.add(new AlphaTweener(e.sprite, 1, 0.5f));
return e;
} else {
return null;
}
}
示例4: spawnAt
import com.watabou.noosa.tweeners.AlphaTweener; //导入依赖的package包/类
public static MagicEye spawnAt(int pos) {
if (Level.passable[pos] && Actor.findChar(pos) == null) {
MagicEye e = new MagicEye();
e.pos = pos;
e.state = e.HUNTING;
GameScene.add(e, SPAWN_DELAY);
e.sprite.alpha(0);
e.sprite.parent.add(new AlphaTweener(e.sprite, 1, 0.5f));
return e;
} else {
return null;
}
}
示例5: discover
import com.watabou.noosa.tweeners.AlphaTweener; //导入依赖的package包/类
public void discover(int pos, int oldValue) {
final Image tile = tile(oldValue);
tile.point(tileToWorld(pos));
// For bright mode
tile.rm = tile.gm = tile.bm = rm;
tile.ra = tile.ga = tile.ba = ra;
parent.add(tile);
parent.add(new AlphaTweener(tile, 0, 0.6f) {
@Override
protected void onComplete() {
tile.killAndErase();
killAndErase();
}
});
}
示例6: spawnAt
import com.watabou.noosa.tweeners.AlphaTweener; //导入依赖的package包/类
public static Wraith spawnAt( int pos ) {
if (Level.passable[pos] && Actor.findChar( pos ) == null) {
Wraith w = new Wraith();
w.adjustStats( Dungeon.depth );
w.pos = pos;
w.state = w.HUNTING;
GameScene.add( w, SPAWN_DELAY );
w.sprite.alpha( 0 );
w.sprite.parent.add( new AlphaTweener( w.sprite, 1, 0.5f ) );
w.sprite.emitter().burst( ShadowParticle.CURSE, 5 );
return w;
} else {
return null;
}
}
示例7: replace
import com.watabou.noosa.tweeners.AlphaTweener; //导入依赖的package包/类
public static void replace( final Mob a, final Mob b ) {
final float FADE_TIME = 0.5f;
a.destroy();
a.sprite.parent.add( new AlphaTweener( a.sprite, 0, FADE_TIME ) {
protected void onComplete() {
a.sprite.killAndErase();
parent.erase( this );
};
} );
b.pos = a.pos;
GameScene.add( b );
b.sprite.flipHorizontal = a.sprite.flipHorizontal;
b.sprite.alpha( 0 );
b.sprite.parent.add( new AlphaTweener( b.sprite, 1, FADE_TIME ) );
}
示例8: discover
import com.watabou.noosa.tweeners.AlphaTweener; //导入依赖的package包/类
public void discover( int pos, int oldValue ) {
final Image tile = tile( oldValue );
tile.point( tileToWorld( pos ) );
// For bright mode
tile.rm = tile.gm = tile.bm = rm;
tile.ra = tile.ga = tile.ba = ra;
parent.add( tile );
parent.add( new AlphaTweener( tile, 0, 0.6f ) {
protected void onComplete() {
tile.killAndErase();
killAndErase();
};
} );
}
示例9: spawnAt
import com.watabou.noosa.tweeners.AlphaTweener; //导入依赖的package包/类
public static Wraith spawnAt( int pos ) {
if (!Level.solid[pos] && Actor.findChar( pos ) == null) {
Wraith w = new Wraith();
// w.adjustStats( Dungeon.depth );
w.pos = pos;
w.special = true;
w.enemySeen = true;
w.state = w.HUNTING;
GameScene.add( w, SPAWN_DELAY );
w.sprite.alpha( 0 );
w.sprite.parent.add( new AlphaTweener( w.sprite, 1, 0.5f ) );
w.sprite.emitter().burst( ShadowParticle.CURSE, 5 );
return w;
} else {
return null;
}
}
示例10: discover
import com.watabou.noosa.tweeners.AlphaTweener; //导入依赖的package包/类
public void discover( int pos, int oldValue ) {
final Image tile = tile( oldValue );
tile.point( tileToWorld( pos ) );
// For bright mode
tile.rm = tile.gm = tile.bm = rm;
tile.ra = tile.ga = tile.ba = ra;
parent.add( tile );
parent.add( new AlphaTweener( tile, 0, 0.6f ) {
protected void onComplete() {
tile.killAndErase();
killAndErase();
}
} );
}
示例11: discover
import com.watabou.noosa.tweeners.AlphaTweener; //导入依赖的package包/类
public void discover( int pos, int oldValue ) {
final Image tile = tile( oldValue );
tile.point( tileToWorld( pos ) );
// For bright mode
tile.rm = tile.gm = tile.bm = rm;
tile.ra = tile.ga = tile.ba = ra;
parent.add( tile );
parent.add( new AlphaTweener( tile, 0, 0.6f ) {
protected void onComplete() {
tile.killAndErase();
killAndErase();
};
} );
}
示例12: discover
import com.watabou.noosa.tweeners.AlphaTweener; //导入依赖的package包/类
public void discover(int pos, int oldValue) {
final Image tile = tile(oldValue);
tile.point(tileToWorld(pos));
// For bright mode
tile.rm = tile.gm = tile.bm = rm;
tile.ra = tile.ga = tile.ba = ra;
parent.add(tile);
parent.add(new AlphaTweener(tile, 0, 0.6f) {
protected void onComplete() {
tile.killAndErase();
killAndErase();
}
;
});
}
示例13: spawnAt
import com.watabou.noosa.tweeners.AlphaTweener; //导入依赖的package包/类
public static Wraith spawnAt( int pos ) {
if (Dungeon.level.passable[pos] && Actor.findChar( pos ) == null) {
Wraith w = new Wraith();
w.adjustStats( Dungeon.depth );
w.pos = pos;
w.state = w.HUNTING;
GameScene.add( w, SPAWN_DELAY );
w.sprite.alpha( 0 );
w.sprite.parent.add( new AlphaTweener( w.sprite, 1, 0.5f ) );
w.sprite.emitter().burst( ShadowParticle.CURSE, 5 );
return w;
} else {
return null;
}
}
示例14: spawnAt
import com.watabou.noosa.tweeners.AlphaTweener; //导入依赖的package包/类
public static Wraith spawnAt( int pos ) {
if (Dungeon.level.passable[pos] && Actor.findChar( pos ) == null) {
Wraith w = new Wraith();
w.adjustStats( Dungeon.depth );
w.setPos(pos);
w.setState(w.HUNTING);
Dungeon.level.spawnMob(w, SPAWN_DELAY );
w.getSprite().alpha( 0 );
w.getSprite().getParent().add( new AlphaTweener( w.getSprite(), 1, 0.5f ) );
w.getSprite().emitter().burst( ShadowParticle.CURSE, 5 );
return w;
} else {
return null;
}
}
示例15: discover
import com.watabou.noosa.tweeners.AlphaTweener; //导入依赖的package包/类
public void discover(int pos, int oldValue) {
final Image tile = tile(pos, oldValue);
tile.point(tileToWorld(pos));
// For bright mode
tile.rm = tile.gm = tile.bm = rm;
tile.ra = tile.ga = tile.ba = ra;
getParent().add(tile);
getParent().add(new AlphaTweener(tile, 0, 0.6f) {
protected void onComplete() {
tile.killAndErase();
killAndErase();
}
});
}