Examples of addAnimation()


Examples of com.sertaogames.cactus2d.components.AnimationComponent.addAnimation()

   
    GameObject animatedGO = new GameObject("anim");
    AnimationComponent anim = new AnimationComponent();
    Texture tx  = new Texture(Gdx.files.internal("data/textures/sismoAnim.png"));
    int[] frames = { 0, 1, 2, 3, 4, 5, 6, 7};
    anim.addAnimation("anim", tx, 384, 192, frames, 5, false);
   
    anim.play("anim");
   
    animatedGO.AddComponent(anim);
    animatedGO.AddComponent(new SpriteRendererComponent(null));
View Full Code Here

Examples of de.anormalmedia.vividswinganimations.runner.DefaultAnimationRunner.addAnimation()

        DefaultAnimationRunner defaultAnimationExecutor = new DefaultAnimationRunner();

        SizeAnimation heightAnimation = new SizeAnimation( this, -1, 600 );
        heightAnimation.setStartOffset( 1000 );
        heightAnimation.setDuration( 1000 );
        defaultAnimationExecutor.addAnimation( heightAnimation );

        SizeAnimation widthAnimation = new SizeAnimation( this, 800, -1 );
        widthAnimation.setStartOffset( 2000 );
        widthAnimation.setDuration( 1000 );
        defaultAnimationExecutor.addAnimation( widthAnimation );
View Full Code Here

Examples of de.anormalmedia.vividswinganimations.runner.DefaultAnimationRunner.addAnimation()

        defaultAnimationExecutor.addAnimation( heightAnimation );

        SizeAnimation widthAnimation = new SizeAnimation( this, 800, -1 );
        widthAnimation.setStartOffset( 2000 );
        widthAnimation.setDuration( 1000 );
        defaultAnimationExecutor.addAnimation( widthAnimation );

        BackgroundColorAnimation greenBackgroundColorAnimation = new BackgroundColorAnimation( contentPane, Color.GREEN );
        greenBackgroundColorAnimation.setDuration( 1000 );
        defaultAnimationExecutor.addAnimation( greenBackgroundColorAnimation );
View Full Code Here

Examples of de.anormalmedia.vividswinganimations.runner.DefaultAnimationRunner.addAnimation()

        widthAnimation.setDuration( 1000 );
        defaultAnimationExecutor.addAnimation( widthAnimation );

        BackgroundColorAnimation greenBackgroundColorAnimation = new BackgroundColorAnimation( contentPane, Color.GREEN );
        greenBackgroundColorAnimation.setDuration( 1000 );
        defaultAnimationExecutor.addAnimation( greenBackgroundColorAnimation );

        BackgroundColorAnimation redBackgroundColorAnimation = new BackgroundColorAnimation( contentPane, Color.RED );
        redBackgroundColorAnimation.setStartOffset( 1000 );
        redBackgroundColorAnimation.setDuration( 1000 );
        defaultAnimationExecutor.addAnimation( redBackgroundColorAnimation );
View Full Code Here

Examples of de.anormalmedia.vividswinganimations.runner.DefaultAnimationRunner.addAnimation()

        defaultAnimationExecutor.addAnimation( greenBackgroundColorAnimation );

        BackgroundColorAnimation redBackgroundColorAnimation = new BackgroundColorAnimation( contentPane, Color.RED );
        redBackgroundColorAnimation.setStartOffset( 1000 );
        redBackgroundColorAnimation.setDuration( 1000 );
        defaultAnimationExecutor.addAnimation( redBackgroundColorAnimation );

        BackgroundColorAnimation blueBackgroundColorAnimation = new BackgroundColorAnimation( contentPane, Color.BLUE );
        blueBackgroundColorAnimation.setStartOffset( 2000 );
        blueBackgroundColorAnimation.setDuration( 1000 );
        defaultAnimationExecutor.addAnimation( blueBackgroundColorAnimation );
View Full Code Here

Examples of de.anormalmedia.vividswinganimations.runner.DefaultAnimationRunner.addAnimation()

        defaultAnimationExecutor.addAnimation( redBackgroundColorAnimation );

        BackgroundColorAnimation blueBackgroundColorAnimation = new BackgroundColorAnimation( contentPane, Color.BLUE );
        blueBackgroundColorAnimation.setStartOffset( 2000 );
        blueBackgroundColorAnimation.setDuration( 1000 );
        defaultAnimationExecutor.addAnimation( blueBackgroundColorAnimation );

        Animation windowFadeAnimation = WindowFadeFactory.createWindowFadeAnimation( this, 0f );
        windowFadeAnimation.setStartOffset( 3000 );
        windowFadeAnimation.setDuration( 1000 );
        defaultAnimationExecutor.addAnimation( windowFadeAnimation );
View Full Code Here

Examples of de.anormalmedia.vividswinganimations.runner.DefaultAnimationRunner.addAnimation()

        defaultAnimationExecutor.addAnimation( blueBackgroundColorAnimation );

        Animation windowFadeAnimation = WindowFadeFactory.createWindowFadeAnimation( this, 0f );
        windowFadeAnimation.setStartOffset( 3000 );
        windowFadeAnimation.setDuration( 1000 );
        defaultAnimationExecutor.addAnimation( windowFadeAnimation );

        windowFadeAnimation.addAnimationListener( new AnimationAdapter() {

            @Override
            public void animationFinished() {
View Full Code Here

Examples of de.anormalmedia.vividswinganimations.runner.DefaultAnimationRunner.addAnimation()

        } );

        windowFadeAnimation = WindowFadeFactory.createWindowFadeAnimation( this, 1f );
        windowFadeAnimation.setStartOffset( 4000 );
        windowFadeAnimation.setDuration( 1000 );
        defaultAnimationExecutor.addAnimation( windowFadeAnimation );

        SizeAnimation collapseWidthAnimation = new SizeAnimation( this, 200, -1 );
        collapseWidthAnimation.setStartOffset( 6000 );
        collapseWidthAnimation.setDuration( 1000 );
        defaultAnimationExecutor.addAnimation( collapseWidthAnimation );
View Full Code Here

Examples of de.anormalmedia.vividswinganimations.runner.DefaultAnimationRunner.addAnimation()

        defaultAnimationExecutor.addAnimation( windowFadeAnimation );

        SizeAnimation collapseWidthAnimation = new SizeAnimation( this, 200, -1 );
        collapseWidthAnimation.setStartOffset( 6000 );
        collapseWidthAnimation.setDuration( 1000 );
        defaultAnimationExecutor.addAnimation( collapseWidthAnimation );

        LocationAnimation locationXAnimation = new LocationAnimation( this, frameBounds.x + frameBounds.width / 2 + 100, -1 );
        locationXAnimation.setStartOffset( 6000 );
        locationXAnimation.setDuration( 1000 );
        defaultAnimationExecutor.addAnimation( locationXAnimation );
View Full Code Here

Examples of de.anormalmedia.vividswinganimations.runner.DefaultAnimationRunner.addAnimation()

        defaultAnimationExecutor.addAnimation( collapseWidthAnimation );

        LocationAnimation locationXAnimation = new LocationAnimation( this, frameBounds.x + frameBounds.width / 2 + 100, -1 );
        locationXAnimation.setStartOffset( 6000 );
        locationXAnimation.setDuration( 1000 );
        defaultAnimationExecutor.addAnimation( locationXAnimation );

        SizeAnimation collapseHeighthAnimation = new SizeAnimation( this, -1, 100 );
        collapseHeighthAnimation.setStartOffset( 7000 );
        collapseHeighthAnimation.setDuration( 1000 );
        defaultAnimationExecutor.addAnimation( collapseHeighthAnimation );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.