SFML community forums
Help => Graphics => Topic started by: AhmedYasin on November 25, 2023, 09:57:11 am
-
- how to set a background in sfml window
- there is a game called 12 beads game and when the user crosses the other bead,how do i make the second bead disappear.
- how do i make a menu in the same sfml window that redirects user to the game
-
how to set a background in sfml window
Colour? Pass an sf::Color to clear().
Image? Draw a texture rectangle or a sprite to the window so that it covers the window and before you draw anything else (immediately after clearing).
there is a game called 12 beads game and when the user crosses the other bead,how do i make the second bead disappear.
What have you done so far and what exactly are you having trouble with?
how do i make a menu in the same sfml window that redirects user to the game
There are lots of ways but an SFML-based GUI might be the simplest.
Try TGUI (https://en.sfml-dev.org/forums/index.php?topic=18901.msg136036#msg136036) or ImGui-SFML (https://en.sfml-dev.org/forums/index.php?topic=20137.msg144880#msg144880), for example.
-
I'm pretty sure the user didn't find the "New Topic" button and thus used the "New Poll" one instead.
I've edited the original post and made it a normal topic instead of a poll.
-
Thanks, eXpl0it3r. I've edited my post to reflect. :)