Skip to content

Commit ebefdff

Browse files
authored
Preparations
1. Add _headers file. 2. Supports using Flash to play sounds.
1 parent f8a30f9 commit ebefdff

File tree

8 files changed

+10
-6
lines changed

8 files changed

+10
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ _🦌 网页小游戏 🥛_
1414

1515
小游戏:吃掉蔡徐坤
1616

17-
最新版本号:[0.2.0](https://github.com/OneSitos/EatKun/tree/0.2.0)
17+
最新版本号:[0.2.1](https://github.com/OneSitos/EatKun/tree/0.2.1)
1818

1919
[English](README_EN.md)
2020
|

README_EN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ _🦌 Web Game 🥛_
1414

1515
A web game: EatKun
1616

17-
Latest version: [0.2.0](https://github.com/OneSitos/EatKun/tree/0.2.0)
17+
Latest version: [0.2.1](https://github.com/OneSitos/EatKun/tree/0.2.1)
1818

1919
[简体中文](README.md)
2020
|

README_HANT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ _🦌 網頁小遊戲 🥛_
1414

1515
小遊戲:吃掉蔡徐坤
1616

17-
最新版本號:[0.2.0](https://github.com/OneSitos/EatKun/tree/0.2.0)
17+
最新版本號:[0.2.1](https://github.com/OneSitos/EatKun/tree/0.2.1)
1818

1919
[English](README_EN.md)
2020
|

_headers

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,7 @@
3232
Content-Type: image/png
3333

3434
/*.mp3
35-
Content-Type: audio/mpeg
35+
Content-Type: audio/mpeg
36+
37+
/*.swf
38+
Content-Type: application/x-shockwave-flash

files/swf/FlashAudioPlugin.swf

4.44 KB
Binary file not shown.

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
<span data-i18n="game-intro4">GAME-INTRO4-I18N</span><br />
5858
</div>
5959
<div id="version" style="display: none;font-size:2.2em; color:#fff; line-height:1.5em;">
60-
<span data-i18n="version">VERSION-I18N</span><a href="javascript: void(0);" onclick="openWebpage('https://github.com/OneSitos/EatKun/tree/0.2.0')">0.2.0</a><br />
60+
<span data-i18n="version">VERSION-I18N</span><a href="javascript: void(0);" onclick="openWebpage('https://github.com/OneSitos/EatKun/tree/0.2.1')">0.2.1</a><br />
6161
</div>
6262
</div>
6363
<div id="btn_group" class="container text-nowrap">

index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
<span data-i18n="game-intro4">GAME-INTRO4-I18N</span><br />
6464
</div>
6565
<div id="version" style="display: none;font-size:2.2em; color:#fff; line-height:1.5em;">
66-
<span data-i18n="version">VERSION-I18N</span><a href="javascript: void(0);" onclick="openWebpage('https://github.com/OneSitos/EatKun/tree/0.2.0')">0.2.0</a><br />
66+
<span data-i18n="version">VERSION-I18N</span><a href="javascript: void(0);" onclick="openWebpage('https://github.com/OneSitos/EatKun/tree/0.2.1')">0.2.1</a><br />
6767
</div>
6868
</div>
6969
<div id="btn_group" class="container text-nowrap">

static/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ const MODE_NORMAL = 1, MODE_ENDLESS = 2, MODE_PRACTICE = 3;
227227

228228
function gameInit() {
229229
createjs.Sound.registerPlugins([createjs.WebAudioPlugin, createjs.HTMLAudioPlugin, createjs.FlashPlugin]);
230+
createjs.FlashAudioPlugin.swfPath = "./files/swf/FlashAudioPlugin.swf";
230231
createjs.Sound.registerSound({
231232
src: "./static/music/err.mp3",
232233
id: "err"

0 commit comments

Comments
 (0)