예제 #1
0
        public AcidSplash(Vector2 POS, Unit OWNER, Vector2 TARGET)
            : base("2D\\Projectiles\\FireBall2", POS, new Vector2(20, 20), OWNER, TARGET)
        {
            speed = 4.0f;

            timer = new McTimer(1800);
        }
예제 #2
0
 public Effect2d(string PATH, Vector2 POS, Vector2 DIMS, Vector2 FRAMES, int MSEC)
     : base(PATH, POS, DIMS, FRAMES, Color.White)
 {
     done    = false;
     noTimer = false;
     timer   = new McTimer(MSEC);
 }
        public StillInvisibleProjectile(Vector2 POS, Vector2 DIMS, AttackableObject OWNER, Vector2 TARGET, int MSEC)
            : base("2d\\Misc\\bar", POS, DIMS, OWNER, TARGET)
        {
            ticks       = 3;
            currentTick = 0;

            timer = new McTimer(MSEC);
        }
예제 #4
0
        public Projectile2d(string PATH, Vector2 POS, Vector2 DIMS, AttackableObject OWNER, Vector2 TARGET)
            : base(PATH, POS, DIMS)
        {
            done  = false;
            speed = 5.0f;
            owner = OWNER;

            direction = TARGET - owner.pos;
            direction.Normalize();

            rot = Globals.RotateTowards(pos, new Vector2(TARGET.X, TARGET.Y));

            timer = new McTimer(1500);
        }
예제 #5
0
        public Monster(Vector2 POS, Vector2 FRAMES, int OWNERID)
            : base("2D\\Units\\chitiniac-move", POS, new Vector2(40, 40), new Vector2(8, 1), OWNERID)
        {
            speed      = 1.5f;
            health     = 3;
            healthMax  = health;
            killValue  = 5;
            spawnTimer = new McTimer(8000);
            spawnTimer.AddToTimer(4000);

            frameAnimations  = true;
            currentAnimation = 0;
            frameAnimationList.Add(new FrameAnimation(new Vector2(frameSize.X, frameSize.Y), frames, new Vector2(0, 0), 8, 133, 0, "Walk"));
        }
예제 #6
0
        public FrameAnimation(Vector2 SpriteDims, Vector2 sheetDims, Vector2 start, int totalframes, int timePerFrame, int MAXPASSES, int FIREFRAME, PassObject FIREACTION, string NAME = "")
        {
            spriteDims   = SpriteDims;
            sheet        = sheetDims;
            startFrame   = start;
            sheetFrame   = new Vector2(start.X, start.Y);
            frames       = totalframes;
            currentFrame = 0;
            frameTimer   = new McTimer(timePerFrame);
            maxPasses    = MAXPASSES;
            currentPass  = 0;
            name         = NAME;
            FireAction   = FIREACTION;
            firedOn      = false;

            fireFrame = FIREFRAME;
        }