コード例 #1
0
 public DrawFallingAnimation(int posX, int posY, int screenHeight, int duration, DrawElement element)
     : base(posX, posY)
 {
     this.duration = duration;
     this.sourceElement = element;
     this.screenHeight = screenHeight;
 }
コード例 #2
0
 public DrawBouncingAnimation(int posX, int posY, int screenHeight, DrawElement element)
     : base(posX, posY)
 {
     this.sourceElement = element;
     this.screenHeight = screenHeight;
     this.posX = posX;
     this.posY = -element.getHeight();
     this.velocityX = posY % 30 - 15;
 }
コード例 #3
0
        public DrawSpinAnimation(int posX, int posY, DrawElement element, int speed, bool turnRight)
            : base(posX, posY)
        {
            this.sourceElement = element;
            this.speed = speed;
            this.turnRight = turnRight;

            cacheRotation();
        }
コード例 #4
0
 public DrawSpiralAnimation(int posX, int posY, int screenWidth, int screenHeight, DrawElement element)
     : base(posX, posY)
 {
     this.sourceElement = element;
     this.screenHeight = screenHeight;
     this.screenWidth = screenWidth;
     this.posX = posX;
     this.posY = posY;
 }
コード例 #5
0
 public DrawTeleportAnimation(int posX, int posY, int screenWidth, int screenHeight, DrawElement element)
     : base(posX, posY)
 {
     this.sourceElement = element;
     this.screenHeight = screenHeight;
     this.screenWidth = screenWidth;
     this.posX = posX;
     this.posY = posY;
     lastX = random.Next(20) - 10;
     lastY = random.Next(20) - 10;
 }
コード例 #6
0
 public DrawBorderBounceAnimation(int posX, int posY, int screenWidth, int screenHeight, DrawElement element)
     : base(posX, posY)
 {
     this.sourceElement = element;
     this.screenWidth = screenWidth;
     this.screenHeight = screenHeight;
     this.posX = posX;
     this.posY = posY;
     velocityX = random.Next(40) - 20;
     velocityY = random.Next(40) - 20;
 }
コード例 #7
0
 public DrawSpinAnimation(int posX, int posY, DrawElement element)
     : this(posX, posY, element, 1, true)
 {
 }