Ejemplo n.º 1
0
 public Board(Castle castle, Point location)
 {
     this.castle   = castle;
     this.location = location;
     this.dir      = castle.facing;
     board         = AnimationLoader.pngToTexture("Environment/ScoreFrame.png");
 }
Ejemplo n.º 2
0
        public Ground(int groundHeight, int screenWidth, int screenHeight) : base()
        {
            this.groundHeight = groundHeight;
            this.screenWidth  = screenWidth;
            this.screenHeight = screenHeight;
            textureTop        = AnimationLoader.pngToTexture("Environment/grassFlat.jpg");
            textureFeature    = AnimationLoader.pngToTexture("Environment/grassUp.png");
            textureUnder      = AnimationLoader.pngToTexture("Environment/sand.png");
            tree      = AnimationLoader.pngToTexture("Environment/Tree1.png");
            tree2     = AnimationLoader.pngToTexture("Environment/Tree3.png");
            sliceSize = screenWidth / pieces;
            Random r = new Random();

            for (int i = 0; i < numTrees; i++)
            {
                treeArray[i].X = r.Next(0, screenWidth);
                treeArray[i].Y = r.Next(treeMin, treeMax);
                treeType[i]    = r.Next(0, 2);
            }
        }
Ejemplo n.º 3
0
 public override Texture2D getPayload()
 {
     return(AnimationLoader.pngToTexture("Bullets/Lazer.png"));
 }
Ejemplo n.º 4
0
 public virtual Texture2D getPayload()
 {
     return(AnimationLoader.pngToTexture("Bullets/AirstrikeRocket.png"));
 }
Ejemplo n.º 5
0
 public virtual Texture2D getTargetMarker()
 {
     return(AnimationLoader.pngToTexture("Bullets/TargetMarker.png"));
 }
Ejemplo n.º 6
0
 /** what it looks like */
 protected virtual Texture2D getTexture()
 {
     return(AnimationLoader.pngToTexture("Bullets/BulletGoldLarger.png"));
 }
Ejemplo n.º 7
0
 protected override Microsoft.Xna.Framework.Graphics.Texture2D getTexture()
 {
     return(AnimationLoader.pngToTexture("Bullets/TankBullet.png"));
 }