Exemple #1
0
        public Spider(Vector2 POS, int OWNERID)
            : base("2d\\Units\\Mobs\\Spider", POS, new Vector2(45, 45), OWNERID)
        {
            speed     = 1.5f;
            health    = 3;
            healthMax = health;

            spawnTimer = new McTimer(8000);
            spawnTimer.AddToTimer(4000);
        }
Exemple #2
0
        public SpiderEggSac(Vector2 POS, int OWNERID)
            : base("2d\\SpawnPoints\\EggSac", POS, new Vector2(45, 45), OWNERID)
        {
            totalSpawns = 0;
            maxSpawns   = 3;


            health    = 3;
            healthMax = health;

            spawnTimer = new McTimer(3000);
        }
Exemple #3
0
        public Projectile2d(string PATH, Vector2 POS, Vector2 DIMS, Unit 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);
        }