修复连连看小游戏背景区域范围错误
This commit is contained in:
@@ -297,12 +297,13 @@ function scene.draw()
|
|||||||
gc.push('transform')
|
gc.push('transform')
|
||||||
-- Camera
|
-- Camera
|
||||||
gc.translate(field.x,field.y)
|
gc.translate(field.x,field.y)
|
||||||
gc.scale(field.w/field.c,field.h/field.r)
|
|
||||||
|
|
||||||
-- Background
|
-- Background
|
||||||
gc.setColor(COLOR.dX)
|
gc.setColor(COLOR.dX)
|
||||||
gc.rectangle('fill',0,0,field.w,field.h)
|
gc.rectangle('fill',0,0,field.w,field.h)
|
||||||
|
|
||||||
|
gc.scale(field.w/field.c,field.h/field.r)
|
||||||
|
|
||||||
-- Matrix
|
-- Matrix
|
||||||
local mono=state==0 or invis and not field.full
|
local mono=state==0 or invis and not field.full
|
||||||
if mono then
|
if mono then
|
||||||
|
|||||||
Reference in New Issue
Block a user