Beispiel #1
0
        /// <summary>
        /// Static constructor for <see cref="Dagger"/> object
        /// </summary>
        static Dagger()
        {
            // Loading in various Dagger graphics
            string basePath       = "Images/Sprites/Weapon/Slash/Dagger/";
            string weaponTypeName = "dagger";

            directionalSpriteSheet = new DirectionalSpriteSheet(basePath, weaponTypeName, NUM_FRAMES);
            iconImage = Main.Content.Load <Texture2D>("Images/Sprites/IconImages/daggerIcon");
        }
Beispiel #2
0
        /// <summary>
        /// Static constructor for <see cref="Bow"/> object
        /// </summary>
        static Bow()
        {
            // Loading in various Bow images and sound effects
            string basePath       = "Images/Sprites/Weapon/Shoot/";
            string weaponTypeName = "bow";

            directionalSpriteSheet = new DirectionalSpriteSheet($"{basePath}Bow/", weaponTypeName, NUM_FRAMES);
            arrowSpriteSheet       = new DirectionalSpriteSheet($"{basePath}Arrow/", "arrow", NUM_FRAMES);
            iconImage        = Main.Content.Load <Texture2D>("Images/Sprites/IconImages/bowIcon");
            shootSoundEffect = Main.Content.Load <SoundEffect>("Audio/SoundEffects/bowSoundEffect");
        }
Beispiel #3
0
 /// <summary>
 /// Static constructor for <see cref="Staff"/> object
 /// </summary>
 static Staff()
 {
     // Importing varioius Staff specific images
     directionalSpriteSheet = new DirectionalSpriteSheet("Images/Sprites/Weapon/Thrust/Staff/", "staff", NUM_FRAMES);
     iconImage = Main.Content.Load <Texture2D>("Images/Sprites/IconImages/staffIcon");
 }
Beispiel #4
0
 /// <summary>
 /// Static constructor for <see cref="Spear"/> object
 /// </summary>
 static Spear()
 {
     // Loading in various Spear images
     directionalSpriteSheet = new DirectionalSpriteSheet("Images/Sprites/Weapon/Thrust/Spear/", "spear", NUM_FRAMES);
     iconImage = Main.Content.Load <Texture2D>("Images/Sprites/IconImages/spearIcon");
 }
Beispiel #5
0
 /// <summary>
 /// Static constructor for <see cref="Sword"/> object
 /// </summary>
 static Sword()
 {
     // Loading in various Sword images
     directionalSpriteSheet = new DirectionalSpriteSheet("Images/Sprites/Weapon/Slash/Sword/", "sword", NUM_FRAMES);
     iconImage = Main.Content.Load <Texture2D>("Images/Sprites/IconImages/swordIcon");
 }
Beispiel #6
0
 /// <summary>
 /// Static constructor for <see cref="Witch"/> object =
 /// </summary>
 static Witch()
 {
     // Loading in Witch graphics
     directionalSpriteSheet = new DirectionalSpriteSheet("Images/Sprites/Enemies/Witch", "witch", NUM_FRAMES);
 }