3D方块效果
This commit is contained in:
@@ -277,6 +277,7 @@ SETTING={--Settings
|
|||||||
--Graphic
|
--Graphic
|
||||||
block=true,ghost=.3,center=1,
|
block=true,ghost=.3,center=1,
|
||||||
smooth=true,grid=.16,
|
smooth=true,grid=.16,
|
||||||
|
upEdge=true,
|
||||||
bagLine=false,
|
bagLine=false,
|
||||||
lockFX=2,
|
lockFX=2,
|
||||||
dropFX=2,
|
dropFX=2,
|
||||||
|
|||||||
@@ -277,6 +277,7 @@ return{
|
|||||||
|
|
||||||
smooth="Smooth Drop",
|
smooth="Smooth Drop",
|
||||||
grid="Grid",
|
grid="Grid",
|
||||||
|
upEdge="3D Block",
|
||||||
bagLine="Bag Line",
|
bagLine="Bag Line",
|
||||||
|
|
||||||
lockFX="Lock FX Level",
|
lockFX="Lock FX Level",
|
||||||
@@ -413,6 +414,7 @@ return{
|
|||||||
block="Draw Block",
|
block="Draw Block",
|
||||||
ghost="Ghost",
|
ghost="Ghost",
|
||||||
center="Center",
|
center="Center",
|
||||||
|
upEdge="3D Block",
|
||||||
bagLine="Bag Line",
|
bagLine="Bag Line",
|
||||||
highCam="Birds-eye View",
|
highCam="Birds-eye View",
|
||||||
nextPos="Next Preview",
|
nextPos="Next Preview",
|
||||||
|
|||||||
@@ -253,6 +253,7 @@ return{
|
|||||||
|
|
||||||
block="Dessiner le bloc",
|
block="Dessiner le bloc",
|
||||||
smooth="Chute fluide",
|
smooth="Chute fluide",
|
||||||
|
upEdge="3D bloc",
|
||||||
bagLine="Ligne du Sac",
|
bagLine="Ligne du Sac",
|
||||||
|
|
||||||
ghost="Pièce fantôme",
|
ghost="Pièce fantôme",
|
||||||
@@ -393,6 +394,7 @@ return{
|
|||||||
block="Dessiner le bloc",
|
block="Dessiner le bloc",
|
||||||
ghost="Pièce fantôme",
|
ghost="Pièce fantôme",
|
||||||
center="Centre",
|
center="Centre",
|
||||||
|
upEdge="3D bloc",
|
||||||
bagLine="Ligne du Sac",
|
bagLine="Ligne du Sac",
|
||||||
highCam="Vue d'oiseau",
|
highCam="Vue d'oiseau",
|
||||||
nextPos="Prévisualisation de position",
|
nextPos="Prévisualisation de position",
|
||||||
|
|||||||
@@ -276,6 +276,7 @@ return{
|
|||||||
|
|
||||||
smooth="Queda suave",
|
smooth="Queda suave",
|
||||||
grid="Rede",
|
grid="Rede",
|
||||||
|
upEdge="3D bloco",
|
||||||
bagLine="Linha da bolsa",
|
bagLine="Linha da bolsa",
|
||||||
|
|
||||||
lockFX="Nível FX Trava",
|
lockFX="Nível FX Trava",
|
||||||
@@ -412,6 +413,7 @@ return{
|
|||||||
block="Mostrar bloco",
|
block="Mostrar bloco",
|
||||||
ghost="Fantasma",
|
ghost="Fantasma",
|
||||||
center="Centro",
|
center="Centro",
|
||||||
|
upEdge="3D bloco",
|
||||||
bagLine="Linha De Bolsa",
|
bagLine="Linha De Bolsa",
|
||||||
highCam="Vista Olho-De-Pássaro",
|
highCam="Vista Olho-De-Pássaro",
|
||||||
nextPos="Próxima pos.",
|
nextPos="Próxima pos.",
|
||||||
|
|||||||
@@ -253,6 +253,7 @@ return{
|
|||||||
|
|
||||||
block="Dibujar Bloques",
|
block="Dibujar Bloques",
|
||||||
smooth="Caída Fluida",
|
smooth="Caída Fluida",
|
||||||
|
upEdge="3D Bloques",
|
||||||
bagLine="Línea de Bag de Pzas.",
|
bagLine="Línea de Bag de Pzas.",
|
||||||
|
|
||||||
ghost="Fantasma",
|
ghost="Fantasma",
|
||||||
@@ -389,6 +390,7 @@ return{
|
|||||||
block="Dibujar Bloques",
|
block="Dibujar Bloques",
|
||||||
ghost="Fantasma",
|
ghost="Fantasma",
|
||||||
center="Centrar",
|
center="Centrar",
|
||||||
|
upEdge="3D Bloques",
|
||||||
bagLine="Línea de Bag de Pzas.",
|
bagLine="Línea de Bag de Pzas.",
|
||||||
highCam="Vista Aérea",
|
highCam="Vista Aérea",
|
||||||
nextPos="Nro. de Pzas. Siguientes",
|
nextPos="Nro. de Pzas. Siguientes",
|
||||||
|
|||||||
@@ -145,6 +145,7 @@ return{
|
|||||||
|
|
||||||
block="==↓==",
|
block="==↓==",
|
||||||
smooth="~~↓~~",
|
smooth="~~↓~~",
|
||||||
|
upEdge="[]`",
|
||||||
bagLine="123|123",
|
bagLine="123|123",
|
||||||
|
|
||||||
ghost="__↓__",
|
ghost="__↓__",
|
||||||
@@ -282,6 +283,7 @@ return{
|
|||||||
block="==↓==",
|
block="==↓==",
|
||||||
ghost="__↓__",
|
ghost="__↓__",
|
||||||
center="+",
|
center="+",
|
||||||
|
upEdge="[]`",
|
||||||
bagLine="123|123",
|
bagLine="123|123",
|
||||||
highCam="↑__↑",
|
highCam="↑__↑",
|
||||||
nextPos="???←",
|
nextPos="???←",
|
||||||
|
|||||||
@@ -274,6 +274,7 @@ return{
|
|||||||
|
|
||||||
block="方块可见",
|
block="方块可见",
|
||||||
smooth="平滑下落",
|
smooth="平滑下落",
|
||||||
|
upEdge="3D方块",
|
||||||
bagLine="包分界线",
|
bagLine="包分界线",
|
||||||
|
|
||||||
ghost="阴影透明度",
|
ghost="阴影透明度",
|
||||||
@@ -413,6 +414,7 @@ return{
|
|||||||
block="方块可见",
|
block="方块可见",
|
||||||
ghost="阴影透明度",
|
ghost="阴影透明度",
|
||||||
center="中心透明度",
|
center="中心透明度",
|
||||||
|
upEdge="3D方块",
|
||||||
bagLine="包分界线",
|
bagLine="包分界线",
|
||||||
highCam="超屏视野",
|
highCam="超屏视野",
|
||||||
nextPos="生成预览",
|
nextPos="生成预览",
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ end
|
|||||||
local function drawField(P)
|
local function drawField(P)
|
||||||
local V,F=P.visTime,P.field
|
local V,F=P.visTime,P.field
|
||||||
local start=int((P.fieldBeneath+P.fieldUp)/30+1)
|
local start=int((P.fieldBeneath+P.fieldUp)/30+1)
|
||||||
|
local edge=P.gameEnv.upEdge
|
||||||
local rep=GAME.replaying
|
local rep=GAME.replaying
|
||||||
local texture=SKIN.curText
|
local texture=SKIN.curText
|
||||||
if P.falling==-1 then--Blocks only
|
if P.falling==-1 then--Blocks only
|
||||||
@@ -42,8 +43,13 @@ local function drawField(P)
|
|||||||
for i=1,10 do
|
for i=1,10 do
|
||||||
if F[j][i]>0 then
|
if F[j][i]>0 then
|
||||||
if V[j][i]>0 then
|
if V[j][i]>0 then
|
||||||
gc_setColor(1,1,1,min(V[j][i]*.05,1))
|
gc_setColor(1,1,1,V[j][i]*.05)
|
||||||
gc_draw(texture[F[j][i]],30*i-30,-30*j)-- drawCell(j,i,F[j][i])
|
gc_draw(texture[F[j][i]],30*i-30,-30*j)-- drawCell(j,i,F[j][i])
|
||||||
|
if edge and(not F[j+1]or F[j+1][i]<=0)then
|
||||||
|
local r,g,b=unpack(SKIN.libColor[F[j][i]])
|
||||||
|
gc_setColor((r+2)/3,(g+2)/3,(b+2)/3,V[j][i]*.05)
|
||||||
|
gc_rectangle("fill",30*i-30,-30*j,30,-4)
|
||||||
|
end
|
||||||
elseif rep then
|
elseif rep then
|
||||||
gc_setColor(1,1,1,.3+.08*sin(.5*(j-i)+t))
|
gc_setColor(1,1,1,.3+.08*sin(.5*(j-i)+t))
|
||||||
gc_rectangle("fill",30*i-30,-30*j,30,30)
|
gc_rectangle("fill",30*i-30,-30*j,30,30)
|
||||||
@@ -67,8 +73,13 @@ local function drawField(P)
|
|||||||
for i=1,10 do
|
for i=1,10 do
|
||||||
if F[j][i]>0 then
|
if F[j][i]>0 then
|
||||||
if V[j][i]>0 then
|
if V[j][i]>0 then
|
||||||
gc_setColor(1,1,1,min(V[j][i]*.05,1))
|
gc_setColor(1,1,1,V[j][i]*.05)
|
||||||
gc_draw(texture[F[j][i]],30*i-30,-30*j)-- drawCell(j,i,F[j][i])
|
gc_draw(texture[F[j][i]],30*i-30,-30*j)-- drawCell(j,i,F[j][i])
|
||||||
|
if edge and(not F[j+1]or F[j+1][i]<=0)then
|
||||||
|
local r,g,b=unpack(SKIN.libColor[F[j][i]])
|
||||||
|
gc_setColor((r+2)/3,(g+2)/3,(b+2)/3,V[j][i]*.05)
|
||||||
|
gc_rectangle("fill",30*i-30,-30*j,30,-4)
|
||||||
|
end
|
||||||
elseif rep then
|
elseif rep then
|
||||||
gc_setColor(1,1,1,.2)
|
gc_setColor(1,1,1,.2)
|
||||||
gc_rectangle("fill",30*i-30,-30*j,30,30)
|
gc_rectangle("fill",30*i-30,-30*j,30,30)
|
||||||
|
|||||||
@@ -11,7 +11,8 @@ return{
|
|||||||
|
|
||||||
ghost=.3,center=1,
|
ghost=.3,center=1,
|
||||||
smooth=false,grid=.16,
|
smooth=false,grid=.16,
|
||||||
bagLine=false,
|
upEdge=true,
|
||||||
|
bagLine=true,
|
||||||
text=true,
|
text=true,
|
||||||
score=true,
|
score=true,
|
||||||
lockFX=2,
|
lockFX=2,
|
||||||
|
|||||||
@@ -13,22 +13,23 @@ scene.widgetList={
|
|||||||
WIDGET.newButton{name="sound", x=200, y=80,w=240,h=80,color="lCyan",font=35,code=swapScene"setting_sound","swipeR"},
|
WIDGET.newButton{name="sound", x=200, y=80,w=240,h=80,color="lCyan",font=35,code=swapScene"setting_sound","swipeR"},
|
||||||
WIDGET.newButton{name="game", x=1080, y=80,w=240,h=80,color="lCyan",font=35,code=swapScene"setting_game","swipeL"},
|
WIDGET.newButton{name="game", x=1080, y=80,w=240,h=80,color="lCyan",font=35,code=swapScene"setting_game","swipeL"},
|
||||||
|
|
||||||
WIDGET.newSwitch{name="block", x=340, y=180, disp=lnk_SETval("block"), code=lnk_SETrev("block")},
|
WIDGET.newSwitch{name="block", x=340, y=150, disp=lnk_SETval("block"), code=lnk_SETrev("block")},
|
||||||
WIDGET.newSwitch{name="smooth", x=340, y=240, disp=lnk_SETval("smooth"), code=lnk_SETrev("smooth")},
|
WIDGET.newSwitch{name="smooth", x=340, y=210, disp=lnk_SETval("smooth"), code=lnk_SETrev("smooth")},
|
||||||
WIDGET.newSwitch{name="bagLine", x=340, y=300, disp=lnk_SETval("bagLine"), code=lnk_SETrev("bagLine")},
|
WIDGET.newSwitch{name="upEdge", x=340, y=270, disp=lnk_SETval("upEdge"), code=lnk_SETrev("upEdge")},
|
||||||
|
WIDGET.newSwitch{name="bagLine", x=340, y=330, disp=lnk_SETval("bagLine"), code=lnk_SETrev("bagLine")},
|
||||||
|
|
||||||
WIDGET.newSlider{name="ghost", x=630, y=180,w=200,unit=.6,disp=lnk_SETval("ghost"),show="percent", code=lnk_SETsto("ghost")},
|
WIDGET.newSlider{name="ghost", x=630, y=180,w=200,unit=.6,disp=lnk_SETval("ghost"),show="percent",code=lnk_SETsto("ghost")},
|
||||||
WIDGET.newSlider{name="grid", x=630, y=240,w=200,unit=.4,disp=lnk_SETval("grid"),show="percent", code=lnk_SETsto("grid")},
|
WIDGET.newSlider{name="grid", x=630, y=240,w=200,unit=.4,disp=lnk_SETval("grid"),show="percent", code=lnk_SETsto("grid")},
|
||||||
WIDGET.newSlider{name="center", x=630, y=300,w=200,unit=1, disp=lnk_SETval("center"), code=lnk_SETsto("center")},
|
WIDGET.newSlider{name="center", x=630, y=300,w=200,unit=1, disp=lnk_SETval("center"), code=lnk_SETsto("center")},
|
||||||
|
|
||||||
WIDGET.newSlider{name="lockFX", x=350, y=365,w=373,unit=5, disp=lnk_SETval("lockFX"), code=lnk_SETsto("lockFX")},
|
WIDGET.newSlider{name="lockFX", x=350, y=375,w=373,unit=5, disp=lnk_SETval("lockFX"), code=lnk_SETsto("lockFX")},
|
||||||
WIDGET.newSlider{name="dropFX", x=350, y=410,w=373,unit=5, disp=lnk_SETval("dropFX"), code=lnk_SETsto("dropFX")},
|
WIDGET.newSlider{name="dropFX", x=350, y=420,w=373,unit=5, disp=lnk_SETval("dropFX"), code=lnk_SETsto("dropFX")},
|
||||||
WIDGET.newSlider{name="moveFX", x=350, y=455,w=373,unit=5, disp=lnk_SETval("moveFX"), code=lnk_SETsto("moveFX")},
|
WIDGET.newSlider{name="moveFX", x=350, y=465,w=373,unit=5, disp=lnk_SETval("moveFX"), code=lnk_SETsto("moveFX")},
|
||||||
WIDGET.newSlider{name="clearFX", x=350, y=500,w=373,unit=5, disp=lnk_SETval("clearFX"), code=lnk_SETsto("clearFX")},
|
WIDGET.newSlider{name="clearFX", x=350, y=510,w=373,unit=5, disp=lnk_SETval("clearFX"), code=lnk_SETsto("clearFX")},
|
||||||
WIDGET.newSlider{name="splashFX", x=350, y=545,w=373,unit=5, disp=lnk_SETval("splashFX"), code=lnk_SETsto("splashFX")},
|
WIDGET.newSlider{name="splashFX", x=350, y=555,w=373,unit=5, disp=lnk_SETval("splashFX"),code=lnk_SETsto("splashFX")},
|
||||||
WIDGET.newSlider{name="shakeFX", x=350, y=590,w=373,unit=5, disp=lnk_SETval("shakeFX"), code=lnk_SETsto("shakeFX")},
|
WIDGET.newSlider{name="shakeFX", x=350, y=600,w=373,unit=5, disp=lnk_SETval("shakeFX"), code=lnk_SETsto("shakeFX")},
|
||||||
WIDGET.newSlider{name="atkFX", x=350, y=635,w=373,unit=5, disp=lnk_SETval("atkFX"), code=lnk_SETsto("atkFX")},
|
WIDGET.newSlider{name="atkFX", x=350, y=645,w=373,unit=5, disp=lnk_SETval("atkFX"), code=lnk_SETsto("atkFX")},
|
||||||
WIDGET.newSlider{name="frame", x=350, y=680,w=373,unit=10,
|
WIDGET.newSlider{name="frame", x=350, y=690,w=373,unit=10,
|
||||||
disp=function()
|
disp=function()
|
||||||
return SETTING.frameMul>35 and SETTING.frameMul/10 or SETTING.frameMul/5-4
|
return SETTING.frameMul>35 and SETTING.frameMul/10 or SETTING.frameMul/5-4
|
||||||
end,
|
end,
|
||||||
|
|||||||
Reference in New Issue
Block a user