0.8.15Bug Fixed

This commit is contained in:
MrZ_26
2020-04-02 22:50:10 +08:00
parent 4652be7067
commit e88553bc00
42 changed files with 410 additions and 327 deletions

View File

@@ -91,8 +91,8 @@ local TRS={
[02]={{0,0},{-1,0}, {1,0}, {0,-1}, {0,1} },
[20]={{0,0},{1,0}, {-1,0}, {0,1}, {0,-1} },
[13]={{0,0},{0,-1}, {-1,0}, {1,0}, {0,1} },
[31]={{0,0},{1,0}, {-1,0}},
}
[31]={{0,0},{0,-1}, {1,0}, {-1,0}, {0,1} },
}--I
}for i=1,7 do collect(TRS[i])end
local AIRS={
[1]={

View File

@@ -1,13 +1,12 @@
--LIGHT MODULE(Optimized by MrZ,Original on github/love2d community/simple-love-lights)
--Heavily based on mattdesl's libGDX implementation:
--https://github.com/mattdesl/lwjgl-basics/wiki/2D-Pixel-Perfect-Shadows
--Private--
local gc=love.graphics
local C=gc.clear
local shadowMapShader=gc.newShader("shader/shadowMap.cs")--Shader for caculating the 1D shadow map.
local lightRenderShader=gc.newShader("shader/lightRender.cs")--Shader for rendering blurred lights and shadows.
Lights={}--Lightsource objects
local Lights=Lights
--Private--
local Lights={}--Lightsource objects
local function move(L,x,y)
L.x,L.y=x,y
end
@@ -51,18 +50,18 @@ local function draw(L)
--复位
end
--Public--
function drawLight()
function Lights.draw()
for i=1,#Lights do
Lights[i]:draw()
end
end
function clearLight(L)
for i=1,#Lights do
function Lights.clear(L)
for i=#Lights,1,-1 do
Lights[i]:destroy()
Lights[i]=nil
end
end
function addLight(x,y,R,F)
function Lights.add(x,y,R,F)
local id=#Lights+1
Lights[id]={
id=id,
@@ -77,4 +76,5 @@ function addLight(x,y,R,F)
draw=draw,
destroy=destroy,
}
end
end
return Lights

View File

@@ -75,7 +75,7 @@ voiceList={
mini={"mini_1","mini_2","mini_3"},
b2b={"b2b_1","b2b_2","b2b_3"},
b3b={"b3b_1","b3b_2"},
pc={"perfectclear_1","perfectclear_2"},
pc={"clear_1","clear_2"},
win={"win_1","win_2","win_3","win_4","win_5","win_6","win_6","win_7"},
lose={"lose_1","lose_2","lose_3"},
bye={"bye_1","bye_2"},

View File

@@ -17,7 +17,7 @@ SFX.list={
"clear_1","clear_2","clear_3","clear_4",
"spin_0","spin_1","spin_2","spin_3",
"emit","blip_1","blip_2",
"perfectclear",
"clear",
"error",
--Mono sfxs

View File

@@ -51,9 +51,9 @@ function space.draw()
if not stars[1]then return end
gc.translate(-50,-50)
gc.setLineWidth(7)
gc.setColor(planet.R,planet.G,planet.B,.1626)
gc.setColor(planet.R,planet.G,planet.B,.026)
gc.circle("line",planet.x,planet.y,planet.r+1)
gc.setColor(planet.R,.6,planet.B,.26)
gc.setColor(planet.R,.6,planet.B,.0626)
gc.circle("fill",planet.x,planet.y,planet.r)
gc.setColor(.9,.9,.9)
for i=1,2600,5 do