File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 66 < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
77 < title > DisplayMode.FitScreen Snippet</ title >
88 < style >
9+ /* start-snippet{displaymode.fitscreen.css} */
910 html , body {
1011 height : 100% ;
1112 }
1516 justify-content : center;
1617 align-items : center;
1718 }
19+ /* end-snippet{displaymode.fitscreen.css} */
1820 </ style >
1921</ head >
2022< body >
Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ game.start(loader).then(() => {
1414 actor . graphics . use ( playerImage . toSprite ( ) ) ;
1515 game . currentScene . add ( actor ) ;
1616} ) ;
17+
18+ // start-snippet{fullscreen}
1719document . getElementById ( 'go-fullscreen' ) ! . addEventListener ( 'click' , ( ) => {
1820 game . screen . goFullScreen ( ) ;
1921} ) ;
22+ // end-snippet{fullscreen}
You can’t perform that action at this time.
0 commit comments