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.

Pac-Man Clone

Back in 2013 I started working on a Pac-Man clone but never finished it. While updating the tutorial I found that code and decided to give it another shot. A few months later and this is the result. It's not a 100% clone of the game but it's the closest you are going to get without running arcade ROMs in something like MAME. There are options to change the number of lives, screen size, extra life value, and so on. This version supports two player as well. Have fun! Waaka...Waaka...Waaka...

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.

Galaga

By Cliff Davies (RokCoder)
Classic coin-op gamers rejoice! Galaga has been written for QB64! Controlling a starship, the player is tasked with destroying the Galaga forces in each stage while avoiding enemies and projectiles. Some enemies can capture a player's ship via a tractor beam, which can be rescued to transform the player into a "dual fighter" with additional firepower. RokCoder's QB64 remake is spot on. You'll feel like you're a kid again standing in front of an arcade cabinet with a pocket full of quarters. The first four bonus wave levels have been implemented with plans to include more. Another awesome example of source code well worth looking into. Visit RokCoder's GitHub for future updates.

Goblin's Gold

By Donald L. Foster Jr.
Goblin's Gold is a 2 to 4 player abstract strategy board game with some luck and memory. The object of the game is to get the Wizard back to your corner of the board first. The Wizard is placed in the center of a maze that has invisible walls. Each player, in turn, maneuvers the Wizard through the maze one step at a time. Once a player encounters a wall, that wall will appear and play goes to the next player trying to maneuver the Wizard back to their corner from that position on the maze. This game uses no external sound or graphics files. An excellent example of a game in QB64. Read more about it here.

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.

Nonograms (hanjie)

By Cliff Davies (RokCoder)
Correctly solving a nonogram puzzle reveals a hidden work of art which you can also use to help confirm that you are on the correct path as you solve. Clues for each row are at the left of the puzzle and clues for the columns are at the top. Rows or columns with only a single number clue reveal that there are that many consecutive shaded squares somewhere in that row or column while other squares must be empty. Perform a Google search for 'Hanjie' for a complete understanding of the game. This is Cliff's first QB64 game! The code is well worth having a look through. I look forward to more games from Cliff. Excellent game!

Octogo

By Donald L. Foster Jr.
A two player game using ten square pieces per player, each with an arrow on it showing the direction in which movement is allowed. The objective is to win by taking all your opponents pieces by landing on them. During your turn you may either move one piece 1 or 2 spaces forward in the direction the arrow shows, rotate one piece by 1 or 2 points, or make a combination moves consisting of rotating 1 point and then moving 1 space (or move 1 space and then rotate 1 point). This game uses no external sound or graphics files. An excellent example of a game in QB64. Read more about it here (with a video).

Recall2

By Phil Taylor (PhilOfPerth)
Phil has updated his Recall game to version 2, now with graphics! One to four players attempt to find hidden images in a chosen grid size from 1 to 4. 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.

Scramble

By Cliff Davies (RokCoder)
RokCoder has done it again! Another great 1980's coin-op reproduction. The player controls a futuristic jet aircraft and has to guide it across a scrolling terrain, battling obstacles along the way. The jet is armed with a forward-firing weapon and bombs; each weapon has its own button. The player must avoid colliding with the terrain and other enemies, while simultaneously maintaining its limited fuel supply which diminishes over time. More fuel can be acquired by destroying fuel tanks in the game. This is an excellent example of a side-scrolling game implemented 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.