Buggy10 (Sharp MZ-80A) by Ben Sharpworks
A downloadable game
"Buggy10" for the 2025 BASIC 10 Liner Competition
Platform : Sharp MZ-80A
Buggy10 is influenced by the old arcade game "Moon Buggy" and is an attempt to fit something approaching this game into 10 lines of BASIC code.
Use the '4' key to move your buggy left
Use the '6' key to move your buggy right
Use the '5' key to shoot obstacles
As your buggy moves along the parallax landscape, obstactles will randomly appear. Their speed can be unpredictable and they choose to appear semi-randomly based upon the MZ-80A's built in realtime clock. Shoot them as soon as you can because they will cause you to lose one of your 3 lives if you don't and they crash into you! The closer you are to the obstacle when you shoot it, the higher the score you'll receive.
Variables used and their purpose:
K() keyboard directions
L$ land graphics
X player X coordinate
Y player Y coordinate
M amount to move mountain on each game loop
M$ mountain graphics
P$ player graphics
B$ obstacle graphics
B which section of land graphics
A which section of mountain graphics
S score
I keypress
L lives
O obstacle X position
Z is an obstacle already on the screen
"Buggy10" is written in the standard Sharp BASIC "SA-5510" which was the language originally provided with the Sharp MZ-80A machine.
Download
Install instructions
Launch the "mz80a.exe" emulator. Go to the 'Control' menu and load the first save state as this already has the BASIC language in memory and also the 10 line game. Type 'RUN' and hit Enter to run it!
Enjoy!
Ben Sharpworks (2025)
Comments
Log in with itch.io to leave a comment.
@BASIC_10Liner :) Yep! My original aim for the program would have been to include a bullet but there simply wasn't room in the 10 lines to do it, unfortunately.
The ‚5‘ key works for me. The Enemy disappears if 5 is pressed. But I don‘t see a bullet.
@itchy2 : Interesting, it worked for me and when I completed writing the game I sent to a friend and he got quite a high score so the '5' key was working for us!
Bear in mind, the program is written to only allow the '5' key to work when an enemy is actually on the screen.
Using key 5 does not seem to shoot anything?