public Board(Castle castle, Point location) { this.castle = castle; this.location = location; this.dir = castle.facing; board = AnimationLoader.pngToTexture("Environment/ScoreFrame.png"); }
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); } }
public override Texture2D getPayload() { return(AnimationLoader.pngToTexture("Bullets/Lazer.png")); }
public virtual Texture2D getPayload() { return(AnimationLoader.pngToTexture("Bullets/AirstrikeRocket.png")); }
public virtual Texture2D getTargetMarker() { return(AnimationLoader.pngToTexture("Bullets/TargetMarker.png")); }
/** what it looks like */ protected virtual Texture2D getTexture() { return(AnimationLoader.pngToTexture("Bullets/BulletGoldLarger.png")); }
protected override Microsoft.Xna.Framework.Graphics.Texture2D getTexture() { return(AnimationLoader.pngToTexture("Bullets/TankBullet.png")); }