Jump to content
IGNORED

BOMBER - Classic BASIC action! (not compatible with rb+)


CyranoJ

Recommended Posts

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

 

 

  • Like 7
Link to comment
Share on other sites

  • 3 years later...

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.

Link to comment
Share on other sites

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

  • Like 1
Link to comment
Share on other sites

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 +?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

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...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...