注释后加空格

联网稍微推进
This commit is contained in:
MrZ_26
2022-10-03 02:43:51 +08:00
parent 06f4bb4e1a
commit f8d17b23b6
121 changed files with 1628 additions and 1622 deletions

View File

@@ -1,4 +1,4 @@
--Cool liquid background
-- Cool liquid background
local back={}
local shader=SHADER.aura
local t

View File

@@ -1,4 +1,4 @@
--Horizonal red-blue gradient
-- Horizonal red-blue gradient
local back={}
local shader=SHADER.grad1

View File

@@ -1,4 +1,4 @@
--Vertical red-green gradient
-- Vertical red-green gradient
local back={}
local shader=SHADER.grad2

View File

@@ -1,4 +1,4 @@
--Large falling tetrominoes
-- Large falling tetrominoes
local gc=love.graphics
local gc_clear=gc.clear
local gc_setColor,gc_draw=gc.setColor,gc.draw

View File

@@ -1,4 +1,4 @@
--blockhole
-- blockhole
local gc=love.graphics
local gc_clear,gc_replaceTransform=gc.clear,gc.replaceTransform
local gc_setColor,gc_setLineWidth=gc.setColor,gc.setLineWidth
@@ -44,14 +44,14 @@ function back.draw()
gc_clear(.1,.1,.1)
gc_replaceTransform(SCR.xOy_m)
--Squares
-- Squares
gc_setColor(1,1,1,.2)
for i=1,#squares do
local S=squares[i]
gc_draw(S.texture,S.d*cos(S.ang),S.d*sin(S.ang),S.rotate,S.size*.026,nil,15,15)
end
--blockhole
-- blockhole
gc_setColor(.07,.07,.07)
gc_circle('fill',0,0,157)
gc_setLineWidth(6)

View File

@@ -1,4 +1,4 @@
--Block rain
-- Block rain
local gc=love.graphics
local rnd=math.random
local ins,rem=table.insert,table.remove

View File

@@ -1,4 +1,4 @@
--Space but tetrominoes
-- Space but tetrominoes
local gc=love.graphics
local gc_clear,gc_translate=gc.clear,gc.translate
local gc_setColor,gc_draw=gc.setColor,gc.draw

View File

@@ -1,4 +1,4 @@
--Flying cubes
-- Flying cubes
local gc=love.graphics
local gc_clear=gc.clear
local gc_setColor,gc_setLineWidth=gc.setColor,gc.setLineWidth

View File

@@ -1,4 +1,4 @@
--Custom background
-- Custom background
local gc_clear,gc_setColor=love.graphics.clear,love.graphics.setColor
local back={}

View File

@@ -1,4 +1,4 @@
--Yuyuko's fan
-- Yuyuko's fan
local gc=love.graphics
local gc_clear,gc_origin,gc_replaceTransform=gc.clear,gc.origin,gc.replaceTransform
local gc_translate=gc.translate

View File

@@ -1,4 +1,4 @@
--Firework
-- Firework
local gc=love.graphics
local gc_clear=gc.clear
local gc_setColor,gc_setLineWidth=gc.setColor,gc.setLineWidth

View File

@@ -1,4 +1,4 @@
--Customizable grey background
-- Customizable grey background
local back={}
local r,g,b=.26,.26,.26
function back.draw()

View File

@@ -1,4 +1,4 @@
--Flash after random time
-- Flash after random time
local back={}
local t

View File

@@ -1,4 +1,4 @@
--Light-dark
-- Light-dark
local sin=math.sin
local back={}

View File

@@ -1,4 +1,4 @@
--A lantern background which is full of festive atmosphere. Lantern image by ScF
-- A lantern background which is full of festive atmosphere. Lantern image by ScF
local int,rnd=math.floor,math.random
local ins,rem=table.insert,table.remove
local mDraw=mDraw

View File

@@ -1,4 +1,4 @@
--Space with stars
-- Space with stars
local back={}
local upCover do

View File

@@ -1,4 +1,4 @@
--Lightning
-- Lightning
local back={}
local t

View File

@@ -1,4 +1,4 @@
--Fast lightning + spining tetromino
-- Fast lightning + spining tetromino
local int,rnd=math.floor,math.random
local back={}

View File

@@ -1,4 +1,4 @@
--Black-White grid
-- Black-White grid
local gc=love.graphics
local gc_clear,gc_scale=gc.clear,gc.scale
local gc_setColor=gc.setColor

View File

@@ -1,4 +1,4 @@
--Colorful RGB
-- Colorful RGB
local back={}
local shader=SHADER.rgb1

View File

@@ -1,4 +1,4 @@
--Blue RGB
-- Blue RGB
local back={}
local shader=SHADER.rgb2

View File

@@ -1,4 +1,4 @@
--Changing pure color
-- Changing pure color
local sin=math.sin
local back={}

View File

@@ -1,4 +1,4 @@
--Snow
-- Snow
local gc=love.graphics
local ellipse=gc.ellipse
local rnd=math.random

View File

@@ -1,4 +1,4 @@
--Space with stars
-- Space with stars
local gc=love.graphics
local rectangle=gc.rectangle
local rnd=math.random
@@ -15,16 +15,16 @@ function back.resize(w,h)
local S=stars
for i=1,1260,5 do
local s=rnd(26,40)*.1
S[i]=s*SCR.k --Size
S[i+1]=rnd(W)-10 --X
S[i+2]=rnd(H)-10 --Y
S[i+3]=(rnd()-.5)*.01*s--Vx
S[i+4]=(rnd()-.5)*.01*s--Vy
S[i]=s*SCR.k -- Size
S[i+1]=rnd(W)-10 -- X
S[i+2]=rnd(H)-10 -- Y
S[i+3]=(rnd()-.5)*.01*s-- Vx
S[i+4]=(rnd()-.5)*.01*s-- Vy
end
end
function back.update(dt)
local S=stars
--Star moving
-- Star moving
for i=1,1260,5 do
S[i+1]=(S[i+1]+S[i+3]*dt*60)%W
S[i+2]=(S[i+2]+S[i+4]*dt*60)%H

View File

@@ -1,4 +1,4 @@
--Cool Tunnel
-- Cool Tunnel
local rnd=math.random
local ins,rem=table.insert,table.remove
local back={}

View File

@@ -1,4 +1,4 @@
--Welcome to Techmino
-- Welcome to Techmino
local sin=math.sin
local back={}

View File

@@ -1,4 +1,4 @@
--Flandre's wing
-- Flandre's wing
local back={}
local crystal_img,crystals
local wingColor={