Releases: Legacy-LuaSTG-Engine/LuaSTG-Sub
Releases · Legacy-LuaSTG-Engine/LuaSTG-Sub
LuaSTG Sub v0.15.8-beta
更新日志:
- 重写:
lfs
库,但是注意lfs
库已经处于**“过时、不推荐、弃用”**的状态,应该避免使用 - 修改:
lfs
库支持 UTF8,砍掉大多数不适合游戏引擎的功能,只保留lfs.mkdir
、lfs.rmdir
、lfs.dir
、lfs.currentdir
、lfs.chdir
以及功能有限的lfs.attributes
- 修改:
lfs.attributes
只能获取mode
和size
信息,其中mode
只剩下"file"
、"directory"
、"other"
三种类型 - 修复(v0.15.7):进入了独占全屏,但是没完全进入
- 新增(v0.15.6):函数
lstg.GetVersionNumber():number, number, number
用于获取引擎 major、minor、patch 版本号,比如 0, 10, 0 代表 0.10.0 - 新增(v0.15.6):函数
lstg.GetVersionName():string
用于获取引擎友好版本名称,比如 "LuaSTG Sub v0.10.0-beta" - 新增(v0.15.6):
lstg.Input
库,包含lstg.Input.Keyboard
和lstg.Input.Mouse
静态对象,提供获取输入状态的方法和按键码常量(请查看 doc 文件夹内的 API 文档) - 重写(v0.15.6):帧率(FPS)限速器,重写后应该能让游戏帧率更稳定(?有待测试)
Changes:
- Rewrite:
lfs
library, but note that thelfs
library is already in an "obsolete, not recommended, deprecated" state and should be avoided - Change:
lfs
supports UTF8 now, cutting out most features not suitable for game engines, keep onlylfs.mkdir
,lfs.rmdir
,lfs.dir
,lfs.currentdir
,lfs.chdir
and limited functionalitylfs.attributes
- Change:
lfs.attributes
can only getmode
andsize
info, andmode
only has three types:"file"
,"directory"
,"other"
- Fix (v0.15.7): not fully entering exclusive fullscreen
- Add (v0.15.6): new function
lstg.GetVersionNumber():number, number, number
used to get version number major, minor, patch of game engine, for example 0, 10, 0 represent 0.10.0 - Add (v0.15.6): new function
lstg.GetVersionName():string
used to get the engine friendly version name, for example "LuaSTG Sub v0.10.0-beta" - Add (v0.15.6):
lstg.Input
library, includelstg.Input.Keyboard
andlstg.Input.Mouse
static instance, provides key code constants and methods for obtaining input status (see API documentation in the doc folder) - Rewrite (v0.15.6): frame rate (FPS) limiter, should make the game frame rate more stable after rewriting (? need to be tested)
LuaSTG Sub v0.15.4-beta
更新日志:
- 新增:命令行参数
--log-window
开启引擎日志窗口 - 新增:命令行参数
--log-window-wait
让引擎日志窗口在程序退出后不会立即关闭 - 修复:模型加载错误
- 新增(v0.15.3):引擎日志窗口(目前似乎只能在 Windows 10 上正常显示,Windows 7 命令行似乎不支持 UTF8,会乱码)
- 修改(v0.15.2):替换 DirectInput 键鼠输入为窗口消息输入(因为微软官方文档标记 DirectInput 键鼠输入为弃用且不推荐)
- 修改(v0.15.1):函数重载
lstg.SetImageScale(img:string, scale:number)
- 修改(v0.15.1):函数重载
lstg.GetImageScale(img:string):number
- 新增(v0.15.1):函数
lstg.SetAnimationScale(ani:string, scale:number)
- 新增(v0.15.1):函数
lstg.GetAnimationScale(ani:string):number
Changes:
- Add: command line argument
--log-window
, enable engine log window - Add: command line argument
--log-window-wait
, do not close the engine log window immediately after closing the program - Fixed: loading model error
- Add (v0.15.3): engine log window (may only work properly on windows10, on windows 7 utf-8 encoding may not supported and its encoding is broken)
- Change (v0.15.2): replace DirectInput keyboard and mouse input with window messages (because Microsoft official documentation marks it as deprecated and not recommended)
- Change (v0.15.1): new function overloading
lstg.SetImageScale(img:string, scale:number)
- Change (v0.15.1): new function overloading
lstg.GetImageScale(img:string):number
- Add (v0.15.1): new function
lstg.SetAnimationScale(ani:string, scale:number)
- Add (v0.15.1): new function
lstg.GetAnimationScale(ani:string):number
LuaSTG Sub v0.15.0-beta
更新内容:
- 支持简易的模型渲染,支持加载 glTF 2.0 模型
- 重新添加:lstg.LoadModel
- 重新添加:lstg.RenderModel
changes:
- support simple model rendering, support loading glTF 2.0 models
- re-add: lstg.LoadModel
- re-add: lstg.RenderModel
LuaSTG Sub v0.14.1-beta
- fixed: repeatedly interrupting and playing the same sound effect many times in the same frame will cause the sound effect to play incorrectly (no sound)
LuaSTG Sub v0.14.0-beta
doc readme