Aw: RE: [stella] Generic kernal or just build a game?

Subject: Aw: RE: [stella] Generic kernal or just build a game?
From: cybergoth@xxxxxxxx
Date: Mon, 29 Mar 2004 15:07:25 +0200 (CEST)
Hi there!

> > disintigratetab
> >     .byte %01111111
> >     .byte %10111111
> >     .byte %11011111
> >     .byte %11101111
> >     .byte %11110111
> >     .byte %11111011
> >     .byte %11111101
> >     .byte %11111110
> > 
> > I used it to erase single blocks out. This table works as is for the
> > left _and_ the right side, if you 
> > EOR #$07 the index for the right side.
> 
> Err, what did you use as the offset for that table?

Something like xpos shifted 2 times right (divide by 4) and then if it's between 12 and 19 it's PF1 left, if it's between 20 and 27 it's PF1 right. Just subtract 12 or 20 then and if being on the right side additionally EOR #$07 and you have your offset.

BTW: Bounding rectangle should work, it doesn't matter that it's a circle, the player won't notice that. Basically when the hardware detects a collission, there was one, period. It's then just a matter of picking the "best brick to remove" in case... 

Greetings,
Manuel





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


Current Thread