breakout-custom/app/views/game.scala.html
2024-09-01 13:58:10 -04:00

17 lines
No EOL
587 B
HTML

@()
@main("Arkanoid Game") {
<div id="gameContainer" style="display: none;text-align:center; justify-content: center; align-items: center;">
<canvas id="gameCanvas" width="540" height="675"></canvas>
</div>
<script src="@routes.Assets.versioned("javascripts/device-detection.js")"></script>
<script>
if (!isMobileDevice()) {
var script = document.createElement('script');
script.src = '@routes.Assets.versioned("javascripts/game.js")';
document.body.appendChild(script);
}
</script>
}