Beispiel #1
0
 public BulletProperties(Helper.BulletType myBulletType, Color myColor, Texture2D mySprite, int myBaseDamage)
 {
     bulletType = myBulletType;
     color      = myColor;
     sprite     = mySprite;
     baseDamage = myBaseDamage;
 }
Beispiel #2
0
        //constructor
        public Bullet(Vector2 myPosition, Vector2 myVelocity, BulletProperties myProperties)
        {
            bulletType    = myProperties.bulletType;
            position      = myPosition;
            velocity      = myVelocity;
            sprite        = myProperties.sprite;
            damage        = myProperties.baseDamage;
            color         = myProperties.color;
            colorOverride = Color.Transparent;

            enabled = true;
        }