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

Author Topic: Fruit Chase  (Read 6422 times)

0 Members and 1 Guest are viewing this topic.

Kiblinix

  • Newbie
  • *
  • Posts: 15
    • View Profile
Fruit Chase
« 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?

Cuban-Pete

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Fruit Chase
« Reply #1 on: July 11, 2011, 12:07:45 am »
Score of 950.

Haha, funny game. Has nice looks also, it fits the game.

Nice work!  :D

Haikarainen

  • Guest
Fruit Chase
« Reply #2 on: July 12, 2011, 10:01:14 am »
2250 :D

Nice first stuff dude!

gsaurus

  • Sr. Member
  • ****
  • Posts: 262
    • View Profile
    • Evolution Engine
Fruit Chase
« Reply #3 on: July 12, 2011, 01:03:40 pm »
1650  :P
First bug: resize window (e.g. maximize) and menus won't work properly  :wink:
Pluma - Plug-in Management Framework

Kiblinix

  • Newbie
  • *
  • Posts: 15
    • View Profile
Fruit Chase
« Reply #4 on: July 12, 2011, 03:29:26 pm »
Quote
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

gsaurus

  • Sr. Member
  • ****
  • Posts: 262
    • View Profile
    • Evolution Engine
Fruit Chase
« Reply #5 on: July 12, 2011, 06:06:03 pm »
Sorry, I didn't express well. When you resize the window, the clickable areas doesn't match to the menu options anymore.
Pluma - Plug-in Management Framework

danman

  • Hero Member
  • *****
  • Posts: 1121
    • View Profile
    • Email
Fruit Chase
« Reply #6 on: July 12, 2011, 07:20:42 pm »
sf::Window::ConvertCoords ;) .
Pointilleur professionnel

Kiblinix

  • Newbie
  • *
  • Posts: 15
    • View Profile
Fruit Chase
« Reply #7 on: July 13, 2011, 12:03:55 am »
Quote
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.

Quote
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 :)

.teri

  • Newbie
  • *
  • Posts: 28
    • View Profile
Fruit Chase
« Reply #8 on: July 13, 2011, 12:20:49 am »
Score: 2150

I like the graphic style. Personally i miss sounds.
But i like the graphic style.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10800
    • View Profile
    • development blog
    • Email
Fruit Chase
« Reply #9 on: August 23, 2011, 01:45:33 am »
Unfortunately the link is dead, maybe because of the changes to the SFMLUploads-site... :(

Can you fix the link?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
Fruit Chase
« Reply #10 on: August 23, 2011, 09:50:37 am »
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10800
    • View Profile
    • development blog
    • Email
Fruit Chase
« Reply #11 on: August 24, 2011, 01:36:34 am »
Ah /file/ it is not /code/... ;-)
Thanks Nexus!
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything