Saturday, November 6, 2010

Are Global Variables bad (in this situation)?

Programmer Question

Well here I am sitting down for the millionth time telling myself "I'm going to write a game using SDL and C++" except this time I told myself I was going to write it in C. This is because SDL itself is written in C and it seems to just make sense to me. The game that I'm writing will be a simple "SHMUP" (Shoot 'em up) and it will probably be very short code-wise, so I'm wondering are a couple global variables bad? (like "struct base basevar;" or "int SCREEN_W" or something)?



Find the answer here

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails