SFML community forums
General => SFML projects => Topic started by: Kiblinix on July 10, 2011, 11:49:17 pm
-
In some spare time I decided I wanted to create a simple game with C++ and (of course) SFML.
Hence, Fruit Chase was born!
All you have to do is move your character around the screen, and when he gets to some fruit, he'll eat it! When he eats fruit, he speeds up. If the character touches the sides of the screen, game over, so the game gets progressively more difficult.
Download here: https://legacy.sfmluploads.org/index.php?page=view_file&file_id=41
Source code is in there too, so feel free to take a look at it, but don't expect any amazing code :P
This is the first game I have made since I decided to start using and practising SFML, so any criticism is greatly appreciated :)
How high can you score?
-
Score of 950.
Haha, funny game. Has nice looks also, it fits the game.
Nice work! :D
-
2250 :D
Nice first stuff dude!
-
1650 :P
First bug: resize window (e.g. maximize) and menus won't work properly :wink:
-
resize window (e.g. maximize) and menus won't work properly
What's wrong with the menus? I checked through it a few times and didn't find anything.
For the resizing, do you mean that things get distorted when you change the window size? I kinda didn't know how to fix that :P
-
Sorry, I didn't express well. When you resize the window, the clickable areas doesn't match to the menu options anymore.
-
sf::Window::ConvertCoords ;) .
-
Sorry, I didn't express well. When you resize the window, the clickable areas doesn't match to the menu options anymore.
No problem :) I never really took into account people might resize the window haha. It's fixed now.
sf::Window::ConvertCoords
Thanks a ton for that, saved me having to look for ages to find something like that myself :P Downside was I had to create a new project where a circle followed the mouse to understand how it worked :)
-
Score: 2150
I like the graphic style. Personally i miss sounds.
But i like the graphic style.
-
Unfortunately the link is dead, maybe because of the changes to the SFMLUploads-site... :(
Can you fix the link?
-
https://legacy.sfmluploads.org/file/41
-
Ah /file/ it is not /code/... ;-)
Thanks Nexus!