Thursday, September 22, 2011

Another VB Game Programming Tutorial ~ Creating Classes and Managing Object Arrays



This Visual Basic programming tutorial is designed to complement my Visual Basic Game Programming series, but is not limited to game design. It is designed to teach you how to create a custom VB Object Class, store your class to an object array, then create and delete multiple instances of that class on the fly.

In this VB programming video, we will be performing the following tasks:
1.) Building a simple game/application loop
2.) Build a (GDI+) graphical interface for painting objects to the main form
3.) Build a custom class with graphical properties and embedded timer objects and self-contained events
4.) Teach the objects to interface with the form environment while remaining autonomous
5.) Create a class/object array to store a desired number of objects from our class
6.) Use random numbers to dynamically generate new and diverse instances of our custom class
7.) Destroy specific objects by deleting them from our array when certain conditions are met.

PROJECT SOURCE CODE: http://www.aardaerimus.com/downloads/classtutorial/

2 comments:

  1. HI I'M GEORGE ZIMMER, FOUNDER AND CEO OF MEN'S WAREHOUSE. YOU MIGHT REMEMBER ME FROM SUCH THINGS AS TROLLING YOU ON FACESTAT AND DEFINING A NEW STANDARD MEASUREMENT FOR MANLINESS (1 ZIMMER = 18 INCHES...AROUND). JUST STUMBLED ONTO YOUR SITE LIKE A COKED UP WHORE AFTER A LONG NIGHT IN HEELS.

    SORRY TO HEAR YOUR MARRIAGE MADE LIKE THE TWIN TOWERS. SEEMS LIKE YOU'RE GETTING BY, BUT IF YOU EVER FEEL THE URGE TO MOVE A FEW HOURS NORTH, GEORGE IS ALWAYS LOOKING FOR GOOD DEVELOPERS. YOU CAN HIT ME UP AT THIS.EMAIL.I.JUST.MADE.FOR.YOU@GMAIL.COM.

    CHEERS MATE.

    ReplyDelete
  2. Like the bold bouquet and exquisite defining characteristics of a fine scotch, one's encounters with the ZIM are unforgettable.

    Hahah I was just thinking about you, a short while back. Hope things are going well in your neck of the woods.

    The marriage news is a bit dated, and things have since been patched up.

    I'm more of a code hobbyist than a "good developer", though it does pique my curiosity... What on earth could the ZIM be cooking up, codewise?

    ReplyDelete

Please be respectful. Thank you!