• Advertisement
Sign in to follow this  

Need guidance on side-scroller: c++

This topic is 1427 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

I know the basics of the c++ language, but I need help on implementing graphics, hit boxes, etc... If you could please post a list of sites, tutorials, books, or articles that can help expand my knowledge of c++, that would be very much appreciated. Thanks for your time!

Share this post


Link to post
Share on other sites
Advertisement

If you decide upon SDL I recommend LazyFoo's tutorials. I personally prefer SDL over SFML because I've used it longer, but it's really whatever floats-your-boat.

 

Both SDL and SFML have bindings for OpenGl if you would like to use that further down the road.  LazyFoo has recently added openGL tutorials with sdl (although I would stay away from OpenGL for a while).

 

Link to LazyFoo SDL Tutorials: Lazy Foo' Productions

Link to LazyFoo SDL and 7 OpenGL Tutorials (Incase you want to take a peek): Lazy Foo' Productions - OpenGL Tutorials

Share this post


Link to post
Share on other sites

If you do decide to use SDL as your API I would suggest checking out Tim's tutorials at http://www.sdltutorials.com/

His tutorials will take you through the basics of the game loop, rendering images, receiving player input, collision detection, and more. The tutorials are graded, so at first you'll start with programming a simple game - Tic-Tac-Toe, and you'll move onto something more complex - the basic elements of a side-scroller.

Share this post


Link to post
Share on other sites

Do yourself a favor and do not limit yourself to C++ game programming tutorials only. The most difficult part of making a game is proper game design, the translation of that design into an executable code is not as difficult (if your are fairly proficient in the language/api you are using). I have learned many amazing design tricks and code snippets from many different tutorials of varying languages and libraries.

 

SFML and SDL aren't really game engines or even game libraries per se - you yourself will have to build your own game engine using SFML/SDL. If you were to check out libraries of other languages that are specifically made to create games (such as Slick2D or LÖVE) you might be able to learn quite nifty tricks that you can then implement in your C++ code.

Share this post


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

  • Advertisement