-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
32 lines (26 loc) · 799 Bytes
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import Framework, { scene } from 'froobit';
import BackgroundController from './src/client/controller/BackgroundController';
import ControlPointController from './src/client/controller/ControlPointController';
import BezierCurveController from './src/client/controller/BezierCurveController';
// assets
import img from './assets/madeWith.png';
import MadeWithController from './src/client/controller/MadeWithController';
import InfoTextController from './src/client/controller/InfoTextController';
// Entry point
const assets = {
images: {
img,
},
};
const controllers = [
BackgroundController,
MadeWithController,
InfoTextController,
ControlPointController,
BezierCurveController,
];
const options = {
assets,
scene: scene(800, 450),
};
Framework.with(controllers, options).init();