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)
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
MiniMans20: my BASIC V2 10-liner (max 80 chars per line)
Moderator: Moderators
-
- 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)
Last edited by Linzino on Wed Apr 03, 2019 11:20 am, edited 1 time in total.
Re: MiniMans20: my BASIC V2 10-liner (max 80 chars per line)
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?
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
Re: MiniMans20: my BASIC V2 10-liner (max 80 chars per line)
Great job.
It's better than 'RACE' by Commodore, and in way fewer lines of code too!
It's better than 'RACE' by Commodore, and in way fewer lines of code too!
-
- 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)
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.
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.
Re: MiniMans20: my BASIC V2 10-liner (max 80 chars per line)
I hadn't seen this trick previously, really clever.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).
.
3^4 is 81.0000001