public Game() { GameMode = UsualGameMode; Creator = new MapCreator(this); Player = Creator.GetPlayer(); Width = MapCreator.GameWidth; Height = MapCreator.GameHeight; GameObjects = Creator.CreateRandomMap(); Score = 0; IsOver = false; }
public Game(List <IGameObject> map) { GameMode = UsualGameMode; Creator = new MapCreator(this); Player = Creator.GetPlayer(); Width = MapCreator.GameWidth; Height = MapCreator.GameHeight; GameObjects = map; Score = 0; IsOver = false; GameMode = UsualGameMode; }