Ejemplo n.º 1
0
        /// <summary>
        /// Allows the game to perform any initialization it needs to before starting to run.
        /// This is where it can query for any required services and load any non-graphic
        /// related content.  Calling base.Initialize will enumerate through any components
        /// and initialize them as well.
        /// </summary>
        protected override void Initialize()
        {
            Camera = new Camera(this);
            Map = new Map(this);
            Player = new Player(this);
            var skyDome = new SkyDome(this);
            var debugInfos = new DebugInfos(this);
            var hud = new HUD(this);

            Components.Add(Camera);
            Components.Add(Map);
            Components.Add(skyDome);
            Components.Add(Player);
            Components.Add(debugInfos);
            Components.Add(hud);

            base.Initialize();
        }
Ejemplo n.º 2
0
 public BlockAccessor(Map map)
 {
     _map = map;
     _outOfMapBlock = new Block(BlockType.None);
 }