@inglorious/create-game 1.0.8 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +9 -9
- package/README.md +61 -59
- package/bin/index.js +34 -1
- package/package.json +7 -7
- package/templates/ijs/.prettierrc.yml +6 -6
- package/templates/ijs/LICENSE +9 -9
- package/templates/ijs/README.md +53 -53
- package/templates/ijs/gitignore +48 -48
- package/templates/ijs/index.html +15 -15
- package/templates/ijs/package.json +6 -6
- package/templates/ijs/public/style.css +35 -35
- package/templates/its/.prettierrc.yml +6 -6
- package/templates/its/LICENSE +9 -9
- package/templates/its/README.md +64 -64
- package/templates/its/gitignore +48 -48
- package/templates/its/index.html +15 -15
- package/templates/its/package.json +6 -6
- package/templates/its/public/style.css +35 -35
- package/templates/js/.prettierrc.yml +1 -1
- package/templates/js/LICENSE +9 -9
- package/templates/js/README.md +29 -29
- package/templates/js/gitignore +49 -49
- package/templates/js/index.html +15 -15
- package/templates/js/package.json +5 -5
- package/templates/js/public/style.css +35 -35
- package/templates/minimal/LICENSE +9 -9
- package/templates/minimal/README.md +10 -10
- package/templates/minimal/gitignore +6 -6
- package/templates/minimal/index.html +36 -36
- package/templates/minimal/public/style.css +32 -32
- package/templates/ts/.prettierrc.yml +1 -1
- package/templates/ts/LICENSE +9 -9
- package/templates/ts/README.md +30 -30
- package/templates/ts/gitignore +49 -49
- package/templates/ts/index.html +15 -15
- package/templates/ts/package.json +5 -5
- package/templates/ts/public/style.css +35 -35
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright © 2025 Inglorious Coderz Srl.
|
|
4
|
-
|
|
5
|
-
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:
|
|
6
|
-
|
|
7
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
-
|
|
9
|
-
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.
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright © 2025 Inglorious Coderz Srl.
|
|
4
|
+
|
|
5
|
+
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:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
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.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
# my-game
|
|
2
|
-
|
|
3
|
-
A new game created with [@inglorious/create-game](https://www.npmjs.com/package/@inglorious/create-game).
|
|
4
|
-
|
|
5
|
-
This template is a minimal setup for running the Inglorious Engine directly in the browser without any build step.
|
|
6
|
-
|
|
7
|
-
## Getting Started
|
|
8
|
-
|
|
9
|
-
1. Open the `index.html` file in a modern web browser.
|
|
10
|
-
2. Edit the `game.js` file to start building your game!
|
|
1
|
+
# my-game
|
|
2
|
+
|
|
3
|
+
A new game created with [@inglorious/create-game](https://www.npmjs.com/package/@inglorious/create-game).
|
|
4
|
+
|
|
5
|
+
This template is a minimal setup for running the Inglorious Engine directly in the browser without any build step.
|
|
6
|
+
|
|
7
|
+
## Getting Started
|
|
8
|
+
|
|
9
|
+
1. Open the `index.html` file in a modern web browser.
|
|
10
|
+
2. Edit the `game.js` file to start building your game!
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Editor directories and files
|
|
2
|
-
|
|
3
|
-
.idea
|
|
4
|
-
.vscode
|
|
5
|
-
_.suo
|
|
6
|
-
_.ntvs\*
|
|
1
|
+
# Editor directories and files
|
|
2
|
+
|
|
3
|
+
.idea
|
|
4
|
+
.vscode
|
|
5
|
+
_.suo
|
|
6
|
+
_.ntvs\*
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<link rel="icon" type="image/svg+xml" href="/public/logo.png" />
|
|
6
|
-
<link rel="stylesheet" href="/public/style.css" />
|
|
7
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
8
|
-
<title>Inglorious Game</title>
|
|
9
|
-
</head>
|
|
10
|
-
|
|
11
|
-
<body>
|
|
12
|
-
<canvas id="canvas"></canvas>
|
|
13
|
-
|
|
14
|
-
<script type="text/javascript">
|
|
15
|
-
window.process = { env: "development" }
|
|
16
|
-
</script>
|
|
17
|
-
|
|
18
|
-
<script type="importmap">
|
|
19
|
-
{
|
|
20
|
-
"imports": {
|
|
21
|
-
"mutative": "https://unpkg.com/mutative@latest/dist/mutative.esm.mjs",
|
|
22
|
-
"@inglorious/utils/": "https://unpkg.com/@inglorious%2Futils@latest/src/",
|
|
23
|
-
"@inglorious/store/": "https://unpkg.com/@inglorious%2Fstore@latest/src/",
|
|
24
|
-
"@inglorious/engine/": "https://unpkg.com/@inglorious%2Fengine@latest/src/",
|
|
25
|
-
"@inglorious/renderer-2d/": "https://unpkg.com/@inglorious%2Frenderer-2d@latest/src/",
|
|
26
|
-
"game": "/src/game.js"
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
</script>
|
|
30
|
-
|
|
31
|
-
<script
|
|
32
|
-
type="module"
|
|
33
|
-
src="https://unpkg.com/@inglorious%2Fengine@latest/src/main.js"
|
|
34
|
-
></script>
|
|
35
|
-
</body>
|
|
36
|
-
</html>
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" type="image/svg+xml" href="/public/logo.png" />
|
|
6
|
+
<link rel="stylesheet" href="/public/style.css" />
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
8
|
+
<title>Inglorious Game</title>
|
|
9
|
+
</head>
|
|
10
|
+
|
|
11
|
+
<body>
|
|
12
|
+
<canvas id="canvas"></canvas>
|
|
13
|
+
|
|
14
|
+
<script type="text/javascript">
|
|
15
|
+
window.process = { env: "development" }
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<script type="importmap">
|
|
19
|
+
{
|
|
20
|
+
"imports": {
|
|
21
|
+
"mutative": "https://unpkg.com/mutative@latest/dist/mutative.esm.mjs",
|
|
22
|
+
"@inglorious/utils/": "https://unpkg.com/@inglorious%2Futils@latest/src/",
|
|
23
|
+
"@inglorious/store/": "https://unpkg.com/@inglorious%2Fstore@latest/src/",
|
|
24
|
+
"@inglorious/engine/": "https://unpkg.com/@inglorious%2Fengine@latest/src/",
|
|
25
|
+
"@inglorious/renderer-2d/": "https://unpkg.com/@inglorious%2Frenderer-2d@latest/src/",
|
|
26
|
+
"game": "/src/game.js"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
</script>
|
|
30
|
+
|
|
31
|
+
<script
|
|
32
|
+
type="module"
|
|
33
|
+
src="https://unpkg.com/@inglorious%2Fengine@latest/src/main.js"
|
|
34
|
+
></script>
|
|
35
|
+
</body>
|
|
36
|
+
</html>
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
* {
|
|
2
|
-
box-sizing: border-box;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
body {
|
|
6
|
-
width: 100vw;
|
|
7
|
-
height: 100vh;
|
|
8
|
-
margin: 0;
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
justify-content: center;
|
|
12
|
-
align-items: center;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
canvas {
|
|
16
|
-
max-width: 800px;
|
|
17
|
-
max-height: 600px;
|
|
18
|
-
width: 100vw;
|
|
19
|
-
height: auto;
|
|
20
|
-
cursor: none;
|
|
21
|
-
|
|
22
|
-
@media (orientation: landscape) and (pointer: coarse) {
|
|
23
|
-
canvas {
|
|
24
|
-
width: auto;
|
|
25
|
-
height: 100vh;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
img {
|
|
31
|
-
display: none;
|
|
32
|
-
}
|
|
1
|
+
* {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
body {
|
|
6
|
+
width: 100vw;
|
|
7
|
+
height: 100vh;
|
|
8
|
+
margin: 0;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
align-items: center;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
canvas {
|
|
16
|
+
max-width: 800px;
|
|
17
|
+
max-height: 600px;
|
|
18
|
+
width: 100vw;
|
|
19
|
+
height: auto;
|
|
20
|
+
cursor: none;
|
|
21
|
+
|
|
22
|
+
@media (orientation: landscape) and (pointer: coarse) {
|
|
23
|
+
canvas {
|
|
24
|
+
width: auto;
|
|
25
|
+
height: 100vh;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
img {
|
|
31
|
+
display: none;
|
|
32
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
semi: false
|
|
1
|
+
semi: false
|
package/templates/ts/LICENSE
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright © 2025 Inglorious Coderz Srl.
|
|
4
|
-
|
|
5
|
-
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:
|
|
6
|
-
|
|
7
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
-
|
|
9
|
-
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.
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright © 2025 Inglorious Coderz Srl.
|
|
4
|
+
|
|
5
|
+
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:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
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.
|
package/templates/ts/README.md
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
# my-game
|
|
2
|
-
|
|
3
|
-
This project is a minimal starter template for creating a game with the Inglorious Engine using TypeScript and Vite.
|
|
4
|
-
|
|
5
|
-
## Getting Started
|
|
6
|
-
|
|
7
|
-
This project was scaffolded with `@inglorious/create-game`.
|
|
8
|
-
|
|
9
|
-
To get started, follow these steps:
|
|
10
|
-
|
|
11
|
-
1. **Install dependencies**:
|
|
12
|
-
Navigate to your project directory and install the required packages.
|
|
13
|
-
```sh
|
|
14
|
-
pnpm install
|
|
15
|
-
```
|
|
16
|
-
2. **Start the development server**:
|
|
17
|
-
Run the following command to start the Vite development server.
|
|
18
|
-
```sh
|
|
19
|
-
pnpm dev
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
This will start a Vite development server. Open your browser to the local URL provided to see it in action.
|
|
23
|
-
|
|
24
|
-
## Project Setup
|
|
25
|
-
|
|
26
|
-
- `index.html`: The main entry point for your game.
|
|
27
|
-
- `src/`: Contains your game's TypeScript source code.
|
|
28
|
-
- `vite.config.js`: Vite configuration file.
|
|
29
|
-
- `tsconfig.json`: TypeScript configuration for the project.
|
|
30
|
-
- `package.json`: Project metadata and dependencies.
|
|
1
|
+
# my-game
|
|
2
|
+
|
|
3
|
+
This project is a minimal starter template for creating a game with the Inglorious Engine using TypeScript and Vite.
|
|
4
|
+
|
|
5
|
+
## Getting Started
|
|
6
|
+
|
|
7
|
+
This project was scaffolded with `@inglorious/create-game`.
|
|
8
|
+
|
|
9
|
+
To get started, follow these steps:
|
|
10
|
+
|
|
11
|
+
1. **Install dependencies**:
|
|
12
|
+
Navigate to your project directory and install the required packages.
|
|
13
|
+
```sh
|
|
14
|
+
pnpm install
|
|
15
|
+
```
|
|
16
|
+
2. **Start the development server**:
|
|
17
|
+
Run the following command to start the Vite development server.
|
|
18
|
+
```sh
|
|
19
|
+
pnpm dev
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
This will start a Vite development server. Open your browser to the local URL provided to see it in action.
|
|
23
|
+
|
|
24
|
+
## Project Setup
|
|
25
|
+
|
|
26
|
+
- `index.html`: The main entry point for your game.
|
|
27
|
+
- `src/`: Contains your game's TypeScript source code.
|
|
28
|
+
- `vite.config.js`: Vite configuration file.
|
|
29
|
+
- `tsconfig.json`: TypeScript configuration for the project.
|
|
30
|
+
- `package.json`: Project metadata and dependencies.
|
package/templates/ts/gitignore
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
# Dependencies
|
|
2
|
-
node_modules
|
|
3
|
-
.pnp
|
|
4
|
-
.pnp.js
|
|
5
|
-
|
|
6
|
-
# Local env files
|
|
7
|
-
.env
|
|
8
|
-
.env.local
|
|
9
|
-
.env.development.local
|
|
10
|
-
.env.test.local
|
|
11
|
-
.env.production.local
|
|
12
|
-
|
|
13
|
-
# Testing
|
|
14
|
-
coverage
|
|
15
|
-
|
|
16
|
-
# Turbo
|
|
17
|
-
.turbo
|
|
18
|
-
|
|
19
|
-
# Vercel
|
|
20
|
-
.vercel
|
|
21
|
-
|
|
22
|
-
# Build Outputs
|
|
23
|
-
.next/
|
|
24
|
-
out/
|
|
25
|
-
build
|
|
26
|
-
dist
|
|
27
|
-
dist-ssr
|
|
28
|
-
storybook-static
|
|
29
|
-
vite.config.js.timestamp-*
|
|
30
|
-
|
|
31
|
-
# Debug
|
|
32
|
-
logs
|
|
33
|
-
*.log
|
|
34
|
-
npm-debug.log*
|
|
35
|
-
yarn-debug.log*
|
|
36
|
-
yarn-error.log*
|
|
37
|
-
pnpm-debug.log*
|
|
38
|
-
lerna-debug.log*
|
|
39
|
-
|
|
40
|
-
# Editor directories and files
|
|
41
|
-
.vscode/*
|
|
42
|
-
.idea
|
|
43
|
-
.DS_Store
|
|
44
|
-
*.suo
|
|
45
|
-
*.ntvs*
|
|
46
|
-
*.njsproj
|
|
47
|
-
*.sln
|
|
48
|
-
*.sw?
|
|
49
|
-
.qodo
|
|
1
|
+
# Dependencies
|
|
2
|
+
node_modules
|
|
3
|
+
.pnp
|
|
4
|
+
.pnp.js
|
|
5
|
+
|
|
6
|
+
# Local env files
|
|
7
|
+
.env
|
|
8
|
+
.env.local
|
|
9
|
+
.env.development.local
|
|
10
|
+
.env.test.local
|
|
11
|
+
.env.production.local
|
|
12
|
+
|
|
13
|
+
# Testing
|
|
14
|
+
coverage
|
|
15
|
+
|
|
16
|
+
# Turbo
|
|
17
|
+
.turbo
|
|
18
|
+
|
|
19
|
+
# Vercel
|
|
20
|
+
.vercel
|
|
21
|
+
|
|
22
|
+
# Build Outputs
|
|
23
|
+
.next/
|
|
24
|
+
out/
|
|
25
|
+
build
|
|
26
|
+
dist
|
|
27
|
+
dist-ssr
|
|
28
|
+
storybook-static
|
|
29
|
+
vite.config.js.timestamp-*
|
|
30
|
+
|
|
31
|
+
# Debug
|
|
32
|
+
logs
|
|
33
|
+
*.log
|
|
34
|
+
npm-debug.log*
|
|
35
|
+
yarn-debug.log*
|
|
36
|
+
yarn-error.log*
|
|
37
|
+
pnpm-debug.log*
|
|
38
|
+
lerna-debug.log*
|
|
39
|
+
|
|
40
|
+
# Editor directories and files
|
|
41
|
+
.vscode/*
|
|
42
|
+
.idea
|
|
43
|
+
.DS_Store
|
|
44
|
+
*.suo
|
|
45
|
+
*.ntvs*
|
|
46
|
+
*.njsproj
|
|
47
|
+
*.sln
|
|
48
|
+
*.sw?
|
|
49
|
+
.qodo
|
package/templates/ts/index.html
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
-
<link rel="icon" type="image/svg+xml" href="/logo.png" />
|
|
7
|
-
<link rel="stylesheet" href="/style.css" />
|
|
8
|
-
<title>Inglorious Game</title>
|
|
9
|
-
</head>
|
|
10
|
-
|
|
11
|
-
<body>
|
|
12
|
-
<canvas id="canvas" width="800" height="600"></canvas>
|
|
13
|
-
<script type="module" src="./src/main.js"></script>
|
|
14
|
-
</body>
|
|
15
|
-
</html>
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<link rel="icon" type="image/svg+xml" href="/logo.png" />
|
|
7
|
+
<link rel="stylesheet" href="/style.css" />
|
|
8
|
+
<title>Inglorious Game</title>
|
|
9
|
+
</head>
|
|
10
|
+
|
|
11
|
+
<body>
|
|
12
|
+
<canvas id="canvas" width="800" height="600"></canvas>
|
|
13
|
+
<script type="module" src="./src/main.js"></script>
|
|
14
|
+
</body>
|
|
15
|
+
</html>
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
"author": "",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"scripts": {
|
|
10
|
-
"format": "prettier --write
|
|
11
|
-
"lint": "eslint .
|
|
10
|
+
"format": "prettier --write .",
|
|
11
|
+
"lint": "eslint .",
|
|
12
12
|
"dev": "vite",
|
|
13
13
|
"build": "vite build",
|
|
14
14
|
"preview": "vite preview"
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@inglorious/eslint-config": "workspace:*",
|
|
22
|
-
"eslint": "^
|
|
23
|
-
"prettier": "^3.
|
|
22
|
+
"eslint": "^10.11.0",
|
|
23
|
+
"prettier": "^3.9.9",
|
|
24
24
|
"typescript": "^5.9.2",
|
|
25
|
-
"vite": "^
|
|
25
|
+
"vite": "^8.3.1"
|
|
26
26
|
},
|
|
27
27
|
"packageManager": "pnpm@10.15.0",
|
|
28
28
|
"engines": {
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
* {
|
|
2
|
-
box-sizing: border-box;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
body {
|
|
6
|
-
font-family: "Press Start 2P", system-ui;
|
|
7
|
-
width: 100vw;
|
|
8
|
-
height: 100vh;
|
|
9
|
-
margin: 0;
|
|
10
|
-
display: flex;
|
|
11
|
-
flex-direction: column;
|
|
12
|
-
justify-content: center;
|
|
13
|
-
align-items: center;
|
|
14
|
-
background-color: #000;
|
|
15
|
-
color: #fff;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
canvas {
|
|
19
|
-
max-width: 1280px;
|
|
20
|
-
max-height: 720px;
|
|
21
|
-
width: 100vw;
|
|
22
|
-
height: auto;
|
|
23
|
-
cursor: none;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
@media (orientation: landscape) and (pointer: coarse) {
|
|
27
|
-
canvas {
|
|
28
|
-
width: auto;
|
|
29
|
-
height: 100vh;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
img {
|
|
34
|
-
display: none;
|
|
35
|
-
}
|
|
1
|
+
* {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
body {
|
|
6
|
+
font-family: "Press Start 2P", system-ui;
|
|
7
|
+
width: 100vw;
|
|
8
|
+
height: 100vh;
|
|
9
|
+
margin: 0;
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
align-items: center;
|
|
14
|
+
background-color: #000;
|
|
15
|
+
color: #fff;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
canvas {
|
|
19
|
+
max-width: 1280px;
|
|
20
|
+
max-height: 720px;
|
|
21
|
+
width: 100vw;
|
|
22
|
+
height: auto;
|
|
23
|
+
cursor: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@media (orientation: landscape) and (pointer: coarse) {
|
|
27
|
+
canvas {
|
|
28
|
+
width: auto;
|
|
29
|
+
height: 100vh;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
img {
|
|
34
|
+
display: none;
|
|
35
|
+
}
|