Sign in to follow this  
Solynth

Help with first C++ game.

Recommended Posts

Solynth    100
I've been using Game Maker for about 5 years. The reason I want to switch to C++ is because of how stripped down GML is. I'll want to add something to my game and then I find out that it's impossible. I used GML, very simple and stripped down I know, but at least I'm not going in with no programming experience.
I've also read the first two chapters of [url="http://www.learncpp.com/"]Learn C++[/url].

At this stage I just want to experiment with creating a simple 2D platformer or something relatively basic so I can get a bit of understanding with the C++ language.

I kind of lost when it comes to what library to use. And how to actually start programming the game. Are there any good tutorial websites? I can't find any, and most are from around 2002.

Thanks for your help.

I might start with this:
[url="http://www.sdltutorials.com/"]http://www.sdltutorials.com/[/url] Edited by Solynth

Share this post


Link to post
Share on other sites
fuedone    128
definitly use SDL with c++ (its pretty easy to use once u figure it out)


just follow the examples and you should pick up the basics at least.


if you want to move onto more complicated games, you might want to use an engine, but while you are still learning i recommend sticking with just c++/SDL and make very basic games

Share this post


Link to post
Share on other sites
wildboar    320
I think SFML might be a bit easier than SDL.
But you seem to be wanting to go straight to the graphical stuff.
Since you dont know C++ very well, you should program some console (dos style) apps first.

Just get familiar with stl and pointers and stuff, because otherwise you will struggle with SDL.

Share this post


Link to post
Share on other sites
rip-off    10979
One of the downsides of choosing C++ is that doing graphics/input in it necessarily involves some of the more advanced language concepts such as pointers and resource management. I'd recommend you do not start using graphics library until you are comfortable with the core language. You can make console programs and games for the moment. They aren't as glamorous but you can explore the language without the difficulties involved with non text I/O.

When you are ready use a more up-to-date tutorial set such as [url="http://lazyfoo.net/SDL_tutorials/index.php"]Lazy Foo's tutorials[/url]. Once you are comfortable with SDL, try making small games like pong, breakout and asteroids, etc.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this