Jump to content
  • Advertisement
  • entries
  • comments
  • views

A New Beginning

Sign in to follow this  


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.
Sign in to follow this  


Recommended Comments

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]

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!


Share this comment

Link to comment
Welcome to Journal land! here be some + to put into your trove of treasure :)

Share this comment

Link to comment
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.

Share this comment

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!