Skip to content

Instantly share code, notes, and snippets.

View spice-ama's full-sized avatar

amn spice-ama

View GitHub Profile
@spice-ama
spice-ama / README.md
Created April 4, 2024 11:47 — forked from sfpgmr/README.md
three.js - ウィンドウサイズに合わせてゲーム画面を変更する。

スクリーンサイズに合わせてゲーム画面を変更する

  • three.jsでスクリーンサイズに合わせてゲーム画面サイズを変更する
  • ゲーム画面はW 192 × H 256の昔のレトロのピクセル数
  • ゲーム画面を保ったまま、スクリーンサイズにフィットさせる