Silverlight Web Game Design idea (Webgame essence): (i) dynamic resources

Source: Internet
Author: User
Tags resource silverlight

That is, playing is the biggest advantage of web games compared to traditional client-side games. If the client installed on each computer g is a waste of resources and time pollution; then Silverlight, as the new darling of Ria, has the superior performance and the more graceful dynamic performance under the precondition of inheriting the superior ancestry of the ancestors, and will lead the network future world into the fascinating Low-carbon space.

I learned more than 1 years of Silverlight development, in writing the first Silverlight game series tutorials in order to achieve goals as soon as possible to package all the material resources into the XAP. As with other Silverlight beginners, this may be a process we have to go through. When the Qxgameengine was finally finished, it had reached 18M, and the functional requirements met expectations, but it was confusing to a large number of friends who had not yet met Silverlight: is Silverlight just a game client embedded in a Web page?

Qxgameengine as a tutorial example is more appropriate, but if you want to commercialize it, first of all violates the original intention of Ria: open and use. Long wait is the relentless killing of the user experience, not only at any time may cause the loss of users, it is not polite to call it a failure of the product is not too.

For Silverlight resource allocation problem, many foreign friends first think and use the most is independent storage (Isolated Storage). Dark Ieign, for example, recently saw the SILVERLIGHT2D instant strategy on the website. Although it waits for the resource to download the process we can pass the time by appreciating the game propaganda animation short film, but the essence is same with the qxgameengine, will all resources must the one-time downloading, regardless will use, this form still very bad. Yes, Silverlight has just started, after all dark ieign let us see is a masterpiece style. The origins of new things in history are bound to undergo a period of adaptation, and in the near future, once the perfect dynamic technology of Silverlight is popularized, a masterpiece like StarCraft 2 will one day appear on the Silverlight platform and wait and see!

8 months past, the first game of the tutorial is complete. Then Qxsceneeditor in the author's thinking how to realize the rapid development of Silverlight game at the same time bred and born. It is built in a combination of static resources and dynamic resources of the game framework, XAP Packet storage is no longer all resources, but only some commonly used small pictures, icons and scenes, elves and other configuration files; relative to the previous one, The dynamic parameters of the scene editor and the flexible structure of dynamic configuration can easily expand any type of game, not only the RPG.

Another 3 months, the second tutorial is accompanied by the completion of the 3 new demo of the curtain. Revisit Qxsceneeditor again at this time, carefully pondering once again feel its structure is still imperfect: first load all the scenes and all the wizard's XML configuration information, imagine if there are 100 scenes, and the player may be from the register to lose interest in the game can not go to 10 scenes, the remaining The 90-scene configuration file capacity is not a white download? Lin Lin all kinds of ..... So, in the middle reaches of the online "Wowo World" of the feeling of touch makes me decide to explore the silverlight-webgame to the framework, ideally it should run through the "All dynamic", "on-demand loading" of the building concept, uphold the "experience first", "excellent performance" of the overall characteristics, so The birth of a new idea to start over.

This is a real from the beginning of zero, technology innovation let me determined from the beginning of the game to the end of the game, do not care whether the outcome is happy or sad, I will be in this third work to pour more on their own understanding of the Silverlight-web game design ideas. As always, if your friends feel there is something wrong, please correct me. The birth and development of these three series is not only my own efforts, without everyone's support, advice and criticism, will not stick to today.

Above lyrical.

Next you will enter the main contents of this section: Dynamic resource configuration in Silverlight webgame.

From the JavaScript of the Var to F # lambda,c# in the extract, go to its dross while let oneself develop more perfect, the trend is filled with "dynamic" to our programming to bring infinite fragrance. "Dynamic", no matter in any situation is a good performance, and "Dynamic" Echoes is "adaptive", from the layout of the "adaptive wide" to game resources "adaptive on-Demand download", these can be from the current many excellent software architecture to be fully reflected.

At the beginning of Silverlight learning, we have realized the importance of dynamic downloading, from the initial discussion of DLL dynamic download, XAML dynamic loading, XAP dynamic acquisition to data transmission serialization and deserialization, and resource compression and decompression. Until today, the author at the end of repeated attempts to complete the personal feeling of the current effect is still better resource structure layout mode: Independent of the object configuration layout system.

What is an object-independent configuration layout system? Let's look at a picture first:

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.