/** * Import global css */ require("../../../style/animations.css"); require("../../../style/styles.css"); import AppIcon from "../../../app-icon"; import Ioc from "../../../controllers/ioc"; import GamePlay from "./scripts/game-play"; /** * plarformerGameInfo * This is strong connection. * html-components are on the same level with app.ts * Put any parameters here. */ const gameInfo = { name: "Web camera stream example", title: "Add webcamera-stream example to the game play. Networking - npm run rtc", }; const gamesList: any[] = [ gameInfo, ]; const master = new Ioc(gamesList); const appIcons = [ require("../../../icon/favicon.ico"), require("../../../icon/favicon-96x96.png"), require("../../../icon/android-icon.png"), require("../../../icon/apple-icon.png"), ]; const appIcon: AppIcon = new AppIcon(master.get.Browser, appIcons); master.singlton(GamePlay, master.get.Starter); console.log("root: ", master.get.GamePlay); master.get.GamePlay.attachAppEvents(); /** * Make it global for fast access in console testing. * (window as any).platformer = master.get.GamePlay; */ (window as any).master = master; (window as any).platformer = master.get.GamePlay;