s3n10r – [1] – External Plot Desing Sketch Ver. 1

I’m going to use JSON for external plot design. But for me or anyone who would like to design a plot, handwrite a JSON plot can be difficult. So maybe I have to make a plot designer.

The structure of the plot should be like this:

A Plot Example
 {
     "title":$STRING_TITLE;
     "author":$STRING_AUTHOR;
     "trigger":$ENUM_TRIGGERS;
     "texture":$STRING_PATH;
     "events":{
         "displayMessage":$STRING_MESSAGE;
         "modifyTile":[{$OBJECT_TILE},{...},...];
         "modifyPlayer":[{$OBJECT_EFFECT},{...},...];
         "modifyTask":[{$OBJECT_TASK},{...},...];
     }
 }
 

Events enumeration
EVENT_WINDOW_CREATED
EVENT_WINDOW_DESTROY
...I will finish it later



Triggers enumeration
TRIGGER_RANDOM
TRIGGER_$ENUM_EVENT
TRIGGER_EXPERT


I will add the structures for triggers and other objects later. They are JSON format, too.

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s