+CyranoJ Posted December 21, 2014 Share Posted December 21, 2014 I've been writing a bunch of really simple BASIC programs for no other reason than to increase the examples in the PROJECTS folder. Anyway, here's another one.... the classic BOMBER game. 100 REM BOMBER 110 REM 120 SPEED=4 400 CLS: IF SPEED<0 THEN SPEED=0 410 CURSPEED=SPEED 480 REM 485 REM DRAW CITY 490 REM 500 FOR X=3 TO 35 510 FOR Y=24 TO 24-RND(0)*15 STEP -1 520 SETCUR(X,Y): PRINT "X" 530 NEXT Y 540 NEXT X 580 REM 585 REM MAIN LOOP 590 REM 600 X=0: Y=0: BX=0: BY=0: BA=0 610 CURSPEED=CURSPEED-1: IF CURSPEED=0 THEN CURSPEED=SPEED: SETCUR(X,Y): PRINT " ": X=X+1 620 IF X=37 THEN X=0:Y=Y+1 630 IF X=0 AND Y=25 THEN SPEED=SPEED-1: GOTO 400 640 SETCUR(X,Y): PRINT ">oo-" 650 A$=LOCATE(X+4,Y) 660 IF A$<>" " THEN GOTO 120 670 IF (U235PAD(1)=1 AND BA=0) THEN BA=1: BX=X+1: BY=Y 680 IF BA=1 THEN GOSUB 700 690 RUPDALL(0): GOTO 610 700 REM 705 REM BOMB 708 REM 710 SETCUR(BX,BY): PRINT " " 720 BY=BY+1 730 IF BY=25 THEN BA=0: RETURN 740 SETCUR(BX,BY): PRINT "*" 750 RETURN BOMBER.zip BOMBER.ABS 7 Quote Link to comment Share on other sites More sharing options...
ovalbugmann Posted December 21, 2014 Share Posted December 21, 2014 Thank you Quote Link to comment Share on other sites More sharing options...
mmbe Posted August 26, 2018 Share Posted August 26, 2018 I hate to bring back an old topic - but I had a problem with this in rb+. When I ran the command c:RB+ build bomber I got this: Assembling raptor skeleton Cannot open: rapapp.s Build error! What did I do wrong? Please note just started using rb+ so this is a question from a complete newcomer. Thanks. Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted August 26, 2018 Share Posted August 26, 2018 Looking at the file names for the zip file, it seems like there's underscores. I think if you remove them, it should be fine. Quote Link to comment Share on other sites More sharing options...
ggn Posted August 27, 2018 Share Posted August 27, 2018 This a Raptor Basic program, not Raptor Basic+. To cut a long story short, Raptor Basic is a completely different project which is discontinued. Any project for rb is not compatible with rb+ without some conversion. To see which projects are available, just type "build.bat" without any parameters on the command line in your rb+ base folder. I'll change the subject a bit in order to not confuse people 1 Quote Link to comment Share on other sites More sharing options...
mmbe Posted August 27, 2018 Share Posted August 27, 2018 This a Raptor Basic program, not Raptor Basic+. To cut a long story short, Raptor Basic is a completely different project which is discontinued. Any project for rb is not compatible with rb+ without some conversion. To see which projects are available, just type "build.bat" without any parameters on the command line in your rb+ base folder. I'll change the subject a bit in order to not confuse people Thank you for the clarification. Can BASIC programs be used used in Raptor Basic +? Quote Link to comment Share on other sites More sharing options...
ggn Posted August 27, 2018 Share Posted August 27, 2018 Thank you for the clarification. Can BASIC programs be used used in Raptor Basic +? I'm not sure what you mean here. Raptor basic or plain basic source? In general, rb+ is a basic dialect so there's a lot of compatibility between it and other basics. One thing you need to be warned though is that since it's mostly targeted in interfacing with raptor for graphics, it's lacking some functionality here and there. Quote Link to comment Share on other sites More sharing options...
mmbe Posted August 27, 2018 Share Posted August 27, 2018 I'm not sure what you mean here. Raptor basic or plain basic source? In general, rb+ is a basic dialect so there's a lot of compatibility between it and other basics. One thing you need to be warned though is that since it's mostly targeted in interfacing with raptor for graphics, it's lacking some functionality here and there. Plain basic source was what I was asking about. I think my best course of action is to really dig into the tutorials and learn the in's and out's of RB+ instead of converting plain source basic to RB+ basic. 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.