Skip to main content
GameDev.net gamedev.net

PRO Tired of ads? Read GameDev.net ad-free and help keep the community independent with GameDev Pro — $3/month.

Learn to use additional APIs/libraries!

Learn to use additional APIs/libraries!

2,644 2
I'm coding my game in C++. I chose to go this route because I have learned some over the years and C++ is mostly what I've learned with. I've done previous small projects with it as well.

Once upon a time, as a newbie, I was incredibly insistent on learning how to do everything myself. It didn't matter to me that I was constantly reinventing the wheel, as they say, as I just told myself I was learning. Why should I use std::list when I can make my own linked list class? Sure mine is error prone, horribly inefficient, and has half the functionality of std::list... but its mine! I must've created several different "button" classes as well. I told myself each time that it was better than the last one and therefore worth it... but I would wager that none could hold a candle to what was freely available to use both at the time and now.

Now, I'm a stubborn person, I freely admit that. I'm the kind of person that does things the hard way purely to spite those who tell me not to. That said, I also like to think I learn from my mistakes.

In my current project, I'm using C++. I'm using SFML 2. I'm also using SFGUI for my menu system, and while it isn't implemented in my game yet, I intend to also use the Thor library for further graphical effects on top of SFML. I've implemented Boost and make liberal use of all that the standard library has to give me. I will also not hesitate to bring in additional resources as I go.

When you start to incorporate additional resources, you will have linker errors, nothing will compile, the new resources won't make sense to you, you'll have to learn a whole new way of thinking about certain things that may or may not be the way you prefer to think about it. Before to long you'll have to learn how to compile a library on your own. But, I'm here right now to say to you It is absolutely, positively, no question about it, worth every second of your time.

If your goal is to create a finished game, this is the way to go!

A few disclaimers:

No, I'm not trying to say that learning how things work isn't valuable, I'm talking from the perspective of someone whose goal is more towards creating a finished product.

Also, whenever using some 3rd part library, make SURE you are familiar with the licensing terms and understand what is expected of you should you ever have a finished product you wish to release commercially.

Discussion

Loading comments...