Skip to content

Commit

Permalink
改善预加载在http下的错误
Browse files Browse the repository at this point in the history
  • Loading branch information
MakinoharaShoko committed Oct 26, 2021
1 parent 595b292 commit 41ebce2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions public/game/scene/start.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
changeBG_next:testBG03.png;
changeP_left_next:testFigure03.png;
miniAvatar:minipic_test.png;
varSet:a:1,b:2,c:3;
varUp:a:1,b:1;
varDrop:c:1,b:1;
jump_varReach:a:2,label5;
jump_varBelow:c:3,label6;
雪之下雪乃:vocal-V1.ogg,你到得真早;
vocal-V2.ogg,对不起,等很久了吗?;
intro:独角戏之所以空虚,,并非因为只有一个演员,,而是观众的目光,,刺的好痛。;
Expand All @@ -20,8 +15,17 @@ miniAvatar:none;
不调试overflow,整个界面就会发生异常
比如一下子把页面拉伸得很长之类的事情
但是想要调节好,还是一件很难的事情,我们都不清楚应该把高度定为多少。
要不要测试变量?
choose_label:{测试:label1,不了:label2};
label:label2;
接下来来测试一下带分支的情况怎么样
choose:{测试jump:C1.txt,测试 choose jump:C2.txt};
label:label1;
varSet:a:1,b:2,c:3;
varUp:a:1,b:1;
varDrop:c:1,b:1;
jump_varReach:a:2,label5;
jump_varBelow:c:3,label6;
label:label5;
现在a是大于等于2的;
jump_label:end;
Expand Down
2 changes: 1 addition & 1 deletion public/webgal-sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ self.addEventListener('fetch', (ev) => {
if (cacheResponse)
return cacheResponse;
const netResponse = await fetch(ev.request.clone());
if (netResponse.ok)
if (netResponse.status ===200)
await cache.put(ev.request, netResponse.clone());
return netResponse;
})());
Expand Down

0 comments on commit 41ebce2

Please sign in to comment.