Jump to content
Posted 08 April 2001 - 06:09 PM
Posted 09 April 2001 - 04:14 AM
Posted 09 April 2001 - 06:30 AM
This is the first of a series of comments intended to "port" this tutorial to another platform: SDL on Linux, instead of DirectX on Windows. I'll try to mirror every information provided by Teej, topic by topic. This sure will be a challenge, as I'm just learning game programming, and I'll need lots of help. Please send me a message if you're willing to help.
This comment is intentionally written to look like the main article written by Teej, with the relevant portions changed to fit a new development platform. It's not like I'm in anyway affiliated with gamedev.net or have any leading role in writing this Interactive Tutorial. I just thought it would be fun write the comment this way.
Game Development Tools
If you want to write games, you’re going to need more than vi (vim is alright). In this article I quickly run through some of the tools you should have at your disposal, and mention some other considerations as well.
The Operating System
What is the target platform for our games? As GNU/Linux is gaining popularity by leaps and bounds of late, we'll be targeting it. Of course, GNU/Linux comes in many flavors, and people call these flavors distributions. I won't delve into this as this forum is about gaming and not Linux. I want just to let you know that all distributions are perfectly compatible if you do the right job.
GNU/Linux is a operational system full of choices, and we should make one right now: What library we'll use for gaming development? It should by a free library, as most people here are hobbists and don't have the money to buy expensive libraries. Source code should be provided, as it is a powerful way to learn programming. Also, it should target more than one platform. While we'll be developing on a GNU/Linux system, maybe later you'll want to port your games to other platforms, like Windows or MacOS. All these considerations led me to choose SDL (Simple DirectMedia Layer). Quoting from the SDL documentation:
Simple DirectMedia Layer is a cross-platform multimedia library designed to provide fast access to the graphics framebuffer and audio device. It is used by MPEG playback software, emulators, and many popular games, including the award winning Linux port of "Civilization: Call To Power." Simple DirectMedia Layer supports Linux, Win32, BeOS, MacOS, Solaris, IRIX, and FreeBSD.
Well, what about all the other libraries out there? You can use then if you wish. The API will sure be different, but the concepts should be the same. If you do, please contribute comments and examples here.
The C Compiler
It probaly won't come as a surprise to you that I use GNU C Compiler (gcc) for all my C/C++ programming -- it's easily the most popular compiler out there. It is also THE standard compiler on GNU systems, and the very foundation of it.
What about the others compilers out there? Any C compiler should be fine. We'll write portable code, and there is no compilation caveat to SDL or any other library that we'll be using. If you find any problems compiling the code presented here, post a comment describing your problems, so we can try to help and other people can avoid the problem.
You'll also need a good programmer text editor. What I call a "programmer text editor" is any text editing software with features suitable for editing source code, like syntax highliting, function name completion, tag jumping, bookmarks, etc. I use vim for all my source editing, but there are many others out there (FTE is one of the best). If you don't have a favorite editor already, experiment with some of them.
Since you're on GNU/Linux you should've heard about a great graphics-editing software: The Gimp. Quoting from the documentation:
The GIMP is the GNU Image Manipulation Program. It is a freely distributed piece of software suitable for such tasks as photo retouching, image composition and image authoring.
That said, go get it if you don't have it already. You'll never have need for anything else when it comes to bitmaps. Of course, if already have another software to deal with pixels, you can keep it.
Sound Editing Software
I'm still doing some research on sound editing software, so I'll skip this for now.
Feel free to reply to this topic with your questions, comments or suggestions.
Posted 09 April 2001 - 06:59 AM
Posted 09 April 2001 - 10:19 AM
Posted 10 April 2001 - 02:26 AM
Posted 10 April 2001 - 02:43 AM
Posted 10 April 2001 - 01:03 PM
Posted 12 April 2001 - 04:30 AM
Posted 12 April 2001 - 02:51 PM
Posted 12 April 2001 - 06:33 PM
Posted 13 April 2001 - 01:41 AM
Posted 13 April 2001 - 01:41 AM
Posted 16 April 2001 - 10:09 AM
Posted 16 April 2001 - 10:25 AM
Posted 16 April 2001 - 10:42 AM
Posted 16 April 2001 - 11:01 AM
The Free Borland C++ Builder Compiler
If you do not have much money to buy a compiler, or even if you do, I recommend you the free Borland C++ Builder compiler (nicknamed BCC), that you can download here:
It is by far one of the best compiler available as it knows (almost) all the ANSI C/C++ (MS Visual C++ don't).
When it comes to DirectX, BCC users will have to download specific Borland-compatible libraries at Fötsch's website:
Being just a compiler, BCC does not come with an IDE. So I suggest you to use UltraEdit to edit your code:
And for an easy to use interface between UltraEdit and BCC, you can use UEMake available by his programmer's site:
Posted 18 April 2001 - 10:29 AM