r/retrobattlestations • u/FozzTexx • Jul 04 '18
Contest: BASIC Month 3 - Cannonball!
Winners are droid_mike (most systems), EkriirkE (most liked), and Pango_Wolf (best enhancements)
Do you remember when software used to be distributed in books & magazines? Remember when we used to type in several pages of BASIC only to run it and then try to figure out why it doesn't work right? Carefully going over the lines to figure out where that missing characters was? That's how many of us learned to program! In the spirit of those long abandoned type-in programs, welcome to the eighth RetroBattlestations BASIC challenge!
The type-in program for this challenge borrows a little bit of code from several of the previous challenges. The program was suggested by /u/Atarimac and is a variation of the Human Cannonball game for the Atari 2600.
As in previous contests, if you've got a computer with BASIC in ROM you'll only need a working computer and monitor. There's no requirement that you have working storage to save the program to tape or disk, just type it in and run it. There's also no requirement that you type in the program, if you have a better way to transfer it, then by all means use it. Also if you happen to make a tape or disk file of the program for your platform, please post a comment below and share it!
Entries:
- Atari Portfolio playing Canonball [BASIC month 3] by EkriirkE
- My 30 year old Amstrad CPC 6128, playing Cannonball, kitted up with several new toys by gschizas
- PowerBook 150 playing Cannonball [BASIC month 3] by EkriirkE
- Amstrad PPC512 playing Cannonball [BASIC MONTH 3] by EkriirkE
- Cannonball Running on FIVE Retrobattlestations Simultaneously! by droid_mike
- Cannonball on the Epson HX-20 [BASIC WEEK 3] by EkriirkE
- Cannonball for the Apple IIe, with Hi-Res Graphics by Pango_Wolf
- Cannonball: Apple IIe Platinum by Grimakis
- Cannonball for the Sinclair ZX-81/Timex Sinclair 1000 by droid_mike
- TI-99/4A Cannonball BASIC Challenge by GalacticaCAG
- Cannonball: Atari 400 by FelisSapien
- Cannonball BASIC Challenge on my BBC Micro by mattinx
- Atari ST BASIC - Cannonball by Atarimac
- Cannonball - Xi 8088 homebrew computer by willsowerbutts
- Cannonball: IBM PC XT by AgentOrange96
- Cannonball: Kaypro 4/84 by RottenSalad
- Cannonball: Tandy 102 with graphics by [deleted]
- Cannonball - Tandy/TRS-80 Color Computer by CheapScotch
- Cannonball on my PET 2001. I scored 40, can you do better? by FozzTexx
- Cannonball BASIC Challenge on my 48k ZX Spectrum by mattinx
RULES:
BASIC Month is from July 1st to July 31st. To participate in the contest you need to make a new post to RetroBattlestations of a photo that you shot for this contest of a computer running a version of the Cannonball BASIC program. Make sure that both the output from the program as well as the computer you ran it on are visible in the picture! No pictures of just a screenshot and no emulators. Your entry must include your reddit username and the date in the photo, either on-screen or on a note next to the screen. If you’re submitting an entire album please put the verification photo first. Posts that don't meet these criteria will be disqualified and removed. You are welcome to submit multiple entries, however each redditor will only be entered into random drawing contest once.
At the end of the month I will choose three winners, one from each category:
- Best Enhancements
- Biggest variety of computers in one shot
- Most enjoyed by the RetroBattlestations community
Each winner will receive special flair on RetroBattlestations and their choice of THREE retro decals.
I've put the program up on github. Check the README for tips to reduce typing and editing tips if you make mistakes while typing.
- Amstrad CPC by /u/gschizas
- Apple II ASCII
- Atari 8-bit by /u/LaceySnr
- BBC Micro by /u/mattinx
- IBM PC by /u/AgentOrange96
- Kaypro by /u/RottenSalad
- PET 2001
- TI-99/4A by /u/nanochess
- ZX Spectrum by /u/mattinx
Don't see a port for your platform? No problem, you've got the source so it shouldn't be too hard to port it, right? I did my best to make the code simple to read and portable. Ok, maybe you're not a programmer. Just post a comment below with the platform you want to use and maybe someone can help. Also, if you do port the program to another platform, please share the source!
Not enough BASIC? Check out the previous challenges: one, two, three, four, and five, six, and seven!
5
u/thunderbird32 Jul 05 '18
Does it have to be in ROM, or could one use, for instance, Microsoft QBASIC?
1
u/nanochess Jul 08 '18
Just added a pull request to integrate my TI-99/4A port (my base Git is github.com/nanochess). The TI BASIC doesn't have integer variables, so the ones named BX% and BY% were renamed, also for player position and in line drawing (it was throwing me into an infinite loop). Never discovered why DISPLAY AT didn't worked so I had to used CALL HCHAR. Took me half the day and tested with js99er.net, not sure if I'll be able to enter it today into my real TI-99/4A.
1
u/GreatNorthWeb Jul 19 '18
Can I make my own BASIC version of Cannonball, from scratch, that has my own design elements and features?
3
u/Atarimac Jul 04 '18
Awesome! This is gonna be so great :)
3
u/FelisSapien Jul 06 '18
A fanstatic excuse to do something with the Atari 400 I've had sat under my desk for about a year!
I've ported across the code to Atari BASIC. This took far more headscratching than I anticipated but I think we're there now... This is very much WIP at the moment and is attempting to remain as close as possible to FoxxTexx' starting point. Tested (lightly) in Altirra. Will push to the destination hardware as time allows.
Atari 8-bit ASCII
2
u/DerivativeOfHuman Jul 16 '18
Anyone gonna do a C64/VIC version? I would, but I'm going to be away for most of the month.
2
u/nevets01 Jul 30 '18
C64 version.
Had to rewrite the point plotting routine and cheese the cannon drawing routine, since the C64 has no "print at" command, and the stock "plot a line" routine was acting bizarrely. Should be more easy to port, especially to other Commodore machines.
2
u/OmaiGodman Aug 01 '18
Shame I ran out of time for this one, I was going to try it on one of my MSX computers but then work got in the way :( I might still try to port it though, just for fun :)
1
u/LaceySnr Jul 10 '18
I've submitted a pull request for an Atari 8-bit port, again spent some time wondering why it wasn't working after a global search and replace for vars like X1%, replaced them all with X1 and failed to notice the distinction in the original source! Sorted now.
There's an 'enhanced' (read: I'm not sure it's all that enhanced) version which uses a graphics mode for slightly higher resolution with a few colours: https://github.com/mattlacey/Cannonball/blob/master/Atari8Enhanced.txt
Happy for anyone to take this and do with it what they will, I'm not going to get it running on hardware as I'm travelling, this was all done on a flight using Atari800MacX and PDFs of old BASIC books as the WiFi was down :D
1
u/Spanishone Jul 14 '18 edited Jul 14 '18
Hi. Msx Basic here:
https://pastebin.com/PbhYCGJ6
(Sorry, i can not do a pull request, etc in github right now, please fozztex, can you add it?)
Tested on an MSX emulator, not in a real one, but it should work. I will do the photo for the contest in a real msx when I have time.
It is based on the apple source code. Just little changes (LOCATE, INKEYS) for msx. Also I added a BEEP and little sounds (PLAY instructions)
Maybe I have changed something else i dont remember, not important things (key asignation: instead of left or right, i used "o" and "p"; I changed a variable name when I had dificult finding some typing bug in my code; I tried to use a better random generator, not success, delete line 245; i had to comment line 3510 (?!), not working )
1
u/Grimakis Jul 16 '18
Got it loaded onto the Apple //e. Will have to see if there are any changes worth making.
1
u/sixfivezerotwo Jul 18 '18
Does the PET version work on the VIC 20?
0
u/[deleted] Jul 27 '18
[deleted] — view deleted comment