diff --git a/.gitignore b/.gitignore index 64b1799..996ab52 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -EasyAvgFrameWork.zip \ No newline at end of file +EasyAvgFrameWork.zip +/bin +/tempz diff --git a/EasyAvgFrameWork_0.2.3.zip b/EasyAvgFrameWork_0.2.3.zip deleted file mode 100644 index c5c58de..0000000 Binary files a/EasyAvgFrameWork_0.2.3.zip and /dev/null differ diff --git a/es6/a b/es6/a deleted file mode 100644 index 7b2a0b9..0000000 --- a/es6/a +++ /dev/null @@ -1 +0,0 @@ -使用ES6语法编写 diff --git a/es6/tip.js b/es6/tip.js new file mode 100644 index 0000000..b34853c --- /dev/null +++ b/es6/tip.js @@ -0,0 +1 @@ +// TODO:使用ES6语法编写 diff --git a/fullExample/Load.html b/fullExample/Load.html deleted file mode 100644 index 3943b9d..0000000 --- a/fullExample/Load.html +++ /dev/null @@ -1,32 +0,0 @@ - - - - - 读档 - - - - - - - - - - -
    -
  1. 存档一
  2. -
  3. 存档二
  4. -
  5. 存档三
  6. - -
- - - diff --git a/fullExample/save.html b/fullExample/Load_and_Save.html similarity index 85% rename from fullExample/save.html rename to fullExample/Load_and_Save.html index 833c064..2c336a6 100644 --- a/fullExample/save.html +++ b/fullExample/Load_and_Save.html @@ -6,21 +6,20 @@ - - - + - - + + +

存档与读档,请点击下面的列表存档,输入数值读档

- + 一个存档和读档UI图片
  1. No Data
  2. @@ -42,6 +41,5 @@

    注意,第十个存档槽存在bug,请不要在这里 - diff --git a/fullExample/SaveLogic.js b/fullExample/Load_and_Save.js similarity index 100% rename from fullExample/SaveLogic.js rename to fullExample/Load_and_Save.js diff --git a/fullExample/MainMenu.html b/fullExample/MainMenu.html new file mode 100644 index 0000000..7871b41 --- /dev/null +++ b/fullExample/MainMenu.html @@ -0,0 +1,33 @@ + + + + + 完整项目展示 + + + + + + + + + + + + + + + +

    请点击图片来播放游戏背景音乐

    +

    建议把浏览器自动播放音乐权限打开,以更好的体验此Demo

    + no1 + + + + + + + + + + diff --git a/fullExample/Logic.js b/fullExample/MainMenu.js similarity index 95% rename from fullExample/Logic.js rename to fullExample/MainMenu.js index e140863..2915577 100644 --- a/fullExample/Logic.js +++ b/fullExample/MainMenu.js @@ -28,7 +28,7 @@ $(function() $("#loadGame").click(function() { alert("加载游戏") - changeScene("save.html") + changeScene("Load_and_Save.html") }) $("#dev").click(function() { @@ -55,7 +55,7 @@ $(function() alert("感谢游玩此游戏!") $("#bgm")[0].pause() $("#bgm")[0].load() - changeScene("splash.html") + changeScene("index.html") }) $("#ModuleTest").click(function() { diff --git a/fullExample/Scene/Game.html b/fullExample/Scene/Game.html index 96c4567..3c21929 100644 --- a/fullExample/Scene/Game.html +++ b/fullExample/Scene/Game.html @@ -12,7 +12,7 @@ - + @@ -25,15 +25,13 @@

    EasyAvgFramework

    - - - + + 开发游戏时,请删除这个防止玩家乱点 +
    Copyright © 2020 小沙盒工作室&128hh.
    diff --git a/fullExample/Scene/Logic.js b/fullExample/Scene/InitGame.js similarity index 91% rename from fullExample/Scene/Logic.js rename to fullExample/Scene/InitGame.js index 224cc63..442c806 100644 --- a/fullExample/Scene/Logic.js +++ b/fullExample/Scene/InitGame.js @@ -21,7 +21,7 @@ $(function() }) $("#loadGame").click(function() { - changeScene("../save.html") + changeScene("../Load_and_Save.html") }) $("#clearCookie").click(function() { @@ -62,7 +62,7 @@ $(function() var dialog=Engine.create_Dialog() //全局人物对象 可以自由更改参数和变量名 window.koyomi=Engine.create_img("../img/char.png","小夜美") - //设置人物位置 + //设置人物位置 参数可更改 koyomi.css("margin-left","500px") koyomi.css("margin-top","20px") koyomi.css("position","relative") @@ -71,15 +71,16 @@ $(function() alert("点我干涉么,溜了..") koyomi.animate({right:'250px',opacity:'0.5'}) }) -//初始化剧情 //开启调试信息 dialog.setDebugLog(true) +dialog.useDefaultStyle(true) //是否使用默认样式 //创建背景图片 Engine.create_BackroundImg(bg) //添加ui $("body").append(bg) $("body").append(koyomi) $("body").append(dialog) +//初始化剧情 // NOTE: 从文本文件读取剧情 此步骤由剧情加载器完成,不应该人为干涉 /*如果存在存档优先加载*/ function initPlot() @@ -94,7 +95,7 @@ if(t_data) { //信息分离 //章节 和句子进度 var chapterIndex=t_data.split("_")[0] var lineIndex=t_data.split("_")[1] - alert("存在进度,自动恢复") + console.warn("存在进度,自动恢复") console.log("#游戏进度_>_"+t_data) // NOTE: 从指定的位置加载剧情 var dataObj=PlotLoader.load_from(chapterIndex,lineIndex) @@ -104,7 +105,8 @@ if(t_data) } else { - alert("#不存在进度,从头开始读文件") + console.clear() + console.log("#不存在进度,从头开始读文件") initPlot() } // 存档按钮 @@ -112,19 +114,14 @@ $("#saveGame").click(function() { console.warn("##存档!"); //在跳转存档页面之前,先暂存游戏运行状态执行到哪一个句子的index - // var clicks=dialog.getClicks() var RunTimeIndex=dialog.getRuntimeIndex() console.warn("#运行到哪个章节哪句话"); console.log(RunTimeIndex); file.save("RunTimeIndex",RunTimeIndex) - // console.warn("#存档数据"); //当缓存完成之后跳转 if(file.load("RunTimeIndex")!=null) { - changeScene("../save.html") + changeScene("../Load_and_Save.html") } - // console.log(); }) - - // bindingButtonAction(dialog) }) diff --git a/fullExample/Splash.html b/fullExample/Splash.html deleted file mode 100644 index 1fe2808..0000000 --- a/fullExample/Splash.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - 默认启动页面 - - - - - - -

    EasyAvgFrameWork

    - - - diff --git a/fullExample/chapterTest/test.js b/fullExample/chapterTest/test.js index fb3b58c..e466967 100644 --- a/fullExample/chapterTest/test.js +++ b/fullExample/chapterTest/test.js @@ -14,8 +14,4 @@ var end=function() alert("代码运行到了结尾") } dialog.setFinishAction(end) - //console.warn("#获得object的所有属性"); - -// console.log(typeof(chapter1)); -// print_obj_things(chapter1) }) diff --git a/fullExample/css/auto_wait.css b/fullExample/css/auto_wait.css new file mode 100644 index 0000000..967bd57 --- /dev/null +++ b/fullExample/css/auto_wait.css @@ -0,0 +1,5 @@ +/* 等待玩家点击时的css */ +p{ + @keyframe + +} diff --git a/fullExample/css/button.css b/fullExample/css/button.css index 5d018ac..3fa8f63 100644 --- a/fullExample/css/button.css +++ b/fullExample/css/button.css @@ -1,3 +1,4 @@ +/*默认按钮样式*/ button { background: orange; diff --git a/fullExample/css/cover.css b/fullExample/css/cover.css index f810749..f6d9a15 100644 --- a/fullExample/css/cover.css +++ b/fullExample/css/cover.css @@ -3,6 +3,4 @@ #bg { /* -webkit-mask: */ - - } diff --git a/fullExample/css/transition.css b/fullExample/css/transition.css deleted file mode 100644 index 6351540..0000000 --- a/fullExample/css/transition.css +++ /dev/null @@ -1,23 +0,0 @@ -/*过渡效果*/ -/*缩放效果*/ -/*缩放效果用于模拟摄像机聚焦方法图片一部分的效果*/ -/* #bg -{ - width:800px; - transition:width 2s; -} -#bg:hover -{ - width:90%; -} */ -/*3d变换*/ -#bg -{ - /* transition:transform 2.5s; */ -} -#bg:hover -{ - /* transform: rotateY(360deg); */ - /* transform: rotateX(180deg); - transform: rotateZ(180deg); */ -} diff --git a/fullExample/favicon.ico.txt b/fullExample/favicon.ico.txt new file mode 100644 index 0000000..1c13643 --- /dev/null +++ b/fullExample/favicon.ico.txt @@ -0,0 +1 @@ +网站图片便签页缩略图 diff --git a/fullExample/img/EasyAvg.png b/fullExample/img/EasyAvg.png new file mode 100644 index 0000000..3a1cc61 Binary files /dev/null and b/fullExample/img/EasyAvg.png differ diff --git a/fullExample/index.html b/fullExample/index.html index 97b866c..32be070 100644 --- a/fullExample/index.html +++ b/fullExample/index.html @@ -2,33 +2,29 @@ - 完整项目展示 - - + 默认启动页面 - - - - - - - - - - + -

    请点击图片来播放游戏背景音乐

    -

    建议把浏览器自动播放音乐权限打开,以更好的体验此Demo

    - no1 - - - - - - - - + +

    EasyAvgFrameWork

    + + + + diff --git a/fullExample/tip.txt b/fullExample/tip.txt new file mode 100644 index 0000000..3c0eb37 --- /dev/null +++ b/fullExample/tip.txt @@ -0,0 +1,2 @@ +此Demo一般用于开发测试和展示,所以和module文件夹是分开的。 +如要进行游戏开发,请下载游戏模板,把路径整合完毕了 diff --git a/module/Animate.js b/module/Animate.js index 7a63560..76e657d 100644 --- a/module/Animate.js +++ b/module/Animate.js @@ -9,6 +9,7 @@ function AnimateEffect() this.shake="shake" this.move_to_left="move_to_left" this.move_to_right="move_to_right" + //以下代码仅在initGame.js中测试成功 在chapterScript还没测试过 this.setAnimate=function(obj,effect) { if(effect=="move_to_left") diff --git a/module/BugsCode.js b/module/BugsCode.js deleted file mode 100644 index f0a1e37..0000000 --- a/module/BugsCode.js +++ /dev/null @@ -1,28 +0,0 @@ -// NOTE: bug代码 不要动 -// BUG: 有问题的代码 -/*this.create_btn=function (text,id) - { - var btn=$("