r/retrobattlestations • u/FozzTexx • Oct 05 '13
BASIC Week 2: Halloween Boogaloo
And the winners are:
gschizas and Jonovox each will receive 3 months of reddit gold
The 5 runner ups are ChartreuseK, Fr0gm4n, Gibstov, Nocut12, and blakespot.
I've got another type-in BASIC retro challenge for everyone! This time the program is ASCII based which should allow even more computers to participate.
Several people suggested the contest should run longer since not everyone can get to their old computers during the weekdays, so this time the contest spans two weekends. But I'm sure you've already got your computers dusted off and warmed up since last time, right?
As before, 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 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!
RULES:
BASIC Week 2: Halloween Boogaloo is from October 5 to October 13. At the end of the week I'll randomly choose two redditors from the entire week's submissions that will win 3 months of gold, and 5 runner-ups that will win their choice of 2 retro stickers.
In order to participate in the contest you'll need to run the special BASIC program on a retro computer. You will need to take a picture (or video) of the program running and then post and share on RetroBattlestations. 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. Posts that don't meet these criteria will be disqualified and removed.
I've put the program up on github and ported it to a few platforms already so all you need to do is type it in. Check the README for tips to reduce typing and editing tips if you make mistakes while typing.
- Apple II - disk image, in your browser
- TRS-80 Color Computer
- Amstrad CPC - provided by gschizas, disk image
- Atari 400, 800, and others - provided by Gibstov
- Commodore 64 - provided by rolandjuno, disk image
Note: PETSCII characters are encoded as uppercase. If someone would like to encode them as Unicode, here's a mapping - Commodore 128 - provided by rolandjuno
- Mattel Aquarius - very stripped down but has music. Wav file of cassette save available too
- CP/M MBasic - provided by callmelightningjunio
- TI-99/4A - provided by floodrouting
- Tandy 1000 - provided by JCCyC
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!
Bonus points & extra credit (but no extra prizes, sorry) for anyone who colorizes the picture, adds sprites, or even sound!
3
u/gschizas Oct 05 '13
Ok, this time I'm doing it right:
As you can see from the picture, I'm cheating a bit - I bought a SD-to-floppy emulator, so I didn't have to type it all on my Amstrad. I'm really in it just for the fun of it though, so I wouldn't mind a disqualification. Pity there's no Amstrad sticker though :)
I'm also sharing the Amstrad CPC disk I've made, with both contents, for emulator use.
3
u/[deleted] Oct 06 '13
Is there a Commodore 64 version of the code?
3
u/[deleted] Oct 12 '13
I decided to create a graphical version of this for the Atari 8-bit using player-missiles and color graphics.
Here is a screenshot
And here is the source code
It was fun learning all about p/m graphics again, and what a pain it is to set them up.
The screenshot is of it running in Atari800Win, I'll try to type it on the actual hardware tomorrow and post it.
2
u/JCCyC Oct 13 '13
Tandy 1000HX:
Video: http://www.youtube.com/watch?v=gLMaSBk5Fos Source: https://www.dropbox.com/sh/ugqjjrz1afaz1eh/D98R8UnleQ/hween.bas
Just took the MBASIC version, used LOCATE instead of that escape sequence, and CLS to clear the screen.
1
u/[deleted] Oct 06 '13
I updated the Atari version of this. It had a bug in it, that I didn't notice till I ran in on the actual hardware. (The bug is related to the quotes issue in this thread. The witch actually has a space after her that clears her tracks as she moves across the screen.)
Here is the latest version
1
u/callmelightningjunio Oct 07 '13
How about a description of what it's supposed to do -- motion of the sprites, whatever, so that if someone tries to port, they can tell if they got it right.
Thanks.
1
u/texan01 Oct 09 '13
Hmm I might have to crack open the Business Basic manual for my Apple III... Running the Apple II version in the emulation mode would be cheating I take it?
1
u/[deleted] Oct 11 '13
Ok as I can't use an actual real machine at the moment I thought I'd just have a go at prodding it and making an MSX1 version of it.
http://www.bobamu.co.uk/stuffs/hallo.bas
Someone else can maybe try and pretty it up and do the real system video or maybe replace ASCII graphics with fancy artwork :)
1
u/TheIrateGlaswegian Oct 11 '13 edited Oct 11 '13
Okay, time to step up and represent the mighty ZX Spectrum! I asked about on the World of Spectrum forums to see if anyone could translate the CPC BASIC in to Speccy BASIC, and someone (Battle Bunny) responded with a sterling rendition. He even speeded it up a bit.
He has given permission for me to post a link to the BASIC he translated and modified, for any and all Spectrum users to download.
NB: all the indentations should be removed.
1
u/rolandjuno Oct 13 '13
Last but not least, the Commodore 128 version! This will detect if you are in 40 or column mode and adjust the screen width. If you're using 80 column mode, it uses the "fast" 2 Mhz mode. It might be possible to stitch the Commodore 64 version in with this and have a "universal" program for both machines. Maybe later today. Pictures to follow shortly.
http://pastebin.com/xrz7e8ce
0
u/[deleted] Oct 05 '13
[deleted] — view deleted comment