Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 02 Sep 2007
Offline Last Active May 01 2015 08:50 PM

Posts I've Made

In Topic: Help me figure out what I'm doing wrong, please!

16 September 2012 - 08:53 PM

You forgot to initialize rand. you should initialize in every constructor. It should look like this.
rand = new Random();

In Topic: How to get started?

29 May 2012 - 11:54 PM

If you are going to be programming games in Java I recommend The Lightweight Java Game Library (LWJGL). It uses OpenGL for rendering and you can also use OpenAL for audio if you want.

In Topic: Good SDL book?

24 July 2011 - 01:20 PM

I used Lazy Foo to learn SDL it has great tutorials and you will learn a lot. here is the link to the site. I didn't use a book to learn any SDL, but I've heard that Focus On SDL is a good book. here is the link to the book

In Topic: No window opening.

23 January 2011 - 08:16 PM

Did you make a new project? If you did did you make it a Console Application?
Well if you didn't do this go up File->New->Project. Then click on Console Application. Then give the project a name. Then click on ok . Then it will ask you to save. Then you put your code in the main.cpp tab. Then click on Execute->Compile. Then after it compiles click Execute->Run ,and then it should run it. Tell me if something else is wrong, and I will try and help you as much as I can.


BTW don't forget to make the i in the first for loop equal to 0

In Topic: No window opening.

23 January 2011 - 07:11 PM

It worked fine for me, but in your first for loop you need to initialize i. I made it i = 0, and It worked. I used Microsoft Visual C++ 2008 Express edition to compile it. Could I please know what you are using to compile this, it would help.