How to use the excalibur.Engine function in excalibur

To help you get started, we’ve selected a few excalibur examples, based on popular ways it is used in public projects.

github excaliburjs / example-ts-webpack / index.ts View on Github external
import * as ex from 'excalibur';

var game = new ex.Engine({ width: 500, height: 500 });
var hello = new ex.Label('Hello World', 100, 100, 'Arial');
hello.color = ex.Color.Red;
hello.fontSize = 20;

game.add(hello);
game.start();

excalibur

Excalibur.js is a simple JavaScript game engine with TypeScript bindings for making 2D games in HTML5 Canvas. Our mission is to make web game development as simple as possible.

BSD-2-Clause
Latest version published 3 months ago

Package Health Score

90 / 100
Full package analysis

Similar packages