Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 07 Nov 2006
Offline Last Active Jan 18 2014 12:21 PM

Topics I've Started

Video tutorials on game programming with Allegro

01 May 2012 - 11:24 AM


These videos show how to develop a 2D space shooter from start to finish, using C++ and Allegro.

Two free python game programming books

01 May 2012 - 11:08 AM

Here are two free books on game programming with python. The first is about text-based games and assumes no previous knowledge of programming. The other is about creating graphical games with pygame and assumes some knowledge of python.


Maximum signature size?

19 October 2010 - 05:22 AM

I wanted to add a couple of links to my signature, but I can't type anymore characters in the Your Signature text box (in the Change Profile page). Actually, if I delete some characters, I can't type them back in. I have to delete several lines before I can type additional characters.

Has the maximum signature size changed at some point, or is this a bug?

Thanks in advance.

Old free computer graphics book

17 September 2010 - 11:39 PM

Link. It's from 1995. The quality of the PDFs is unfortunately not very good.

Would be great if some of the experts here could give their opinion on it.

Questions about static initialization

10 September 2010 - 10:04 PM

Suppose I have the following code:

// main.cpp
struct A {
A() { cout << "A()" << endl; }

A a;

int main() {
cout << "main()" << endl;

// B.cpp
struct B {
B() { cout << "B()" << endl; }

B b;

As far as I understand, it is guaranteed that "A()" will be printed before "main()", but "B()" might be printed after "main()". In other words, global objects in other .cpp files might get initialized after main() starts executing.

My question is, is it possible that "B()" will not be printed at all?

Also, if the above globals were instead static members of the respective classes, would it make any difference with respect to the initialization?

Thanks in advance.