Skip to content

Commit

Permalink
一处小优化
Browse files Browse the repository at this point in the history
框架跟进
  • Loading branch information
MrZ626 committed Nov 29, 2024
1 parent f062682 commit 5f5796f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Zenitha
Submodule Zenitha updated 1 files
+3 −0 scene/test.lua
4 changes: 3 additions & 1 deletion assets/game/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -471,9 +471,11 @@ function GAME.update(dt)
end
end

local _canvasSetting={stencil=true}
function GAME.render()
if not GAME.playerList then return end
gc.setCanvas({ZENITHA.getBigCanvas('player'),stencil=true})
_canvasSetting[1]=ZENITHA.getBigCanvas('player')
gc.setCanvas(_canvasSetting)
gc.replaceTransform(SCR.xOy_m)
gc.applyTransform(GAME.camera.transform)
gc.clear(0,0,0,0)
Expand Down

0 comments on commit 5f5796f

Please sign in to comment.