Font Size: a A A

A Design Of Game Dialog State Machine Based On J2ME

Posted on:2007-01-27Degree:MasterType:Thesis
Country:ChinaCandidate:H L ZhaoFull Text:PDF
GTID:2178360212480100Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
A mobile game dialog state machine system which based on j2me platform is designed in this paper, the dialog resource is processed in the sever side, transmited over the network, displayed and handled in the mobile platform within the system. The system adopt a architecture of multi-layer, a state machine language which describe the graphics uer interface(GUI) as well as the game logic work on the top layer, a state machine engine which interpret the state machine language work on under-layer, in the base layer the j2me platform paint the dialog to mobile set canvas.Before, the dialog of a RPG (Role Play Game) is directly processed in the code, which mixes the code and resource, and the logic of dialog conversion is hard-coded which also lead to problem of hard maintenance and hard change of dialog resource.In the state machine system, a state machine language base on XML (eXtended Marked Language) is designed for GUI description and logic process. For that based on XML, the state machine language contains features that easy to process, fine readability. A keyword set is defined based on tag and attribute of XML which can be interpreted in the state machine engine.The state machine language which based on XML then serialize to object, the tree data structure of XML is compressed into plain structure, in which the value can be indexed by id, the object is transmited to mobile platform in the wirless network with serialization. The serialized object is the agent both between server side and mobile side, state language and state machine engine.In the end, the architect, function and interpretation of state mechine engine is introduced.The state mechine system is an innovational, multi-layer, flexible auto-dialog system, which can be widely applied in wireless game, mobile education.
Keywords/Search Tags:state machine language, state machine engine, XML serialization, J2ME platform, game dialog state machine
PDF Full Text Request
Related items