Insert Image and music into a c++ project

Asked

Viewed 511 times

-1

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

Thanks and regards

  • 1

    For games (your case), the sdl2 meets the needs, has support for images and music, as you want. I will leave these links to serve as a guide to start searching: music, image, and that guide specifically for games.

  • Um ok, I’ll look at these tutorials so thank you very much

2 answers

2

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

Follow the link: https://liballeg.org/

Hug.

1


Browser other questions tagged

You are not signed in. Login or sign up in order to post.