Example #1
0
        public Game(Form form)
        {
            gameForm = form;
            //gameForm.Width = 400;
            //gameForm.Height = 400;
            gameForm.BackColor = Color.White;

            worldMap = new WorldMap(gameForm);
            worldMapMonsters = new List<WorldMapForMonsters>();

            mapX = 0;
            mapY = 0;
            LoadNewMap(0, 0);

            combatGUI = new CombatGUI();
            combatGUI.Visible = true;

            inCombat = false;

            //Add combat party members for this class
            Bitmap bmp = new Bitmap("Paladinn.png");
            playerParty = new PlayerParty(new Point(80, 0), bmp, 1,
                new CombatPartyMember(20, 5, new Bitmap("Paladinn.png")));

            worldMapSpritePb = new PictureBox();
            worldMapSpritePb.Width = gameForm.Width;
            worldMapSpritePb.Height = gameForm.Height;
            worldMapSpritePb.BackColor = Color.Transparent;
            worldMapSpritePb.Parent = gameForm;

            Draw();
        }
        public void StartCombat(PlayerParty playerParty, CombatPartyMember enemy)
        {
            enemyMember = enemy;
            playerPartyMembers.Add(playerParty.member1);
            inCombat = true;

            PartyPB1.Image = new Bitmap("pala.png");
            EnemyPB1.Image = new Bitmap("LichKing.png");
            LoadSkillsForPlayer();
        }