Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d91ef0c96d |
@@ -107,7 +107,7 @@ source emsdk/emsdk_env.sh
|
|||||||
## npm usage
|
## npm usage
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
import { loadPinball, attachTouchControls } from 'vpinball-wasm';
|
import { loadPinball, attachTouchControls } from '@valknar/vpinball-wasm';
|
||||||
|
|
||||||
const canvas = document.querySelector('canvas');
|
const canvas = document.querySelector('canvas');
|
||||||
const pinball = await loadPinball({
|
const pinball = await loadPinball({
|
||||||
@@ -128,7 +128,7 @@ startButton.addEventListener('click', () => {
|
|||||||
pinball.evalScript('DMDWidth = 128 : DMDHeight = 32');
|
pinball.evalScript('DMDWidth = 128 : DMDHeight = 32');
|
||||||
```
|
```
|
||||||
|
|
||||||
See `examples/basic/index.html` for a complete working page (loading progress, file upload, touch controls, fullscreen). Published as `vpinball-wasm` on this project's Gitea npm registry — see `package.json`.
|
See `examples/basic/index.html` for a complete working page (loading progress, file upload, touch controls, fullscreen). Published as `@valknar/vpinball-wasm` on this project's Gitea npm registry — see `package.json`.
|
||||||
|
|
||||||
## Known limitations
|
## Known limitations
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "vpinball-wasm",
|
"name": "@valknar/vpinball-wasm",
|
||||||
"version": "0.1.0",
|
"version": "0.2.0",
|
||||||
"description": "Visual Pinball's engine compiled to WebAssembly - real .vpx tables, real VBScript, WebGL2 rendering, in the browser",
|
"description": "Visual Pinball's engine compiled to WebAssembly - real .vpx tables, real VBScript, WebGL2 rendering, in the browser",
|
||||||
"license": "SEE LICENSE IN LICENSE",
|
"license": "SEE LICENSE IN LICENSE",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|||||||
Reference in New Issue
Block a user