com.watabou.noosa.MovieClip Java Examples

The following examples show how to use com.watabou.noosa.MovieClip. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GnollTricksterSprite.java    From unleashed-pixel-dungeon with GNU General Public License v3.0 4 votes vote down vote up
public GnollTricksterSprite() {
	super();

	texture( Assets.GNOLL );

	TextureFilm frames = new TextureFilm( texture, 12, 15 );

	idle = new MovieClip.Animation( 2, true );
	idle.frames( frames, 11, 11, 11, 12, 11, 11, 12, 12 );

	run = new MovieClip.Animation( 12, true );
	run.frames( frames, 15, 16, 17, 18 );

	attack = new MovieClip.Animation( 12, false );
	attack.frames( frames, 13, 14, 11 );

	cast = attack.clone();

	die = new MovieClip.Animation( 12, false );
	die.frames( frames, 19, 20, 21 );

	play( idle );
}
 
Example #2
Source File: GreatCrabSprite.java    From unleashed-pixel-dungeon with GNU General Public License v3.0 4 votes vote down vote up
public GreatCrabSprite() {
	super();

	texture( Assets.CRAB );

	TextureFilm frames = new TextureFilm( texture, 16, 16 );

	idle = new MovieClip.Animation( 5, true );
	idle.frames( frames, 16, 17, 16, 18 );

	run = new MovieClip.Animation( 10, true );
	run.frames( frames, 19, 20, 21, 22 );

	attack = new MovieClip.Animation( 12, false );
	attack.frames( frames, 23, 24, 25 );

	die = new MovieClip.Animation( 12, false );
	die.frames( frames, 26, 27, 28, 29 );

	play( idle );
}
 
Example #3
Source File: AssassinSprite.java    From unleashed-pixel-dungeon with GNU General Public License v3.0 4 votes vote down vote up
public AssassinSprite() {
    super();

    texture( Assets.MONK );

    TextureFilm frames = new TextureFilm( texture, 15, 14 );

    idle = new MovieClip.Animation( 12, true );
    idle.frames( frames, 35, 34, 35, 36 );

    run = new MovieClip.Animation( 15, true );
    run.frames( frames, 45, 46, 47, 48, 49, 50 );

    attack = new MovieClip.Animation( 12, false );
    attack.frames( frames, 37, 38, 37, 38 );

    die = new MovieClip.Animation( 15, false );
    die.frames( frames, 35, 41, 42, 42, 43, 44 );

    play( idle );
}
 
Example #4
Source File: NewbornElementalSprite.java    From shattered-pixel-dungeon with GNU General Public License v3.0 4 votes vote down vote up
public NewbornElementalSprite() {
	super();

	texture( Assets.Sprites.ELEMENTAL );

	int ofs = 21;

	TextureFilm frames = new TextureFilm( texture, 12, 14 );

	idle = new MovieClip.Animation( 10, true );
	idle.frames( frames, ofs+0, ofs+1, ofs+2 );

	run = new MovieClip.Animation( 12, true );
	run.frames( frames, ofs+0, ofs+1, ofs+3 );

	attack = new MovieClip.Animation( 15, false );
	attack.frames( frames, ofs+4, ofs+5, ofs+6 );

	die = new MovieClip.Animation( 15, false );
	die.frames( frames, ofs+7, ofs+8, ofs+9, ofs+10, ofs+11, ofs+12, ofs+13, ofs+12 );

	play( idle );
}
 
Example #5
Source File: GuardSprite.java    From shattered-pixel-dungeon with GNU General Public License v3.0 4 votes vote down vote up
public GuardSprite() {
	super();

	texture( Assets.Sprites.GUARD );

	TextureFilm frames = new TextureFilm( texture, 12, 16 );

	idle = new Animation( 2, true );
	idle.frames( frames, 0, 0, 0, 1, 0, 0, 1, 1 );

	run = new MovieClip.Animation( 15, true );
	run.frames( frames, 2, 3, 4, 5, 6, 7 );

	attack = new MovieClip.Animation( 12, false );
	attack.frames( frames, 8, 9, 10 );

	die = new MovieClip.Animation( 8, false );
	die.frames( frames, 11, 12, 13, 14 );

	play( idle );
}
 
Example #6
Source File: RotHeartSprite.java    From shattered-pixel-dungeon with GNU General Public License v3.0 4 votes vote down vote up
public RotHeartSprite(){
	super();

	perspectiveRaise = 0.2f;

	texture( Assets.Sprites.ROT_HEART );

	TextureFilm frames = new TextureFilm( texture, 16, 16 );

	idle = new MovieClip.Animation( 1, true );
	idle.frames( frames, 0);

	run = new MovieClip.Animation( 1, true );
	run.frames( frames, 0 );

	attack = new MovieClip.Animation( 1, false );
	attack.frames( frames, 0 );

	die = new MovieClip.Animation( 8, false );
	die.frames( frames, 1, 2, 3, 4, 5, 6, 7, 7, 7 );

	play( idle );
}
 
Example #7
Source File: GnollTricksterSprite.java    From shattered-pixel-dungeon with GNU General Public License v3.0 4 votes vote down vote up
public GnollTricksterSprite() {
	super();

	texture( Assets.Sprites.GNOLL );

	TextureFilm frames = new TextureFilm( texture, 12, 15 );

	idle = new MovieClip.Animation( 2, true );
	idle.frames( frames, 21, 21, 21, 22, 21, 21, 22, 22 );

	run = new MovieClip.Animation( 12, true );
	run.frames( frames, 25, 26, 27, 28 );

	attack = new MovieClip.Animation( 12, false );
	attack.frames( frames, 23, 24, 21 );

	cast = attack.clone();

	die = new MovieClip.Animation( 12, false );
	die.frames( frames, 29, 30, 31 );

	play( idle );
}
 
Example #8
Source File: GreatCrabSprite.java    From shattered-pixel-dungeon with GNU General Public License v3.0 4 votes vote down vote up
public GreatCrabSprite() {
	super();

	texture( Assets.Sprites.CRAB );

	TextureFilm frames = new TextureFilm( texture, 16, 16 );

	idle = new MovieClip.Animation( 5, true );
	idle.frames( frames, 16, 17, 16, 18 );

	run = new MovieClip.Animation( 10, true );
	run.frames( frames, 19, 20, 21, 22 );

	attack = new MovieClip.Animation( 12, false );
	attack.frames( frames, 23, 24, 25 );

	die = new MovieClip.Animation( 12, false );
	die.frames( frames, 26, 27, 28, 29 );

	play( idle );
}
 
Example #9
Source File: LotusSprite.java    From shattered-pixel-dungeon with GNU General Public License v3.0 4 votes vote down vote up
public LotusSprite(){
	super();

	perspectiveRaise = 0f;

	texture( Assets.Sprites.LOTUS );

	TextureFilm frames = new TextureFilm( texture, 19, 16 );

	idle = new MovieClip.Animation( 1, true );
	idle.frames( frames, 0 );

	run = new MovieClip.Animation( 1, true );
	run.frames( frames, 0 );

	attack = new MovieClip.Animation( 1, false );
	attack.frames( frames, 0 );

	die = new MovieClip.Animation( 1, false );
	die.frames( frames, 0 );

	play( idle );
}
 
Example #10
Source File: NewbornElementalSprite.java    From shattered-pixel-dungeon-gdx with GNU General Public License v3.0 4 votes vote down vote up
public NewbornElementalSprite() {
	super();

	texture( Assets.ELEMENTAL );

	int ofs = 21;

	TextureFilm frames = new TextureFilm( texture, 12, 14 );

	idle = new MovieClip.Animation( 10, true );
	idle.frames( frames, ofs+0, ofs+1, ofs+2 );

	run = new MovieClip.Animation( 12, true );
	run.frames( frames, ofs+0, ofs+1, ofs+3 );

	attack = new MovieClip.Animation( 15, false );
	attack.frames( frames, ofs+4, ofs+5, ofs+6 );

	die = new MovieClip.Animation( 15, false );
	die.frames( frames, ofs+7, ofs+8, ofs+9, ofs+10, ofs+11, ofs+12, ofs+13, ofs+12 );

	play( idle );
}
 
Example #11
Source File: GuardSprite.java    From shattered-pixel-dungeon-gdx with GNU General Public License v3.0 4 votes vote down vote up
public GuardSprite() {
	super();

	texture( Assets.GUARD );

	TextureFilm frames = new TextureFilm( texture, 12, 16 );

	idle = new Animation( 2, true );
	idle.frames( frames, 0, 0, 0, 1, 0, 0, 1, 1 );

	run = new MovieClip.Animation( 15, true );
	run.frames( frames, 2, 3, 4, 5, 6, 7 );

	attack = new MovieClip.Animation( 12, false );
	attack.frames( frames, 8, 9, 10 );

	die = new MovieClip.Animation( 8, false );
	die.frames( frames, 11, 12, 13, 14 );

	play( idle );
}
 
Example #12
Source File: RotHeartSprite.java    From shattered-pixel-dungeon-gdx with GNU General Public License v3.0 4 votes vote down vote up
public RotHeartSprite(){
	super();

	perspectiveRaise = 0.2f;

	texture( Assets.ROT_HEART );

	TextureFilm frames = new TextureFilm( texture, 16, 16 );

	idle = new MovieClip.Animation( 1, true );
	idle.frames( frames, 0);

	run = new MovieClip.Animation( 1, true );
	run.frames( frames, 0 );

	attack = new MovieClip.Animation( 1, false );
	attack.frames( frames, 0 );

	die = new MovieClip.Animation( 8, false );
	die.frames( frames, 1, 2, 3, 4, 5, 6, 7, 7, 7 );

	play( idle );
}
 
Example #13
Source File: GnollTricksterSprite.java    From shattered-pixel-dungeon-gdx with GNU General Public License v3.0 4 votes vote down vote up
public GnollTricksterSprite() {
	super();

	texture( Assets.GNOLL );

	TextureFilm frames = new TextureFilm( texture, 12, 15 );

	idle = new MovieClip.Animation( 2, true );
	idle.frames( frames, 21, 21, 21, 22, 21, 21, 22, 22 );

	run = new MovieClip.Animation( 12, true );
	run.frames( frames, 25, 26, 27, 28 );

	attack = new MovieClip.Animation( 12, false );
	attack.frames( frames, 23, 24, 21 );

	cast = attack.clone();

	die = new MovieClip.Animation( 12, false );
	die.frames( frames, 29, 30, 31 );

	play( idle );
}
 
Example #14
Source File: GreatCrabSprite.java    From shattered-pixel-dungeon-gdx with GNU General Public License v3.0 4 votes vote down vote up
public GreatCrabSprite() {
	super();

	texture( Assets.CRAB );

	TextureFilm frames = new TextureFilm( texture, 16, 16 );

	idle = new MovieClip.Animation( 5, true );
	idle.frames( frames, 16, 17, 16, 18 );

	run = new MovieClip.Animation( 10, true );
	run.frames( frames, 19, 20, 21, 22 );

	attack = new MovieClip.Animation( 12, false );
	attack.frames( frames, 23, 24, 25 );

	die = new MovieClip.Animation( 12, false );
	die.frames( frames, 26, 27, 28, 29 );

	play( idle );
}