What kind of technology is usually used in current web games? Could you explain it systematically?

Source: Internet
Author: User
I have seen that PHP is used on the Internet. What is the main function of PHP? Does it interact with the front-end flash? For example, how much blood does my skill beat? I use PHP to calculate and pass the value? I have seen that PHP is used on the Internet. What is the main function of PHP? Does it interact with the front-end flash? For example, how much blood does my skill beat? I use PHP to calculate and pass the value? Reply content: the majority of clients are flash, a small part of unity3d and self-developed browser plug-ins or html5.

The servers include C/C ++, Java, C #, PHP, erlang, and nodejs. As long as you want to get them, they are basically used.

The front and back ends of browser games generally use the TCP/IP protocol. SNS Games use many HTTP protocols. browser games and SNS games have different application scenarios, so the architecture will be different, as a result, many SNS Games use PHP, and many browser games are emerging. However, with the diversity of game types and increasing demand, PHP is no longer used.

The process of releasing skills you mentioned is as follows:
1. The client tells the server what skills to release
2. Whether the server verification technology can be released, for example, whether the player is equipped with this skill or not.
3. The server finds the hit objects (which may be group attacks) and performs operations such as blood deduction based on the skill configuration to update the enemy and player status.
4. the server sends a broadcast to the clients around it to tell them what happened.

You can read the Mozilla open-source Browser Quest project, an html5 + nodejs game, which fully demonstrates how the Client Server communicates, how the logic works, and how communication works. It is worth your reference.

Game demo: http://browserquest.mozilla.org
Code: https://github.com/mozilla/BrowserQuest Web games are basically divided into three aspects;
First, front-end performance. flash is widely used, and unity and silverlight are also used.
Second, backend processing. The company I work for has two types of backend: C ++ and erlang.
Third, data storage. Our backend uses the mysql + php method to connect to the backend data. It seems that other companies use the mango database.
Ps: if real-time interaction is not high, you can use as + php. However, if it is a large-scale browser game, you need to use the frontend + backend mentioned in the appeal statement :-)
Currently, most of the games on the market use the AS front end, and the C ++ or erlang back end has many
PHP is generally used as the background management system for games on web games.
For example, statistics on game data, account management, and monitoring of game running status do not involve game interaction. I have seen the activeX plug-in of IE even though I have used multiple points of flash in the previous section.
In the future, we will also use html5 + JS front-end, which generally uses a lot of AS, and some simple games use html and js, such AS the early rivers and lakes.

With the development of html5, the improvement of browser performance and cross-platform features of html5, it will be a very strong development direction.

As for what the server uses, c ++ delphi can communicate with the server using socket, and ajax can also communicate with php java.

Of course, a large amount of computing is stored on the server. In general, WebSocket and other protocols are used for interaction with front-end Flash. If the high concurrency performance requirements are met, PHP is not suitable for web-oriented languages, web game developers once talked about their technological changes in this area.

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.