Skip to content

Commit 385b452

Browse files
committed
first commit
0 parents  commit 385b452

File tree

153 files changed

+3949
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

153 files changed

+3949
-0
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true

.eslintrc.cjs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
env: { browser: true, es2020: true },
3+
extends: [
4+
"eslint:recommended",
5+
"plugin:@typescript-eslint/recommended",
6+
"plugin:react-hooks/recommended",
7+
],
8+
parser: "@typescript-eslint/parser",
9+
parserOptions: { ecmaVersion: "latest", sourceType: "module" },
10+
plugins: ["react-refresh"],
11+
rules: {
12+
"react-refresh/only-export-components": "warn",
13+
},
14+
exclude: ["node_modules", "build", "dist", "public"],
15+
};

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
!.vscode/settings.json
19+
.idea
20+
.DS_Store
21+
*.suo
22+
*.ntvs*
23+
*.njsproj
24+
*.sln

.vscode/extensions.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"recommendations": [
3+
"dbaeumer.vscode-eslint",
4+
"ZixuanChen.vitest-explorer"
5+
]
6+
}

.vscode/settings.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"[typescript]": {
3+
"editor.defaultFormatter": "esbenp.prettier-vscode"
4+
},
5+
"[javascript]": {
6+
"editor.defaultFormatter": "esbenp.prettier-vscode"
7+
},
8+
"[json]": {
9+
"editor.defaultFormatter": "esbenp.prettier-vscode"
10+
},
11+
"explorer.fileNesting.enabled": true,
12+
"explorer.fileNesting.expand": false,
13+
"explorer.fileNesting.patterns": {
14+
"package.json": "tsconfig.json, *.config.js, *.config.ts, .stackblitzrc, pnpm*, .npm*",
15+
"README.md": ".git*, .eslint*, .prettier*, .stylelint*, commitlint*, .editorconfig, .lintstagedrc, .commit*"
16+
},
17+
"editor.formatOnSave": true,
18+
}

README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<div align="center">
2+
<h1 align="center">
3+
<img src="https://raw.githubusercontent.com/PKief/vscode-material-icon-theme/ec559a9f6bfd399b82bb44393651661b08aaf7ba/icons/folder-markdown-open.svg" width="100" />
4+
<br>Flash-Game-X</h1>
5+
6+
<h3 align="center">🚀 无需FlashPlayer,随时随地打开浏览器即可畅玩的Flash游戏 </h3>
7+
<h3 align="center">🔮 一起上传游戏补充这份游戏集合</h3>
8+
<h3 align="center">⚙️ Powered by Ruffle.rs</h3>
9+
<p align="center">
10+
<img src="https://img.shields.io/badge/Game%20&%20Watch-000000.svg?style=for-the-badge&logo=gameandwatch&logoColor=white" alt="Game"/>
11+
<img src="https://img.shields.io/badge/TypeScript-3178C6.svg?style=for-the-badge&logo=TypeScript&logoColor=white" alt="TypeScript" />
12+
<img src="https://img.shields.io/badge/React-61DAFB.svg?style=for-the-badge&logo=React&logoColor=black" alt="React"/>
13+
<img src="https://img.shields.io/badge/Wasmer-4946DD.svg?style=for-the-badge&logo=Wasmer&logoColor=white" alt="Wasm"/>
14+
</p>
15+
16+
</div>
17+
18+
---
19+
20+
## 📖 介绍
21+
22+
这是一个无需 FlashPlayer 可以随时随地打开浏览器即可畅玩的 Flash 游戏集合,你可以在这里找到你喜欢的游戏,也可以上传你喜欢的游戏供大家一起玩耍。
23+
24+
This is a collection of Flash games that can be played anytime and anywhere without the need for Flash Player. You can find your favorite games here or upload them for everyone to play together.
25+
26+
## 🎮 游戏列表
27+
28+
| 游戏名称 | 游戏类型 | 游戏简介 | 游戏地址 |
29+
| :---------------: | :------: | :-----------------: | :-----------------------------------------------------: |
30+
| 死神 vs 火影 v1.7 | 格斗 | 2008 MVP Flash Game | [死神 vs 火影 v1.7](http://localhost:5173/#/game/bvn17) |
31+
| 死神 vs 火影 v2.4 | 格斗 | 新增:嗜血剑心 | [死神 vs 火影 v2.4](http://localhost:5173/#/game/bvn24) |
32+
| | | | |
33+
34+
## 📦 提交游戏
35+
36+
我们约定,一个游戏,应该包含这些东西:
37+
38+
- 游戏名称。暂时中英混合吧
39+
- 游戏的唯一 key。该属性对应`public`目录下的文件夹名称
40+
- 游戏的资源文件。参考`public`目录下的文件夹结构
41+
- 游戏的封面图片。建议 w:h=1:1.1,即高度为宽度的 1.1 倍

index.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/png" href="/logo.png" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>GameX</title>
8+
<script src="/ruffle/ruffle.js"></script>
9+
</head>
10+
<body>
11+
<div id="root"></div>
12+
<script type="module" src="/src/main.tsx"></script>
13+
</body>
14+
</html>

package.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"name": "flash-game-x",
3+
"private": true,
4+
"version": "0.0.0",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "tsc && vite build",
9+
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
10+
"preview": "vite preview"
11+
},
12+
"dependencies": {
13+
"@ant-design/icons": "^5.0.1",
14+
"ahooks": "^3.7.6",
15+
"antd": "^5.4.5",
16+
"classnames": "^2.3.2",
17+
"react": "^18.2.0",
18+
"react-dom": "^18.2.0",
19+
"react-router": "^6.10.0",
20+
"react-router-dom": "^6.10.0"
21+
},
22+
"devDependencies": {
23+
"@types/node": "^18.16.0",
24+
"@types/react": "^18.0.28",
25+
"@types/react-dom": "^18.0.11",
26+
"@typescript-eslint/eslint-plugin": "^5.57.1",
27+
"@typescript-eslint/parser": "^5.57.1",
28+
"@vitejs/plugin-react-swc": "^3.0.0",
29+
"autoprefixer": "^10.4.14",
30+
"eslint": "^8.38.0",
31+
"eslint-plugin-react-hooks": "^4.6.0",
32+
"eslint-plugin-react-refresh": "^0.3.4",
33+
"less": "^4.1.3",
34+
"postcss": "^8.4.23",
35+
"tailwindcss": "^3.3.1",
36+
"typescript": "^5.0.2",
37+
"vite": "^4.3.0"
38+
}
39+
}

0 commit comments

Comments
 (0)