RE: [stella] Star Fire: 1 step forward 2 steps back :-)

Subject: RE: [stella] Star Fire: 1 step forward 2 steps back :-)
From: Manuel Polik <cybergoth@xxxxxxxx>
Date: Sat, 30 Nov 2002 16:05:15 +0100
Hi Dennis!

> They travel on their own but all will eventually
> cross each others path at the same time.

Gotcha!

So they _start_ all on the same spot, i.e. no random 
numbers!

>I hope this helps.

Certainly.

Well, the random number generator I use was the one I 
used in Gunfight, and it possibly originated in QB:

Random
    LDA rnd
    ASL
    ASL
    ASL
    EOR rnd
    ASL
    ROL rnd
    RTS

Hm... how can this possibly get knocked out?
It's initialized once with $01 and seeded at least once 
every frame.

Sometimes I create an actual number with 

JSR Random

but in ultra time critical code I may just

LDA rnd

Hm... any ideas anyone?

Greetings,
	Manuel

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


Current Thread