ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I don't know what SDL is---I assume some kind of graphics interface?
Sajin;
Reading between the lines, it appears you want images of ghosts as part of programming a Pacman game. If that's correct, then we would need to know what kind of graphics environment you are working in, and what operating system you are coding for.
Oh, I thought it was fairly common. It's a cross-platform library which hides a lot of the gory details of opening windows and drawing to them: http://www.libsdl.org/. I use it for writing any/all applications which don't have a traditional UI (such as games).
I assumed he was asking "how can I draw a pacman ghost using C++?" in which case SDL is a pretty easy general solution
Just because the OP specifically asked about C++ does not necessarily mean that he can't reevaluate his decision to use C++. He may well have chosen C++ because he didn't know about alternatives. It might not be too late to make a more appropriate choice.
Just because the OP specifically asked about C++ does not necessarily mean that he can't reevaluate his decision to use C++. He may well have chosen C++ because he didn't know about alternatives. It might not be too late to make a more appropriate choice.
True, but previous posts of the OP indicate that he is taking a course, so I don't think he has the chance to choose a language of choice.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.