JS 简易贪吃蛇:snake
                 jopen
                 10年前
            
                    snake
简易贪吃蛇
主要是示例 jdists + jfogs + uglify 用法
/*<jdists encoding="jfogs,uglify" type="reverse">*/  function Snake(options) {      var self = this;      options = options || {};      this.colCount = options.colCount || 20;      this.rowCount = options.rowCount || 20;      this.parent = options.parent || document.body; // 容器      // ...  }  // ...  /*</jdists>*/- 先对代码做一次 jfogs 混淆
 - 然后再做一次 uglify 压缩
 
使用
安装依赖
$ npm install
编译
$ npm run dist