@gamedevland/engine 0.0.2

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.
Files changed (5) hide show
  1. package/LICENSE +23 -0
  2. package/README.md +71 -0
  3. package/dist/sdk.d.ts +5124 -0
  4. package/dist/sdk.js +41274 -0
  5. package/package.json +137 -0
package/LICENSE ADDED
@@ -0,0 +1,23 @@
1
+ Gamedev Land SDK License
2
+
3
+ Copyright (c) 2026 Gamedev Land
4
+
5
+ This license applies to the compiled @gamedevland/engine npm package and its TypeScript declaration files.
6
+
7
+ Permission is granted to install and use the package to build, test, and distribute games, demos,
8
+ tutorials, and related web applications.
9
+
10
+ The package may be redistributed only as an unmodified dependency through package managers, deployment
11
+ artifacts, or application bundles generated as part of a game or web application.
12
+
13
+ You may not:
14
+
15
+ - claim that the SDK itself is open source;
16
+ - republish, sublicense, sell, or repackage the SDK as a competing SDK, engine, library, or framework;
17
+ - remove copyright, license, or package identity notices;
18
+ - use the package name, author name, or repository identity to imply endorsement without permission.
19
+
20
+ The SDK is provided "as is", without warranty of any kind, express or implied, including but not limited
21
+ to the warranties of merchantability, fitness for a particular purpose, and noninfringement. In no event
22
+ shall the authors or copyright holders be liable for any claim, damages, or other liability arising from
23
+ the SDK or its use.
package/README.md ADDED
@@ -0,0 +1,71 @@
1
+ # @gamedevland/engine
2
+
3
+ Compiled HTML5 game engine SDK for Gamedev Land projects.
4
+
5
+ The npm package intentionally ships a compact public distribution:
6
+
7
+ - `dist/sdk.js` - bundled and minified ESM runtime
8
+ - `dist/sdk.d.ts` - bundled TypeScript declarations
9
+ - `README.md`, `LICENSE`, and `package.json`
10
+
11
+ Source files are not included in the published package.
12
+
13
+ ## Install
14
+
15
+ ```bash
16
+ npm install @gamedevland/engine
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ ```ts
22
+ import { Engine } from '@gamedevland/engine';
23
+ import type { GameConfig } from '@gamedevland/engine';
24
+
25
+ const config = {
26
+ // Game configuration goes here.
27
+ } satisfies GameConfig;
28
+
29
+ await Engine.run('#app', config);
30
+ ```
31
+
32
+ Subsystem entry points are available for organization-friendly imports:
33
+
34
+ ```ts
35
+ import { AssetManager } from '@gamedevland/engine/assets';
36
+ import { SchemaDecoder } from '@gamedevland/engine/validation';
37
+ ```
38
+
39
+ All public entry points resolve to the same compiled SDK bundle, so consumers can choose the import style
40
+ that reads best in their project.
41
+
42
+ For `dragend` input events, `InputEventBase.dragEndReason` distinguishes a normal pointer release
43
+ (`pointerup`) from a system cancellation (`pointercancel`).
44
+
45
+ Layout nodes expose `getLocalBounds()` for renderer-independent local geometry queries.
46
+
47
+ ## TypeScript
48
+
49
+ The package provides `dist/sdk.d.ts` and is designed for TypeScript consumers using modern ESM tooling.
50
+
51
+ Recommended compiler settings:
52
+
53
+ ```json
54
+ {
55
+ "compilerOptions": {
56
+ "target": "ES2022",
57
+ "module": "ESNext",
58
+ "moduleResolution": "Bundler",
59
+ "strict": true,
60
+ "skipLibCheck": true,
61
+ "lib": ["ES2022", "DOM", "DOM.Iterable"]
62
+ }
63
+ }
64
+ ```
65
+
66
+ `skipLibCheck` is recommended because the SDK exposes Pixi.js-facing types and Pixi's transitive WebGPU
67
+ type declarations may conflict with newer TypeScript DOM library declarations in strict dependency checks.
68
+
69
+ ## License
70
+
71
+ This package is public but not open source. See [LICENSE](./LICENSE).