• Advertisement

Archived

This topic is now archived and is closed to further replies.

How program a cargame?

This topic is 5852 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Well, this is most definitely the beginner forum. Its cool to see ambition out there!

Ok, mr datatubbe, i''m going to let you in on a few things you need to get familiar with if you intend to make any sort of game at all:

1]C++, while not the only language out there, its widely supported, so learn it. Dont just learn how to get things to compile using some stupid book, but learn how to put the language to use for yourself. Understand what all those little symbols and keywords mean like #define, typedef, unsigned, switch, #endif, class, etc etc etc...and how they work and when to use them. Then learn basic programming constructs such as while loops, if statements, things like that.

2]Learn how to use C++ to create standard data structures and implement fundemental programming ideas. For instance, do you know what a pointer is, what about a Tree, linked list, a graph, a Binary tree, a hash table etc, what object oriented programming is, how to use templates, and much much much more. You''ll need to know these things they are very very important. Why? Here''s why. How do you suppose you are going to store your graphics, your racing maps, your car models, the textures, music, fonts, text, animation, and all the rest? How do you propose to handle those resources without bringing your computer to its knees when you combine the above with the AI, physics calculations, and rendering of the engine? If you can manage your data and data structures with efficiency, you have won half the battle. As I always say, when programming games, MIND YOUR DATA.

3]Get familiar with an API. Unless of course you plan on creating your own. In which case you''ll need to know a lot more than i''m going to talk about here. Otherwise, DirectX or Opengl are the current API''s of choice. Figure out how to use the API and the data structures you learned above to load and display graphics, move them around on the screen for instance. Learn how to use keyboard input, make game loops, and play sounds and movies.

4]Get familiar with a Math book that will help you understand vectors, their functionality mathmatically and thier application to 3 dimensional space. You''ll need this information to begin to understand how to make a 3d engine as you want to do. Similarly, get really cozy with your Calculus, because the level of physics you''ll need to model to make your racing game realistic is going to be hefty. Moving a car around on the screen is much more than just pressing the up arrow and changing the position on the screen. If you want to make it realistic you need to make it accelerate at a proper rate, you need to shift, and brake, and turn while accelerating. What if you turn to sharp and roll over? This type of thing is answered through physics.

6]Pick up a few books on artificial intelligence, or possibly some tutorials. Figure out how to make your AI cars race down the track, and think and drive for themselves. This has been done with bezier curves for instance. There are many ways to implement an AI system, these topics can take years to master.

7]By the way, all of the above only scratches the surface of what you want to do.

My proposal to you and your college grad in C/C++ and the rest is to start with something small and easy in 2 dimensions. Then make something bigger in 2d, with effects,animations, pathfinding, AI, music the works. Then, begin learning about how to implement 3d graphics, without then with an API.

Finally after about 4 to 5 years of learning and practicing the above, you may *almost* be ready to begin understanding what it is you need to LEARN to make a game like Need For Speed.

Ok, i hope this helps you out, because you have a lot of learning to do :-)

Later!

Share this post


Link to post
Share on other sites
Advertisement
Tnx so much for all replies, and yes i know it''s a hell to learn c++, but i have started. And its going well. Offcourse i don''t belive it''s possible to create a game like NFS 5 just in one year, but if i have a goal, i belive it''s easier and more fun learn C++, and ya know what ya want to work on.

I don''t think i have thought much about the physics, but hey, see what i learned now just by askin'' in this forum

It''s great help im getting tnx ya all!

-----------------------------
- Datatubbe
They didn''t accept me in the Tubby World!

Share this post


Link to post
Share on other sites

  • Advertisement