/// <summary> /// Creates a new live grid. /// </summary> public LiveGrid(SwordeningGame game, ref MapGrid mapGrid) : base(game) { _mapGrid = mapGrid; CoordinateX = 0; CoordinateZ = 0; UpdateGrid(); }
public InGame(SwordeningGame game) : base(game) { Hero = new Wizard(game,this,Vector3.Zero); camera = new CameraAndLights(); _saveGame = new SaveGame(this); mapGrid = new MapGrid(_game,this); liveGrid = new LiveGrid(_game,ref mapGrid); monsters = new List<Creature>(); camera.cameraPos = Vector3.Zero; gamemusic = _game.musics["gamemusic"]; difficultycounter = 0; spawntime = 1.0f; }