GroovyBee Posted January 2, 2016 Share Posted January 2, 2016 You'll also need to update your constants.bas from here in order to use the BG_xxx constants. Quote Link to comment Share on other sites More sharing options...
Opry99er Posted January 2, 2016 Author Share Posted January 2, 2016 My constants.bas shows the BG constants, but I will update anyway... I would like to have the latest updates. Quote Link to comment Share on other sites More sharing options...
GroovyBee Posted January 2, 2016 Share Posted January 2, 2016 My constants.bas shows the BG constants, but I will update anyway... I would like to have the latest updates. They were incorrect in versions before 1.18F of that file. Quote Link to comment Share on other sites More sharing options...
Opry99er Posted January 2, 2016 Author Share Posted January 2, 2016 Ahhh.... Thank you very much. Saved me from some heartache. Quote Link to comment Share on other sites More sharing options...
Opry99er Posted January 3, 2016 Author Share Posted January 3, 2016 Hey Groovy... I updated the .bas file and made some adjustments to eliminate the CS_CYAN. Still cannot get it to work properly. Perhaps you could lend me a hand. I tried the GROM 0 card, but that gave me a black screen. Then I tried using my empty GRAM tile and I got the same result. I am likely missing something, so perhaps some fresh eyes would help? This is the same basic loop I have used for all my screen drawing thus far... The only difference between this iteration (which doesn't work properly) and the others is the use of a BG_xxx. all my other cards are defaulted to the black screen color as a background. Thanks in advance. REM ************** REM ** DRAW SKY ** REM ************** FOR VERT=3 TO 6 FOR HORZ=1 TO 18 PRINT AT SCREENPOS(HORZ, VERT) COLOR FG_RED+BG_CYAN, "\264" NEXT HORZ NEXT VERT . . . . . . . . REM sky character (264) BITMAP "........" BITMAP "........" BITMAP "........" BITMAP "........" BITMAP "........" BITMAP "........" BITMAP "........" BITMAP "........" Quote Link to comment Share on other sites More sharing options...
GroovyBee Posted January 3, 2016 Share Posted January 3, 2016 Try this :- MODE SCREEN_FB ' Enable foreground/background mode. WAIT ' Only changes on the next VBLANK. FOR VERT=3 TO 6 FOR HORZ=1 TO 18 #BACKTAB(SCREENPOS(HORZ,VERT))=BG_CYAN NEXT HORZ NEXT VERT Its also a good programming habit to indent loops so you can easily see what code belongs to what loop. Quote Link to comment Share on other sites More sharing options...
fsuinnc Posted January 3, 2016 Share Posted January 3, 2016 Try this :- MODE SCREEN_FB ' Enable foreground/background mode. WAIT ' Only changes on the next VBLANK. FOR VERT=3 TO 6 FOR HORZ=1 TO 18 #BACKTAB(SCREENPOS(HORZ,VERT))=BG_CYAN NEXT HORZ NEXT VERT Its also a good programming habit to indent loops so you can easily see what code belongs to what loop. Sorry to jump in here. what is the #BACKTAB? The IntyBASIC manual says "#BACKTAB array (direct access to screen)" How does this differ from SCREENPOS(HORZ,VERT) COLOR FG_YELLOW+BG_CYAN, " " ? Quote Link to comment Share on other sites More sharing options...
GroovyBee Posted January 3, 2016 Share Posted January 3, 2016 Sorry to jump in here. what is the #BACKTAB? The IntyBASIC manual says "#BACKTAB array (direct access to screen)" How does this differ from SCREENPOS(HORZ,VERT) COLOR FG_YELLOW+BG_CYAN, " " ? #BACKTAB is a predefined IntyBASIC array where index 0 is the top left corner of the screen and index 239 is the bottom right corner. It would be my personal preference to use it instead of print, when writing single cards to the screen. Quote Link to comment Share on other sites More sharing options...
fsuinnc Posted January 3, 2016 Share Posted January 3, 2016 #BACKTAB is a predefined IntyBASIC array where index 0 is the top left corner of the screen and index 239 is the bottom right corner. It would be my personal preference to use it instead of print, when writing single cards to the screen. Thanks, I think I understand. Why do you prefer this over Print? Quote Link to comment Share on other sites More sharing options...
GroovyBee Posted January 3, 2016 Share Posted January 3, 2016 Thanks, I think I understand. Why do you prefer this over Print? Its slightly faster for single characters. Looking at the disassembly the use of #BACKTAB array takes two less instructions than the print command in the context that Opry99er is using it. 2 Quote Link to comment Share on other sites More sharing options...
Rev Posted January 28, 2016 Share Posted January 28, 2016 Lookin good. Quote Link to comment Share on other sites More sharing options...
Rev Posted February 28, 2016 Share Posted February 28, 2016 Any updates? :-) Quote Link to comment Share on other sites More sharing options...
Opry99er Posted March 2, 2016 Author Share Posted March 2, 2016 Unfortunately no. Been so busy lately, just updating the weekly scoreboard in the Bowling League has become almost impossible. The hobby time I HAVE had has gone to gaming with the boy. Will return to this soon... Just need time. 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.