module example { export enum Layer { DEFAULT, BACKGROUND, ACTORS_1, ACTORS_2, ACTORS_3, PARTICLES } export enum Effect { PEW, ASPLODE, SMALLASPLODE } export var config = { namespace: "example", controllers: { main: "MenuController", game: "GameController" }, width: window.innerWidth, height: window.innerHeight, fullScreen: false, scale: false, stats: true, storage: false, /** PIXI options */ options: { antialiasing: false, transparent: false, resolution: window.devicePixelRatio, autoResize: true, backgroundColor: 0x3c3c3c }, /** Local storage properties */ properties: { skip: "false", leaderboard: "off", player: "", userId: "", playMusic: "true", playSfx: "true" }, /** PIXI Loader assets */ assets: { images: (window.devicePixelRatio >= 2) ? "res/images.json" : "res/images.json", normal_fnt : "res/fonts/normal.fnt", hud_fnt : "res/fonts/hud.fnt", asplode : "res/sounds/asplode.ogg", pew : "res/sounds/pew.ogg", smallasplode : "res/sounds/smallasplode.ogg", panel_png : "assets/img/panel-650x400.png" }, /** Bosco prefabs */ resources: { bullet : { path: "bullet.png", tint: 0xffd800ff, anchor: {x:0.5, y:0.5} }, enemy1 : { path: "enemy1.png", tint: 0xff008e, anchor: {x:0.5, y:0.5} }, enemy2 : { path: "enemy2.png", tint: 0xff008e, anchor: {x:0.5, y:0.5} }, enemy3 : { path: "enemy3.png", tint: 0xff008e, anchor: {x:0.5, y:0.5} }, explosion : { path: "explosion.png", tint: 0xffd80080, anchor: {x:0.5, y:0.5} }, fighter : { path: "fighter.png", tint: 0x5dff81, anchor: {x:0.5, y:0.5} }, particle : { path: "particle.png", tint: 0xffd800ff, anchor: {x:0.5, y:0.5} }, star : { path: "particle.png", tint: 0xffd800ff, anchor: {x:0.5, y:0.5} } }, /** EZGUI */ theme: "kenney", ezgui: { menu: { id: "mainScreen", component: "MainScreen", width: window.innerWidth, height: window.innerHeight, image: "assets/img/panel-650x400.png", logo: { height: 100, transparent: true, text: "Shmup", font: { size: "75px", family: "Skranji", color: "red"} }, buttons: [ { event: "play", text: "Play", width: 300, height: 80 }, { event: "options", text: "Options", width: 300, height: 80 } ] } } }; }