PFor 10
Move -2,10
PNext
to...
MoveLoop 10, -2,10
And the code looks much nicer too. Of course I added around 100 bytes of code for the new function, but theres more space there as the script only has 3k to play with!
PFor 10
Move -2,10
PNext
MoveLoop 10, -2,10
PFor 50
Move -2,0
pNext
MoveLoop 50, -2,0
;-----------------------------------------------------------------------------
; tear drops...
;-----------------------------------------------------------------------------
Drop_1:
DRIFT -1
Move 0,1
Move 0,1
Move 0,2
Move 0,2
Move 0,2
PFOR 4
Move 0,3
PNEXT
PFOR 5
Move 0,4
PNEXT
PFOR 6
Move 0,5
PNEXT
PFOR 200
Move 0,6
PNEXT
KILLSPRITE
;-----------------------------------------------------------------------------
; tear drops...
;-----------------------------------------------------------------------------
Drop_1:
DRIFT -1
Move 0,1
Move 0,1
Move 0,2
Move 0,2
Move 0,2
MoveLoop 4, 0,3
MoveLoop 5, 0,4
MoveLoop 6, 0,5
MoveLoop 200, 0,6
KILLSPRITE
PFOR 90
Move -4,0
Move -4,0
Move -4,0
Move -4,0
Move 0,4
Move 0,4
Move 0,4
Move 0,4
Move -4,0
Move -4,0
Move -4,0
Move -4,0
Move 0,-4
Move 0,-4
Move 0,-4
Move 0,-4
PNEXT
KILLSPRITE
PFOR 90
MoveLoop 4, -4,0
MoveLoop 4, 0,4
MoveLoop 4, -4,0
MoveLoop 4, 0,-4
PNEXT
KILLSPRITE
I've been making pretty good progress last couple of days... As it was my Birthday on Friday I took the day off and did quite a bit of retro coding, and I've managed to progress even further today! The C64 version now runs through the whole demo level with aliens and bullets flying around just like the Plus/4 version, and while the C64 version is smoother, they are very similar when you watch them side-by-side.
I've managed to get the bullets working on the C64 now, in much the same way as the Plus/4 version. So while its masked onto the screen, its no smoother really. However, because of this though it means I have to double buffer the character set as well now - pooh. Im not sure if its worth it though...I could do 8 proper masked sprites (8, 8x8 pixel sprites) which would allows bullets to move better... but I'd rather spend the CPU time elsewhere.