Why not use C ++ to write games?

Source: Internet
Author: User

Most games in today's world are written in C ++. Why not?

What should I do? Write games.

What do you need to consider first when writing a game? What kind of game, how to implement graphics, sound effects, and game logic.

What should I consider before using C ++? Define cross-platform Data Type abstraction, implement common collection classes, design macro-implemented rtti, write a string class that supports Unicode and can be converted to other string types, custom memory distributor, write a shared_ptr file, organize the pre-compiled header file, and design and implement the object base class to handle problems such as cross-dll Memory Management ......

So what does this have to do with games? If you don't do this well, it's hard to start writing games.

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

That's why it takes a lot of time to focus on solving the language's own shortcomings, rather than the game itself. In particular, people tend to be perfectionist. Each of these basic problems can discover deeper problems and further optimize them, which further consumes valuable time. This can also explain why there are so many engines and engine foundations, because time is spent on the underlying layer.

The emergence of new technologies is fast, and the game architecture is also fast. Patch stack patching is a common problem in the gaming industry. If it cannot be completed, it will have to be replaced by a new one, whether you use the holy C ++ or not. Game developers are consumable, so they want to develop a little bit, so they have a short life and are happy in time. There is a saying "Good managers don't torture their programmers with bad Tools". Similarly, smart programmers don't need c ++ to torture themselves. If necessary, try to find a ready-made class library, unless it is dedicated to the underlying technology.

Related Article

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.