Thursday, 17 November 2011

Graphics revisited

It's been 6 months since I last tried programming. I quickly got the hang of the basics and made a few text-based games. But I only skimmed over graphics, which is where I need to be headed if I want to make an Xbox indie game.


It's been a while since I last used XNA so I don't know which template to use. XNA Game Studio 4.0 - Windows Game 4.0 seems like it might be right, so let's choose that.

Now I need to get some graphics in there. An image of anything will do. The last time I tried this, it required copy and pasting lots of code, just to get a picture of Gargamel to appear on the screen.

Let's try the tutorial I used before.



Ok, so I have my screen setup nicely. I just have to go through the tutorial and make something appear on the screen. Let's time how long it takes me - the time now is 7:33pm.

Well it's 7.58 now and I haven't yet been able to display a simple image. I came across 2 main problems. I had an error regarding the inability of my graphics card to display the game - something I have experienced before, and have a solution for. What I didn't expect was having to reopen the solution for my change to take effect. Then I found that Visual Studio doesn't like gif images for some reason, but not before spending 10 minutes figuring out why my gif image was producing an error message even though it wasn't even referenced in the code.

My current situation is I can actually run the game without any errors (F5 to run it, useful that) but my image isn't showing. Instead all i get is a relaxing blue gradient background.


Actually, this isn't relaxing at all. It gives me vertigo because I feel like I'm falling into the sky.

This isn't over, Visual Studio.

No comments:

Post a Comment