Now i am writing a Tiles and scene based game.And in different scene, the condition whether game achieve over is different.So i found it difficult to abstract a method isGameOver(), and now i put this method in the script written by beanshell, a script language can be easily embedded into java.Therefore every scene's script must contain the concrete implemention of isGameOver() and i think it a bad and dirty way....
Anybody has a better idea??I am a newbie game developer so i dont know the common solution.
Thanks very much!



