Author Topic: Background tile question  (Read 928 times)

ccovell

  • Hero Member
  • *****
  • Posts: 2245
Re: Background tile question
« Reply #30 on: June 10, 2012, 09:24:35 PM »
It's easy to calculate warping on-the-fly.  Just define a value of, eg. 0.25 to add to a cumulative scroll variable each scanline.  And increase this value per frame, presto, the background warps.  (You can see it in the intro to Tongueman's logic when my name comes up.)

Your scroll variable will have to be stored as 3 bytes -- 2 bytes for the usual scroll reg and a 3rd for a fractional value.  (0.25 would be stored as $40,$00,$00 as the 6280 sees it.)

Arkhan

  • Hero Member
  • *****
  • Posts: 14142
  • Fuck Elmer.
    • Incessant Negativity Software
Re: Background tile question
« Reply #31 on: June 11, 2012, 08:38:03 AM »
I don't utilize warping, but the Atlantean backgrounds are using a similar approach to scroll across the screen all nicely.

[Fri 19:34]<nectarsis> been wanting to try that one for awhile now Ope
[Fri 19:33]<Opethian> l;ol huge dong

I'm a max level Forum Warrior.  I'm immortal.
If you're not ready to defend your claims, don't post em.

Nando

  • Hero Member
  • *****
  • Posts: 3193
Re: Background tile question
« Reply #32 on: June 11, 2012, 01:29:11 PM »
So i've been toggling the stuff around. What an eye opener! And WOW like straight up to those devs/artist of the day.

Air zonk had me in awe btw. Very clever stuff and thats just from a lil messing around.