ltpitt Posted May 3, 2017 Share Posted May 3, 2017 Hi all! I've tried to mix and match between two very basic phaser tutorials about playing a video and putting game fullscreen. My results are not what I expected:http://www.davidenastri.it/savatop/phaser.html Can you please suggest me a tutorial that can let me understand how to make my video fill its container? Thanks for your time and kind help Link to comment Share on other sites More sharing options...
samme Posted May 3, 2017 Share Posted May 3, 2017 Probably you'll want to use fullScreenScaleMode SHOW_ALL instead of EXACT_FIT, to avoid stretching. The video display itself needs to be scaled to fit the game canvas: videoImage = video.addToWorld(); var videoScale = Math.min(game.width / video.width, game.height / video.height); videoImage.scale.set(videoScale); Link to comment Share on other sites More sharing options...
Recommended Posts