整理场地晃动相关代码

This commit is contained in:
MrZ626
2021-08-21 01:56:29 +08:00
parent 02c4655f0d
commit 961cf347da
4 changed files with 21 additions and 16 deletions

View File

@@ -80,9 +80,14 @@ local function applyField(P)
--Apply fieldOffset
local O=P.fieldOff
gc_translate(O.x+150+150,O.y+300)
gc_rotate(O.a)
gc_translate(-150,-300)
if P.gameEnv.shakeFX then
local k=P.gameEnv.shakeFX
gc_translate(O.x*k+150+150,O.y*k+300)
gc_rotate(O.a*k)
gc_translate(-150,-300)
else
gc_translate(150,0)
end
--Apply stencil
gc_stencil(stencilBoard)