Geeks With Blogs
Code.Blog Code Talk for the Game Developer August 2008 Entries
Code a la Carte: Displaying Arrays (C#)
Today's Code a la Carte is quite simple but is often a mistake with many new programmers. First, let's look at an example and the resulting output. Example Code: using System; namespace ArrayDisplayExample { class Program { static void Main(string[] args) { String[] saNames = new string[3]; saNames[0] = "Matt"; saNames[1] = "Steven"; saNames[2] = "Anna"; Console.WriteLine(saNames); Console.Read(); } } } Output: Reason: The reason this is displayed, is because you can't pass an array the same as a ......

Posted On Friday, August 29, 2008 11:14 AM

Charity Fragathon
Have nothing to do the evening of Wed. Sept 24? Want to do something? Check out the Charity Fragathon, a charity LAN party being thrown in Bloomington, Minnesota. You can find out more information at the link given above. Admission is $10 and will cover your entrance, provided pizza/soda/Bawls, etc... Also, they'll be giving prizes away for their tourneys and more random shwag! Definitely check it out, it goes to a great cause ......

Posted On Thursday, August 28, 2008 8:02 AM

Big Lebowski 10th Anniversary DVD

The 10th Anniversary edition DVD of The Big Lebowski is coming out in about a week and a half.  I normally wouldn't post about DVD's and such, but this is totally the coolest DVD case movie-tie-in ever.  Here's a link.  Or, here's a quick pic:

Posted On Wednesday, August 27, 2008 9:06 AM

Code a la Carte: Monetary Conversions In VB
Here's a quick and simple program you can use to learn to convert text to a double, store the double, and return true or false based on the results of the conversion. First, the form: Standard Form: Error Form: The Code Here's the complete background code: Public Class Form1 Private dTotal As Double Private Sub ExitToolStripMenuItem_Click... sender As System.Object, ByVal e As System.EventArgs) Handles ExitToolStripMenuItem.Click Me.Close() End Sub Private Sub btnAdd_Click(ByVal sender As System.Object, ......

Posted On Tuesday, August 26, 2008 11:28 AM

You did what? Really? WoW.
I renewed World of Warcraft (WoW) yesterday for 3 more months. Celebrate! I started a new character to play alongside some of my friends (which is why I always am renewing the subscription for that game). I got up to around level 11 just yesterday for playing about half the day. If you want to play, I'm a horde on Terenas named Alvane (5 points to anyone catching the cross-game reference). I might start a guild, but I'm not sure quite yet... What should I name my guild? (<- Blog Poll!) ......

Posted On Monday, August 25, 2008 12:51 PM

Cg Shader Language
I've recently been reading some documentation about the Cg shader language.  Cg is basically the same as HLSL, although is multi-platform so it can be used with OpenGL and other API's that support the programmable graphics pipeline.  You can find the awesome Cg book by nVidia here.

Posted On Saturday, August 23, 2008 8:23 PM

Sorry, I totally failed on that Thursday Challenge, although I had planned on it yesterday because I had off, unfortunately golfing 18 holes took me like 5 hours, plus another 2 to/from the course. I'm going to plan on the first challenge next week. In related semi-interesting news, I have decided on my next XNA game but it is still in the very early stages so I don't want to really say anything much about it. I've got loads of fixes to do on PONG, but if I really tried to fix all the bugs people ......

Posted On Friday, August 22, 2008 10:09 AM

Come One, Come All!
I've got some ideas that I'll hopefully implement on this blog to get you guys more active. To 'keep you one your programming toes'. Starting tomorrow (hopefuly) I'll be starting something called the Thursday Challenge. The Thursday Challenge is basically a simple programming challenge that I'll post a problem and you'll need to code up a solution to the problem. I'll provide a basic application that simply needs code behind for those who don't want to spend the time designing the layout. All you ......

Posted On Wednesday, August 20, 2008 9:44 AM

PongRPG Release
PongRPG, my first XNA game, is finally available for download on my website here. There may still be some bugs in it but hopefully it's nothing that makes the game break (if you find anything let me know). The game is for PC and unfortunately will require a full install of XNA GS (which means you either need to have Visual Studio 2005 installed, or you'll need to install Visual Studio C# Express Edition, sorry!). If you have time please check it out and let me know what you think ......

Posted On Monday, August 18, 2008 11:24 AM

Random Number Generator (VB Edition)
Recently I made a very simple Random Number Generator (only took a few hours). The purpose was to build a program for a football pool and the user needed a program that would have two types of functionality: Need 10 random numbers (0-9) and allow repeating digits, but digits cannot be next to each other. The output should be put into a comma delimited file. This needs to be repeated 38 times. Need 10 random numbers (0-9) but do not allow repeating digits. Output to a comma delimited file. This should ......

Posted On Monday, August 18, 2008 10:50 AM

Unsure of Blogging

Before I blogged a lot about random junk that was just on my mind on a day to day basis, often non-technical.  Now I've stopped and want to continue to blog about technical game programming but I'm not sure what to talk about.  So, what do you want to see?

Posted On Friday, August 15, 2008 9:36 AM

I just finished up an interview about programming at whohub.  Check it out here!

Posted On Wednesday, August 13, 2008 7:48 PM

Self-Publishing with
I don't know how many of you out there like writing, but I tend to love it (probably why I have a blog, write tutorials, and constantly am looking for new stuff to write). About 2 years ago (probably closer to 3) I published my first small book through LuLu is a great site if you want to publish a work of yours without having to go through all the application processes and such that are normally required with a work being published through a publishing house. Granted, it is a few bucks ......

Posted On Wednesday, August 13, 2008 10:33 AM

Practices in Poor Programming
Recently I pulled a very bad mistake while programming/testing. Here's the description, maybe you'll learn a thing or two. While at work, I created an automated process that would be started when a button on a form is clicked and would then run to dynamically generate numerous text files, build an Excel file from the data in several pre-made text files, and compare that data to database values which would then populate the database. I built the programming and got it running a few times to put the ......

Posted On Tuesday, August 12, 2008 8:51 AM

PS3 Home Beta (Here's your chance!)
The long-anticipated (at least I anticipate it) Home for the PlayStation 3 has been in beta for probably close to a year if not more. The beta was initially as a sign-up type deal but now Sony is adding more people to the Home beta via a download on the PSN. Yesterday, a PS3 Home Theme was placed on PSN allowing for users to download and instantly be submitted to be included in the Home beta, expanding later this month. Just downloading the theme won't automatically guarantee you get in, they will ......

Posted On Friday, August 8, 2008 8:08 AM

ToString() Padding Zeros
I just had to padd an integer with zeros when I displayed it and thought it would be a good piece of code to post considering there are some crazy difficult versions of doing this on the net that seem quite unnecessary. iNum.ToString("000") This will pad iNum with leading zeros if it's length is smaller than 3. For example, if iNum = 42, the output would be the string "042". HERE's a great MS resource for numerous ways to pad strings including with zeros and blank spaces (it's about padding in PowerShell ......

Posted On Wednesday, August 6, 2008 10:46 AM

Not a Fan
Summer is not my time of the year. I'm not a fan of warm sunny days. The only good summer day, is a few hours lounging on a deck with some beers and the grill going. Other than that, summer is so dull and repetative, almost every day (except stormy ones, which are few) is bright outside and warm or humid. There's no huge change other than an occasional rainstorm. Here are days I've been daydreaming about lately: I love fall/winter days where the sky is a dull grey, just ready to burst with snow. ......

Posted On Wednesday, August 6, 2008 8:25 AM

Here are the things I need to work on/ finish up: Pong RPG fixes and updates (Including CD creation) XNA Book (3 tutorials, introduction, and editing) Articles (for online stuff) I've also been interested in continuing my work on this fictional story I've got going. Every time I think of it I love the story, it's just so much to write while I do all this other work taking up all my free time. Speaking of free time, I haven't had much because of one thing: adventure games. I've been playing games ......

Posted On Monday, August 4, 2008 10:03 AM

Trolls Are Pathetic
Check out this amazing article on internet 'trolls': NY TIMES. It's interesting, I understand how bad it is that these internet kids call families of deceased people or badger them in real life but that isn't what stands out to me the most in this article. What stands out is the subculture these kids think they live in. There's this whole portion about the troll and his nice car pulling up all mysteriously and the reporter getting in, and the other troll thinking about putting a blindfold on him ......

Posted On Friday, August 1, 2008 11:26 AM

Coke Rewards == Laughable
Recently I signed up for that Coke Rewards website just for fun. My parents always drink Diet Coke and I do now too at work so I figured why not submit myself to the torture that is submitting random codes from under caps via a slow web interface? Looking over the prizes, the best (to me) seems to be the 19" Samsung HDTV for 13250 points. How many points are a cap worth? A measely 3. Now I was planning on asking for an HDTV for Christmas and getting a bigger one than a 19". So assuming I need 13250 ......

Posted On Friday, August 1, 2008 10:10 AM

Copyright © Matthew Christian | Powered by: