【文件属性】:
文件名称:gamescript:基于事件的游戏引擎
文件大小:7KB
文件格式:ZIP
更新时间:2021-07-02 07:15:18
JavaScript
游戏脚本
基于事件的游戏引擎
用法
var gamescript = require ( 'gamescript' )
gamescript ( {
id : 'test' ,
timeline : [
{ from : '@me' ,
text : '@botcanyou attack @you test' ,
created : Date . now ( ) , } ,
{ from : '@you' ,
text : '@botcanyou attack @me test' ,
created : Date . now ( ) , } ,
] ,
script : [
"game.join(function(player) {" ,
" player.set({" ,
"
【文件预览】:
gamescript-master
----lib()
--------player.js(626B)
--------nlp.js(634B)
--------events.js(666B)
--------player-array.js(687B)
--------util.js(1KB)
--------game.js(4KB)
----test()
--------test.js(3KB)
----README.md(1KB)
----.gitignore(13B)
----index.js(328B)
----package.json(589B)