Exemple #1
0
        public Game()
        {
            tm = new TileManager();
            gm = new GManager();
            ge = new GEngine();
            am = new ActorManager();
            ki = new KeyboardInput();

            _screenWidth = 600;
            _screenHeight = 480;

            _name = "";
            _path = "";

            _author = "";
            _description = "";
            _subName = "";

            _startMap = 0;
            _startX = 0;
            _startY = 0;

            _maxStats = 6;

            _intialParty = new List<int>();
            _intialParty.Add(0);

            _mySwitch = new List<Switch>();
            _myVariable = new List<Variable>();
        }
        public MapViewer(IntPtr obj, int objw, int objh)
        {
            _xoffset = _yoffset = 0;
            _mapWindow = new RenderWindow(obj);
            _mapWindow.SetFramerateLimit(60);
            _mapView = new View(new FloatRect(0, 0, objw, objh));
            _mapWindow.SetView(_mapView);
            _grid = true;
            _block = true;

            _showGround = true;
            _showFringe = true;

            _gEngine = new GEngine();

            LoadedNewTS();
        }