HumanBreak/script/template/main.js

41 lines
1.4 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

function main() {
//------------------------ 用户修改内容 ------------------------//
this.version = 'v0.1'; // 游戏版本号如果更改了游戏内容建议修改此version以免造成缓存问题。
this.useCompress = false; // 是否使用压缩文件
// 当你即将发布你的塔时请使用“JS代码压缩工具”将所有js代码进行压缩然后将这里的useCompress改为true。
// 请注意只有useCompress是false时才会读取floors目录下的文件为true时会直接读取libs目录下的floors.min.js文件。
// 如果要进行剧本的修改请务必将其改成false
this.bgmRemote = false; // 是否采用远程BGM
this.bgmRemoteRoot = 'https://h5mota.com/music/'; // 远程BGM的根目录
this.isCompetition = false; // 是否是比赛模式
this.savePages = 1000; // 存档页数每页可存5个默认为1000页5000个存档
this.criticalUseLoop = 1; // 循环临界的分界
//------------------------ 用户修改内容 END ------------------------//
this.dom = {};
this.mode = 'play';
this.loadList = ['none'];
this.pureData = ['data'];
this.materials = [];
this.statusBar = {
image: {},
icons: {}
};
this.floors = {};
this.canvas = {};
this.__VERSION__ = 'v0.1';
this.__VERSION_CODE__ = 1000;
}
main.prototype.loadMod = function () {};
main.prototype.init = function () {};