@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
package/templates/its/README.md
CHANGED
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
# my-game
|
|
2
|
-
|
|
3
|
-
This project is a starter template for creating a game with the Inglorious Engine using **IngloriousScript with TypeScript**.
|
|
4
|
-
|
|
5
|
-
## What is IngloriousScript?
|
|
6
|
-
|
|
7
|
-
IngloriousScript is a superset of JavaScript that enables intuitive vector math using standard operators, transformed by Babel.
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
// Instead of this:
|
|
11
|
-
const newPosition = mod(add(position, scale(velocity, dt)), worldSize)
|
|
12
|
-
|
|
13
|
-
// You can write this:
|
|
14
|
-
// @ts-expect-error - IngloriousScript operators are transformed by Babel
|
|
15
|
-
const newPosition = (position + velocity * dt) % worldSize
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
## Getting Started
|
|
19
|
-
|
|
20
|
-
This project was scaffolded with `@inglorious/create-game`.
|
|
21
|
-
|
|
22
|
-
To get started, follow these steps:
|
|
23
|
-
|
|
24
|
-
1. **Install dependencies**:
|
|
25
|
-
Navigate to your project directory and install the required packages.
|
|
26
|
-
```sh
|
|
27
|
-
pnpm install
|
|
28
|
-
```
|
|
29
|
-
2. **Start the development server**:
|
|
30
|
-
Run the following command to start the Vite development server.
|
|
31
|
-
```sh
|
|
32
|
-
pnpm dev
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
This will start a Vite development server. Open your browser to the local URL provided to see it in action.
|
|
36
|
-
|
|
37
|
-
## Project Setup
|
|
38
|
-
|
|
39
|
-
- `index.html`: The main entry point for your game.
|
|
40
|
-
- `src/`: Contains your game's source code. Files ending in `.its` use IngloriousScript with TypeScript.
|
|
41
|
-
- `vite.config.js`: Vite configuration with the Babel plugin for IngloriousScript.
|
|
42
|
-
- `tsconfig.json`: TypeScript configuration.
|
|
43
|
-
- `package.json`: Project metadata and dependencies.
|
|
44
|
-
|
|
45
|
-
### Using `.its` files
|
|
46
|
-
|
|
47
|
-
The `.its` extension is for TypeScript files that use IngloriousScript's operator overloading. Since TypeScript doesn't natively support this, you must add a `@ts-expect-error` comment above lines with vector operations. This is normal and expected.
|
|
48
|
-
|
|
49
|
-
```typescript
|
|
50
|
-
// @ts-expect-error - IngloriousScript operators are transformed by Babel
|
|
51
|
-
const newPosition = (position + velocity * deltaTime) % worldSize
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
### Editor Configuration (VS Code)
|
|
55
|
-
|
|
56
|
-
This template includes a `.vscode/settings.json` file that tells Visual Studio Code to treat `.its` files as TypeScript, enabling full syntax highlighting and IntelliSense.
|
|
57
|
-
|
|
58
|
-
```json
|
|
59
|
-
{
|
|
60
|
-
"files.associations": {
|
|
61
|
-
"*.its": "typescript"
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
```
|
|
1
|
+
# my-game
|
|
2
|
+
|
|
3
|
+
This project is a starter template for creating a game with the Inglorious Engine using **IngloriousScript with TypeScript**.
|
|
4
|
+
|
|
5
|
+
## What is IngloriousScript?
|
|
6
|
+
|
|
7
|
+
IngloriousScript is a superset of JavaScript that enables intuitive vector math using standard operators, transformed by Babel.
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
// Instead of this:
|
|
11
|
+
const newPosition = mod(add(position, scale(velocity, dt)), worldSize)
|
|
12
|
+
|
|
13
|
+
// You can write this:
|
|
14
|
+
// @ts-expect-error - IngloriousScript operators are transformed by Babel
|
|
15
|
+
const newPosition = (position + velocity * dt) % worldSize
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Getting Started
|
|
19
|
+
|
|
20
|
+
This project was scaffolded with `@inglorious/create-game`.
|
|
21
|
+
|
|
22
|
+
To get started, follow these steps:
|
|
23
|
+
|
|
24
|
+
1. **Install dependencies**:
|
|
25
|
+
Navigate to your project directory and install the required packages.
|
|
26
|
+
```sh
|
|
27
|
+
pnpm install
|
|
28
|
+
```
|
|
29
|
+
2. **Start the development server**:
|
|
30
|
+
Run the following command to start the Vite development server.
|
|
31
|
+
```sh
|
|
32
|
+
pnpm dev
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
This will start a Vite development server. Open your browser to the local URL provided to see it in action.
|
|
36
|
+
|
|
37
|
+
## Project Setup
|
|
38
|
+
|
|
39
|
+
- `index.html`: The main entry point for your game.
|
|
40
|
+
- `src/`: Contains your game's source code. Files ending in `.its` use IngloriousScript with TypeScript.
|
|
41
|
+
- `vite.config.js`: Vite configuration with the Babel plugin for IngloriousScript.
|
|
42
|
+
- `tsconfig.json`: TypeScript configuration.
|
|
43
|
+
- `package.json`: Project metadata and dependencies.
|
|
44
|
+
|
|
45
|
+
### Using `.its` files
|
|
46
|
+
|
|
47
|
+
The `.its` extension is for TypeScript files that use IngloriousScript's operator overloading. Since TypeScript doesn't natively support this, you must add a `@ts-expect-error` comment above lines with vector operations. This is normal and expected.
|
|
48
|
+
|
|
49
|
+
```typescript
|
|
50
|
+
// @ts-expect-error - IngloriousScript operators are transformed by Babel
|
|
51
|
+
const newPosition = (position + velocity * deltaTime) % worldSize
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Editor Configuration (VS Code)
|
|
55
|
+
|
|
56
|
+
This template includes a `.vscode/settings.json` file that tells Visual Studio Code to treat `.its` files as TypeScript, enabling full syntax highlighting and IntelliSense.
|
|
57
|
+
|
|
58
|
+
```json
|
|
59
|
+
{
|
|
60
|
+
"files.associations": {
|
|
61
|
+
"*.its": "typescript"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
```
|
package/templates/its/gitignore
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
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
|
-
.idea
|
|
42
|
-
.DS_Store
|
|
43
|
-
*.suo
|
|
44
|
-
*.ntvs*
|
|
45
|
-
*.njsproj
|
|
46
|
-
*.sln
|
|
47
|
-
*.sw?
|
|
48
|
-
.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
|
+
.idea
|
|
42
|
+
.DS_Store
|
|
43
|
+
*.suo
|
|
44
|
+
*.ntvs*
|
|
45
|
+
*.njsproj
|
|
46
|
+
*.sln
|
|
47
|
+
*.sw?
|
|
48
|
+
.qodo
|
package/templates/its/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"
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"@babel/preset-typescript": "^7.27.1",
|
|
22
22
|
"@inglorious/babel-preset-inglorious-script": "workspace:*",
|
|
23
23
|
"@inglorious/eslint-config": "workspace:*",
|
|
24
|
-
"eslint": "^
|
|
25
|
-
"prettier": "^3.
|
|
24
|
+
"eslint": "^10.11.0",
|
|
25
|
+
"prettier": "^3.9.9",
|
|
26
26
|
"typescript": "^5.9.2",
|
|
27
|
-
"vite": "^
|
|
28
|
-
"vite-plugin-babel": "^1.3
|
|
27
|
+
"vite": "^8.3.1",
|
|
28
|
+
"vite-plugin-babel": "^1.7.3"
|
|
29
29
|
},
|
|
30
30
|
"packageManager": "pnpm@10.15.0",
|
|
31
31
|
"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
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
semi: false
|
|
1
|
+
semi: false
|
package/templates/js/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/js/README.md
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
# my-game
|
|
2
|
-
|
|
3
|
-
This project is a minimal starter template for creating a game with the Inglorious Engine using plain JavaScript 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 JavaScript source code.
|
|
28
|
-
- `vite.config.js`: Vite configuration file.
|
|
29
|
-
- `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 plain JavaScript 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 JavaScript source code.
|
|
28
|
+
- `vite.config.js`: Vite configuration file.
|
|
29
|
+
- `package.json`: Project metadata and dependencies.
|
package/templates/js/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/js/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,9 +19,9 @@
|
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@inglorious/eslint-config": "workspace:*",
|
|
22
|
-
"eslint": "^
|
|
23
|
-
"prettier": "^3.
|
|
24
|
-
"vite": "^
|
|
22
|
+
"eslint": "^10.11.0",
|
|
23
|
+
"prettier": "^3.9.9",
|
|
24
|
+
"vite": "^8.3.1"
|
|
25
25
|
},
|
|
26
26
|
"packageManager": "pnpm@10.15.0",
|
|
27
27
|
"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
|
+
}
|