SFML community forums

Help => Graphics => Topic started by: AhmedYasin on November 25, 2023, 09:57:11 am

Title: making of 12 beads game
Post by: AhmedYasin on November 25, 2023, 09:57:11 am
Title: Re: background
Post by: Hapax on November 25, 2023, 03:48:21 pm
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.
Title: Re: making of 12 beads game
Post by: eXpl0it3r on November 25, 2023, 09:18:16 pm
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.
Title: Re: making of 12 beads game
Post by: Hapax on November 25, 2023, 09:24:15 pm
Thanks, eXpl0it3r. I've edited my post to reflect. :)