Insert Image and music into a c ++ project [closed]

-1

Hello, what library allows me to insert images and music into a c ++ project? Does the SDL2 library allow? Right now I have the snake game running just on the console, but I would like to put a background image, something funnier.

Thanks and regards

    
asked by anonymous 03.08.2018 / 13:31

2 answers

1

Yes SDL allows all this, 2D / 3D graphics, sound, image, etc. With it you can play simple sounds like this example , but if you want playing audio tracks as mp3 you need to use SDL_Mixer , example of using the mixer: link

    
03.08.2018 / 15:58
2

There is a very interesting library called Allegro. It is possible to do everything you want, including working with the movements of the scenario in a well didactic way. There are several tutorials on youtube about this library.

Follow the link: link

Hug.

    
03.08.2018 / 14:35