Also, keep an eye on unitialized variables. Debug mode will initialize variables that have not been explicitly initialized. Try compiling with the /RTCu flag set. See here: http://msdn.microsof...(v=vs.100).aspx for more information.
Today I was talking with a few professors at my university about doing some work on a couple new servers they've got set up. They asked me about my background in coding, and I mentioned that I'd written a couple games over the summer with C++/Allegro, and that I used Visual Studio 2010 as my IDE. One of the professors told me that he preferred Dev-C++, which I found quite odd considering Dev-C++ at least seems very bare-bones (I wouldn't know, I've only written a couple very simple projects in it).
Anyway, I told him I thought he'd find VS2010 to be nice because the debugger is great for catching unhandled exceptions/null pointers, and he told me that debuggers are for lazy people. Now something tells me he's out of his mind, but I'm no expert, so I can't be sure. Do you think using a debugger is lazy? I don't mean overusing it, or relying on it too much. Just the simple act of using it at all. I think a debugger is a great tool and it's a good idea to use one. What do you think?
He must first learn programming and I would suggest something along the lines of C# and not C. For a 10 year old it would burn him out quick and he would give up. C and C++ are complex languages and a 10 year old might see it as gibberish right now.
Also, I would not worry about game development right now. I would worry about learning the logic, system environment, coding habits, etc. While he is learning that he can be reading about the latest game technologies and techniques just to be familiar with it and to keep up to date on them. It is important that he first learns and get's comfortable with a language though.
Once he is comfortable he could start using XNA, which is an SDK released from Microsoft that allows someone to write games for Windows, XBOX 360, etc. That would be a good SDK to learn graphics and game development.
Way down the road I would suggest C / C++ and either DirectX or OpenGL as those are the libraries used in professional studios. The C# and XNA are great for learning, but you can't do low level console development with it; only indie games. To get to this point could take a while so tell him to be patient and not to get aggravated.
Finally, I would suggest he creates an account here and get's to know the community. There are many professional game developers here and I'm sure they would be more than happy to help him regardless of his age. Also, kudos to you for not tearing his dream down and trying to help him.
Venture as you may, but you have been warned. This is a very risky thing to do... very risky.
Let's say, for instance, that everything is going great. Your economy is going great, friends are to be had by the dozen, and the general population is overall satisfied. Because of this you start getting large investors that are building the lost city of Atlantis, Rome, what have you. Well one thing you're not thinking about is that in every economy there is a mischievous person lurking in the shadows. When your economy is at it's strongest that person is going to strike; and strike hard. He is going to know about some flaw, some security hole, some simple mistake and drain your economy dry and then bring down your servers. Then what? Where do you go from there? I can guarantee you that someone is going to be knocking on your door.
The bottom line is you are human and you are not perfect. If we were all perfect none of us would have a job because the world would be running smoothly. You are going to have bugs, holes, etc. so you need to protect yourself. Sit back and think about it for a few days. Stop seeing $ and start seeing reality. One rule that you need to remember... Protect your investments.What is man made is man broken.
Sorry for the double post, but I didn't want you to skip over this. According to Nick Gravelyn at AppHub he said "Texture2D.FromStream produces a non-mipmapped Color format texture without premultiplied alpha". So you can try this for your sprite batch:
Two weeks ago I had to go on a business trip and I figured I would snap some Aerial photos so you can use them as references. There are about ~250 photos and most of them are pretty high resolution (around 3,000 x 2,000) so the download is a little large.
Please note that I did not touch any of these up or modify them in any way. So there may be a few out of focus and what not.
There are three folders: Ohio to Phoenix - Ohio (CLE) to Phoenix (PHX) at 5:00 P.M. (EST) to 6:08 P.M. (MDT) (kind of cloudy) Phoenix to Ohio - Phoenix (PHX) to Ohio (CLE) at 7:00 A.M. (MDT) to 1:30 P.M. (EST) (mostly clear) Misc - A couple of misc. photos of various things
1) Also, make sure your textures array is correct too. Load all of the necessary tiles for your map.
If you have tiles 0 and 1 then GLuint texture; will work If you have tiles 0, 1, and 6 then you will need GLuint texture; to make it work.
So make sure all of the textures are created.
2) Did you initialize your map array? It would be wise to have a base texture (say ID 0) and initialize your map array to this. This way if you only use 50x50 then the other 50x50 will just default to your base texture and you won't get an error.
Do something like this in your constructor/initialize code
for(y = 0, y < MAP_SIZEY, y++)
for(x = 0, x < MAP_SIZEX, x++)
3) In the link I provided was a utility function to set the tile. You may want to do this that way you can call something like this:
SetTile(x, y, id);
and the SetTile function will ensure you stay within bounds.
For instance, this is an example in pseudo:
void SetTile(int x, int y, int tileID)
if x < 0 then x = 0
if x >= map_sizeX then x = map_sizeX - 1
if y < 0 then y = 0
if y >= map_sizeY then y = map_sizeY - 1
map[y][x] = tileID;
Now it will make sure you will stay within boundary like I mentioned.
You can use it like this:
for(y = 0, y < MAP_SIZEY, y++)
for(x = 0, x < MAP_SIZEX, x++)
SetTile(x, y, 0);
As always... Don't forget to run the debugger. It is your best friend and will save you a lot of time and headache