发布时间:2025-12-09 11:46:23 浏览次数:1
import com.watabou.noosa.MovieClip; //导入依赖的package包/类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);} import com.watabou.noosa.MovieClip; //导入依赖的package包/类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);} import com.watabou.noosa.MovieClip; //导入依赖的package包/类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 );} import com.watabou.noosa.MovieClip; //导入依赖的package包/类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 );}