Getting started with Game Development

Started by
3 comments, last by renners 12 years, 10 months ago
[font=verdana, arial, helvetica, sans-serif]About four years ago when I first got into computers, right away I wanted to get into Game Programming. About a year later I started to self teach myself C++ because I was told it was the most common programming language. I thought I was learning at a pretty good rate but then I realized that if commands, classes and such aren't even half of it and there is a lot more confusing thing that comes along with learning C++. My question is, what do I need to know in C++ to be able to start programming in SDL in making games?[/font]
Advertisement
First, I have to ask: when you first got into computers, do you mean you started programming some basic applications?
Second, although C++ is ONE of the most common programming languages, it is hard to master, or even get started with (from experience). So you could start by trying to make a simple text-based tic-tac-toe game in a different language like VB or C#. I will tell you, when I started programming (in general) also about 4 years ago (and now I am progressing with C++ and SFML), I made my first incomplete (it really doesn't have to be perfect, only playable) tic tac toe game in VB. Of course before that I studied VB well enough, with just a little OOP knowledge (I still don't grasp it fully). Then I moved to C# which resembles C++ in its basic syntax. I mastered that as well, and ported my VB apps into C#. And then, I came to study C++ (self-teaching). Trust me, to get along with C++ you should read one of the starter books. Those REALLY help. You should understand pointers and references pretty well. You need to know arrays and all conditional statements and loops there are from bottom to top. Other than that, get started with a tic-tac-toe game in C++ and SFML (I reccomend it more than SDL as it's C++ based, with C++ source for easy debugging) in a functional way first. Than learn stuff along the way, and convert it to OOP concepts (add classes, different scopes, and so forth...)

Best Regards,
David D.

[size="1"]PS. Consider rating this post thumbs up (bottom-right hand corner). Thanks!
yip, C++ has a steeeeeeeeeeeep learning curve.
but once you got over / near the top of the curve it is a lot easier.

Never say Never, Because Never comes too soon. - ryan20fun

Disclaimer: Each post of mine is intended as an attempt of helping and/or bringing some meaningfull insight to the topic at hand. Due to my nature, my good intentions will not always be plainly visible. I apologise in advance and assure you I mean no harm and do not intend to insult anyone.


[font="verdana, arial, helvetica, sans-serif"]My question is, what do I need to know in C++ to be able to start programming in SDL in making games?[/font]


Go to Lazy Foo's site at http://lazyfoo.net/S...rials/index.php If you can understand all his tutorials and C++ code and it all makes sense, then you know enough C++ to start making SDL games.
Good judgment comes from experience; experience comes from bad judgment.
My advice to you and the many others who seem to be in similar situation is to do what I did and dive in and start a small game project. I've read countless books and online tutorials on C++ but most of the info doesn't stick in my brain.

So I'm currently learning by making a breakout/Arkanoid style game. When I started I thought I'd make the wall of bricks from a 2-dimensional array. However I quickly found that arrays in C++ are pretty limited, so i went searching for something better. I now know about vectors and am using them in my game.

Similarly, I had no idea how to do file input/output in C++. But I decided to put my level data in an external file and went googling for file input tutorials! It's working well, I can now simply add an extra level to my game by putting some lines of numbers in a text file. I dont even have to alter any program code to incorporate the new level, the program works it out from how many lines it reads :D

So basically.... learn by doing and researching solutions when you hit obstacles!

Cheers, Renners

This topic is closed to new replies.

Advertisement