A New Beginning

posted in Journal of Zao
Published March 10, 2006
Advertisement
For the last couple of years, most of the things I've been programming has been school assignments, tools for myself and some attempts at signal processing. Now, I've decided to cut back on that and try my hand at game programming once again as a relaxing diversion.

Since almost all I've coded recently has been quite small in scope and generally unfinished, I'm a bit uncertain on my ability to actually finish a project. Thus, I've decided to begin near the bottom of the holy game development ladder with Pong.

I set up a Subversion repository yesterday and started writing reusable libraries for threading, sound and video. So far the threads are good enough to use, the sound is still pending some design and the video lib is still empty.

All my development so far on this has been in FreeBSD, so learning how to write portable code is one of the goals I've set up for my self. In the end, I plan on having all my code compile transparently on at least GCC in Linux and FreeBSD and on Visual Studio 2005 in Windows.

I've recently started reading Code Complete and the quality of my code has gone up in my opinion. I tend to write the comments before I code, I check return codes and handle errors where they should be handled. This is a great improvement to my earlier coding style where comments were something you added while documenting after the project was finished, and errors were something that happened to other people.

Right now the big design decisions are what libraries I should pick for video and audio. At first, I was thinking of using the raw /dev/dsp device under UNIX and using the waveOut family of routines in Windows. After reflecting a bit over this, I believe that I should probably give SDL a fair chance. My past experiences with the audio part of SDL aren't that good, but it might work out better this time. As for graphics, the API obviously has to be OpenGL due to portability concerns.

It's probably time to code again now instead of babbling incoherently on the journal.
0 likes 7 comments

Comments

Sir Sapo
First Comment!! rate++!!!!!!

Welcome to Journal Land!
March 10, 2006 08:38 AM
jollyjeffers
Quote:I've decided to begin near the bottom of the holy game development ladder with Pong.
So you're a beginner at games and you aren't starting off with a "simple MMORPG" or Doom-3 clone? I'm impressed [grin]

Quote:I've recently started reading Code Complete
I should get around to finishing that. Started reading it a while back and was really enjoying it, but then I go busy doing other stuff [headshake]

Anyway, good luck with the project and keep us all updated!

Cheers,
Jack
March 10, 2006 08:52 AM
Nit
Welcome!
March 10, 2006 09:07 AM
Rob Loach
Keep the journal alive!!!! Yay Zao! ++
March 10, 2006 11:52 AM
evelyn
Welcome to Journal land! here be some + to put into your trove of treasure :)
March 10, 2006 04:47 PM
Will F
Welcome to journal land!
March 10, 2006 05:05 PM
Trapper Zoid
Hi and welcome to the journals!

I've been pondering what to use for audio as well. Given the requirement of cross-platform use, I'm presently weighing up the pros and cons of FMOD and SDL_Mixer. At the moment I've only been playing around with FMOD, but SDL_Mixer also seems to do what I want to do, plus it's free and LGPLed if I need to play around with the source.
March 10, 2006 08:04 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement

Latest Entries

Advertisement