Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Example Analysis of full-platform and full-stack Development of C++ and JavaScript

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article shows you the C++ and JavaScript full-platform full-stack game development example analysis, the content is concise and easy to understand, absolutely can make your eyes bright, through the detailed introduction of this article, I hope you can get something.

Opportunities for JavaScript

In recent years, JavaScript has become more and more popular in various fields. JS has gradually got rid of the limitation that it can only do web, and has sprung up everywhere in front-end, back-end, Native,Web, games, applications and other fields.

Cocos2d-x supports two scripting systems, Lua and JavaScript. Considering the future trend, I choose JavaScript. Because JavaScript and C++ can cover many mainstream application areas in the future:

Backend: C++ Node.js

Front-end Native:C++ JavaScript

Front-end Web:Html5

Tool: Qt C++ QML

Compared with the world, the choice of development technology in China has always lagged behind. When we use C++, foreign countries use Java, when we use Java, foreign countries already use RoR,Python,Node.js,Go and so on. Although there are many domestic colleagues have made a lot of intentional exploration, but this can not control most game companies in the technology selection is too conservative. This has something to do with the harsh living environment of domestic developers, everyone wants to accumulate technology for others to complete, and then poach people. But the most advanced technology must not be available. Most of the time, what you can buy is only a solution, and it is difficult to evolve. In the end, the maturity of technology still requires continuous communication and accumulation. Instead of spending money to get it done one step at a time.

There is also a saying in the industry that language is just a tool. The subtext is that you will learn it then. This is specially designed for exploiting farmers. According to this statement, a language is a tool, and so is a programmer. To be proficient in any language, it is impossible to do so without continuous accumulation. It is impossible for any library or code to be rewritten without considerable time and effort. What to do if you can't do it, then do something elementary, write some functions, do UI, see if there is anything new in two years, and learn again. Over and over again

II. Advantages and disadvantages

Advantages:

1. Recruitment. According to a very old data, web development programs account for 65% of all programmers. According to the situation in recent years, this proportion will only be more, not less.

two。 Community. Cocos2d-x, Cocos2d-html5 and Node.js all have very strong community support, and Qt is also adopted by many companies in the field of software development and game tool development. Technical documentation and support are readily available.

3. Now there is a popular technical term called full-stack development. In full-stack development, the front and back end must consider the same language and the same technical interface. Full-stack development approach, a programmer is responsible for a module, while dealing with the front and back end, reducing a lot of communication costs and coordination costs.

4. Platform-wide coverage, a large number of code exchange, greatly reducing the workload and error rate.

Disadvantages:

1.Qt is too slow on the smart mobile end.

two。 The implementation of JS virtual machine is different in different environments. Qt was written by himself. Node.js is V8. Cocos2d-x is SpiderMonkey. Html5 should be targeted at different browsers. Different implementations, different binding mechanisms, of course, there are different bug.

3. In some areas, JS debugging technology is not yet mature.

The above is the example analysis of full-platform and full-stack game development of C++ and JavaScript. Have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report