Jump to content
IGNORED

Vscroll routine needed!


Heaven/TQA

Recommended Posts

hmmm... i spend some time in searching atariarchives for a vscroll routine but haven't found any suitable...

 

diggin into river raid wasn't good either as the whole screen is done with antic e....

 

can someone post a vscroll routine here like used in flak!, warhawk! etc??? i just used the other way around (caverns of mars...) but this does not work for the other direction... aarg... as demo coder i always coded hscroller... ;)

 

oh of course for atari800....

Link to comment
Share on other sites

you can notice the flicker when watching the background tiles...

 

i'll double check that on real hardware...

 

but maybe you can post your vscroll routine?

 

i try to recode the scroll engine tonight with a kind of "positioning" approach so you have a "level position pointer" and the engine positions the window based on this pointer... at the moment it's kind of "incremental" one...

 

with this generic vscroller more interesting things will be possible... ;) like running backwards etc...

Link to comment
Share on other sites

Ok, I know what you mean.

The attached modifications solves your problem.

Additionaly you can change the scrolling direction now by writing 1 to scldir ($85) but this just concerns the finescolling part you have to handle the do_scrolling0 also if you wanna do this.

There is only one disadvantage, the code is 1 byte longer ;)

trackb1.zip

Link to comment
Share on other sites

thanks! i'll check it out...

 

but this 1 byte longer doesnt care... have you realised that i used a complete 2nd routine for building the 2nd screen??? why did i not just copy the 1st generated line to the 2nd screen... ;) just realised that yesterday... so ggen_gfx changed to a simple:

 

ggen_gfx ldx #39

ggen_gfx0 lda (linev),y

sta (linev2),y-

bpl ggen_gfx0

rts

 

and this saves a lot more bytes... ;)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...