samengine 1.7.9 → 1.9.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/README.md +6 -18
- package/package.json +2 -2
- package/dist/build/index.d.ts +0 -1
- package/dist/build/index.js +0 -4
package/README.md
CHANGED
|
@@ -15,6 +15,11 @@ A lightweight, TypeScript-first web game engine framework for building
|
|
|
15
15
|
- 💾 Save/Load system
|
|
16
16
|
|
|
17
17
|
|
|
18
|
+
## Info
|
|
19
|
+
|
|
20
|
+
For better Infos read the [Docs](samengine.vercel.app/docs)
|
|
21
|
+
|
|
22
|
+
|
|
18
23
|
## Quick Start
|
|
19
24
|
|
|
20
25
|
```sh
|
|
@@ -70,24 +75,7 @@ npx samengine-build --new (newproject) # Create a new project with a
|
|
|
70
75
|
npx samengine-build --new-empty (new) # Create a new empty project
|
|
71
76
|
```
|
|
72
77
|
|
|
73
|
-
|
|
74
|
-
### Configuration
|
|
75
|
-
|
|
76
|
-
Edit `samengine.config.ts` to configure your game:
|
|
77
|
-
|
|
78
|
-
```typescript
|
|
79
|
-
import { defineConfig } from 'samengine-build';
|
|
80
|
-
|
|
81
|
-
export function defineConfig() {
|
|
82
|
-
return {
|
|
83
|
-
entryname: 'main',
|
|
84
|
-
outdir: 'dist',
|
|
85
|
-
// ... other config
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
or
|
|
78
|
+
## Config
|
|
91
79
|
|
|
92
80
|
```typescript
|
|
93
81
|
// Project File for the Game
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "samengine",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"description": "A TypeScript game library to make HTML Games",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"files": [
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
],
|
|
9
9
|
"scripts": {
|
|
10
10
|
"build": "tsc",
|
|
11
|
-
"pack": "node scripts/clean.js && npm run build && npm pack && git push --follow-tags
|
|
11
|
+
"pack": "node scripts/clean.js && npm run build && npm pack && git push --follow-tags",
|
|
12
12
|
"test": "bun test"
|
|
13
13
|
},
|
|
14
14
|
"exports": {
|
package/dist/build/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function version(): string;
|
package/dist/build/index.js
DELETED