Tuesday, February 23, 2010

Basic VB.NET Calculator



In class this week we had to make a simple calculator program, So we pretty much just had to follow a design, and use our knowledge of VB.NET variables and object functions.



Above is the source code to my calculator application, the commenting is pretty much self explanatory. I also added a division by zero checker so that the program won't crash.

Tuesday, February 16, 2010

3 Examples Arrays

1. Lists: Arrays can be used for listing data such as names or values. For example an array could be used to store your shopping list and view it.

2. Linking Numbers and Strings: Arrays allow you to use an index number which means things like the Chisholm student ID could be sent to the server, and return your name and other various details with precision, efficiency and ease.



3. String: A string is actually an array made up of letters (single bytes) and these are used often in almost all programming languages. The size of a string is simply the amount of letters plus one. It's 'plus one' to the size of the text because it ends in a byte with the value of zero (Null), this helps to tell the computer its finished reading the text.



4. Simulating Objects: Using a collection of arrays you can store various object names and data such as health, power, and more. This method of object orientated design is incredibly limited as it assumes all objects share the same states/variables. You would only use this for machines lacking dramatically in CPU and RAM power. YOU DO NOT NEED TO KNOW THIS AND ITS BAD PRACTICE TO USE IT IN OBJECT ORIENTATED PROGRAMS LIKE VISUAL BASIC

Monday, February 15, 2010

Imaginary Object. States and Behaviours




In class we had to get an object and describe the different states/variables and behaviors with parameters. Usually for functions inside objects you don't have to give them parameters but I thought "Meh, might as well."

EDIT: Fixed up the table to fit proper conventions.

Datatypes in the Wild exercise





I had to create a table showing what each variables/states data type is for the game character shown in the screenshot above the table.

Sunday, February 14, 2010

2 Hours of trying to fix this... Way to simple.




I've spent the last two hours trying to fix a problem with my game engines depth system. Basically the depth system is so I can choose which images are drawn in which order (eg. Draw Tree Outside, Draw Window, Draw Walls, Draw Lamp) those drawn last will appear last on the screen.

In any case the problem was one slight typo... well an entire word being a typo. Anywho problem solved now, and it works fine :)

P.S. The first screenshot is the error, the second screenshot is the fix.

Tuesday, February 9, 2010



This is my web browser for my VB.NET beginner project, fairly simple. Here is the code:
' Quick Search for my favourite websites
If (txtAddress.Text.ToString().ToUpper = "GOOGLE") Then
txtAddress.Text = "http://www.google.com.au"
ElseIf (txtAddress.Text.ToString().ToUpper = "") Then
txtAddress.Text = "http://www.google.com.au"
ElseIf (txtAddress.Text.ToString().ToUpper = "CTRL") Then
txtAddress.Text = "http://www.cad-comic.com"
ElseIf (txtAddress.Text.ToString().ToUpper = "CAD") Then
txtAddress.Text = "http://www.cad-comic.com"
ElseIf (txtAddress.Text.ToString().ToUpper = "BLOG") Then
txtAddress.Text = "https://www.blogger.com/start"
ElseIf (txtAddress.Text.ToString().ToUpper = "BLOGGER") Then
txtAddress.Text = "https://www.blogger.com/start"
ElseIf (txtAddress.Text.ToString().ToUpper = "GAME") Then
txtAddress.Text = "http://gmc.yoyogames.com"
ElseIf (txtAddress.Text.ToString().ToUpper = "GMC") Then
txtAddress.Text = "http://gmc.yoyogames.com"
End If

' Go to the site
wbBrowser.Navigate(txtAddress.Text)

Monday, February 8, 2010

Class Concepts



This is some of the beginner work done in the Multimedia Class, we were given an object and we had to describe the states (variables) and behaviours (functions/modules), so here it is.

First post.

This is my blog, My name is Jake and currently I'm programming a C++ engine that I hope will eventually run on Wii, PSP, Windows and Linux.