asdf-browser-template/src/index.ts

13 lines
237 B
TypeScript
Raw Normal View History

2020-04-15 15:28:42 +02:00
// 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(() => {});