Games Written by the Author and Users of the Tutorial

Games By The Author

Here is a sampling of QB64 games I wrote over the years. Each game is contained in a ZIP file that you can download. Place the files in the ZIP file in your QB64 folder, load the .BAS file and have fun. Click on the pictures to start the download. The source code is free to modify as you choose. If you make any modifications be sure to share them on the QB64 Forum!

Asteroids

This was the third game I wrote back in 2011 using my sprite library. Yes, this thing is written using sprites, not vector graphics! I look back at my early games and laugh at all the strange code I created. We all have to start somewhere. In 2020 I made a new version called Widescreen Asteroids (see below) that incorporates a true vector graphics engine of my own design. This version is still fun though and a gives a good look at another beginner's code to game programming.

Bad Box

When I was a teacher this is one of the first games we would write in class. Use the yellow block to capture green blocks while avoiding red blocks. A good exercise in collision detection.

Bad Box's Revenge

Once we covered lessons on game math and rotation it was time to revisit Bad Box and make a bullet hell shooter. Shoot the red rotating boxes while avoiding to shoot the green ones. When a green box hits you it powers you up. The game gets very intense the longer you play!

Falcon 9

I wrote this game specifically for the game tutorial. You must land the stricken Falcon 9 stage 1 booster on the awaiting floating barge. The game has a 1:30 cinematic intro sequence that explains the events that lead up to you having to land manually. The code outlines an easy way to add an intro sequence to your games and how simple vector math can be used to achieve believable game physics. Will you get praised or canned by Elon? The company's profits are in your hands!

Flappy Bird

This game was written in 2014 right after the Flappy Bird craze hit cell phones. Some of the links in the game no longer work due to the QB64.org web site having been non-existent for years. Otherwise it plays pretty much like the original.

QB64 Hang Man

A text based version of the classic Hang Man game. Before the students could venture into graphics they needed to know how to write a game in Screen 0. The program comes with a dictionary of over 4000 words to choose from.

Mine Sweeper

Back in 2013 I wrote a clone of the classic Mine Sweeper game by Microsoft since Windows 7 no longer included it. It has three skill levels and unlike the original plays a catchy tune in the background while you play. The floodfill algorithm in the code was quite difficult to write. I had no idea Mine Sweeper would be such a challenge to create.

Pong

Ah, the good old TV classic from the 70's. This was another game we would write in the game programming class. It emulates the classic PONG games perfectly, even down to the number of scan lines the old TV screens were capable of.

QBZerk64

One of my favorite games from 1980 in the arcade was Berzerk. I set out to clone this game as best I could. It even includes the robot voices, "Coin detected in pocket", and the maze generator creates the exact same mazes as the original coin operated game. Watch out for Evil Otto!

Simon

If you're a child of the 70's and early 80's you'll remember Simon. Simon plays a tune and then you have to play it back. The program clones the original Milton Bradley game perfectly. The buttons and switches on the front can be changed to modify game play just like the original. It will even remember your best score in the form of the tune you had to memorize.

Space Invaders

I don't know any game programmer that has not attempted to recreate the iconic Space Invaders. Here is my attempt that I wrote back in 2011. I believe this was the second game I wrote in QB64, right after Super Mega-Bug below. I created a sprite library for use with QB64 and this was one of the games I created to test the library out. The library is included, without it you would not be able to compile the game.

Space Invaders Clone

I was not happy with the 2011 version of Space Invaders so in 2013 I attempted to write the game and clone it as close as possible. I never released the game because of bugs however. While updating the tutorial I rediscovered the code and finished it. This is the result. It's as close to the real arcade machine as you can get without actually running the ROMs in something like MAME. This version supports true two player play and a host of other options to choose from.

Super Mega-Bug

I grew up with Radio Shack Tandy computers and one of my favorite games was Mega-Bug by Steve Bjork. This was the very first game I wrote in QB64 back in 2010. Back then QB64 supported MIDI sound files. They no longer work but the game still plays. It may crash the first time you try to run it. Just try again and it should go. I really need to update this classic when I find time. The programming is quite primitive as it was my first attempt at a game in QB64.

Wide-Screen Asteroids

I wrote an asteroids game for QB64 in 2011 but I was not ever really happy with it. So I decided to write my own vector graphics engine, incorporate some new features, and add elements I thought the original Asteroids could benefit from. The result is Wide-Screen Asteroids and it's a blast to play. A drop down menu allows many different ways to modify and enhance the game play. I wrote this in 2020 during the pandemic lock down.

Games By Tutorial Users and Forum Members

If you would like to have your game showcased here either email it to me ( quickbasic64 (at) gmail (dot) com ) or put it on the QB64 PE forum and contact me there ( user name TerryRitchie ). You must be willing to have your source code included for others to learn from.

ASCII Invaders

By Pete (Graphics and sound intro by TheBOB)
This program was made for a competition to design a game using only one key. You control the ship with just the ALT key. Even with just one key to control the game it gets fairly intuitive quickly. This is an excellent example of a text based game written in QB64. Pete and TheBOB are well known for writing excellent code. A look through the source code is time well spent.

Battleship

By bplus and Johnno
An excellent recreation of Battleship in QB64! Great graphics, animation, and sound effects are all included in this classic. See the text file named "New Players Instructions" for information about the game. Very well done game.

Blackjack

By bplus (with help finding game assets by Johnno)
Another outstanding game by bplus! Animation, background casino sounds, and voice prompts. This is an extremely well written and fun game to play. If you remember the Sierra casino games from the 80's and early 90's this will bring back memories. This game plays every bit as well. Awesome game!

Cobble

By Phil Taylor (PhilOfPerth)
Cobble is a word building game for up to 4 players. Players cobble words together with letter tiles drawn from a bag. Players then take turn creating words for points. Another nice text based game written by Phil Taylor.

Hex Minesweeper

By bplus
Yet another awesome game courtesy of bplus. It's Minesweeper but with a hexagonal twist! Great graphics, sound, and animations. The animation when you lose is really cool. You may want to lose on purpose the first time.

Recall

By Phil Taylor (PhilOfPerth)
One to four players attempt to find hidden colored letters in a chosen grid size from 1 to 5. Players take turns selecting two tiles from the grid attempting to find a match. If a match is found the player scores points and tries again. A record is kept of the best score for single players. This is a great example of a text based game written in QB64.

Slot Machine Poker

By Pete (cards from TheBOB)
Place your bets! Can't get to Vegas? Who needs Vegas when you have Pete's outstanding slot machine poker game at your fingertips to compile? Excellent graphics and game play. I haven't had fun losing this much money since I got married!

Sudoku Christmas

By bplus
Get into the holiday spirit with a game of Christmas themed Sudoku. Sudoku is a logic based number placement puzzle. I have no idea how to play Sudoku but this game may give me a reason to learn. Another great game courtesy of bplus.

More Games Written in QB64

The following games are from past forum members and others that created a game(s) in QB64. If you are the author of any of these games and wish to have the game removed from this list please let me know and I will remove it immediately. My email address is located at the bottom of every page in this tutorial.

Tic Tac Toe Rings

by Fellippe Heitor
This is one of the most unique games written in QB64. You need to get three rings in a row on a 3 x 3 grid based on color and size. It's one of the few games written in QB64 that I personally have spent many hours playing. It's fun, the music and sounds are spot on, and the challenge of getting ever higher scores is always on your mind. An excellent game to play and learn from.