?
Solved

Graphics for Windows and Linux

Posted on 2003-11-13
1
Medium Priority
?
247 Views
Last Modified: 2010-04-01
I have taken on a small project that requires me to install graphics onto a text based game.
The game is prety simple its just two tanks trying to kill each other.
The text based game engine is alredy made and working fine.

But now i want to add graphics and sounds to the game.
instead of little ascii characters shooting periods at each other.

I need a library or something that will work on both WIndows compilers and linux compilers.

Since this will be given to students who will develop their own AI. I dont want to limit them to using just one compiler.

i wanted to use Direct X but i found out it does not work well in linux or work at all for that matter.

So i need a graphics library and the include files i will need in order to start me off. I can learn of the commentations and things like that off the code but i just neeed the library.


so if you can just give me the files i need

#include <library name>

if i need a seperate library for sound then that would also be apreciated

to include sound please give me an example of the function call becouse im not to familiar with sound still.

or whatever i need to put in my code

and if i need to download something where i can get it

thank you.
0
Comment
Question by:blacken
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 5

Accepted Solution

by:
g0rath earned 520 total points
ID: 9741839
You want Simple DirectMedia Layer

http://www.libsdl.org/index.php

This was used to port Civ3 to Linux...it is portable and will work under Windows and Linux
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question