New Game - Better Big Dipper code?
I didn't like the original code for the Big Dipper so I used a standard delay loop. It saves space but it does not give the same effect. Here is the first bin which shows a fairly good depiction of the Big Dipper.
Here is the alternate code ... saves space but doesn't look as good.
;Show Big Dipper LDA #2 ;used to enable missile LDX #7 ;Number of stars BigDipperLoop LDY StarTable,X ;get delay for loop (star placement) STA WSYNC ;always start loop at same time ;Delay loop positions stars DipperDelay DEY BNE DipperDelay STA ENABL ;Turn missile on STY RESBL ;strobe missile position DEX STA WSYNC STA WSYNC STY ENABL ;Turn missile off BNE BigDipperLoop ;Start loop over StarTable .byte 10,8,5,9,8,7,6,9
This bin shows a less desireable depiction of the Big Dipper as coded above.
This bin looks a little better for only a couple of bytes
Here is another approach for displaying stars using the Cosmic Ark trick, but only turning on selected stars.
3 Comments
Recommended Comments