Font Size: a A A

Research And Application On Scripting Code Generation Tool

Posted on:2009-12-05Degree:MasterType:Thesis
Country:ChinaCandidate:H B BinFull Text:PDF
GTID:2178360242992791Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
The traditional approach to implementing the interactions between a player character and an object in computer game is to write scripts in a procedural scripting language. The game story is often complex and profound. The scripts are usually so complex that they must be written by the professional programmer rather than by the author of the game stories. It introduces a disconnection between the author's inten-tion and the interactions implemented from the programmer's written scripts. Design pattern is an effective solution to solve the common problem in software development. It is used to improve the software reusability, reliability and maintainability. Now, the researches of design pattern are almost concentrated on common design pattern, but design pattern in game domain is lack. Trying to combine design pattern with game domain knowledge, designing a pattern language and developing a tool which con-verts pattern language to game scripting language are present in the paper. Main work is done as following from three aspects:1. Concept of design pattern is applied for high-level abstract descript of a gen-eral game story. Based on analysis the problem of writing scripts, we use the idea of design pattern to define a new game pattern. The pattern describes a common scenario in game stories and gives a definition of game pattern.2. Design a pattern language, named GSG. The language is used to describe the structure of game pattern, the relation of components in the pattern and the relation between components and scripts. The grammar and semantic of the language is also designed with the GSG language. This language definition is simple and easy to un-derstand.3. Develop the tool which can convert the GSG language to the game scripts. With the tool, the user does not need to understand the GSG language, may use the visible method to construct the pattern which the game story needs, then create auto-matically the script code with an instantial pattern.
Keywords/Search Tags:Design Pattern, Computer game, Script language, Game Scripting
PDF Full Text Request
Related items