Mines20: a PUR-80 BASIC 10-liner

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

Mines20: a PUR-80 BASIC 10-liner

Post by Linzino »

Mines20: a BASIC V2 10-liner (PUR-80 category)
This is an original strategy game in 10 lines of plain BASIC V2 (with no more than 80 characters per line)
Code, binaries, documentation at: https://github.com/Fabrizio-Caruso/CBM- ... 20/Mines20
The code uses a new BASIC trick of mine.

The game:
Move carefully. You are in a minefield where mines appear both
- under your feet once you move and
- around you (more if you do not move)
You can clear the area around you with anti-mine charges but you can only carry a maximum of 9.
If you reach a "$" item you get an extra anti-mine charge.
The field has upper and lower borders that kill you if reached. Left and Right border wrap around.
The rate of mines appearing around you, increases continuously.

Goals:
- Reach the highest score possible by walking on empty positions or collecting charges "$"
- Avoid stepping on mines or the upper and lower borders.
- Reach the next 100 points to get a full recharge of your anti-mine charges

SCORE:
- Walk into an empty position: 1 point
- Walk into a anti-mine charge "$": 5 points

CONTROLS:
- Use I J K L to move
- Use SPACE to clear nearby area (if you have enough charges)

https://www.youtube.com/watch?v=35KM4Xq9asE
Image
Image
User avatar
Stormcrow
Vic 20 Enthusiast
Posts: 177
Joined: Mon Dec 24, 2012 9:46 pm
Website: http://trimboli.name
Location: Ronkonkoma, NY

Re: Mines20: a PUR-80 BASIC 10-liner

Post by Stormcrow »

In the BASIC listing, what does this mean: {119*3}
Linzino
Vic 20 Dabbler
Posts: 83
Joined: Fri Nov 06, 2015 4:13 pm
Website: http://retrocomputingarchive.blogspot.fr/
Location: France

Re: Mines20: a PUR-80 BASIC 10-liner

Post by Linzino »

{...} is CBM PRG Studio syntax
You can see what that means by both loading the .prg or .D64 file or by pasting the listing into CBM PRG Studio.

{119*3} means 3 times the character with code 119.
Post Reply