Re: [stella] How to...

Subject: Re: [stella] How to...
From: Thomas Jentzsch <tjentzsch@xxxxxx>
Date: Tue, 17 Jul 2001 23:43:22 +0200
Gonzalo Fernández wrote:
> I wrote a code for an 8 scanlines res but it doesn't work
> well, I know why but I can't fix it (the island starts jump every 4 frames I
> think).

The problem is, that the height of the first row of the
island differs between 2 and 8, because it only depends
on the current y-value, but not on the starting row of
the island.
If you use the result from the code where you decide,
if you have to draw the island, the result is getting
surprisingly simple: 

  ...
  bcc NoPF
; very simply, isn't it :)
  lsr
  lsr
  tax
  lda island,x
  sta PF2
  
Continue2
  ...

Have fun!
Thomas                            
_______________________________________________________
Thomas Jentzsch         | *** Every bit is sacred ! ***
tjentzsch at web dot de |



-
Archives (includes files) at http://www.biglist.com/lists/stella/archives/
Unsub & more at http://www.biglist.com/lists/stella/

Current Thread