Jump to content
Sign in to follow this  
SuperSixEVO

8 Sprites and then....

Recommended Posts

I tried to work with sprites for creating an intro screen for the updated Dive Bomber game using sprites but running the code below shows only 8 characters on Classic99, any clues?

 

10 REM
20 CALL CLEAR
25 CALL SCREEN(2)
50 CALL MAGNIFY(2)
100 CALL SPRITE(#1,68,1,40,97,0,0)
120 CALL SPRITE(#2,73,1,40,113,0,0)
130 CALL SPRITE(#3,86,1,40,129,0,0)
140 CALL SPRITE(#4,69,1,40,145,0,0)

200 CALL SPRITE(#5,66,1,64,81,0,0)
210 CALL SPRITE(#6,79,1,64,97,0,0)
220 CALL SPRITE(#7,77,1,64,113,0,0)
230 CALL SPRITE(#8,66,1,64,129,0,0)
240 CALL SPRITE(#9,69,5,64,145,0,0)
250 CALL SPRITE(#10,82,5,64,161,0,0)

 

1000 CALL COLOR(#1,5,#2,5,#3,5,#4,5)
1010 CALL COLOR(#5,5,#6,5,#7,5,#8,5)
1020 CALL COLOR(#9,5,#10,5)
1100 FOR I=1 TO 5000 :: NEXT I

 

Share this post


Link to post
Share on other sites

You can only display 4 sprites in a row horizontally. :(

 

It is a hardware limitation of the 9918 VDP chip.

 

  • Like 1

Share this post


Link to post
Share on other sites

This helps...

 10 REM
20 CALL CLEAR
25 CALL SCREEN(2)
50 CALL MAGNIFY(2)
100 CALL SPRITE(#1,68,1,40,97,0,0)
120 CALL SPRITE(#2,73,1,40,113,0,0)
130 CALL SPRITE(#3,86,1,40,129,0,0)
140 CALL SPRITE(#4,69,1,40,145,0,0)

200 CALL SPRITE(#5,66,1,64,81,0,0,4,0)
201 GOSUB 9000
210 CALL SPRITE(#6,79,1,64,97,0,0,4,0)
211 GOSUB 9000
220 CALL SPRITE(#7,77,1,64,113,0,0,4,0)
221 GOSUB 9000
230 CALL SPRITE(#8,66,1,64,129,0,0,4,0)
231 GOSUB 9000
240 CALL SPRITE(#9,69,5,64,145,0,0,4,0)
241 GOSUB 9000
250 CALL SPRITE(#10,82,5,64,161,0,0,4,0)


1000 CALL COLOR(#1,5,#2,5,#3,5,#4,5)
1010 CALL COLOR(#5,5,#6,5,#7,5,#8,5)
1020 CALL COLOR(#9,5,#10,5)
1100 FOR I=1 TO 5000 :: NEXT I
1300 END

9000 FOR I=1 TO 100
9010 NEXT I
9020 RETURN

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...