- three.jsでスクリーンサイズに合わせてゲーム画面サイズを変更する
- ゲーム画面はW 192 × H 256の昔のレトロのピクセル数
- ゲーム画面を保ったまま、スクリーンサイズにフィットさせる
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html lang="ja"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | |
| <title>MathJax v4 フォント表示サンプル(Euler用パス修正・enclose対応)</title> | |
| <style> | |
| :root { --bg:#f3f4f6; --card:#fff; } | |
| body { margin:0; padding:2rem clamp(1.5rem,3vw,3.5rem); background:var(--bg); font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; } | |
| h1 { font-size:clamp(1.5rem,3vw,2.25rem); margin-bottom:1rem; } |