Jump to content

Photo

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


7 replies to this topic

#1 CyranoJ ONLINE  

CyranoJ

    RAPTOR Wrangler

  • 5,690 posts
  • reBOOTed
  • Location:Adelaide, SA

Posted Sat Dec 20, 2014 7:11 PM

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
 

Attached File  BOMBER.zip   4.37KB   30 downloads

Attached File  BOMBER.ABS   233.04KB   37 downloads

 

 



#2 ovalbugmann OFFLINE  

ovalbugmann

    River Patroller

  • 2,436 posts
  • Location:Phoenix, Arizona

Posted Sun Dec 21, 2014 3:28 AM

Thank you  :)



#3 mmbe OFFLINE  

mmbe

    Moonsweeper

  • 299 posts
  • Location:Naperville, Illinois

Posted Sun Aug 26, 2018 12:14 PM

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.



#4 atari2600land OFFLINE  

atari2600land

    Channel F Viewer

  • 11,608 posts
  • Location:Salem, Oregon

Posted Sun Aug 26, 2018 1:19 PM

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.



#5 ggn OFFLINE  

ggn

    Stargunner

  • 1,452 posts
  • Location:Athens, Greece

Posted Sun Aug 26, 2018 11:57 PM

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

#6 mmbe OFFLINE  

mmbe

    Moonsweeper

  • 299 posts
  • Location:Naperville, Illinois

Posted Mon Aug 27, 2018 7:21 AM

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



#7 ggn OFFLINE  

ggn

    Stargunner

  • 1,452 posts
  • Location:Athens, Greece

Posted Mon Aug 27, 2018 8:21 AM

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.

#8 mmbe OFFLINE  

mmbe

    Moonsweeper

  • 299 posts
  • Location:Naperville, Illinois

Posted Mon Aug 27, 2018 8:38 AM

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.





Reply to this topic



  


0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users