Also, can I take .bmp files and .gif files and program them into a game or should I be looking for a program that will do that for me.
Also, can I take .bmp files and .gif files and program them into a game or should I be looking for a program that will do that for me.
DJGPP-Complier
Windows 98-(Shouldn't need to explain)
I like plants.
>>Can I program a game in 2-D?
I don't know if you, specifically, can, but it's most definitely possible.
>>Also, can I take .bmp files and .gif files and program them into a game
You can display any type of graphics file that you see displayed in another program in another program. It's a fairly complicated manner though - you have to get the file format and read everything into the correct structures and then display it with an API.
>>or should I be looking for a program that will do that for me.
You can get code that will read common file types into data structures for you. Search around. You'll have to learn an API like SDL, Allegro, OpenGL, DirectX, or WinAPI though. Search the boards for them for more info - it comes up a lot.
Away.
Try using something like Allegro .
It's easy to use, and you can make some nice 2D games with it
Yeah, Allegro kicks butt.Originally posted by Bieh
Try using something like Allegro .
It's easy to use, and you can make some nice 2D games with it
Well, there are a few things wrong with your code:
1) It does not work.
2) It does not work.
3) It does not work.
Hope this helps.
I started with Allegro. I loved it. Then I eventually started to hate it because of its simplicity. Then I started learning DX and fell back in love with Allegro -- because of its simplicity!
After you download Allegro, you should be able to make your first program with it in less than an hour. This includes compiling and reading the manual and compiling your own program.
I found SDL also to be much easier than Direct X, after all it is a wrapper around OpenGL making coding games much easier. You should goto www.libsdl.org for more details.
Last edited by Eric08; 07-21-2003 at 02:11 AM.
It's not a wrapper around DirectX. It's around OpenGL
From the link you gave
Simple DirectMedia Layer is a cross-platform multimedia library designed to provide level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer.
Away.