XNA, Hooray…or Nay?
November 17th, 2008Download latest device drivers. Words that should be lived by if you don’t want to go through the headaches I just did. After a month of wrestling with the skydome, I changed tact. I wanted to see how far along XNA (the development environment that Microsoft made for PC and XBox 360 games) has come.
Suffice it to say, they have embraced 3D! So, I am going down the XNA C# path. I haven’t learned a new programming language since college some 16 years ago. Back then, I knew about 13. Since working professionally, there has not been a nail rusty enough to be pummeled by the trusty, powerful, and ever faithful C++.
C++ can do anything to the PC. If you want to create a new OS, do it in C++. Fly a rocket to Mars? C++. C++ Is the industry standard for good reason. It’s adaptable, forgiving, and fast. Kinda like a military chaplain in battle, you will find few programmers in foxholes who are not clinging to their C++. It’s not perfect, however. You can create memory leaks, multithread deadlocks, and write spaghetti code without discipline. And let’s face it, technology waits for no one, so out in the field, it’s easy to fall into bad habits during crunch time. As far as spaghetti code, once you are adept enough in C++ and can read it, you are probably not inclined to fix something ain’t broke.
Microsoft knew this going into mainstream “opensource” SDK kits for the next gen console. It takes years to become fluent in C++. But a hobbyist might not have the time, patience, and dedication necessary to create a game with such a formidable language. C#, Microsoft’s answer to Java (Sun’s answer to the next C++) handles just that. No pointers, no need for garbage collection. Just create a class, link to a dll, and you are done.
Almost. After installing the latest XNA 3.0 kit, I was QUICKLY….QUICKLY, disappointed. The kit came with no demos, and support was only available online. What were they thinking??! Demos were downloaded. Fine, a bump in the road. A perk was they had complete games in multiple genres called Starter Kits. Good for them! It’s about time they gave you more to work with then just a quickie sample that won’t work in the real world.
So for the past week I have been in sample hell and glory. The demos worked, the starter kits would crash. I found C# to be real easy to read and debug, I would be hard pressed to create an app from scratch. But I don’t think I’ve done that yet in the 20 years of programming, when cutting and pasting an existing app is so easy. The starter kit I was interested in was called RacingGame. Original.
Racing game didn’t work out of the box for me. Which is why I got the latest device drivers and fixed the problem. i was hoping someone on the XNA forum would answer the questions I had. Initially, I thought the forum would be great. My first post was quickly responded to, and numerous times there after. This past week, though, I have not heard too much. So it’s back to the good old days of solving problems on my own.
On the plus side, I think I will have a Glitchy prototype up and running in no time! Stay tuned.