| With the development of online games,online game platforms gradually popularize.More and more players use the platform to play games,with which the start,update and promotion of games become more convenient,so it plays more important role for players in return.Under the Windows operating system,there are many ways to develop and realize the client: some of which are based on the Microsoft MFC;some are upon the third-party open source library;some are achieved by API through encapsulating the Windows operating system.However,many game platform clients are developed without proper tools,which leads to higher workload,lower project development efficiency,poorer system stability,and consequently more difficult function expansion.Therefore,it ' s significant to screen out an excellent technology at the beginning of developing an platform client.Qt is a cross-platform application program and development framework with graphical user interface.Here,a game platform client,running under Windows operating system was developed based on Qt.And the usage of Qt graphical interface editor(Qt designer),Qt signal slot mechanism and Qt interface realization technology were described specifically.When comparing the Qt with MFC,it turned out that Qt was more stable,flexible,efficient and highly expandable,which met with the functional requirements of online game client platform development.The thesis analyzed the case of game platform client system at full length,and the following aspects of which were well designed and implemented based on Qt:download;start-up;login and logout;update mechanism;set-up and entrance of game hall and game room;and game match on the platform.Base on the above,the corresponding functions and modules were further detailed and realized.What's more,data structure of each module was defined by important agreement and delivered out based on the design of Qt graphics editor.In the meanwhile,game platform development related technologies on Qt,like the sequence of frame animation,audio file playback and Flash player,were also explored.The detailed realization method also highlighted innovation.Firstly,it's the first time to combine Qt with design and development of online game platform client,which accounted for the good system stability,excellent expansibility,developing convenience and high efficiency.Secondly,for the framework of the client,compared with the traditional development on Qt Creater directly,our system translated Qt source into dynamic link library(DLL)under VS2010 to conduct the development.Thirdly,innovation was also reflected when implementing the installation and update by utilizing both mandatory update and differentiated update.There were also innovations merged into performance optimization.During the process of system implementation,excessive chat emoticons led to slow running of platform client.In the context,several innovative steps were listed here for solution.First of all,a regular clean-up of game data strategy was made to reply on the occupied platform memory and CPU by emoticons.Secondly,the number of chat emoticons during given period was bonded with an upper limit,for example,5,to prevent too much emoticons from players slowing down the platform performance.Then,exceeding number of emoticons sent during the given period wouldn ' t be accepted again.Finally,add the received chat message into the buffer queue to prevent writing too much information simultaneously from slow speed of game platform running.Consequently,slow running of platform on chat issue was successfully enhanced by the above efforts.After all the development process,the system was tested within Windows 7 and XP operating system respectively.Both the operation and performance of our client were tested,and the performance result of which was compared with other similarproducts.It turned out that the test results were in line with our anticipation with significant winning out.However,the CPU and memory occupation needed to be further optimized. |