Why not use C + + to write games (these jobs, QT is solved for developers, C + + No root class causes too many problems, there is no string class)

Source: Internet
Author: User

Most games in the world today are written in C + +, why should you say no?

What do you want to do? Write a game.


What is the first thing to consider when writing a game? How to do the game, graphics, sound, game logic how to achieve.


What to think about in C + + first? Define cross-platform data type abstraction, implement common collection classes, design macro implementations Rtti, write a string class that supports Unicode and can be converted to and from many other string types, customize the memory allocator, write a shared_ptr, organize precompiled header files, Designed to implement the object base class to handle issues such as cross-DLL memory management ...


So what does this have to do with playing games? It's hard to start writing games without doing this.


How long does it take to do these things? A lot of time.

That's why it takes a lot of time to focus on solving the shortcomings of the language itself, not the game itself. In particular, there are many perfectionism tendencies, each of which can uncover deeper problems, further optimize, and consume valuable time. This can also explain why there are so many engines and engine bases, because time is spent on the ground.

New technologies appear fast, the game architecture update is also fast, patch stack patches are the common game industry, can not be replaced by new, which tube you are not written in the sacred C + +. Game developers are expendable, so want to open a little, life is short, instant gratification. There is a phrase called "good managers don ' t torture their programmers with bad tools", so smart programmers don't have to torture themselves with C + +. If you have to use it, try to find a ready-made library, unless you are studying the underlying technology.

http://blog.csdn.net/nightmare/article/details/5478423

Why not use C + + to write games (these jobs, QT is solved for developers, C + + No root class causes too many problems, there is no string class)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.