Example #1
0
 public static void Main()
 {
     {
         MagicSettingProvider.Init();
         try
         {
             using (var game = new TheHallGame {
                 Icon = System.Drawing.Icon.ExtractAssociatedIcon(Assembly.GetExecutingAssembly().Location)
             })
             {
                 Constants.WORLD_MAP_SIZE = 1;
                 Constants.WORLD_SEED     = new Random().Next(10000);
                 game.Run(0, FPS);
             }
         }
         catch (Exception exception)
         {
             var path = Path.Combine(Environment.CurrentDirectory, "error_file.txt");
             File.Delete(path);
             File.AppendAllText(path, exception.Message, Encoding.Unicode);
             File.AppendAllText(path, exception.StackTrace, Encoding.Unicode);
             Process.Start("error_file.txt");
         }
     }
 }
Example #2
0
        private Manager()
        {
            World.LetItBeeee(new RusLanguageProcessor());
            MagicSettingProvider.Init();

            m_ttextures.Add(ETextureSet.GP, new Image(Scale(Resources.gold_plated_16x16, 16), false, false));
            m_ttextures.Add(ETextureSet.HM, new Image(Scale(Resources.aq, 16), false, false));
            m_ttextures.Add(ETextureSet.NH, new Image(Scale(Resources.nethack, 16), false, false));
            m_ttextures.Add(ETextureSet.PH, new Image(Scale(Resources.Phoebus_16x16, 16), false, false));
            m_ttextures.Add(ETextureSet.RB1, new Image(Scale(Resources.RantingRodent_Brick_01, 16), false, false));
            m_ttextures.Add(ETextureSet.RB2, new Image(Scale(Resources.RantingRodent_Brick_02, 16), false, false));
            m_ttextures.Add(ETextureSet.RN1, new Image(Scale(Resources.RantingRodent_Natural_01, 16), false, false));
            m_ttextures.Add(ETextureSet.RN2, new Image(Scale(Resources.RantingRodent_Natural_02, 16), false, false));
            m_ttextures.Add(ETextureSet.RJ, new Image(Scale(Resources.redjack15v, 16), false, false));
            m_ttextures.Add(ETextureSet.U4, new Image(Scale(Resources.Ultima4, 16), false, false));
            m_ttextures.Add(ETextureSet.U5, new Image(Scale(Resources.Ultima5, 16), false, false));
            m_ttextures.Add(ETextureSet.WC_SG, new Image(Scale(Resources.summergrass, 16), false, false));
            m_ttextures.Add(ETextureSet.WC_SW, new Image(Scale(Resources.summerwater, 16), false, false));
            m_ttextures.Add(ETextureSet.WC_WS, new Image(Scale(Resources.wintersnow, 16), false, false));
            m_ttextures.Add(ETextureSet.dg_armor32, new Image(Scale(Resources.dg_armor32), false, false));
            m_ttextures.Add(ETextureSet.dg_monster1, new Image(Scale(Resources.dg_monster132), false, false));
            m_ttextures.Add(ETextureSet.dg_monster2, new Image(Scale(Resources.dg_monster232), false, false));
            m_ttextures.Add(ETextureSet.dg_monster3, new Image(Scale(Resources.dg_monster332), false, false));
            m_ttextures.Add(ETextureSet.dg_monster4, new Image(Scale(Resources.dg_monster432), false, false));
            m_ttextures.Add(ETextureSet.dg_monster5, new Image(Scale(Resources.dg_monster532), false, false));
            m_ttextures.Add(ETextureSet.dg_monster6, new Image(Scale(Resources.dg_monster632), false, false));
            m_ttextures.Add(ETextureSet.dg_monster7, new Image(Scale(Resources.dg_monster732), false, false));
            m_ttextures.Add(ETextureSet.dg_misc32, new Image(Scale(Resources.dg_misc32), false, false));
            m_ttextures.Add(ETextureSet.dg_potions32, new Image(Scale(Resources.dg_potions32), false, false));
            m_ttextures.Add(ETextureSet.dg_undead32, new Image(Scale(Resources.dg_undead32), false, false));
            m_ttextures.Add(ETextureSet.dg_wands32, new Image(Scale(Resources.dg_wands32), false, false));
            m_ttextures.Add(ETextureSet.dg_weapons32, new Image(Scale(Resources.dg_weapons32), false, false));

            m_ttextures.Add(ETextureSet.dg_classm32, new Image(Scale(Resources.dg_classm32), false, false));
            m_ttextures.Add(ETextureSet.dg_dragon32, new Image(Scale(Resources.dg_dragon32), false, false));
            m_ttextures.Add(ETextureSet.dg_dungeon32, new Image(Scale(Resources.dg_dungeon32), false, false));
            m_ttextures.Add(ETextureSet.dg_edging132, new Image(Scale(Resources.dg_edging132), false, false));
            m_ttextures.Add(ETextureSet.dg_edging232, new Image(Scale(Resources.dg_edging232), false, false));
            m_ttextures.Add(ETextureSet.dg_edging332, new Image(Scale(Resources.dg_edging332), false, false));
            m_ttextures.Add(ETextureSet.dg_effects32, new Image(Scale(Resources.dg_effects32), false, false));
            m_ttextures.Add(ETextureSet.dg_food32, new Image(Scale(Resources.dg_food32), false, false));
            m_ttextures.Add(ETextureSet.dg_extra132, new Image(Scale(Resources.dg_extra132), false, false));
            m_ttextures.Add(ETextureSet.dg_grounds32, new Image(Scale(Resources.dg_grounds32), false, false));
            m_ttextures.Add(ETextureSet.dg_humans32, new Image(Scale(Resources.dg_humans32), false, false));
            m_ttextures.Add(ETextureSet.townactions, new Image(Scale(Resources.townactions), false, false));
            m_ttextures.Add(ETextureSet.dg_people32, new Image(Scale(Resources.dg_people32), false, false));
            m_ttextures.Add(ETextureSet.traps_64, new Image(Scale(Resources.traps_64, 64), false, false));
            m_ttextures.Add(ETextureSet.global4, new Image(Scale(Resources.global4, 32), false, false));
            m_ttextures.Add(ETextureSet.minecraft_tiles_big, new Image(Scale(Resources.minecraft_tiles_big, 32), false, false));
            m_ttextures.Add(ETextureSet.mountain_landscape_23, new Image(Scale(Resources.mountain_landscape_23, 32), false, false));
            m_ttextures.Add(ETextureSet.my32x32, new Image(Scale(Resources.my32x32, 32), false, false));
        }