Font Size: a A A

Basketball Game Of Ajax-based Design

Posted on:2008-07-11Degree:MasterType:Thesis
Country:ChinaCandidate:W QiFull Text:PDF
GTID:2208360215975155Subject:Software engineering
Abstract/Summary:PDF Full Text Request
Game software as an important research direction has attracted people's attentionincreasingly. The intelligentized game which tries to simulate our real world, inparticular, requires the game to improve itself as it develops. As a result, thecharacters in the game can become more close to the reality and game players will geta better user experience. Usually, the programming for a web game adopts atraditional coding model used in coding a web application. But in this article, weintroduce the development technique of AJAX(Asynchronous JavaScript and XML)to design a on-line basketball game. There are two creative features in this gamesystem:1. A intermediate layer has been placed between the server and users, so the servercan response to users' operations asynchronously. This means that some workwhich requires the sever to finish previously can be done by users' computers. Inthis way, more bandwidth in the server will be saved, and with the reduction ofworkloads on the web-server and absence of client applications, users are able tolog on the game in a more rapid speed. Meanwhile, the design philosophy of noclient application provides a more secured environment for the data on the serverand puts an end to the use of external software to cheat in the game.2. In the past, games allowing multiplayers to take part in at one time can only beseen in single-computer editions. But this web-based basketball match-engineoffers a perfect platform on which many players can play the game at same time.The realization of match-engine which consists of multifold data-structuresdepends on object-oriented programming language. Those data-structures in theengine are used to establish mathematical models to simulate actions probablytaken by basketball players in the real world, and match models to simulate allsituations that may happen on a real court. All these make the game better thanreal.As the experiment shows, the new match-engine mentioned in this article notonly enhances users' feelings of being involved greatly, but also increases remarkably the numbers of users on-line at the same time. Match records as well as playerstatistics created by the engine is very close to that of a real match, too. What's more,the optimized engine has the ability to simulate thousands of matches in one second,which is an impossible mission for the same kind of games based on single-computereditions.All in all, the whole system has a much better performance in providing gooduser experience, increasing numbers of users on-line at one time, achieving theauthenticity of simulated battlefield reports as well as the carrying capacity of theserver.
Keywords/Search Tags:Ajax, Web Game, Web Service, User experience, Match Engine
PDF Full Text Request
Related items