winzip icon

A Matrix Multiplication Lesson using the game Asteroids

Submitted on: 1/31/2015 12:48:00 AM
By: Peter Wilson (from psc cd)  
Level: Beginner
User Rating: By 3 Users
Compatibility: VB 6.0
Views: 1690
     Originally started off as a lesson in Matrix Multiplication using 3D vectors; And by "3D vectors", I don't mean 3D computer graphics... I mean "vectors". I was actually half way through coding a 3D computer graphics program, when I decided I needed a refresher course in matrix multiplication... for you see to do 3D graphics, I actually use "4D vectors". Confused? Well... so was I, so I decided to drop back a dimension and learn all over from "2D graphics using 3D vectors", so that I could understand "3D graphics using 4D vectors". Anyway... so the matrix math is going well, when I think to myself, "Hmmm... maybe I should create an Asteroids game" Well... I'm half-way through debugging the AI routine for the enemy spaceships, when I decide that with all of my debugging graphics turned on, it looked kind of cool, so I thought you would want to see it before I pull out all the debugging graphics. The actually Asteroids game will probably be finished in another month or so. I don't want to release it until I've got a kick-ass AI routine for the enemy space ships (basically I want to make computer controlled ships, just as smart as human players)

winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net

Other 24 submission(s) by this author


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)

Other User Comments

 There are no comments on this submission.

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)

To post feedback, first please login.