Esempio n. 1
0
        public void loadScene()
        {
            camerMan = new CameraMan(Engine.InputDevice);
            camerMan.Position.z = -3.0;
            Engine.Camera.WorldObject = camerMan;

            chunklet1 = new Chunklet(0, 0, 0);

            _room = new Room(50,50,50);

            _room.loadXml(Path.Combine(DynaStudios.Utils.StreamTool.DIR, "Maps", "map.xml"), Engine.TextureManager);
        }
Esempio n. 2
0
        public void loadScene()
        {
            player = new Player(Engine.InputDevice);
            player.Position.x = 25.0;
            player.Position.y =  2.0;
            player.Position.z = 25.0;
            player.capture_mouse = true;
            Engine.Camera.WorldObject = player;
            //_room = new Room(Path.Combine(DynaStudios.Utils.StreamTool.DIR, "Maps", "map.xml"), Engine.TextureManager);

            _abilityBarTextureId = Engine.TextureManager.getTexture(Path.Combine("Images", "Game", "abilityBar.png"));
            _abilitySelectedTextureId = Engine.TextureManager.getTexture(Path.Combine("Images", "Game", "abilitySelected.png"));
            string roomFilePath = Path.Combine(StreamTool.DIR, "Maps", "Room.xml");
            if (_room == null)
            {
                _room = new Room(100, 30, 100);
                _room.loadXml(roomFilePath, Engine.TextureManager);
            }

            Engine.forceResize();
            _lastFrameTime = DateTime.Now;

            _enemies = new List<Enemy>();
            _enemies.Add(new Cockroach(this, new Vector3(0, 1, 0)));
        }