• Advertisement
Sign in to follow this  

Looking for GOOD Tutorials for Beginner Game Development

This topic is 1766 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Alright Guys I have been scouring the internet for sometime now and I still have not been able to find ONE Tutorial on how to start out making your own 2D engine, or even simple games like Pong and it's source code that actually works. By the way I use Visual C++ 2010. I really love the feel of programming but the simple console applications aren't cutting it anymore. If you guys have any suggestion at all of where to find any GOOD Tutorials, by all means please go ahead and share all help help will be VERY much appreciated!

 

Thanks,

Share this post


Link to post
Share on other sites
Advertisement

Yes, and I would also like to add I have been trying to work SDL and SFML and neither of them work at all! Can't find a very good tutorial on those either. Sorry if i'm coming off a negative person its just I would really love to start programming and making something.

Edited by anikan1297

Share this post


Link to post
Share on other sites

I know enough to look at a language(programming) I don't even know the syntax of and be able to read it and see what its doing. Most of experience is in C++.

Share this post


Link to post
Share on other sites

Tried that the other day and couldn't get SFML to work, Link error: LINK : fatal error LNK1104: cannot open file 'sfml-system-d.lib'

Share this post


Link to post
Share on other sites

Tried that the other day and couldn't get SFML to work, Link error: LINK : fatal error LNK1104: cannot open file 'sfml-system-d.lib'

Did you try downloading the configured project for each part?  It's configured for you and has no external dependencies.

 

Truth is, linker problems are going to be one of your biggest fights with SFML.

Share this post


Link to post
Share on other sites

If you're still thinking about SDL, there is a series of good tutorials at http://www.sdltutorials.com/

 

The tutorials on there will teach the basics of using SDL, such as rendering an image to the screen, receiving playing input, etc, as well as how to construct a game engine.

Edited by Ludus

Share this post


Link to post
Share on other sites
Well the thing is Ludus when I try to get it setup it doesn't work, there's always a linker error or a compiler error saying its missing some .ddl files. If you can a good legitimate tutorial on how to install SDL in Visual c++ 2010 that would be great, but as it looks now I think I'm going to be switching compilers even though I love the UI of Visual Studio. Also SFML is still not working.

Share this post


Link to post
Share on other sites

Well the thing is Ludus when I try to get it setup it doesn't work, there's always a linker error or a compiler error saying its missing some .ddl files. If you can a good legitimate tutorial on how to install SDL in Visual c++ 2010 that would be great, but as it looks now I think I'm going to be switching compilers even though I love the UI of Visual Studio. Also SFML is still not working.

Are you still getting the same error in VS while trying to compile SFML ? Have you looked at the link that I gave you?

Share this post


Link to post
Share on other sites

For setting up SDL, I recommend Lazyfoo's tutorial: http://lazyfoo.net/SDL_tutorials/lesson01/index.php

 

Also, don't be discouraged by the setup process - this is often the most frustrating part of getting started, but it's (mostly) smooth sailing once you get everything working correctly.

Edited by Ludus

Share this post


Link to post
Share on other sites

Alright Guys i'm trying to setup SFML-2.0 right now and I think I got a whole lot of the bugs worked out but I still keep getting these errors: 

 

main.obj : error LNK2001: unresolved external symbol "public: static class sf::RenderStates const sf::RenderStates::Default" (?Default@RenderStates@sf@@2V12@B)

main.obj : error LNK2001: unresolved external symbol "public: static class sf::Color const sf::Color::Green" (?Green@Color@sf@@2V12@B)

 

I'm not really sure of what to do, I google'd it and found a couple of possible solutions but none of them worked. Dang This sure is difficult, and i'm going to create a tutorial once I figure it out!

Share this post


Link to post
Share on other sites

Could you paste your code?

 

I say that because it looks like a code error.

 

Although your library linking order might be wrong/not include the SFML graphics library.

Edited by Dragonsoulj

Share this post


Link to post
Share on other sites

I got this code from the tutorial page on SFML: http://www.sfml-dev.org/tutorials/2.0/start-vc.php

 

#include <SFML/Graphics.hpp>

int main()
{
    sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
    sf::CircleShape shape(100.f);
    shape.setFillColor(sf::Color::Green);

    while (window.isOpen())
    {
        sf::Event event;
        while (window.pollEvent(event))
        {
            if (event.type == sf::Event::Closed)
                window.close();
        }

        window.clear();
        window.draw(shape);
        window.display();
    }

    return 0;
}

 

I've Also uploaded Images to Photobucket so you can see what i've done:

 

Error: http://i1357.photobucket.com/albums/q746/anikan1297/Error_zpsb36a17d4.jpg

Linker>Input>Addition Dependencies: http://i1357.photobucket.com/albums/q746/anikan1297/LinkerInputAdditionalDependencies_zps3b0e1e74.jpg

Linker>General>Additional Library Directories: http://i1357.photobucket.com/albums/q746/anikan1297/LinkerGeneralAdditionLibraryDirectories_zpsd573b51d.jpg

C/C++>Preprocessor>Preprocessor Definitions(Release): http://i1357.photobucket.com/albums/q746/anikan1297/CPreprocessorDefintionsRelease_zpsa6cb196f.jpg

C/C++>Preprocessor>Preprocessor Definitions(Debug): http://i1357.photobucket.com/albums/q746/anikan1297/CPreprocessorDefinitionsDebug_zps102b8db1.jpg

C/C++>Additional Directories: http://i1357.photobucket.com/albums/q746/anikan1297/CAdditionIncludeDirectories_zps62295ebd.jpg

Edited by anikan1297

Share this post


Link to post
Share on other sites

Preprocessor(Release) should look like this: SFML_STATIC;WIN32;NDEBUG;_WINDOWS .....
 
You need to link the static libs. And for debug mode the debug libs. Try to remove the sfml libs from linker->input. and add this to your code file:

 

#ifdef _DEBUG
#pragma comment(lib, "sfml-system-s-d.lib")
#pragma comment(lib, "sfml-window-s-d.lib")
#pragma comment(lib, "sfml-graphics-s-d.lib")
#else
#pragma comment(lib, "sfml-system-s.lib")
#pragma comment(lib, "sfml-window-s.lib")
#pragma comment(lib, "sfml-graphics-s.lib")
#endif
Edited by AngryPlatypus

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement