I was about 10 years old when I discovered programming with my Sinclair ZX81. A few years later I discovered Omikron Basic on my Atari 520 STE and QBASIC on my syster's PC.
Recently I was cleaning hard drives on my plain old computer and found a backup of programs I've written almost 30 years ago. It makes me feel a little bit nostalgic so I decided to share them on Github. Most of them are little games.
You'll need DOSBox in order to run QB.EXE.
Clone this repo or copy it in a local folder, let say "c:\qbasic".
Start DOSBox and mount a drive pointing to your local folder :
Z:\>mount d: c:\qbasic
Then change drive to "d:" and run "QB.EXE" :
Z:\>d:
D:\>QB.EXE
Now you can load any .BAS file using the File menu. You can access it with keyboard or mouse.
Select a file and run it using the "Run" menu.
Most of these programs are games controlled using arrows on the numerical pad. 4 = LEFT, 6 = RIGHT, 5 = DOWN, 8 = UP. Press "ESC" to quit.
Sprite files. It is a proprietary format of my own to easily store and retrieve sprites used in games.
A subroutine to ask user for its name and record its score.
A game inspired from the famous "Battleship" game ("Touché coulé" in french).
First select the number of soldiers you want to play with. Then place your nuclear bomb and soldiers using the numerical pad and space bar. When asked for weapon, type "1" for simple attack and "2" for nuclear bomb (you can use it until it is destroyed by the ennemy). Then type the coordinates of the point you want to strike, for example "I15" and press ENTER. Repeat until you destroy every ennemy's soldier or you loose all of yours.
A simple breakout.
This program plots some functions.
A horse race simulation. Will you guess which one will win ?
I made this program in order to have a tool to draw, save and load sprites. I can't believe that I've drawn every sprites in my games using it!
Move the cursor using the numerical pad : 4 = LEFT, 6 = RIGHT, 8 = UP, 5 = DOWN, 7 = LEFT-UP DIAGONAL, 9 = RIGHT-UP DIAGONAL, ETC.
By default the color is black so it won't trace anything visible. You can change it using the "c" key. Type the color name when prompted, "rouge" for example.
To draw a circle press "0" and type the desired radius when prompted.
A fat guy walking when we press 4 or 6 key. It is an abandonned platform game project.
My first attempt to animate a sprite. So ugly :)
In this game you control an helicopter and you have to shoot ennemies before they shoot you. You have to move from bottom to top to advance to the next screen.
This game was inspired by the movie "Independance Day". Unfortunately it is really far from it :)
If you want to test it, you'll have to plug a joystick first. This game cannot be controlled with the keyboard. First launch STICK.BAS in order to calibrate your joystick. The calibration data will be saved in the file JOYSTICK.DAT.
An attempt to randomly draw an mountain.
The famous nibbles game from Microsoft. I don't remember where I found this source code.
A pong-like game.
This program, written by a friend of mine, draws a Sierpinski triangle.
A tool to compute sprite size depending on screen mode.
I found this code in a programmation magazine and I adapted it to QBasic.
A tool I have written to calibrate the joystick.
A little test. The purpose was to simulate a ship journeying at high speed in a star field.
A joke I made with a friend. This code simulate a defective antivirus which erase the hard drive. We installed it on the computer of a friend and modified his "autoexec.bat" in order to execute it automatically at startup. MS-DOS time ^^