Esempio n. 1
0
 public SideBar(Vector2 position, ref PlayerCharacter player)
 {
     _position = position;
     _backgroundImage = ContentHelper.Content.Load<Texture2D>("SideBarBackground");
     _player = player;
     //_font = ContentHelper.Content.Load<SpriteFont>("MessageBoxFont");
     _font = ContentHelper.Content.Load<SpriteFont>("arial");
     _playerHitPointsPosition = new Vector2(position.X + 3, position.Y + 3);
     _playerManaPosition = new Vector2(position.X + 3, position.Y + 23);
     _width = _backgroundImage.Width;
     _height = _backgroundImage.Height;
 }
Esempio n. 2
0
        public World()
        {
            _creatures = new List<ICreature>();
            _containers = new List<IContainer>();
            _doors = new List<Door>();
            _quests = new List<IQuest>();
            _fire = new List<Fire>();
            _remains = new List<IRemains>();
            _specialEffects = new List<ISpecialEffect>();
            _level = 1;

            MapFactory.CreateMap(this);

            Player = new PlayerCharacter(new Vector2(47, 25), this);
            CenterCameraOnPlayer();
            DiscoverTerrainAroundPlayer();

            TEST_addStuffToWorld();
        }