Now the page tour, generally use what kind of technology, please system explanation?

Source: Internet
Author: User
Keywords Php flash
In particular, I see the online use of PHP, what is the main use of PHP to do? Is it interactive with the foreground flash? For example, I have a skill to blame how much blood, is to use PHP to calculate and then pass the value?

Reply content:

Most of the clients are flash, a small number of unity3d and themselves develop browser plugins or HTML5.

The service side has C + +, Java, C #, PHP, Erlang, Nodejs and so on, as long as you want to get basically people in use.

Page tour before and after the general use of TCP/IP protocol, SNS game with HTTP protocol, page tour and SNS game in the application scenario is different, so the architecture will be different, so the SNS game with PHP, page tour is also a lot of PHP, but with the game type diversification, the need to improve, Should have been gradually no one to use PHP anymore.

You said the release skills of such a process:
1. The client tells the server what skills to release
2. Whether the service-side verification technology can be released, such as whether the player has assembled this skill, blue enough, etc.
3. The server will find the nearby hit objects (possibly the group attack) by the skill configuration, carry on the operation such as the Blood button, update the enemy and the player's state
4. The server sends broadcasts to the surrounding clients, telling them what's going on

Can read Mozilla open source Browser Quest This project, a HTML5 + Nodejs game, a complete demonstration of the client server how to communicate, how to do the logic, communication how to do, it is worth reference.

Game Demo: / http browserquest.mozilla.org
Project Code: https:// Github.com/mozilla/brow serquest The page tour basically divides into three aspects;
One is the front-end performance, the mainstream is the use of flash, there are some using unity, and Silverlight.
The second is back-end processing, where I work in a company that has two backend, C + + and Erlang.
Third is the data preservation, our backstage use is the mysql+php way and the backend carries on the data docking, as if also has the other company to use the Mango database.
PS: If the real-time interaction is not high, you can consider using as+php, but if it is the kind of large page tour, it is necessary to use the front end of the complaining + backend + backstage:-)
At present, most of the games on the market use as, the back end uses C + + or Erlang more
PHP is generally used on the page to play the back-end management system
For example, statistics on some game data, account management and so on, as well as monitoring the running state of the game, and does not involve the game interaction. The previous paragraph generally uses the Flash the multipoint also has seen with the IE's ActiveX plugin
It's going to be useful for html5+js. The front end is generally used as the more, there are some simple games with HTML and JS such as the early lakes and rivers.

With the development of HTML5, the improvement of browser performance and the feature of cross-platform HTML5 will be a very strong development direction.

As for the service end with what all have, C + + Delphi Development Service end with socket communication, with Ajax and PHP Java communication also have.

Of course, a lot of computation is placed on the server side. and front-end flash interaction generally with websocket, such as the Protocol, if the high concurrency performance requirements, PHP this web-oriented language is not appropriate, there have been a page tour developers talked about their own technical changes in this aspect of the development process.
  • 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.