From 0e5c519363888c9ba7d2d3aaa94858bcc6738dc3 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Sat, 20 Mar 2021 02:40:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=9E=E5=8A=A9=E5=90=8D=E5=8D=95=E7=A7=BB?= =?UTF-8?q?=E8=87=B3staff=E7=95=8C=E9=9D=A2=E5=B9=B6=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=8A=A8=E7=94=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/patron.lua | 510 +++++++++++++++++++++++++++++++++++++++++ parts/scenes/staff.lua | 41 +++- parts/updateLog.lua | 25 -- 3 files changed, 550 insertions(+), 26 deletions(-) create mode 100644 parts/patron.lua diff --git a/parts/patron.lua b/parts/patron.lua new file mode 100644 index 00000000..0e101d63 --- /dev/null +++ b/parts/patron.lua @@ -0,0 +1,510 @@ +local C=COLOR +return{ + { + name="☆★白羽★☆", + font=100, + color=C.rainbow, + }, + + { + name="那没事了(T6300)", + font=65, + color=C.rainbow_dark, + }, + { + name="加油啊,钉钉动了的大哥哥(T3228)", + font=65, + color=C.rainbow_dark, + }, + { + name="弥佑瑶", + font=65, + color=C.rainbow_dark, + }, + { + name="Alan", + font=65, + color=C.rainbow_dark, + }, + { + name="幽灵3383", + font=65, + color=C.rainbow_dark, + }, + { + name="靏鸖龘龘", + font=65, + color=C.rainbow_dark, + }, + { + name="込余", + font=65, + color=C.rainbow_dark, + }, + { + name="saki", + font=65, + color=C.rainbow_dark, + }, + { + name="模电", + font=70, + color=C.rainbow_dark, + }, + { + name="吃水榴莲", + font=65, + color=C.rainbow_dark, + }, + { + name="世界沃德", + font=65, + color=C.rainbow_dark, + }, + { + name="Petris", + font=65, + color=C.rainbow_dark, + }, + { + name="Zakeru", + font=65, + color=C.rainbow_dark, + }, + { + name="镝", + font=65, + color=C.rainbow_dark, + }, + { + name="HitachiMako", + font=65, + color=C.rainbow_dark, + }, + { + name="我慌死了", + font=65, + color=C.rainbow_dark, + }, + { + name="PESWGGL", + font=65, + color=C.rainbow_dark, + }, + { + name="Ghost princess", + font=65, + color=C.rainbow_dark, + }, + { + name="奏之章", + font=65, + color=C.rainbow_dark, + }, + { + name="猫宫", + font=65, + color=C.rainbow_dark, + }, + + { + name="八零哥", + font=25, + color=C.grey, + }, + { + name="蕴空之灵", + font=25, + color=C.grey, + }, + { + name="gggf127", + font=25, + color=C.grey, + }, + { + name="solainu", + font=25, + color=C.grey, + }, + { + name="ThTsOd", + font=25, + color=C.grey, + }, + { + name="Fireboos", + font=25, + color=C.grey, + }, + { + name="星月千雪", + font=25, + color=C.grey, + }, + { + name="10元", + font=25, + color=C.grey, + }, + { + name="立斐", + font=25, + color=C.grey, + }, + { + name="Deep_Sea", + font=25, + color=C.grey, + }, + { + name="时雪", + font=25, + color=C.grey, + }, + { + name="yyangdid", + font=25, + color=C.grey, + }, + { + name="sfqr", + font=25, + color=C.grey, + }, + { + name="心痕", + font=25, + color=C.grey, + }, + { + name="Sasoric", + font=25, + color=C.grey, + }, + { + name="夏小亚", + font=25, + color=C.grey, + }, + { + name="仁参", + font=25, + color=C.grey, + }, + { + name="乐↗乐↘", + font=25, + color=C.grey, + }, + { + name="喜欢c4w的ztcjoin", + font=25, + color=C.grey, + }, + { + name="面包", + font=25, + color=C.grey, + }, + { + name="蠢熏", + font=25, + color=C.grey, + }, + { + name="潘一栗", + font=25, + color=C.grey, + }, + { + name="Lied", + font=25, + color=C.grey, + }, + { + name="星街书婉", + font=25, + color=C.grey, + }, + { + name="祝西", + font=25, + color=C.grey, + }, + { + name="829", + font=25, + color=C.grey, + }, + { + name="e m*12", + font=25, + color=C.grey, + }, + { + name="我永远爱白银诺艾尔(鹏", + font=25, + color=C.grey, + }, + { + name="PCX", + font=25, + color=C.grey, + }, + { + name="kagura77", + font=25, + color=C.grey, + }, + { + name="呆喂", + font=25, + color=C.grey, + }, + { + name="GlowingEmbers", + font=25, + color=C.grey, + }, + { + name="轩辕辚", + font=25, + color=C.grey, + }, + { + name="HimuroAki", + font=25, + color=C.grey, + }, + { + name="TCV100", + font=25, + color=C.grey, + }, + { + name="tech有养成系统了@6565", + font=25, + color=C.grey, + }, + { + name="HAGE KANOBU", + font=25, + color=C.grey, + }, + { + name="闪电和拐棍", + font=25, + color=C.grey, + }, + { + name="葡萄味的曼妥思", + font=25, + color=C.grey, + }, + { + name="蓝绿", + font=25, + color=C.grey, + }, + { + name="天生的魔法师", + font=25, + color=C.grey, + }, + { + name="琳雨空", + font=25, + color=C.grey, + }, + { + name="T8779.易缄", + font=25, + color=C.grey, + }, + { + name="诗情画意", + font=25, + color=C.grey, + }, + { + name="星姐阿夸双推Man暗炎", + font=25, + color=C.grey, + }, + { + name="[*炎]", + font=25, + color=C.grey, + }, + { + name="[*Y]", + font=25, + color=C.grey, + }, + { + name="aaa222", + font=25, + color=C.grey, + }, + { + name="[**城]", + font=25, + color=C.grey, + }, + { + name="cnDD", + font=25, + color=C.grey, + }, + { + name="红桃老给", + font=25, + color=C.grey, + }, + { + name="昭庭玲秋", + font=25, + color=C.grey, + }, + { + name="旋树墩", + font=25, + color=C.grey, + }, + { + name="火花工作室", + font=25, + color=C.grey, + }, + { + name="Cosine", + font=25, + color=C.grey, + }, + { + name="沁音的芝麻王", + font=25, + color=C.grey, + }, + { + name="SuperJH", + font=25, + color=C.grey, + }, + { + name="天上_飞", + font=25, + color=C.grey, + }, + { + name="uiro", + font=25, + color=C.grey, + }, + { + name="宇酱", + font=25, + color=C.grey, + }, + { + name="[W*N]", + font=25, + color=C.grey, + }, + { + name="[Z*.]", + font=25, + color=C.grey, + }, + { + name="[*之]", + font=25, + color=C.grey, + }, + { + name="白衣", + font=25, + color=C.grey, + }, + { + name="给虫", + font=25, + color=C.grey, + }, + { + name="我永远喜欢樱花小姐", + font=25, + color=C.grey, + }, + { + name="xb", + font=25, + color=C.grey, + }, + { + name="flaribbit", + font=25, + color=C.dY, + }, + { + name="工口发动机", + font=25, + color=C.grey, + }, + { + name="金海星", + font=25, + color=C.grey, + }, + { + name="tatianyi", + font=25, + color=C.grey, + }, + { + name="[*瞳]", + font=25, + color=C.grey, + }, + { + name="彼方云城", + font=25, + color=C.grey, + }, + { + name="pm250", + font=25, + color=C.grey, + }, + { + name="nanaya", + font=25, + color=C.grey, + }, + { + name="黑红蓝白", + font=25, + color=C.grey, + }, + { + name="细胞", + font=25, + color=C.grey, + }, + { + name="流光梦", + font=25, + color=C.dSky, + }, + { + name="George2503", + font=25, + color=C.grey, + }, + { + name="竹月可安", + font=25, + color=C.grey, + }, +} \ No newline at end of file diff --git a/parts/scenes/staff.lua b/parts/scenes/staff.lua index 6cd861c9..466d5a5b 100644 --- a/parts/scenes/staff.lua +++ b/parts/scenes/staff.lua @@ -1,14 +1,21 @@ local gc=love.graphics local kb,tc=love.keyboard,love.touch +local rnd=math.random +local ins,rem=table.insert,table.remove local scene={} local time,v +local patron=require"parts.patron" +local names +local counter function scene.sceneInit() time=0 v=1 BG.set() + names={} + counter=26 end function scene.mouseDown(x,y) @@ -45,13 +52,45 @@ function scene.update(dt) v=v-.26 end time=time+v*dt + counter=counter-1 + if counter==0 then + local N=patron[rnd(#patron)] + local T=gc.newText(getFont(N.font),N.name) + local r=rnd()<.5 + ins(names,{ + text=T, + color=N.color, + x=r and -T:getWidth()or SCR.w, + y=rnd()*(SCR.h-T:getHeight()), + w=T:getWidth(), + vx=(r and 1 or -1)*(1.626+rnd())*(SCR.w+T:getWidth())/SCR.w, + }) + counter=26 + end + for i=#names,1,-1 do + local N=names[i] + N.x=N.x+N.vx + if N.vx>0 and N.x>SCR.w or N.vx<0 and N.x<-N.w then + rem(names,i) + end + end end function scene.draw() + for i=1,#names do + local N=names[i] + if type(N.color)=="table"then + gc.setColor(N.color) + else + gc.setColor(N.color(TIME()+N.w)) + end + gc.draw(N.text,N.x,N.y) + end + + gc.setColor(1,1,1) local T=40*math.min(time,45) local L=text.staff setFont(40) - gc.setColor(1,1,1) for i=1,#L do mStr(L[i],640,800+70*i-T) end diff --git a/parts/updateLog.lua b/parts/updateLog.lua index 03074a47..281659a7 100644 --- a/parts/updateLog.lua +++ b/parts/updateLog.lua @@ -1,29 +1,4 @@ return SPLITSTR([=[ -"Patron"(time ordered, may not accurate) Thanks!!! - <<<<<<<<<>>>>>>>>> - ☆★★☆☆☆☆★★☆ - ★☆☆★白羽★☆☆★ - ☆★★☆☆☆☆★★☆ - <<>> - \那没事了(T6300)/ \加油啊,钉钉动了的大哥哥(T3228)/ - \弥佑瑶/ \Alan/ \幽灵3383/ - \靏鸖龘龘/ \込余/ \saki/ - \模电/ \吃水榴莲/ \世界沃德/ - \Petris/ \Zakeru/ \镝/ - \HitachiMako/ \我慌死了/ \PESWGGL/ - \Ghost princess/ \zzz/ \猫宫/ - - 八零哥 蕴空之灵 gggf127 solainu ThTsOd Fireboos 星月千雪 10元 - 立斐 Deep_Sea 时雪 yyangdid sfqr 心痕 Sasoric 夏小亚 - 仁参 乐↗乐↘ 喜欢c4w的ztcjoin 面包 蠢熏 潘一栗 Lied 星街书婉 - 祝西 829 e m*12 我永远爱白银诺艾尔(鹏 PCX kagura77 呆喂 - GlowingEmbers 轩辕辚 HimuroAki TCV100 tech有养成系统了@7065 - HAGE KANOBU 闪电和拐棍 葡萄味的曼妥思 蓝绿 天生的魔法师 琳雨空 - T8779.易缄 诗情画意 星姐阿夸双推Man暗炎 [*炎] [*Y] aaa222 [**城] - cnDD 红桃老给 昭庭玲秋 旋树墩 火花工作室 Cosine 沁音的芝麻王 - SuperJH 天上_飞 uiro 宇酱 [W*N] [Z*.] [*之] 白衣 给虫 - 我永远喜欢樱花小姐 xb flaribbit 工口发动机 金海星 tatianyi [*瞳] - 彼方云城 pm250 nanaya 黑红蓝白 细胞 流光梦 George2003 竹月可安 未来计划: 新模式: 无尽PC挑战; 简单极简练习; 任务生存; 对称; 跑酷; 教学; 术语问答; 无摩擦