示例#1
0
        public GTA2Game(string mapName, string styleName)
        {
            map = new Map.Map(mapName, styleName);
            map.CalcCoord();

            _physics = new Physics();
            _physics.Initialize(map);

            sprites = new Sprites();
            GameObject.spriteAtlas = sprites;
            pedList = new List<Pedestrian>();
            pedList.Add(new Pedestrian(new Vector3(65, 180, 5)));

        }
示例#2
0
        public GTA2Game(string mapName, string styleName)
        {
            map = new Map.Map(mapName, styleName);
            map.CalcCoord();

            _physics = new WorldSimulation(map);

            sprites = new Sprites();
            GameObject.spriteAtlas = sprites;
            pedList = new List<Pedestrian>();
            Pedestrian ped = new Pedestrian(new Vector3(65, 178, 5));
            pedList.Add(ped);
            _physics.AddPed(ped);

            debugDraw = false;
        }