SFML community forums

General => SFML projects => Topic started by: julen26 on January 23, 2013, 02:49:22 pm

Title: Freerider
Post by: julen26 on January 23, 2013, 02:49:22 pm
Here I come again with a new game. After releasing Rounded Soccer (http://en.sfml-dev.org/forums/index.php?topic=9659.0), I used the same framework to change it a bit and to do this game.

(http://2.bp.blogspot.com/-3RF7vzi0Tgg/UP_ky7GayTI/AAAAAAAAAGc/jt2CH0SXzV4/s400/freerider.png)

Description
Snowboard style game where you can ride random maps. These random maps are different from each other when selecting different zones on the mountain. Freeride, race and flag modes. After beating any race or flag mode, you can submit your highscore and view it in-game or here (http://julen26.blogspot.com.es/p/freerider.html).

Used technology
C++ and SFML 2.0.

Platforms
Windows.
Still have to build for linux.

Controls
Move - Arrow Keys
Jump - Space (Only when going forward).
Select zone - Click anywhere on the mountain to select the place where you will ride.

Web & download
Download Freerider.zip (3.23 MB) (https://dl.dropbox.com/u/45860111/Freerider.zip)
Web & Highscore (http://julen26.blogspot.com.es/p/freerider.html)

Videos

http://www.youtube.com/watch?v=yua5Zw9OEzk

Thanks!
Title: Re: Freerider
Post by: eXpl0it3r on January 23, 2013, 03:40:36 pm
This looks really nice! Good job! :)

I know it's silly, but I have to ask anyways... were you by any chance a bit inspired by SkiFree (https://www.youtube.com/watch?v=XisRG6ngRq4)? ;D
Title: Re: Freerider
Post by: julen26 on January 23, 2013, 03:50:28 pm
This looks really nice! Good job! :)

I know it's silly, but I have to ask anyways... were you by any chance a bit inspired by SkiFree (https://www.youtube.com/watch?v=XisRG6ngRq4)? ;D

No, I don't know that game. But,  I was inspired by an old flash game whose name I can't remember. In fact, I took the boarder sprite from it.

Thanks eXpl0it3r
Title: Re: Freerider
Post by: Nexus on January 23, 2013, 04:32:16 pm
Nice, I like the landscape and the snow whirling effect! :)

Some features that could be cool: Fullscreen, a rider shadow (static sprite should be enough), maybe a little more variation in the landscape? I don't see what the starting point on the mountain changes. Also, you can't really get fast -- even if there are no obstacles, the rider brakes.
Title: Re: Freerider
Post by: julen26 on January 23, 2013, 06:28:33 pm
You are right Nexus, so I've just increased the speed  ;).
And the rider shadow... I forgot to do it, but anyway I think It would be a bit hard to do. As you have already said, a static sprite should be enough, but wich shape shoud I use? A circle?

Thanks!
Title: Re: Freerider
Post by: Foaly on January 23, 2013, 06:30:31 pm
Cool game! It's a lot of fun.
One thing I would add is a different image, for when the rider jumps, to make it more realistic and noticeable when he's jumping. (may an image of the rider prostrating)
Title: Re: Freerider
Post by: masskiller on January 23, 2013, 09:05:17 pm
Quote
but which shape should I use? A circle?

If you use photoshop a single black (or some gray color) overlay and transforming/warping of the original can do well enough.
Title: Re: Freerider
Post by: julen26 on January 24, 2013, 02:16:48 pm
Quote
but which shape should I use? A circle?

If you use photoshop a single black (or some gray color) overlay and transforming/warping of the original can do well enough.
I have used photoshop and I've got something better. It's updated.

(http://4.bp.blogspot.com/-S5g6tWKmT8M/UQE0D9VKquI/AAAAAAAAAGs/kY5gVrQs1gk/s1600/shadow.png)
Title: Re: Freerider
Post by: io on January 28, 2013, 07:16:28 am
Fun : o)

I get a crash though a lot of times after it submits to the high score table

Also if I hold down the left mouse button to place the flag and don't let go and shake my mouse for a few seconds I get a crash.

Not quite sure how the point system works either :) (especially on race).

You can get rid of the following two scores if you want -- I was curious and wanted to see the map structure you had on your map file, so I editted it XD.

can remove:
  ==>io   Race   41.2008 s   2245
  ==>io   Race   40.4818 s   764


Good work though!
Title: Re: Freerider
Post by: julen26 on January 28, 2013, 08:25:49 am
Fun : o)

I get a crash though a lot of times after it submits to the high score table

Also if I hold down the left mouse button to place the flag and don't let go and shake my mouse for a few seconds I get a crash.

Not quite sure how the point system works either :) (especially on race).

You can get rid of the following two scores if you want -- I was curious and wanted to see the map structure you had on your map file, so I editted it XD.

can remove:
  ==>io   Race   41.2008 s   2245
  ==>io   Race   40.4818 s   764


Good work though!

Thanks io, I'll take a look to that crashes. The point system is a bit strange, simply you get more points if there are more obstacles in the map. And you lose points every second passed. So, even if you play a map with few obstacles and ride fast, you won't get many points.

In flag mode, the more flags you complete, the more points you get. And for each flag completed, you get bonus points, but if you fail, the bonus counter will be reseted.

Update:
Fixed the mouse crash, and point system changed on races:
  1st: +400 points
  2nd: +300 points
  3rd: +200 points
  4th: +100 points
  5th: +0 points
Title: Re: Freerider
Post by: io on January 28, 2013, 09:20:37 am
Kool -- possibly notify the user of position placed in races too.


I can confirm mouse crash doesn't happen anymore for me.  I also am not getting a crash on submitting high score.
Title: Re: Freerider
Post by: julen26 on January 29, 2013, 09:30:54 am
Kool -- possibly notify the user of position placed in races too.

Done!  ;)