Exemplo n.º 1
0
        private SpringBlock CreateSpringBlock(XElement node)
        {
            SpringBlock newSpringBlock = new SpringBlock();

            newSpringBlock.WorldPosition = new Vector2((float)node.Attribute("x"), (float)node.Attribute("y"));

            return(newSpringBlock);
        }
Exemplo n.º 2
0
        private SpringBlock CreateSpringBlock(XElement node)
        {
            SpringBlock newSpringBlock = new SpringBlock();
            newSpringBlock.WorldPosition = new Vector2((float)node.Attribute("x"), (float)node.Attribute("y"));

            return newSpringBlock;
        }
Exemplo n.º 3
0
 private void HandleSpringBlockLaunch(SpringBlock launcher)
 {
     SoundEffectManager.PlayEffect("spring-launch");
     _motionEngine.SetForBoostedJump();
     launcher.TriggerLaunchAnimation();
 }