SFML community forums

General => SFML projects => Topic started by: JustWhit3 on March 03, 2023, 04:19:21 pm

Title: An SFML snake game with a few options, scores and basic audio effects (first gam
Post by: JustWhit3 on March 03, 2023, 04:19:21 pm
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
Title: Re: An SFML snake game with a few options, scores and basic audio effects (first gam
Post by: eXpl0it3r on March 04, 2023, 04:03:00 pm
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! :)