I am building a simple strategy game, the goal of the game to teach programming basics to kids.
The concept of the game is simple, there will be a set of colony individuals - different type (resource gathering, fight, defend, scout ..etc).
I want to build a Campaign mode for this game, simple set of scenarios and missions as beta version.
As I said, the purpose is to teach programming basics, so player need to code there strategy to play the game, means that each colony individual's behavior will be programmed separately.
I am thinking of creating a basic syntax for code conditions, commands and actions (custom language), player will simply code individual's behavior by simply grouping these conditions, commands and actions in logical order. An example:
if FindEnemy
if stamina > 0.6
dobattle;
else
returnToNest;
endif;
endif;
My question is that I am building the game using HTML5/CSS3/JS, and wondering I can implement it a client-side library to parse custom language and convert it to animation? or whether there is already built JS library or engine that can do similar requirement?