Re: [stella] 6502 ASM question...

Subject: Re: [stella] 6502 ASM question...
From: chris koivu <cmkoivu@xxxxxxxxx>
Date: Tue, 10 Jun 2003 10:46:55 -0700 (PDT)
ADC

Dennis Debro <ddebro@xxxxxxxxxxxxx> wrote:
I'm looking to implement Thomas' suggestion for Climber (having random ladder placement) and I've run into a snag. I don't know if I'm thinking too hard or if I've been looking at this so long that I can't see a solution.

Anyway, here's my dilemma...

To get random ladders I can read for a random number but the numbers have to have constraints. The ladders make up 2 PF graphics and they have to have at least a ladder's distance between them. So each 1 or 0 must be next to another of the same value. Am I making since???

Does anyone know of a quick math method that would get this combination? Right now I'm thinking I'll have to check each bit individually.

Take care,
Dennis

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


Do you Yahoo!?
Free online calendar with sync to Outlook(TM).
Current Thread