Sign in to follow this  
GearTreeEntertaiment

Need guidance on side-scroller: c++

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
DeafTV    1705

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
Lightness1024    933
Ludus    1020

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
Rimdeker    116

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

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