Join Token-Based Event Handling: A Comprehensive Framework for Game Programming
- Cite this paper as:
- Nishimori T., Kuno Y. (2012) Join Token-Based Event Handling: A Comprehensive Framework for Game Programming. In: Sloane A., Aßmann U. (eds) Software Language Engineering. SLE 2011. Lecture Notes in Computer Science, vol 6940. Springer, Berlin, Heidelberg
In action game programming, programmers have to control multiple concurrent activities on the screen corresponding to multiple game characters. To address this difficulty, many game-oriented scripting languages have been proposed so far. However, current scripting languages seem to lack support for interactions among multiple concurrent activities in a state-dependent manner. To overcome this problem, we propose an event handling framework called “join token” in which the states of game characters can be expressed as tokens and interactions can be described as handlers specifying multiple tokens. For the purpose of evaluation, we have developed a game scripting language called “Mogemoge,” and wrote several sample games in this language. In this paper, we describe experiences of using join token framework for sample games and compare the code written in Mogemoge against a code written in an existing scripting language.
Keywordsvideo game programming language event handling framework scripting language
Unable to display preview. Download preview PDF.