Re: Aw: Re: Aw: Re: Re: [stella] Climber 5 beta...again???

Subject: Re: Aw: Re: Aw: Re: Re: [stella] Climber 5 beta...again???
From: Christopher Tumber <christophertumber@xxxxxxxxxx>
Date: Fri, 27 Jun 2003 14:31:46 -0400
Manuel wrote:

>Good thing as well, but it is missing the overhead for switching the flicker on/off :)

Okay, no problem:

  ldy colour ;May be a constant?
  lda framevariable
  adc flicker_on_off
  sta framevariable
  bmi skip
  ldy #0
skip
  sty COLUP0

flicker_on_off = #%00000000 ;Flicker is off
flicker_on_off = #%00010000 ;Flicker is on, slow
flicker_on_off = #%01000000 ;Flicker is on, fast

You can change the rate of flicker if you want to (ie: have the rate of flicker increase as they get closer to moving).


Of course that's using another variable but he's probably got a flicker on/off variable anyhow. Though it may be only be a bitflag which this is not, obviously. But turning it into one would be trivial though at the cost of a variable flicker-speed.

  ldy colour ;May be a constant
  lda flicker_on_off
  and #%00000001 ;Or wherever the bitflag is
  beq skip
  lda flickervariable
  adc #%01000000
  sta flickervariable
  bmi skip
  ldy #0
skip
  sty COLUP0


Chris....

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


Current Thread