Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
zigb
Mar 21, 2007
Is this a good place to talk Source engine modding/development, or should that go elsewhere?

Adbot
ADBOT LOVES YOU

zigb
Mar 21, 2007

Kylratix posted:

I think the best way to learn game programming is to start with mod coding on something like one of the Quake engines or HL2 engines. You get all of the meat of game programing without all of the technical stuff. You can slowly become more technical as you move along. The important part is that you see results very quickly, which is important for motivation, I think.

I've found the Source SDK code to be fascinating reading. Of course you don't get all of the good engine stuff, that's still proprietary. I also learned a nifty trick the first time I read it, not too long after HL2 came out.

code:
// Instead of defining flags like:
#define FLAG1 = 1 
#define FLAG2 = 2
#define FLAG3 = 4
#define FLAG4 = 8
... 
// They use left-shifts to do the same thing, in a much more readable (to me) manner: 
#define FLAG1 = 1<<0
#define FLAG2 = 1<<1
#define FLAG3 = 1<<2
...

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply