StartreStart
This commit is contained in:
commit
d9d56d54e0
1 changed files with 7 additions and 1 deletions
|
@ -39,7 +39,7 @@ namespace DangerousD.GameCore
|
||||||
IDrawableObject HUD;
|
IDrawableObject HUD;
|
||||||
public DebugHUD DebugHUD;
|
public DebugHUD DebugHUD;
|
||||||
public List<NetworkTask> NetworkTasks = new List<NetworkTask>();
|
public List<NetworkTask> NetworkTasks = new List<NetworkTask>();
|
||||||
|
public string currentMap;
|
||||||
public GameManager GameManager { get; private set; } = new();
|
public GameManager GameManager { get; private set; } = new();
|
||||||
public AnimationBuilder AnimationBuilder { get; private set; } = new AnimationBuilder();
|
public AnimationBuilder AnimationBuilder { get; private set; } = new AnimationBuilder();
|
||||||
public NetworkManager NetworkManager { get; private set; } = new NetworkManager();
|
public NetworkManager NetworkManager { get; private set; } = new NetworkManager();
|
||||||
|
@ -77,6 +77,7 @@ namespace DangerousD.GameCore
|
||||||
DebugHUD = new DebugHUD();
|
DebugHUD = new DebugHUD();
|
||||||
UIManager.resolution = resolution;
|
UIManager.resolution = resolution;
|
||||||
UIManager.resolutionInGame = inGameResolution;
|
UIManager.resolutionInGame = inGameResolution;
|
||||||
|
currentMap = "lvl";
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void Initialize()
|
protected override void Initialize()
|
||||||
|
@ -139,6 +140,7 @@ namespace DangerousD.GameCore
|
||||||
case GameState.Game:
|
case GameState.Game:
|
||||||
HUD.Update(gameTime);
|
HUD.Update(gameTime);
|
||||||
GameManager.Update(gameTime);
|
GameManager.Update(gameTime);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
@ -322,5 +324,9 @@ namespace DangerousD.GameCore
|
||||||
_graphics.IsFullScreen = fullscrin;
|
_graphics.IsFullScreen = fullscrin;
|
||||||
_graphics.ApplyChanges();
|
_graphics.ApplyChanges();
|
||||||
}
|
}
|
||||||
|
public void Restart(string map)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue