Game Developement

Does anyone know any good tutorials of c++ game development?

From very basics to more advanced stuff??

I have searched and searched, writing "C++ space invaders" and it comes up as cmd tutorials, I want to learn 2D games and then start learning 3D....

Any links or books would be really nice :D

Thanks
Have you tried these:

For some tips etc.

http://www.cplusplus.com/articles/1w6AC542/

Just nice and simple.
http://www.cprogramming.com/tutorial/game_programming/same_game_part1.html


Of course There's many more but hope that will get you started.

*RB*
Thankyou very much... I found a SDL tutorial, i downloaded the library and i included them in the properties but when i compiled it says "cannot find SDL.dll"

I did everything the tutorial said...
Did you #include it aswell?

Also can I see the code where you have included it and the error as it would help me to understand what exactly is going wrong.

Cheers

*RB*

EDIT- Could you also post the link to the tutorial please
Last edited on
Where did you place the SDL.dll file? Are you sure it's the right place?
http://lazyfoo.net/SDL_tutorials/lesson01/windows/msvsnet2010e/index.php

I downloaded the folder and i placed in it c:/programfiles(x86)

I created a new empty project, went into properties, and linked all the lib and include to the correct ones like what the tutorial says, created new cpp and wrote

1
2
3
4
5
6
7
8
9
10
#include <SDL.h>

int main()
{
      SDL_Init(SDL_INIT_EVERTHING);
      SDL_Quit()

      return 0;
}



I compiled and it said,
The program can't start because SDL.dll is missing from your computer.
Try reinstalling the program to fix this problem.


I also put SDL.dll into C:/Windows/System32
Last edited on
if you have done everything the 'lazyfoo' tutorial said then i'm not 100% sure what's gone wrong...

Although one thing the tutorial states (at the very bottom of the page) is to:

Include it like this #include "SDL.h"

Whereas you have done it like this #include <SDL.h>

Doubt it will make a difference but try changing it and see if it does :)

*RB*
yeah changing "SDL.h" to <SDL.h>

But I did realised that where it said to change the system thing to Windows...


Wouldn't that be for
1
2
3
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrev, LTSTR ltCmd, int nShow)
{
}

not
1
2
3
int main()
{
}

Because int main() is for console, where as WinMain is for Win32 applications, so i changed the code to


1
2
3
4
5
6
7
8
9
10
#include <SDL.h>
#include <Windows.h>
      
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrev, LTSTR ltCmd, int nShow)
{
      SDL_Init(SDL_INIT_EVERTHING);
      SDL_Quit()
      return 0;

}


But yet I got same error...

My computer is gay, first portforwarding wouldnt work, now SDL wouldnt work.... What next? haha
Topic archived. No new replies allowed.