Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiSong-UK committed Feb 24, 2024
0 parents commit 622e682
Show file tree
Hide file tree
Showing 71 changed files with 24,330 additions and 0 deletions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 RA2WEB

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# 网页红井测试版一键部署

网页红井(网页版“红警”/Chronodivide)预览版测试站点,帮助各类爱好者一键搭建自己的网页版“红警”站点,助力营销和知识分享

## 一键部署

### Github托管页面

fork该项目,命名为 你的名字.github.io,例如 ra2web.github.io

正如你所见,这个项目的名字就符合这个域名规则。那么,此时的你可以访问 https://ra2web.github.io 来游玩网页红井拉

### Vercel

[![一键部署到Vercel](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/ra2web/ra2web.github.io)

### 腾讯云

[![一键部署至腾讯云](https://cloudbase.net/deploy.svg)](https://console.cloud.tencent.com/webify/new?tpl=https://github.com/ra2web/ra2web.github.io)


3 changes: 3 additions & 0 deletions breaking-news.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<p style="color: yellow;font-weight: bold;">本站点为测试版,只能体验测试版人机单机游玩,无联机权限</p>
<p>完全体版本请<strong>微信关注公众号</strong> 思牛逼 获取游玩地址!</p>
<p>如果您没有微信可以用亲戚朋友的微信关注公众号后获取地址游玩!</p>
22 changes: 22 additions & 0 deletions config.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[General]
discordUrl=https://discord.gg/yxkVn4wBad

# Where game resources are located
gameresBaseUrl=//res.wangyehongjing.com/v2/
mapsBaseUrl=//res.wangyehongjing.com/v2/map/
modsBaseUrl=//res.wangyehongjing.com/mod/
gameResArchiveUrl=https://xwis.net/dl/Red-Alert-2-Multiplayer.exe
patchNotesUrl=//chronodivide.com/patch-notes.html
ladderRulesUrl=//chronodivide.com/ladder-rules.html
modSdkUrl=https://github.com/ra2web/mod-sdk
donateUrl="//chronodivide.com/#donate"
breakingNewsUrl=/breaking-news.html
oldClientsBaseUrl=/old/
quickMatchEnabled=yes
# Chronodivde 人机开关
botsEnabled=yes
# Chronodivide 中国大区专供
defaultLanguage=zh-CN

viewport.width=1024
viewport.height=768
6,290 changes: 6,290 additions & 0 deletions dist/7zz.js

Large diffs are not rendered by default.

Binary file added dist/7zz.wasm
Binary file not shown.
2 changes: 2 additions & 0 deletions dist/ffmpeg.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/fsalib.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/ra2web.min.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/spbots.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/vendor.bundle.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/web-audio-polyfill.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/worker.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/workerHost.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/workerVxl.js

Large diffs are not rendered by default.

Binary file added favicon.ico
Binary file not shown.
135 changes: 135 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=0.4">
<meta name="description" content="An unofficial remake of the classic &quot;Command &amp; Conquer: Red Alert 2&quot; RTS game, playable online in the web browser." />
<title>网页红井-单机测试版</title>
<meta name="description" content="在网页上就能玩经典的红色井界游戏,无需下载安装,随时随地在手机、电脑、平板甚至手表上畅玩。提供多种游戏模式和地图,与全球玩家实时对战。">
<meta name="keywords"
content="红色警戒下载, 如何玩红警, webra2, 苹果如何玩红警, 平板上如何玩红警, 手机上如何玩红警, win7如何玩红警, win10如何玩红警, win11如何玩红警, 红警, 红警2, 红色警戒2, 网页红警, 云红警, 在线游戏, 游戏平台,对战平台,战网, 红色警戒3, 红警3, RA2, RA2WEB">
<script type="text/javascript" src="lib/local-trans.js"></script>
<script type="text/javascript" src="lib/nipplejs.js"></script>
<script type="text/javascript">
var browserSupported = true;
try {
eval("'use strict'; class C { async test(...args) { let spread = {...({a: 2})} }}");
var canvas = document.createElement('canvas');
browserSupported = !!(
window.WebGLRenderingContext && (canvas.getContext('webgl') || canvas.getContext('experimental-webgl')) &&
new Blob(["test"], { type: "text/plain" }).arrayBuffer
);
} catch (e) {
browserSupported = false;
}
if (!browserSupported) {
alert("浏览器WebGL异常,请关注微信公众号 思牛逼 获取解决方案");
}
</script>

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-NT498QGSGZ"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-NT498QGSGZ');
</script>

<link href="res/fonts/fonts.css" rel="stylesheet"></link>
<link rel="stylesheet" href="style.css?v=0.57.2" type="text/css"></link>
<style type="text/css">
#ra2web-root {
position: relative;
}
</style>
</head>
<body class="no-js">
<div id="loader-wrapper" style="display: none;">
<div id="loader"></div>
<div id="loader-logo"></div>
</div>

<div id="ra2web-root"></div>
<div id="joystick-message" class="joystick-message">摇杆操作中,禁止其他操作</div>
<div id="joystick-container" style="width: 20px;height: 30px;">

<script type="text/javascript">
if (browserSupported) {
document.body.classList.remove("no-js");
setTimeout(() => {
let loader = document.getElementById("loader-wrapper");
if (loader) {
loader.style.display = "";
}
}, 2000);
}
</script>
<script type="text/javascript" src="lib/system.js"></script>
<script type="text/javascript" src="lib/three.min.js?v0.94"></script>
<script type="text/javascript" src="lib/three/three.shader-patch.js?v=2"></script>
<script type="text/javascript" src="lib/three/three.octree.js?v=2"></script>
<script type="text/javascript" src="lib/three/SimplexNoise.js"></script>
<script type="text/javascript" src="lib/three/LightningStrike.js"></script>
<script type="text/javascript" src="lib/three/TrailRenderer.js"></script>
<script type="text/javascript" src="lib/three/SPE.min.js"></script>
<script type="text/javascript" src="lib/three/SPE.patch.js"></script>
<script type="text/javascript" src="lib/growingpacker.js"></script>
<script type="text/javascript" src="lib/lzo1x.js"></script>
<script type="text/javascript" src="lib/fullscreen-api-polyfill.min.js"></script>
<script type="text/javascript" src="dist/ra2web.min.js?v=0.57.2"></script>
<script type="text/javascript" src="dist/vendor.bundle.min.js?v=0.57.2"></script>
<script type="text/javascript" src="dist/workerHost.min.js?v=0.57.2"></script>
<script type="text/javascript">
SystemJS.config({
packages: {
"@puzzl": {
defaultExtension: "js"
},
"@puzzl/core/lib/async/cancellation": {
main: "index.js"
},
"@babel/runtime": {
defaultExtension: "js"
},
"@babel/runtime/regenerator": {
main: "index.js"
},
"regenerator-runtime": {
main: "runtime.js"
}
},
meta: {
"web-audio-polyfill.js": {
scriptLoad: true
},
"dist/7zz.js": {
scriptLoad: true
},
"dist/fsalib.min.js": {
scriptLoad: true
},
"dist/spbots.min.js": {
scriptLoad: true
}
},
paths: {
"web-audio-polyfill.js": "dist/web-audio-polyfill.min.js",
"7z-wasm": "dist/7zz.js",
"@ffmpeg/ffmpeg": "dist/ffmpeg.min.js",
"file-system-access": "dist/fsalib.min.js?v=1.0.4",
"@chronodivide/sp-bots": "dist/spbots.min.js?v=1.0.0",
"@chronodivide/game-api": "game/api/index",
}
})
System.registerDynamic('three', [], false, function(require, exports, module) {
module.exports = window.THREE;
});
if (browserSupported) {
SystemJS.import("main");
document.body.removeChild(document.getElementById("loader-wrapper"));
}
</script>
</body>
</html>
Loading

0 comments on commit 622e682

Please sign in to comment.