Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: making of 12 beads game  (Read 1643 times)

0 Members and 1 Guest are viewing this topic.

AhmedYasin

  • Newbie
  • *
  • Posts: 1
    • View Profile
making of 12 beads game
« 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
« Last Edit: November 25, 2023, 09:17:20 pm by eXpl0it3r »

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: background
« Reply #1 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 or  ImGui-SFML, for example.
« Last Edit: November 25, 2023, 09:23:50 pm by Hapax »
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: making of 12 beads game
« Reply #2 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.
« Last Edit: November 25, 2023, 09:28:07 pm by eXpl0it3r »
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: making of 12 beads game
« Reply #3 on: November 25, 2023, 09:24:15 pm »
Thanks, eXpl0it3r. I've edited my post to reflect. :)
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

 

anything