Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Gosu で高 DPI モードを有効にするにはどうすればよいですか? また、DPIに座標を掛けるにはどうすればよいですか?
現在、Gosu には DPI ヘルパーは含まれていません。そうすべきだと思われる場合は、GitHub の問題を提出してください。
ゲームを HiDPI 画面で見栄えよくする最も簡単な方法は、@2x スケール (画面の DPI に関係なく) ですべてを描画しWindow#draw、scale(0.5, 0.5) do <drawing code here> end.
Window#draw
scale(0.5, 0.5) do <drawing code here> end