Flex games-game development overview

Source: Internet
Author: User

Overview
Game Development is a big topic. This series only describes how to use the FLEX technology platform to build a simple game framework, and how to design and optimize the CPU usage and memory of the game, finally, create a complete flex game (source code is provided ).

Game presentation
Method 1: Component Mode

This method is suitable for small games with a small number of game components. This is not suitable when the number of game components is large: The components will copy game graphics, audio and other resources, wasting a lot of memory; and the components will independently manage their own presentation, this overhead is very serious. The advantage of this method is that development is relatively simple, so it is also commonly used, and is the main development method of Flash games.

Method 2: bitmap

When the number of Game Genie is large, method 1 seems a little powerless, the picture is too slow, affecting the game embodiment. The rendering method can well solve the problem of image presentation. This method is characterized by the image cache of a game scenario. When the image needs to be displayed, first, draw the game image to the image cache based on the game data, and then draw the image cache to the game scenario for display. In this way, the rendering efficiency is high, in addition, resources such as game images do not need to be copied, saving memory. The disadvantage of this method is that development is complex and difficult. Traditional PC games are rendered in plotting mode.

Method 3: hybrid mode

Based on the above introduction and the features of the FLEX technology platform, two methods should be used comprehensively.

Rendering Method: make the presentation of the main game scenario.

Component Method: create a game outer frame, game menu, interactive form, game attribute form, and other parts.

Another celebrity, Silverlight
Silverlight, another star of RIA, is gaining popularity. For Silverlight, it is a pity that currently it only supports component-based rendering and does not support direct Image Rendering (maybe I have not found any relevant materials for my knowledge ), this greatly compromises the Game Performance of Silverlight. I did a simple test. I made a game genie (which has been played by animation) for walking characters. I put 1000 on the Silverlight scenario, and the screen was stuck. the movements of the characters were stiff. In the flex scenario, I used the plotting method to draw 10000 time cards, which is similar to that on Silverlight. Silverlight is still in development. It is said that Silverlight 4 has optimized image rendering to improve game performance. Look forward to it.

This article is from the csdn blog. For more information, see file: // C:/Documents documents % 20and % 20 settings/Administrator/My % 20 documents/flexgame Article --game development overview 20-20.20hunkcai's Article 20-20.20csdnblog .htm.

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.