Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spectate mode only showing a part of the game #446

Merged
merged 1 commit into from
Jul 24, 2016
Merged

Fix spectate mode only showing a part of the game #446

merged 1 commit into from
Jul 24, 2016

Conversation

bazk
Copy link
Contributor

@bazk bazk commented Jul 23, 2016

Hi, I'm trying to make the spectator mode work properly.

The center of view (player coordinates) was not being set properly, but to a random position on the game area. Therefore the spectator could only see a part of the game. Fixed that by updating the player coordinates to the center of the screen on the 'resize' event callback.

This pull request resolves issue #444.


 

In spectate mode, the center of view was not being set properly,
therefore the spectator could only see a part of the game. Fixed that
by updating the player coordinates on 'resize' events.
@abalabahaha abalabahaha merged commit 045e5a3 into owenashurst:master Jul 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants