13 lines
237 B
TypeScript
13 lines
237 B
TypeScript
// Hey look! Imports work just like they normally would.
|
|
import { Game } from 'asdf-games';
|
|
import { Box } from './box';
|
|
|
|
const game = new Game(600, 400, true, '#board');
|
|
|
|
const box = new Box;
|
|
|
|
game.scene.add(box);
|
|
|
|
game.run(() => {});
|
|
|