Esempio n. 1
0
        public Projectile2d(string PATH, Vector2 POSITION, Vector2 DIMENSIONS, AttackableObject OWNER, Vector2 TARGET) : base(PATH, POSITION, DIMENSIONS)
        {
            done = false;

            speed = 5.0f;

            owner = OWNER;

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

            rotation = Globals.RotateTowards(position, new Vector2(TARGET.X, TARGET.Y));

            timer = new McTimer(1500);
        }
Esempio n. 2
0
 public Fireball(Vector2 POSITION, AttackableObject OWNER, Vector2 TARGET) : base("2d/Projectiles/Fireball", POSITION, new Vector2(20, 20), OWNER, TARGET)
 {
 }
Esempio n. 3
0
        public Arrow(Vector2 POSITION, AttackableObject OWNER, Vector2 TARGET) : base("2d/Projectiles/Arrow", POSITION, new Vector2(8, 20), OWNER, TARGET)
        {
            speed = 10.0f;

            timer = new McTimer(800);
        }