Legacy-LuaSTG-Engine / LuaSTG-Sub

LuaSTG Sub, a modern version of the LuaSTG engine. LuaSTG Sub,现代化的 LuaSTG 引擎分支。
MIT License
35 stars 7 forks source link

[Display] 添加固定设计/渲染分辨率的画布模式,避免繁琐的渲染分辨率处理 #9

Closed Demonese closed 1 year ago

Demonese commented 2 years ago

固定设计/渲染分辨率的画布模式其实在很多 2D 游戏(比如 galgame)和弹幕风中都有使用,其特征为,画布大小固定,渲染分辨率固定,且对平台相关的窗口大小、显示设置等无感知,也与它们无关。

由于该改动过于巨大,可能会涉及引擎大量组件的更改和 Lua API 的巨大变动,计划开一个新分支用来实现该特性。

设计上:

进度:

Demonese commented 1 year ago

[Feature] Add a canvas mode with fixed design/rendering resolution to avoid complex rendering resolution setup

The canvas mode with fixed design/rendering resolution is actually used in many 2D games (such as galgame) and dnh engine. Its characteristic is that the canvas size is fixed and the rendering resolution is fixed. It is not aware of, and has nothing to do with, platform-dependent window sizes, display settings, etc.

Since the change is too large, it may involve changes in a large number of engine components and a huge change in the Lua API. It is planned to create a new branch to implement this feature.

Design:

Progress: