r/retrobattlestations • u/FozzTexx • Sep 12 '15
BASIC Week 5: Winchester Drive until Sep 20
Gold winners are cybernesto and QwikKwak.
Can you believe it's our fifth BASIC Week? We've done programs with vector graphics, a Halloween animation, an endless runner game with ASCII graphics, a variation on a classic video game, what next?
There's an old mansion out on Winchester Drive that you've heard many stories about. It's filled with many rooms that seem to be connected to each other completely at random. The design of the place is very bizarre. Some rooms even connect to each other through one-way trap doors, with no way back! You've heard stories that the house reconfigures itself as you walk through and that when you try to come back to a room, it suddenly re-arranges and a new room appears where you just came from.
People have long rumored that the place is haunted, but they think hidden somewhere inside is the wealth of the last owner. It could be jewels, it could be money, it could be old stock certificates. No-one has ever found it! Maybe it's just a box full of worthless Confederate money. You have to know and you've found your way inside and you're going to search every room you can!
Like all the BASIC Weeks 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 5: Winchester Drive is from September 12th through September 20th. 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. You are welcome to submit multiple entries, however each redditor will only be entered into the contest once.
I've put the program up on github and have versions for a couple of computers already. Check the README for tips to reduce typing and editing tips if you make mistakes while typing.
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? You can use any version of BASIC on any kind of computer, it doesn't have to be built-in. Sprite support is not required, the game play can be replicated with simple block or text graphics. 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 adds more gameplay, or even sound!
2
u/gschizas Sep 12 '15
This one is going to be tough... You are using sprites, aren't you? Most home computers (well, Amstrad and Spectrum for one) don't really know what a sprite is.
2
u/jzatarski Sep 13 '15
what resolution does the game run at (effectively) on the C128 and A2? I'm trying to design some replacement characters for VT320, but I want to make sure I get the approximate relative size correct. Is apple II using 280x192 with artifacting? and what does the C128 run at? Is there any way I can view the graphics from the C128 without having to set up an emulator? The VT320 is a bit of an odd pixel aspect ratio, so I'd like to pick the version that will make this work the best, in terms of scaling.
2
u/Spanishone Sep 14 '15
Thanks for the efort doing all this, fozztexx.
Later at home I will try to look all this, and try to convert it to Msx. Although I dont promise anything, it seems long and complex.
Just a few things, to help me understand better/faster the code:
-What does the commodore routine "box A,B,C,D,E,F,G" do? I suppose to draw a (filled?) rectangular box in the coordinates ABCD, maybe using color E, or similar. If the first parameter is not defined...?
-What does the commodore routine "gshape " do? Draw circles form?
-Why does the "sprites" have a 67 "lines" length? And gshape 36?
-Any screenshot to try to understand the expected result, please? :-)
-Fl, fc (and others, maybe) variables meaning?
Anyway, I will look some commodore manual or something :-)
2
u/[deleted] Sep 15 '15
I am going to give a stab at porting this to the Atari 8-bit. Though working with PM graphic in Atari Basic is a pain. There is a trick where you use strings to store the sprite data, and then use basic's string manipulation functions to quickly move the data at machine language speed. But this technique is fraught with peril for technical reasons about the way the sprite data must be aligned in memory.
1
u/FozzTexx Sep 22 '15
/u/jzatarski /u/gschizas /u/Spanishone /u/Gibstov /u/ChartreuseK /u/alvalongo
Since there were so few entries, I'm considering revisiting this challenge October 3rd. Do you think that would be enough time to get a port working? I don't want to wait too long because then porting will get put off until the last minute and there will be no ports again. Alternately you could submit at anytime as a rewind.
4
u/PrintStar Sep 15 '15
Does everyone understand the pun "Winchester Drive?" It made me laugh since my DEC Rainbow refers to its hard disk as such.
1
u/gschizas Sep 18 '15
Is it me, or have there been no entries at all this week?
I'm guessing it's much more challenging than the other contests (it has been for me at least). Would you consider extending this to September 27?
(I will probaby be able to run it properly soon, but it may help have more contestants!)
2
u/jzatarski Sep 12 '15
well now I'm wondering how to go about this, port it to EhBASIC, and use the VXT2000 as a terminal? I'm wishing I brought the VT420 now, it would have been interesting to get 'graphics' going on that via redefinable fonts. I think the VXT2000 should support that as well though, but I'd have to check...
On the other hand, I could give porting it to the Atari a go, but I'd have to put my 800XL back together...
what to do, what to do...
1
u/alvalongo Sep 22 '15
Until now (september 22nd) I read about this contest. I read the C128 listing and I'm going to adapt to Basic C64 I have a real C64c
0
u/TotesMessenger Sep 17 '15
I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:
If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / ^Contact)