public static void LoadAssets(Engine engine) { // items //Utils.LoadAnimation(engine, "potions", Path.Combine("items", "potions.png"), 17, 11); Utils.LoadAnimation(engine, "items", Path.Combine("items", "items.png"), 14, 30); // audio engine.LoadAsset("sound_drink", new AudioAsset(Path.Combine("sound", "inventory", "bottle.ogg"))); engine.LoadAsset("sound_powerup", new AudioAsset(Path.Combine("sound", "inventory", "powerup.ogg"))); }
public static void LoadAssets(Engine engine) { // set the base path for assets Asset.BasePath = "..\\..\\Assets"; // misc music engine.LoadAsset("sound_soundtrack", new AudioAsset(Path.Combine("sound", "misc", "soundtrack.ogg"), true)); engine.LoadAsset("sound_levelup", new AudioAsset(Path.Combine("sound", "misc", "levelup.ogg"))); // base engine.LoadAsset("logo", new SpriteAsset("Futuridium.png")); engine.LoadAsset("sound_death", new AudioAsset(Path.Combine("sound", "NPC", "death.ogg"))); // animated player Utils.LoadAnimation(engine, "player_animated", Path.Combine("characters", "player.png"), 3, 4); Player.Init(engine); // enemies Utils.LoadAnimation(engine, "scorpion", Path.Combine("characters", "scorpion.png"), 6, 4); Utils.LoadAnimation(engine, "goblins", Path.Combine("characters", "goblins.png"), 12, 8); Utils.LoadAnimation(engine, "ogre", Path.Combine("characters", "ogre.png"), 4, 4); Utils.LoadAnimation(engine, "snake", Path.Combine("characters", "snake.png"), 4, 4); // bosses // spells engine.LoadAsset("bullet", new SpriteAsset(Path.Combine("spells", "singleBullet.png"))); engine.LoadAsset("sound_energy_bullet", new AudioAsset(Path.Combine("sound", "battle", "energy_bullet.ogg"))); engine.LoadAsset("orb", new SpriteAsset(Path.Combine("spells", "bullets.png"), 436, 327, 64, 64)); engine.LoadAsset("sound_energy_orb", new AudioAsset(Path.Combine("sound", "battle", "energy_bullet.ogg"))); engine.LoadAsset("sound_drivex", new AudioAsset(Path.Combine("sound", "battle", "drivex.ogg"))); // decorations engine.LoadAsset("blood", new SpriteAsset(Path.Combine("background", "blood.png"))); engine.LoadAsset("skull", new SpriteAsset(Path.Combine("background", "skull.png"))); engine.LoadAsset("sadskull", new SpriteAsset(Path.Combine("background", "sadskull.png"))); // background LoadBackground(engine); // doors engine.LoadAsset("top_door", new SpriteAsset(Path.Combine("background", "top_door.png"), 0, 0, 45, 70)); engine.LoadAsset("bottom_door", new SpriteAsset(Path.Combine("background", "bottom_door.png"), 51 * 4 + 1, 0, 45, 70)); engine.LoadAsset("left_door", new SpriteAsset(Path.Combine("background", "left_door.png"), 0, 51 * 4 + 1, 70, 45)); engine.LoadAsset("right_door", new SpriteAsset(Path.Combine("background", "right_door.png"), 0, 0, 70, 45)); engine.LoadAsset("escape_floor", new SpriteAsset(Path.Combine("background", "escape_floor.png"))); engine.LoadAsset("sound_door_open", new AudioAsset(Path.Combine("sound", "world", "door_open.ogg"))); engine.LoadAsset("sound_door_close", new AudioAsset(Path.Combine("sound", "world", "door_close.ogg"))); }