SuperSixEVO Posted April 18, 2020 Share Posted April 18, 2020 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 Quote Link to comment Share on other sites More sharing options...
+TheBF Posted April 18, 2020 Share Posted April 18, 2020 You can only display 4 sprites in a row horizontally. It is a hardware limitation of the 9918 VDP chip. 1 Quote Link to comment Share on other sites More sharing options...
+TheBF Posted April 18, 2020 Share Posted April 18, 2020 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.