矢量化五连块模式图标

删除五连块和三连块模式图标图片
This commit is contained in:
MrZ_26
2023-09-23 03:56:41 +08:00
parent 43aecd2467
commit 5a30e4aec9
3 changed files with 12 additions and 19 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 801 B

View File

@@ -99,25 +99,18 @@ local loadingThread=coroutine.wrap(function()
{'fRect',080,096,16,16}, {'fRect',080,096,16,16},
{'fRect',064,112,16,16}, {'fRect',064,112,16,16},
} }
do modeIcons.sprint_pento=GC.DO{256,256,
local pento_polygon = {0,0, 32,0, 32,32, 96,32, 96,64, 64,64, 64,96, 32,96, 32,64, 0,64} {'scale',2.8},
local pento_tris = love.math.triangulate(pento_polygon) {'move',-10,-5},
local draw_pentomino_table = {} {'rotate',-.26},
for i=1, #pento_tris do {'setFT',100},
table.insert(draw_pentomino_table,{'fPoly',unpack(pento_tris[i])}) {'print',CHAR.mino.F},
end }
modeIcons.sprint_pento=GC.DO{128,128,
{'move',6,64},
{'rotate',7*math.pi/4}, -- 45 degrees
unpack(draw_pentomino_table),
}
end
modeIcons.sprint_tri=GC.DO{256,256, modeIcons.sprint_tri=GC.DO{256,256,
{'rotate',math.pi/12}, -- 15 degrees {'move',72,20},
{'move',56,-20}, {'rotate',.26},
{'fRect',0,100,200,100}, {'fRect',0,80,160,80},
{'fRect',100,0,100,100} {'fRect',80,0,80,80}
} }
modeIcons.ultra=GC.DO{128,128, modeIcons.ultra=GC.DO{128,128,
{'setLW',12}, {'setLW',12},
@@ -137,7 +130,7 @@ local loadingThread=coroutine.wrap(function()
{'dRect',20,80,20,20}, {'dRect',20,80,20,20},
{'dRect',40,80,20,20}, {'dRect',40,80,20,20},
{'dRect',20,60,20,20}, {'dRect',20,60,20,20},
{'setCL',1,1,1,.5}, {'setCL',1,1,1,.5},
-- Draw grid -- Draw grid
{'fRect',15,20,8,2},{'fRect',35,20,8,2},{'fRect',55,20,8,2},{'fRect',75,20,8,2}, {'fRect',15,20,8,2},{'fRect',35,20,8,2},{'fRect',55,20,8,2},{'fRect',75,20,8,2},