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

Author Topic: An SFML snake game with a few options, scores and basic audio effects (first gam  (Read 2586 times)

0 Members and 1 Guest are viewing this topic.

JustWhit3

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Hello everybody,

Wanted to share with you my first ever game made with SFML 2.5.1 and C++20. It is a very basic snake game with menu state, game state, options state (in which you can customize the game a bit) and basic scores (top 3 only). Since SFML doesn't have any built-in widget for buttons or textboxes I created them by myself; they probably are not perfect at all, but are customizable and stable for my purposes (I just needed something functional and easy at the same time).

I know that probably there will be mistakes, bugs (even if I tried to fix all the possible ones) and other imperfections, so please keep in mind that this is my first game and in general one of my first GUI app.

Feel free to send me hints or advices on how to improve it and if you want open also issues or PRs.

If you like it you can also leave a star on github of course!

Repository link: https://github.com/JustWhit3/snake-game

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
I managed to compile the game on Windows 11 with VS 2022 and when running it, I get the menu screen, but if I try to start the game or open the settings, nothing happens. I just get the button sound an animation, but the game doesn't start, nor does the settings page open.

I've used the latest main branch version.

Looks quite neat! :)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/