From 6f1ba85869a6de1cfd6e71e01684faafc9aefbb0 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Fri, 13 Aug 2021 01:48:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E5=88=AB=E8=B8=A9?= =?UTF-8?q?=E7=99=BD=E5=9D=97=E4=BD=BF=E7=94=A8stencil=E9=98=B2=E6=AD=A2?= =?UTF-8?q?=E6=A0=BC=E5=AD=90=E7=94=BB=E5=88=B0=E7=89=88=E9=9D=A2=E5=A4=96?= =?UTF-8?q?=E9=9D=A2=E5=8E=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/app_dtw.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/parts/scenes/app_dtw.lua b/parts/scenes/app_dtw.lua index 0507d060..699d109b 100644 --- a/parts/scenes/app_dtw.lua +++ b/parts/scenes/app_dtw.lua @@ -292,6 +292,7 @@ function scene.update() end end +local function boardStencil()gc.rectangle('fill',300,0,680,720)end function scene.draw() setFont(50) if arcade then @@ -325,6 +326,8 @@ function scene.draw() end --Draw tiles + gc.stencil(boardStencil) + gc.setStencilTest('equal',1) gc.rectangle('fill',300,0,680,720) gc.setColor(COLOR[tileColor]) gc.push('transform') @@ -337,7 +340,7 @@ function scene.draw() end end gc.pop() - + gc.setStencilTest() --Draw track line gc.setColor(COLOR.D) gc.setLineWidth(2)