有效窗口尺寸定义在SCR内而不是直接硬写进代码
This commit is contained in:
3
main.lua
3
main.lua
@@ -30,13 +30,14 @@ love.keyboard.setTextInput(false)
|
||||
love.mouse.setVisible(false)
|
||||
|
||||
SCR={
|
||||
w0=1280,h0=720,--Default Screen Size
|
||||
x=0,y=0,--Up-left Coord on screen
|
||||
w=0,h=0,--Fullscreen w/h in gc
|
||||
W=0,H=0,--Fullscreen w/h in shader
|
||||
rad=0,--Radius
|
||||
k=1,--Scale size
|
||||
dpi=1--DPI from gc.getDPIScale()
|
||||
}--1280:720-Rect Screen Info
|
||||
}
|
||||
|
||||
customEnv={
|
||||
--Basic
|
||||
|
||||
Reference in New Issue
Block a user