| |
Testa Account closed
Registered: Oct 2004 Posts: 197 |
how do i get the right combinations
hi,
i have 4 different bit paterns..
00
11
01
10
we can pack them in one byte.. #%00110110
how to code a neat routine that calculates al the different combinations and store them into a table...
bye
Testa
|
|
... 10 posts hidden. Click here to view all posts.... |
| |
JackAsser
Registered: Jun 2002 Posts: 2038 |
Quote: i think 255 different sprites is not a problem at all,
256 sprites takes one complete bank, the only problem now is that i need some memory for the sprites parameters
($07F8-$07FF) i think i go for 254 sprites ...
for example. i dont use sprite pointer $ef ($7bc0) and $ff ($7fc0) so i can use $7bf8-$7bff and $7ff8-$7fff as sprite parameters... and switch $d018 right before the 4th rasterline...
this way i can not use any other graphics like a bitmap picture or something else.. so i think i go for a screen without badlines and use sprites only.. and swing
the 4x4 effect in all directions and all borders..
thanks for the help,
Testa
than
Hmms, it's an alternative of course. I don't know if it's any help but you might wanna check out my S:T Lars Meeting III - Invite. Source included. It's also a 4x4 effect done using sprites and runs in all borders. I had a completly different implementation though. I simply stretched the sprites every 2nd line to get 4x4 resolution and in between I mixed in the 4x4-math code with the raster code. |
| |
Testa Account closed
Registered: Oct 2004 Posts: 197 |
yeah... nice atuff jack.. this is what i,ve got in mind,
i think 4x4 in the border is a nice effect...
thanks for the info...
|
Previous - 1 | 2 - Next |