GameState now only defines window limits
GameState now only defines window limits. RenderWindow is now set to be a separate object left in the main method. Noted issues if put into GameState: Window never opens and the program just ends.
This commit is contained in:
+6
-6
@@ -7,9 +7,9 @@ GameState::GameState()
|
||||
{
|
||||
videoSizeHorizontal = 1024;
|
||||
videoSizeVertical = 725;
|
||||
sf::Vector2u newVideoSize(videoSizeHorizontal, videoSizeVertical);
|
||||
window.setSize(newVideoSize);
|
||||
window.setTitle("SnakePlusPlus");
|
||||
// sf::Vector2u newVideoSize(videoSizeHorizontal, videoSizeVertical);
|
||||
// window.setSize(newVideoSize);
|
||||
// window.setTitle("SnakePlusPlus");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -17,8 +17,8 @@ GameState::GameState(int newHorizontal, int newVertical)
|
||||
{
|
||||
videoSizeHorizontal = newHorizontal;
|
||||
videoSizeVertical = newVertical;
|
||||
sf::Vector2u newVideoSize(videoSizeHorizontal, videoSizeVertical);
|
||||
window.setSize(newVideoSize);
|
||||
window.setTitle("SnakePlusPlus");
|
||||
// sf::Vector2u newVideoSize(videoSizeHorizontal, videoSizeVertical);
|
||||
// window.setSize(newVideoSize);
|
||||
// window.setTitle("SnakePlusPlus");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user