compile it
This commit is contained in:
parent
fa74956afa
commit
28adc41ca4
10
README.md
Normal file
10
README.md
Normal 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
1
src/js/.gitignore
vendored
@ -1 +1,2 @@
|
||||
game.js*
|
||||
engine.js
|
||||
|
@ -1,6 +1,7 @@
|
||||
import { Scene } from './scene.js';
|
||||
import { Settings } from './settings.js';
|
||||
import { Pointer } from './pointer.js';
|
||||
import { Scene, SceneLayer } from './scene.js';
|
||||
import { Rect, StrokeRect, Sprite, TiledSprite } from './objects.js';
|
||||
|
||||
export class App {
|
||||
#version;
|
||||
@ -66,3 +67,5 @@ export class App {
|
||||
requestAnimationFrame(this.run);
|
||||
};
|
||||
}
|
||||
|
||||
export { Scene, SceneLayer, Rect, StrokeRect, Sprite, TiledSprite };
|
Loading…
Reference in New Issue
Block a user