**Author details**

296 Petri Nets – Manufacturing and Computer Science

**6. Conclusion and future work** 

**5. Experimental results and discussion** 

In the implementation of the Crazy ball 2 case study game, five game rules in terms of five modules are used namely: "Enemy Create", "Enemy Active", "Enemy Move", "Enemy effect", and "Enemy Attack". The "Enemy Create" module is basically used to create the desired enemy with some collection of predefined attributes and values. The "Enemy Move" module is used to move the enemy object based on its Move ID parameter. For instance, in the case of the "Bad Ball", enemy model, "Enemy Move" module will make it gain positive or negative speed based on the position of the player object. The "Enemy effect" module is used to make the object emit special effects or change colors based on its Effect ID parameter. The "Enemy Attack" module will make the enemy engages or do damage based on its Attack ID parameter. Finally, the "Enemy Active" module enables the enemy to receive collision and physics calculations. Figure 12 shows some screen shoots for

the crazy ball 2 game environment with some enemies challenging modules.

**Figure 12.** Screenshots for Crazy ball 2 game environment with some enemies challenging modules.

This chapter attempts to overcome some problems which are encountered in the interactive drama systems as well as storytelling applications. This is achieved by proposing an integrated framework for deeply combining interactivity and narrative in computer games workflow. The idea is derived from the study of interactive drama, Petri nets (PN), narrative structures in computer games and game workflow activity process. The main contribution of this paper is to show how workflow management concepts can be jointly utilized with Petri nets (PN) for modeling game systems and game workflow control. The main advantages of using PN are that it copes well with branching stories and can evolve in Hussein Karam Hussein Abd El-Sattar *Ain Shams University, Faculty of Science, Mathematics & Computer Science Dept., Abbassia, Cairo, Egypt Al-Yamamah University, CCIS, Riyadh, KSA* 
