Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions AsteroidsGame/GameComponents/GameManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ public class GameManager
public GameManager(IHubContext<GameHub> gameHub)
{
_hubContext = gameHub;
Initialzie();
Initialize();
}

public void Initialzie()
public void Initialize()
{
_game = new Game(_width, _height);
_game.State = GameState.Running;
Expand Down
2 changes: 1 addition & 1 deletion AsteroidsGame/Hubs/GameHub.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public async Task AddPlayer(string name)

public async Task RestartGame()
{
_game.Initialzie();
_game.Initialize();
}

public async Task KeyDown(string key, int keyCode)
Expand Down