Author Topic: Barrel Scroll full source  (Read 4838 times)

0 Members and 1 Guest are viewing this topic.

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17414
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Barrel Scroll full source
« on: December 16, 2009 »
This shows how to achieve the classic Amiga barrel scroll effect in Freebasic, the archive includes the music and gfx.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline nzo

  • Atari ST
  • ***
  • Posts: 126
  • Karma: 68
    • View Profile
    • Amiga Remakes in DHTML
Re: Barrel Scroll full source
« Reply #1 on: December 16, 2009 »
Strange.. I get this..

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17414
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Barrel Scroll full source
« Reply #2 on: December 17, 2009 »
Hmmm.. What version of FB mate?
Did you compile with -lang deprecated ?
Shockwave ^ Codigos
Challenge Trophies Won:

Offline nzo

  • Atari ST
  • ***
  • Posts: 126
  • Karma: 68
    • View Profile
    • Amiga Remakes in DHTML
Re: Barrel Scroll full source
« Reply #3 on: December 17, 2009 »
Yes, depracated as always.
Latest version (checks) - 0.20.0
Strange?

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17414
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Barrel Scroll full source
« Reply #4 on: December 17, 2009 »
Ah I know, I came accross this problem before.. I solved it here;

http://www.dbfinteractive.com/forum/index.php/topic,3621.msg51246.html#msg51246
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: Barrel Scroll full source
« Reply #5 on: December 17, 2009 »
instead of the rgb line try this:

Code: [Select]
dim col as uinteger=( pdxfnt.bmp.pal(L*3) shl 16 )or( pdxfnt.bmp.pal(L*3+1) shl 8 )or(pdxfnt.bmp.pal(L*3+2))
if col>0 then FONT_COLOURS(L)=col
« Last Edit: December 17, 2009 by Clyde Radcliffe »
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline nzo

  • Atari ST
  • ***
  • Posts: 126
  • Karma: 68
    • View Profile
    • Amiga Remakes in DHTML
Re: Barrel Scroll full source
« Reply #6 on: December 17, 2009 »
 :clap: That fixed it.