Sorry if this has been asked many times. I looked through a few threads but couldn't get it working. I'm just trying to make my game resize as user resizes window or if the orientation is switched (on phone). I tried hooking into $(window).resize but it kept complaning that 'game' is undefined. I'm using TypeScript for my game. Any help would be greatly appreciated!