compile it

This commit is contained in:
Alexander Popov 2023-04-30 15:26:00 +03:00
parent fa74956afa
commit 28adc41ca4
Signed by: iiiypuk
GPG Key ID: E47FE0AB36CD5ED6
3 changed files with 15 additions and 1 deletions

10
README.md Normal file
View File

@ -0,0 +1,10 @@
## Build `ENGINE`
```sh
# install rollup
npm install --global rollup
# compile engine
cd src/js/
rollup main.js --file engine.js --format es
```

1
src/js/.gitignore vendored
View File

@ -1 +1,2 @@
game.js* game.js*
engine.js

View File

@ -1,6 +1,7 @@
import { Scene } from './scene.js';
import { Settings } from './settings.js'; import { Settings } from './settings.js';
import { Pointer } from './pointer.js'; import { Pointer } from './pointer.js';
import { Scene, SceneLayer } from './scene.js';
import { Rect, StrokeRect, Sprite, TiledSprite } from './objects.js';
export class App { export class App {
#version; #version;
@ -66,3 +67,5 @@ export class App {
requestAnimationFrame(this.run); requestAnimationFrame(this.run);
}; };
} }
export { Scene, SceneLayer, Rect, StrokeRect, Sprite, TiledSprite };