Looking cool GC, I was playing Blood Money yesterday and that put me in mind of your entry idea, it's looking as good as I expected.
Lukas,
Quote: "if i have 200 bullets and 200 enemies at the screen"
Gah!
That's a helluva lot. For one thing, once a bullet or enemy is off screen, you can kill it and re-use it the next time you need, so 200 bullets and 200 enemies is a crazy amount of processing to put your engine through. I mean 64 enemies and 128 bullets should be plenty for most shmups. Always use an array to store the mode of the enemy or bullet (or particle or whatever), so mode 0 is off, mode 1 is on - so you can skip dead enemies or bullets right away.
It could be worse, you might decide to add enemy on enemy collision! - that's a real headache
.
Van-B
EDIT: Code snippet for quick box collision to help avoideth the SQRT of doometh.
function boxcol(l1#,t1#,r1#,b1#,l2#,t2#,r2#,b2#)
`I can't remember where I got this, if it's yours then cheers!
boxcol=1
if b1#<t2# then boxcol=0
if t1#>b2# then boxcol=0
if r1#<l2# then boxcol=0
if l1#>r2# then boxcol=0
endfunction boxcol
Put away, those fiery biscuits!