MiniMans20: my BASIC V2 10-liner (max 80 chars per line)

Discussion, Reviews & High-scores

Moderator: Moderators

Post Reply
Linzino
Vic 20 Dabbler
Posts: 83
Joined: Fri Nov 06, 2015 4:13 pm
Website: http://retrocomputingarchive.blogspot.fr/
Location: France

MiniMans20: my BASIC V2 10-liner (max 80 chars per line)

Post by Linzino »

Hi everyone!

MiniMans20 is my new little BASIC 10-liner (10 lines of plain BASIC V2 with max 80 characters per line) for the unexpanded Vic20:
The gameplay has the following elements:
- alternating day and night levels with car headlights at night to better see the border and the cars
- alternating curves, one lane sections and two lane road sections
- 5 levels, which become more challenging (more curves, narrower road)

Video: https://www.youtube.com/watch?v=MWyB1_lWboQ

CONTROL: Use J (left), L (right)

Image

Image

Image

The code, binaries, code documentation and instructions are in:
https://github.com/Fabrizio-Caruso/CBM- ... MiniMans20

Enjoy and let me know what you think about it!

Fabrizio
Last edited by Linzino on Wed Apr 03, 2019 11:20 am, edited 1 time in total.
User avatar
Victragic
Frogger '07
Posts: 605
Joined: Tue Nov 14, 2006 5:56 pm
Location: South Australia

Re: MiniMans20: my BASIC V2 10-liner (max 80 chars per line)

Post by Victragic »

Nice work!

What's the best way to go about this kind of thing - do you come up with the game and then just optimise, optimise, optimise?

..Or do you first think of a particularly ingenious and tight routine and build the game around it?
3^4 is 81.0000001
User avatar
vicist
Vic 20 Afficionado
Posts: 352
Joined: Tue Oct 09, 2012 5:26 am
Location: Sheffield, UK

Re: MiniMans20: my BASIC V2 10-liner (max 80 chars per line)

Post by vicist »

Great job.
It's better than 'RACE' by Commodore, and in way fewer lines of code too! :D
Linzino
Vic 20 Dabbler
Posts: 83
Joined: Fri Nov 06, 2015 4:13 pm
Website: http://retrocomputingarchive.blogspot.fr/
Location: France

Re: MiniMans20: my BASIC V2 10-liner (max 80 chars per line)

Post by Linzino »

This specific game is built around the trick (not mine) that lets you create a scroll-down effect by tricking the editor into believing that all the lines below the first one are continuations of a huge logical line (see the detail code explaination in the repository).

This game code follows the rules of the strictest category of 10-liners (PUR-80):
1. it uses plain unmodified BASIC V2 with no Assembly whatsoever (PEEKS and POKES are allowed)
2. it uses 10 lines and no line exceeds 80 characters (standard abbreviations are allowed)
So the code can even be entered manually into a real machine without any trickery.

So, a lot of optimizations are necessary. Consider that very few characters are left unused on each line.
The main problem IN BASIC V2 is the lack of the ELSE statement. So you have to creative and use on...goto or formulae in some cases.
User avatar
Victragic
Frogger '07
Posts: 605
Joined: Tue Nov 14, 2006 5:56 pm
Location: South Australia

Re: MiniMans20: my BASIC V2 10-liner (max 80 chars per line)

Post by Victragic »

Linzino wrote:This specific game is built around the trick (not mine) that lets you create a scroll-down effect by tricking the editor into believing that all the lines below the first one are continuations of a huge logical line (see the detail code explaination in the repository).
.
I hadn't seen this trick previously, really clever.
3^4 is 81.0000001
Post Reply