Skip to content
This repository was archived by the owner on Nov 22, 2021. It is now read-only.

Commit ea66f6c

Browse files
committed
Add e-game api
1 parent 0478c07 commit ea66f6c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

js/stageCheck.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,15 @@
3636
}
3737

3838
function showResult(isPassed, stageInt) {
39+
var stage = window.stage;
40+
3941
// 若已經停止執行,就不做事了。
4042
if (!Code.running) return;
4143

42-
// if (ReturnGameRecord) {
43-
44-
// }
44+
if (window.ReturnGameRecord) {
45+
window.ReturnGameRecord('utf8', stageInt, stage.getGameTime(), stage.getSectionValues(), JSON.stringify(stage.getCode()));
46+
return;
47+
}
4548

4649
if (isPassed) {
4750
alert("第" + stageInt + "關 過關!");

0 commit comments

Comments
 (0)