SFML community forums
Help => Graphics => Topic started by: paupav on August 21, 2014, 03:05:38 am
-
So I've made a game in which at start is shown Main Menu, and when I click game start user can clearly see that one window is closing and another one opening. How do you guys get rid of that transition. Am I doing something wrong?
Here is link to my game if you don't understand what I'm talking about: http://en.sfml-dev.org/forums/index.php?topic=16130.msg115346#new
-
Why don't you use the same window? :p
-
How would I do that if I wanna split code in few functions?
-
This
Why don't you use the same window? :p
and that
split code in few functions?
are totally unrelated!
Why do you think you need more than one window? Please be a bit more elaborate than "split code in few functions"!
-
You should take a look at this example (https://github.com/eXpl0it3r/SmallGameEngine), maybe it will help you to understand why you don't need "2" windows in your case. (Just switch states/screens)
AlexAUT
-
Thanks, but there isn't as much explanation as I need :).
This tutorial seems nice : https://github.com/SFML/SFML/wiki/Tutorial:-Basic-Game-Engine
-
Must I repeat myself again? (http://en.sfml-dev.org/forums/index.php?topic=16145.msg115458#msg115458)
-
Sorry, bad habit.