Dark Bit Factory & Gravity

GENERAL => Challenges & Competitions => Topic started by: bbear on April 21, 2007

Title: CLASSIC COMP : HORIZON GASTON #2
Post by: bbear on April 21, 2007
my first try with FreeBasic. Thanks to Shockwave for his base code and rbraz for tinyptc_ext...

not optimized at all, 640x480 and 320x240 versions

original code by Gaston, original music by Blaizer, converted module by Estrayk, great logo by Strider

flashtro : http://www.flashtro.com/page.php?id=39
introinferno: http://www.intro-inferno.com/production.php?id=912

download remake here (http://cyberpingui.free.fr/HorizonGaston.zip)

update: original lores version added
update2: 2 versions added, fullscreen only but scrollspeed ok. old versions are called _fw (fullscreen or windowed) with speed problem
final update: added C version fullscreen/windowed
big update of the zip (bugs fixed for all versions+sources)
Title: Re: CLASSIC COMP : HORIZON GASTON #2
Post by: Rbz on April 21, 2007
Nice one dude, the sinus scroller is a bit faster for me, anyway nice conversion  :clap:
Title: Re: CLASSIC COMP : HORIZON GASTON #2
Post by: Shockwave on April 21, 2007
Really rules! The sine scroll is sining too fast to read here though :)
Great remake tho!
Title: Re: CLASSIC COMP : HORIZON GASTON #2
Post by: Ghost^BHT on April 21, 2007
this is a great remake :) scroller isnt too fast here < probably because my machine don't like some fb things ?  :clap:
Title: Re: CLASSIC COMP : HORIZON GASTON #2
Post by: bbear on April 21, 2007
I think it's possible to fix it by using a timer...
Title: Re: CLASSIC COMP : HORIZON GASTON #2
Post by: benny! on April 22, 2007
Awesome. Sinus scroller works here perfectly! Excellent conversion! Very well done!
Title: Re: CLASSIC COMP : HORIZON GASTON #2
Post by: rain_storm on April 22, 2007
Excellent entry bbear you work fast
Title: Re: CLASSIC COMP : HORIZON GASTON #2
Post by: Shockwave on April 23, 2007
Really excellent job.. May this be uploaded to Intro Inferno?
Title: Re: CLASSIC COMP : HORIZON GASTON #2
Post by: bbear on April 23, 2007
the scroll is always a bit too fast, and I don't know how to fix this problem (depend on CPU : a friend of mine on a 4 Ghz run at speedx3!)
I'm trying to adapt it in C
update soon with c version and all sources

thanks
Title: Re: CLASSIC COMP : HORIZON GASTON #2
Post by: benny! on April 23, 2007
the scroll is always a bit too fast, and I don't know how to fix this problem (depend on
CPU : a friend of mine on a 4 Ghz run at speedx3!)
...

Time is / should be equal on every cpu - meaning 1 sec on a 1Ghz computer is the
same as on a 4Ghz computer ;)
Title: Re: CLASSIC COMP : HORIZON GASTON #2
Post by: Shockwave on April 23, 2007
The problem is with the gfx card settings on different peoples machines.
Personally for those fucking assholes who like to turn off vsync on thier cards, I don't care about them and they can go fuck themselves as they don't deserve to see anything on thier pc.

The real problem is easy to fix.
Some people's cards in 640 X 480 will refresh at 100fps, some at 70fps, some at 50fps etc.

You should NOT delta time the scroll refresh rate as it will always look jerky on things like sine scrolls, but what you could do is compromise.

Get a variable, make it a double and store the timer value in that variable and check at the end of each frame how much time elapsed by saying;

elapsed = timer - oldtime

You will be left with a number that can be divided and used as the addition for your sine wave so at least the wave always moves at roughly the same speed.

IMHO it's wrong to delta time the whole scrolltext unless it's 3D stuff.
Title: Re: CLASSIC COMP : HORIZON GASTON #2
Post by: bbear on April 23, 2007
update with fullscreen version only : scrollspeed is ok now.
C version soon (next update)
Title: Re: CLASSIC COMP : HORIZON GASTON #2
Post by: Shockwave on April 23, 2007
That last update is right on the money. The scroll speed looks the same as original now. Great job!
Title: Re: CLASSIC COMP : HORIZON GASTON #2
Post by: ninogenio on April 23, 2007
very cool bbear i really like that!
Title: Re: CLASSIC COMP : HORIZON GASTON #2
Post by: Tetra on April 23, 2007
For me atleast the flsho wont load on the flashtro site, so it nice to get to see it :)
Title: Re: CLASSIC COMP : HORIZON GASTON #2
Post by: bbear on April 23, 2007
I added a C version, fullscreen/windowed. check scroll speed
Title: Re: CLASSIC COMP : HORIZON GASTON #2
Post by: Clyde on April 23, 2007
Welldone BBear, great effort :)
Title: Re: CLASSIC COMP : HORIZON GASTON #2
Post by: bbear on April 26, 2007
I done some fixes and updated the zip
Title: Re: CLASSIC COMP : HORIZON GASTON #2
Post by: Hotshot on May 01, 2007
Another Excellent demo here

 :cheers:
Title: Re: CLASSIC COMP : HORIZON GASTON #2
Post by: va!n on May 07, 2007
d/l link does not work :(