[Coco] Tandy Color Computer 3 RND Function
EDDY SZCZERBINSKI
dhaulagiri at hotmail.com
Sat Mar 28 00:34:27 EDT 2020
Hello all,
regarding RND, I remember using the joystick values as an additional random factor.
Don't really remember exactly how, but I remember that during a game, the x,y values would "move a lot" and also not being the same numbers for the same action. But of course, I agree it depends on the game played and this proposition does not work in all situations. But at the time, it was more than enough to introduce another random factor to prevent any repetition.
Stay safe and happy cocoeing !
Eddy from Quebec city
________________________________
De : Coco <coco-bounces at maltedmedia.com> de la part de Melanie and John Mark Mobley <johnmarkmelanie at gmail.com>
Envoyé : vendredi 27 mars 2020 00:20
À : 'CoCoList for Color Computer Enthusiasts' <coco at maltedmedia.com>
Objet : Re: [Coco] Tandy Color Computer 3 RND Function
I said) The value of the stack pointer at the next timer interrupt is somewhat random.
But now that I think about it some more...
The value of the program counter at the next timer interrupt is somewhat random.
But now that I think about it some more...
The value of the return location that is stored on the stack at the nex timer interrupt is somewhat random.
-John Mark Mobley
--
Coco mailing list
Coco at maltedmedia.com
https://pairlist5.pair.net/mailman/listinfo/coco
More information about the Coco
mailing list