Exemplo n.º 1
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);



            _Player  = Content.Load <RolePlayingGameData.Player>(@"Characters\Players\Kolatt").Clone() as RolePlayingGameData.Player;
            _CPlayer = new RolePlaying.CombatantPlayer(_Player);



            _CPlayer.Position = new Vector2(100, 100);

            RolePlaying.CombatantEx._CombatantList.Add(_CPlayer);



            RolePlaying.CombatantMonster _Mob = new RolePlaying.CombatantMonster(Content.Load <RolePlayingGameData.Player>(@"Characters\Players\Kolatt").Clone() as RolePlayingGameData.Player);


            _Mob.Position = new Vector2(100, 100);

            _CPlayer._TargetObject = _Mob;
            _Mob._TargetObject     = _CPlayer;

            RolePlaying.CombatantEx._CombatantList.Add(_Mob);



            // TODO: use this.Content to load your game content here
        }
Exemplo n.º 2
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            _Player = Content.Load<RolePlayingGameData.Player>(@"Characters\Players\Kolatt").Clone() as RolePlayingGameData.Player;
            _CPlayer = new RolePlaying.CombatantPlayer(_Player);

            _CPlayer.Position = new Vector2(100, 100);

            RolePlaying.CombatantEx._CombatantList.Add(_CPlayer);

            RolePlaying.CombatantMonster _Mob = new RolePlaying.CombatantMonster(Content.Load<RolePlayingGameData.Player>(@"Characters\Players\Kolatt").Clone() as RolePlayingGameData.Player);

            _Mob.Position = new Vector2(100,100);

            _CPlayer._TargetObject = _Mob;
            _Mob._TargetObject = _CPlayer;

            RolePlaying.CombatantEx._CombatantList.Add(_Mob);

            // TODO: use this.Content to load your game content here
        }