forked from doublespeakgames/adarkroom
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ce136b1
commit bbeb8a1
Showing
10 changed files
with
98 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import express from 'express'; | ||
const express = require('express'); | ||
|
||
const app = express(); | ||
const PORT = 8080; | ||
|
||
const app = express(); | ||
app.use(express.static('.')); | ||
|
||
app.listen(PORT, () => console.log(`Listening on port ${PORT}`)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>寂静屋</title> | ||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/normalize.css@8.0.1/normalize.min.css"> | ||
</head> | ||
<body> | ||
Hello World | ||
|
||
|
||
<script src="//cdn.jsdelivr.net/npm/jquery@1.11.0/dist/jquery.min.js"></script> | ||
|
||
<script src="lib/jquery.color-2.1.2.min.js"></script> | ||
<script src="lib/jquery.event.move.js"></script> | ||
<script src="lib/jquery.event.swipe.js"></script> | ||
<script src="lib/base64.js"></script> | ||
<script src="lib/translate.js"></script> | ||
<script src="lib/inject.js"></script> | ||
|
||
<script src="lang/langs.js"></script> | ||
<script src="lang/zh_cn/strings.js"></script> | ||
|
||
<script> | ||
var lang = "zh_cn" | ||
</script> | ||
|
||
<script src="script/Button.js"></script> | ||
<script src="script/audioLibrary.js"></script> | ||
<script src="script/audio.js"></script> | ||
<script src="script/engine.js"></script> | ||
<script src="script/state_manager.js"></script> | ||
<script src="script/header.js"></script> | ||
<script src="script/notifications.js"></script> | ||
<script src="script/events.js"></script> | ||
<script src="script/room.js"></script> | ||
<script src="script/outside.js"></script> | ||
<script src="script/world.js"></script> | ||
<script src="script/path.js"></script> | ||
<script src="script/ship.js"></script> | ||
<script src="script/space.js"></script> | ||
<script src="script/prestige.js"></script> | ||
<script src="script/scoring.js"></script> | ||
|
||
<script src="script/events/global.js"></script> | ||
<script src="script/events/room.js"></script> | ||
<script src="script/events/outside.js"></script> | ||
<script src="script/events/encounters.js"></script> | ||
<script src="script/events/setpieces.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,4 @@ | ||
var langs = { | ||
'de':'deutsch', | ||
'el':'ελληνικά', | ||
'en':'english', | ||
'eo':'esperanto', | ||
'es':'español', | ||
'fr':'français', | ||
'gl':'galego', | ||
'id':'bahasa indonesia', | ||
'it':'italiano', | ||
'lv':'latviešu valoda', | ||
'ja':'日本語', | ||
'ko':'한국어', | ||
'nb':'norsk', | ||
'pl':'polski', | ||
'lt_LT':'lietuvių', | ||
'pt':'português', | ||
'pt_br':'português (brasil)', | ||
'ru':'русский', | ||
'sv':'svenska', | ||
'th':'ไทย', | ||
'tr':'türkçe', | ||
'uk':'українська', | ||
'vi':'tiếng việt', | ||
'zh_cn':'简体中文', | ||
'zh_tw':'繁體中文' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* 移动端版本事件注入 | ||
*/ | ||
|
||
var makeFunc = function (cb) { | ||
return function () { | ||
if (location.href.includes('index2.html') === false) return | ||
return cb(...arguments) | ||
} | ||
} | ||
|
||
var M = { | ||
notifications: { | ||
init: makeFunc(function(options) { | ||
console.log('notifications init', options) | ||
}), | ||
notify: makeFunc(function (module, text, noQueue) { | ||
console.log(module, text, noQueue) | ||
}), | ||
printMessage: makeFunc(function(t) { | ||
console.log(t) | ||
}) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters