Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > how do i get the right combinations
2008-10-01 23:12
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....
 
2008-10-03 09:31
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.
2008-10-03 10:06
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
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
rambo/Therapy/ Resou..
Krill/Plush
St0rmfr0nt/Quantum
Freeze/Blazon
Danko/Fairlight
theK/ATL
psych
Nith/TRIɅD
Worluk
MightyAxle
Chesser/Blazon
Guests online: 143
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Codeboys & Endians  (9.7)
4 Mojo  (9.6)
5 Coma Light 13  (9.6)
6 Edge of Disgrace  (9.6)
7 Signal Carnival  (9.6)
8 Wonderland XIV  (9.5)
9 Uncensored  (9.5)
10 Comaland 100%  (9.5)
Top onefile Demos
1 Nine  (9.7)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.5)
6 Scan and Spin  (9.5)
7 Onscreen 5k  (9.5)
8 Grey  (9.5)
9 Dawnfall V1.1  (9.5)
10 Rainbow Connection  (9.5)
Top Groups
1 Artline Designs  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Performers  (9.3)
5 Censor Design  (9.3)
Top Fullscreen Graphicians
1 Joe  (9.7)
2 Sulevi  (9.6)
3 The Sarge  (9.6)
4 Veto  (9.5)
5 Facet  (9.5)

Home - Disclaimer
Copyright © No Name 2001-2025
Page generated in: 0.242 sec.