y ) ĬurrentLevel - >LoadLevel ( 'shipList.xml', imageManager ) y, - 1 ) Ĭamera - >MoveCenter (player - >playerPos. Sf :: Listener :: setPosition (player - >playerPos. LoadPlayer ( 'player.png' ) ) ĬollisionSound = new SoundEffect ( 'knock.wav' ) Player = new Player ( 4 * tileSize, 1 * tileSize, imageManager. Set up the player object, position the camera and listener and create any sound effects needed. Throw 'Could not create camera position text!' y, 1 ) ĬameraPos = new TextOutput ( 'swansea.ttf', 30 ) Set up the camera and associated debug output.Ĭamera = new Camera (videoSize. Throw 'Could not create mouse position text!' MousePos = new TextOutput ( 'swansea.ttf', 30 ) Window = new sf :: RenderWindow (sf :: VideoMode (videoSize. Set up the main window and associated debug output. Memory leak detection with Visual Leak DetectorĮngine :: Engine ( int w, int h, int tileSize )