Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/excaliburjs/sample-fireworks. Example making fireworks with GPU Particles in Excalibur excaliburjs.com/sample-fireworks
Something went wrong. Try again.
12345678910111213141516171819202122232425262728import { Color, DisplayMode, Engine, FadeInOut } from "excalibur";import { loader } from "./resources";import { MyLevel } from "./level";
// Goal is to keep main.ts small and just enough to configure the engine
const game = new Engine({ width: 800, // Logical width and height in game pixels height: 600, displayMode: DisplayMode.FitScreenAndFill, // Display mode tells excalibur how to fill the window suppressPlayButton: true, pixelArt: true, // pixelArt will turn on the correct settings to render pixel art without jaggies or shimmering artifacts scenes: { start: MyLevel }});
game.start('start', { // name of the start scene 'start' loader, // Optional loader (but needed for loading images/sounds) inTransition: new FadeInOut({ // Optional in transition duration: 1000, direction: 'in', color: Color.ExcaliburBlue })}).then(() => { // Do something after the game starts});