This page contains a collection of source code and a few articles from my programming experience. It's not meant to be a full tutorial to teach you how to program- there are plenty of other sites for that, and I'm certainly not expert enough - it's just to share a few of the things that I've learned that may help you out or save you some time. Or you could just use it to download and play some of the games that I've made.
Most everything on here is in some form or another of BASIC, either Visual Basic, Q-BASIC, or TI-85 Basic, though some of the general information is applicable to any programming language. I learned Pascal and Fortran 77 for a high school and college class, respectively, but for what I do, they don't add anything valuable over BASIC. I've had limited experience with C and C++ (mostly modifying already written programs). I'd like to learn more about them, but that's just not one of my top priorities, since Visual Basic really does let you do a lot of stuff.
I have a Downloads section, that contains executable versions of a few of the better/more useful programs from this page, for those people that don't have Visual Basic installed on their computers.
Menu:
- Visual Basic
- Q-BASIC
- TI-85 Basic (separate page)
Why not start off with the most powerful version of Basic that I know. I started off using Visual Basic writing macros for MS Excel, but I've since learned the stand-alone version as well. If you don't want to buy the stand alone version, you can still write pretty powerful programs in Excel. The last program listed here is a simple Excel macro.
Articles
- X-Plane, UDP, and Visual Basic
Source Code
-
3D Beer Pong
Download Source Code (zip), View Source Code (html), Screen Shot
-
Calculator with Expression Parser
Download Source Code (zip), View Source Code (html), Screen Shot
-
Photo Page Generator v2.3
Download Source Code (zip), View Source Code (html), Screen Shot, Read MeThis is a program I wrote to generate some html code to automate the making of photo pages. It will read a directory to get all of the images, write the html code to put them in thumbnails, and generate a webpage for each photo (with navigation links and a handy-dandy javascript that dynamically resizes the image to fit the window), or a list to put in a drop-down box for a slideshow. You can even generate different galleries for the images in a directory. There is also a readme file included in the zip archive with detailed directions on how to use the program. Note that the code it generates is to work with the format of my Photo Pages, but you could easily edit the code to make it fit whatever format you wanted. This program uses a module written by David Crowell to read in the image sizes.
-
Circle Gradient Pattern Generator v2.0
Download Source Code (zip), View Source Code (html), Screen Shot Read MeThis is a program I wrote to play around with graphics. It uses the Brightness Demo ©2005 by Tanner "DemonSpectre" Helland as the method to display the graphics, while the actual creation of the pattern is my original code. Basically, it creates circular gradients about points, and overlays all these gradients to generate the patterns. There are two methods of gradients - a simple linear method, which generates fairly smooth gradients, and a power based method, which generates sharper gradients. There is also a method for creating animations of these gradients. To see some examples of the images and animations made with this program, take a look at my artwork page.
-
Excel to HTML Table Maker
Download Source Code (zip), View Source Code (html), Screen Shot
I did a lot of Q-BASIC programming when I was in high school. Unfortunately, most of it was before I took a programming class and learned the basics of good programming practices. But, I still made some neat programs.
I discovered that it's very difficult to make screen captures of some Q-Basic programs in Windows XP. I'm not alone in that, as I've seen the issued raised in many web forums. I finally came across a good solution. Run the programs in DOS Box, an x86 emulator, and take a screen capture of that. Yeah, it seems kind of backwards to have to run an x86 emulator if your processor already is an x86, but it works.
Source Code
-
Advanced Pong 2.0
Download Source Code (zip), View Source Code (html), Screen Shot
-
Arm
Download Source Code (zip), View Source Code (html), Screen Shot
-
Asteroid
Download Source Code (zip), View Source Code (html), Screen ShotA game where you shoot falling asteroids before they hit the ground- not exactly like the original asteroids, but something similar.
-
Black Jack
Download Source Code (zip), View Source Code (html), Screen Shot
-
Fake DOS Emulator
Download Source Code (zip), View Source Code (html), Screen Shot
-
Morse Code Translator
Download Source Code (zip), View Source Code (html), Screen ShotHere's a program that takes any phrase you type, and plays it on your computer's speaker in Morse code.
-
Tank Game
Download Source Code (zip), View Source Code (html), Screen Shot
Old Classics
These are two of my favorite games. They used to come standard on every computer, back in the days of DOS, but now they've become pretty hard to find. So, here they are, for your gaming pleasure. Note that I'm only giving the actual Q-BASIC program for download - no html version of the source code. A little disclaimer, in case you've never heard of these programs - I did not write them. They were copyrighted by Microsoft in 1990.
-
Gorilla
Download Source Code (zip), Screen Shot
-
Nibbles
Download Source Code (zip), Screen ShotBetween this and Gorilla, this was the "action" game. One player or two player modes, you control a snake that goes around trying to gobble up numbers. With each number you eat, your snake grows by that amount. Higher levels have obstacles to make it more difficult, plus you can set it up to increase speed as you play. For those of you get errors when trying to run this program on a new computer, follow this link: Running Nibbles on a Fast Computer.