Пример #1
0
 public Shield(Shield bumper)
 {
     this.health = bumper.health;
     this.shield = bumper.shield;
     this.glow = bumper.glow;
     this.maxHealth = bumper.maxHealth;
     this.bounds = bumper.bounds;
 }
Пример #2
0
        public Car()
        {
            //Instantiate the texture array
            carTextures = new Texture2D[4];
            windowTextures = new Texture2D[4];

            //Instantiate the car sprite
            carSprite = new Sprite();
            windowSprite = new Sprite();

            //Instantiate the bounds
            bounds = new RotatableRectangle(0, 0, 80, 40);

            //Instantiate the shield
            shield = new Shield();
        }