Skip to content

Commit 631f938

Browse files
committed
Update screen snippets
1 parent eb1f42f commit 631f938

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/displaymode/fitscreen/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
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
}
@@ -15,6 +16,7 @@
1516
justify-content: center;
1617
align-items: center;
1718
}
19+
/* end-snippet{displaymode.fitscreen.css} */
1820
</style>
1921
</head>
2022
<body>

src/fullscreen/main.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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}
1719
document.getElementById('go-fullscreen')!.addEventListener('click', () => {
1820
game.screen.goFullScreen();
1921
});
22+
// end-snippet{fullscreen}

0 commit comments

Comments
 (0)