当前位置: 首页>>代码示例>>Java>>正文


Java AlphaTweener类代码示例

本文整理汇总了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;
	}
}
 
开发者ID:G2159687,项目名称:ESPD,代码行数:21,代码来源:RedWraith.java

示例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;
	}
}
 
开发者ID:G2159687,项目名称:ESPD,代码行数:21,代码来源:Wraith.java

示例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;
	}
}
 
开发者ID:G2159687,项目名称:ESPD,代码行数:18,代码来源:Eye.java

示例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;
	}
}
 
开发者ID:G2159687,项目名称:ESPD,代码行数:18,代码来源:MagicEye.java

示例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();
			}
		});
	}
 
开发者ID:G2159687,项目名称:ESPD,代码行数:19,代码来源:DungeonTilemap.java

示例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;
	}
}
 
开发者ID:mango-tree,项目名称:UNIST-pixel-dungeon,代码行数:20,代码来源:Wraith.java

示例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 ) );
}
 
开发者ID:kurtyu,项目名称:PixelDungeonTC,代码行数:19,代码来源:Ghost.java

示例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();
		};
	} );
}
 
开发者ID:kurtyu,项目名称:PixelDungeonTC,代码行数:18,代码来源:DungeonTilemap.java

示例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;
        }
    }
 
开发者ID:ConsideredHamster,项目名称:YetAnotherPixelDungeon,代码行数:23,代码来源:Wraith.java

示例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();
		}
	} );
}
 
开发者ID:FthrNature,项目名称:unleashed-pixel-dungeon,代码行数:18,代码来源:DungeonTilemap.java

示例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();
		};
	} );
}
 
开发者ID:wolispace,项目名称:soft-pixel-dungeon,代码行数:18,代码来源:DungeonTilemap.java

示例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();
            }

            ;
        });
    }
 
开发者ID:skynet67,项目名称:pixel-dungeon-rebirth,代码行数:20,代码来源:DungeonTilemap.java

示例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;
	}
}
 
开发者ID:00-Evan,项目名称:shattered-pixel-dungeon,代码行数:20,代码来源:Wraith.java

示例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;
	}
}
 
开发者ID:NYRDS,项目名称:pixel-dungeon-remix,代码行数:20,代码来源:Wraith.java

示例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();
			}
		});
	}
 
开发者ID:NYRDS,项目名称:pixel-dungeon-remix,代码行数:18,代码来源:DungeonTilemap.java


注:本文中的com.watabou.noosa.tweeners.AlphaTweener类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。