MusicGame 板


LINE

请按大P服用 ※ [本文转录自 BBSLua 看板] 作者: TKirby ( :D) 看板: BBSLua 标题: [程式] DDR - Butterfly / smile.dk (Trick) 时间: Mon Jan 7 00:40:26 2008 --#BBSLUA -- author : tkirby speed=4 delay=4+0 -- 4 is the default delay gauge=8 notes= { {v=0},{v=0},{v=0},{v=0},{v=0},{v=0},{v=0},{v=0}, {v=0},{v=0},{v=0},{v=0},{v=0},{v=0},{v=0},{v=0}, {v=0},{v=0},{v=0},{v=0},{v=0},{v=0},{v=0},{v=0}, {v=0},{v=0},{v=0},{v=0},{v=0},{v=0},{v=0},{v=0}, {v=0},{v=0},{v=0},{v=0},{v=0},{v=0},{v=0},{v=0}, {v=3},{v=0},{v=4},{v=0},{v=3},{v=0},{v=1},{v=0},{v=3},{v=0},{v=4},{v=0},{v=0}, {v=0},{v=0},{v=0},{v=4},{v=0},{v=0},{v=0},{v=4},{v=0},{v=4},{v=0},{v=1},{v=0}, {v=0},{v=0},{v=1},{v=0},{v=1},{v=0},{v=0},{v=0},{v=4},{v=0},{v=2},{v=0},{v=1}, {v=0},{v=3},{v=0},{v=4},{v=0},{v=1},{v=0},{v=1},{v=0},{v=4},{v=0},{v=0},{v=0}, {v=4},{v=0},{v=1},{v=0},{v=1},{v=0},{v=0},{v=0},{v=1},{v=0},{v=1},{v=0},{v=0}, {v=0},{v=4},{v=0},{v=2},{v=0},{v=1},{v=0},{v=3},{v=0},{v=4},{v=0},{v=1},{v=0}, {v=1},{v=0},{v=0},{v=0},{v=3},{v=0},{v=3},{v=0},{v=4},{v=0},{v=4},{v=0},{v=3}, {v=0},{v=1},{v=0},{v=2},{v=0},{v=3},{v=0},{v=2},{v=0},{v=1},{v=0},{v=0},{v=0}, {v=4},{v=0},{v=1},{v=0},{v=2},{v=0},{v=3},{v=0},{v=0},{v=0},{v=3},{v=0},{v=3}, {v=0},{v=4},{v=0},{v=4},{v=0},{v=3},{v=0},{v=1},{v=0},{v=2},{v=0},{v=3},{v=0}, {v=2},{v=0},{v=4},{v=0},{v=0},{v=0},{v=1},{v=0},{v=4},{v=0},{v=3},{v=0},{v=2}, {v=0},{v=2},{v=0},{v=4},{v=0},{v=2},{v=0},{v=4},{v=0},{v=2},{v=0},{v=1},{v=0}, {v=2},{v=0},{v=1},{v=0},{v=2},{v=0},{v=4},{v=0},{v=2},{v=0},{v=4},{v=0},{v=2}, {v=0},{v=1},{v=0},{v=2},{v=0},{v=1},{v=0},{v=4},{v=0},{v=0},{v=0},{v=4},{v=0}, {v=1},{v=0},{v=1},{v=0},{v=0},{v=0},{v=1},{v=0},{v=1},{v=0},{v=0},{v=0},{v=4}, {v=0},{v=2},{v=0},{v=1},{v=0},{v=3},{v=0},{v=4},{v=0},{v=1},{v=0},{v=4},{v=0}, {v=4},{v=0},{v=0},{v=0},{v=4},{v=0},{v=1},{v=0},{v=1},{v=0},{v=0},{v=0},{v=1}, {v=0},{v=4},{v=0},{v=0},{v=0},{v=4},{v=0},{v=2},{v=0},{v=1},{v=0},{v=3},{v=0}, {v=4},{v=0},{v=1},{v=0},{v=1},{v=0},{v=0},{v=0},{v=3},{v=0},{v=3},{v=0},{v=4}, {v=0},{v=4},{v=0},{v=3},{v=0},{v=1},{v=0},{v=2},{v=0},{v=3},{v=0},{v=2},{v=0}, {v=1},{v=0},{v=0},{v=0},{v=4},{v=0},{v=1},{v=0},{v=2},{v=0},{v=3},{v=0},{v=0}, {v=0},{v=3},{v=0},{v=3},{v=0},{v=4},{v=0},{v=4},{v=0},{v=3},{v=0},{v=1},{v=0}, {v=2},{v=0},{v=3},{v=0},{v=2},{v=0},{v=4},{v=0},{v=0},{v=0},{v=1},{v=0},{v=4}, {v=0},{v=3},{v=0},{v=2},{v=0},{v=0},{v=0} } rank={{ {v='██ ██ ██ ██ ██ ██ ██▌'}, {v='█ ▌█  █ ▌█  █  █ ▌ ▌ '}, {v='██ ██ ██ ██ ██ █   ▌ '}, {v='█  █  █▌ █  █  █ ▌ ▌ '}, {v='█  ██ ▌█ █  ██ ██  ▌ '} },{ {v='███ ███ ███ ██ ███'}, {v='█   █ █ █   █ █  █ '}, {v='█ █▌███ ███ ███  █ '}, {v='█ █ ██  █   █ █  █ '}, {v='███ █ █▌███ █ █  █ '} },{ {v='███ ███ ███ ██▌'}, {v='█   █ █ █ █ █ █'}, {v='█ █▌█ █ █ █ █ █'}, {v='█ █ █ █ █ █ █ █'}, {v='███ ███ ███ ███'} },{ {v='██▌ ███ ███'}, {v='█ █ █ █ █ █'}, {v='███ █ █ █ █'}, {v='█ █ █ █ █ █'}, {v='███ ███ ███'} },{ {v='███ ███ ██▌██▌'}, {v='▌█ ▌ █  █  █   '}, {v='▌█ ▌ █  ██▌██▌'}, {v='▌█ ▌ █    ▌  ▌'}, {v='▌█ ▌███ ██▌██▌'} }}; lyrics= { {v='哎依~呀依呀依呀(请自行想像音乐)'}, {v='哎依~呀依呀依呀'}, {v='哎依~呀依呀依呀(快要开始了)'}, {v='我的杀母赖到哪去啦?(吓!)'}, {v='(间奏)'}, {v='(间奏2)'}, {v='(间奏3)'}, {v='.......我一直'}, {v='在找一个男人'}, {v='谁可以横跨日本'}, {v='只是要去找'}, {v='找到我的杀母赖'}, {v='我的他是强壮的'}, {v='害羞的与熊搏斗'}, {v='是的我需要, '}, {v='我需要来杯杀母赖'}, {v='哎依~呀依呀依呀'}, {v='我是你的小奶油飞'}, {v='绿色、黑色和蓝色(的霉菌)'}, {v='把天空染满色彩'}, {v='哎依~呀依呀依呀'}, {v='我是你的小奶油飞'}, {v='绿色、黑色和蓝色(的霉菌)'}, {v='把天空染满色彩'}, {v='(间奏)'}, {v='(间奏2)'}, {v='(间奏3)'}, {v='.........我已经'}, {v='在木头堆里找了很久'}, {v='还有在喜马拉雅山上'}, {v='这一切只是为了'}, {v='找我那害羞的杀母赖'}, {v='他永远不会後悔'}, {v='上网跟我交往'}, {v='没错我需要'}, {v='我需要找个杀母赖'}, {v='哎依~呀依呀依呀'}, {v='我是你的小奶油飞'}, {v='绿色、黑色和蓝色(的霉菌)'}, {v='把天空染满色彩'}, {v='哎依~呀依呀依呀'}, {v='我是你的小奶油飞'}, {v='绿色、黑色和蓝色(的霉菌)'}, {v='把天空染满色彩'}, {v='(完)'}} function _ip(pos,line,index) bbs.move(pos+line,index*6+2) end function repose() _gauge_rep.x=math.floor(math.random()*3); _gauge_rep.y=math.floor(math.random()*3); end function _score(idx,line) for i=1,5 do bbs.move(line+i-1+_gauge_rep.y,35+_gauge_rep.x); bbs.outs(rank[idx][i].v) end if combo>10 then bbs.move(line+6+_gauge_rep.y,40); bbs.outs("Combo "..combo) end end function score(gap) local result bbs.move(2,1) if gap<0.6 then bbs.color(1,33); _score(1,5); result=2; elseif gap<0.9 then bbs.color(1,32); _score(2,5); result=1; elseif gap<1.2 then bbs.color(0,36); _score(3,5); result=0; elseif gap<1.5 then bbs.color(0,35); _score(4,5); result=-1; else bbs.color(0,31); _score(5,5); result=-2; end bbs.color(0,37,40); return result end function icon(pos,index,c) if index==1 then _ip(pos,0,index); bbs.color(0,30+c); bbs.outs('◢▄'); _ip(pos,1,index); bbs.outs('◥');bbs.color(0,30,40+c);bbs.outs('▄'); bbs.color(); elseif index==2 then _ip(pos,0,index); bbs.color(0,30+c); bbs.outs(' █ '); _ip(pos,1,index); bbs.outs('◥◤');bbs.color(); elseif index==3 then _ip(pos,0,index); bbs.color(0,30+c); bbs.outs('◢◣'); _ip(pos,1,index); bbs.outs(' █ ');bbs.color(); elseif index==4 then _ip(pos,0,index); bbs.color(0,30+c); bbs.outs('▄◣'); _ip(pos,1,index); bbs.color(0,30,40+c);bbs.outs('▄');bbs.color(0,30+c); bbs.outs('◤'); bbs.color(); end end function setgaugecolor(gauge) if gauge<1 then bbs.color(0,30,41); elseif gauge<4 then bbs.color(0,37,41); elseif gauge<7 then bbs.color(0,33,42); elseif gauge>9 then bbs.color(1,33,46); else bbs.color(0,33,45) end end rptr=-10 ptr=-10 size=table.getn(notes) rn=table.getn(lyrics) duration=0.0 start=bbs.clock() scoring=0 _gauge_rep={x=0,y=0} combo=0 repeat bbs.clear() bbs.title('Ctrl-C 离开 / Dash Dash Revolution - PTT Remix - Butterfly / smile.dk ') bbs.move(1,1); setgaugecolor(gauge) bbs.outs(' ') bbs.move(2,1) bbs.outs('◢'); for i=1,math.floor(gauge*2.0) do bbs.outs('█'); end bbs.color(0,30) for i=1,20-math.floor(gauge*2.0) do bbs.outs('█'); end setgaugecolor(gauge) bbs.outs(' ') bbs.move(3,1); bbs.outs(' ') bbs.color(0,37,40); bbs.color(0,34); bbs.move(6,4); bbs.outs('───────────────'); for i=1,4 do icon(6,i,4); end bbs.color(); for i=-6,10 do j=ptr+i if j>0 and j<=size and notes[j].v>0 then if (i+ptr)%2==1 then c=2; else c=1; end icon(i+10,notes[j].v,c) end end bbs.move(1,1) bbs.color(1,30,40); -- bbs.outs(ptr..' '..size..' time '..((bbs.time()-start))) ptr = math.floor(speed*(bbs.clock()-start))-10 rptr = math.floor(math.floor(speed*(bbs.clock()-start))/8) result=0 if bbs.kbhit(duration) then c=bbs.getch() time_hit = bbs.clock() if c=='LEFT' then u=1; end if c=='DOWN' then u=2; end if c=='UP' then u=3; end if c=='RIGHT' then u=4; end if ptr-delay>0 and ptr-delay<=size then repose() if notes[ptr-delay].v==u then time_perfect = ((ptr+10)/speed)+start gap = math.abs(speed*(time_hit-time_perfect)) scoring=bbs.clock()+1 result=score(gap) notes[ptr-delay].v=0 elseif notes[ptr-delay].v>0 then gap = 10 scoring=bbs.clock()+1 result=score(gap) notes[ptr-delay].v=0 end end end if ptr-delay-2>0 and ptr-delay-2<=size and notes[ptr-delay-2].v>0 then gap=10 scoring=bbs.clock()+1 result=score(gap) repose() end gauge = gauge + result/4 if result>0 then combo=combo+1; end if result<0 then combo=0; end if gauge<0 then gauge=0; end if gauge>10 then gauge=10; end -- bbs.move(1,50); bbs.outs(gap); -- bbs.outs(' '..rptr..' '..rn); if scoring-bbs.clock()>0 then score(gap) end if rptr>0 and rptr<=rn then bbs.move(22,7) bbs.color(1,37) bbs.outs(lyrics[rptr].v) bbs.color(0) end bbs.refresh() until ptr>size+10 --#BBSLUA --



※ 发信站: 批踢踢兔(ptt2.cc)
◆ From: 140.112.30.51 -- -- 我很正吧~~____˙﹏˙ ▕ ▏ --



※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.128.65.212
1F:推 akasuka:你就算po在p1也不能玩........ 01/07 16:24
2F:→ akasuka:好奇的可以去批兔 BBS-Lua 版看文 这功能挺神的 01/07 16:24
3F:→ O0O0O0O00OO0:为什麽去P2看来是一样? 01/07 16:56
4F:推 akasuka:不会吧 我用pcman 按大P游玩正常 01/07 16:58
5F:→ Torocats:XD原来批万不能玩唷 01/07 17:18
6F:推 O0O0O0O00OO0:该不会是系统太旧吧? 01/07 17:21
7F:推 ForeverOrz:不是很了解你的问题 你是在问为什麽批万不能玩吗 XD 01/07 17:45
8F:推 akasuka:批万还没实装这样 因为这还在批兔测试中 01/07 19:15
9F:推 O0O0O0O00OO0:.....批万比批兔早....不是我的系统(  ̄ c ̄)y▂ξ 01/07 19:25







like.gif 您可能会有兴趣的文章
icon.png[问题/行为] 猫晚上进房间会不会有憋尿问题
icon.pngRe: [闲聊] 选了错误的女孩成为魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一张
icon.png[心得] EMS高领长版毛衣.墨小楼MC1002
icon.png[分享] 丹龙隔热纸GE55+33+22
icon.png[问题] 清洗洗衣机
icon.png[寻物] 窗台下的空间
icon.png[闲聊] 双极の女神1 木魔爵
icon.png[售车] 新竹 1997 march 1297cc 白色 四门
icon.png[讨论] 能从照片感受到摄影者心情吗
icon.png[狂贺] 贺贺贺贺 贺!岛村卯月!总选举NO.1
icon.png[难过] 羡慕白皮肤的女生
icon.png阅读文章
icon.png[黑特]
icon.png[问题] SBK S1安装於安全帽位置
icon.png[分享] 旧woo100绝版开箱!!
icon.pngRe: [无言] 关於小包卫生纸
icon.png[开箱] E5-2683V3 RX480Strix 快睿C1 简单测试
icon.png[心得] 苍の海贼龙 地狱 执行者16PT
icon.png[售车] 1999年Virage iO 1.8EXi
icon.png[心得] 挑战33 LV10 狮子座pt solo
icon.png[闲聊] 手把手教你不被桶之新手主购教学
icon.png[分享] Civic Type R 量产版官方照无预警流出
icon.png[售车] Golf 4 2.0 银色 自排
icon.png[出售] Graco提篮汽座(有底座)2000元诚可议
icon.png[问题] 请问补牙材质掉了还能再补吗?(台中半年内
icon.png[问题] 44th 单曲 生写竟然都给重复的啊啊!
icon.png[心得] 华南红卡/icash 核卡
icon.png[问题] 拔牙矫正这样正常吗
icon.png[赠送] 老莫高业 初业 102年版
icon.png[情报] 三大行动支付 本季掀战火
icon.png[宝宝] 博客来Amos水蜡笔5/1特价五折
icon.pngRe: [心得] 新鲜人一些面试分享
icon.png[心得] 苍の海贼龙 地狱 麒麟25PT
icon.pngRe: [闲聊] (君の名は。雷慎入) 君名二创漫画翻译
icon.pngRe: [闲聊] OGN中场影片:失踪人口局 (英文字幕)
icon.png[问题] 台湾大哥大4G讯号差
icon.png[出售] [全国]全新千寻侘草LED灯, 水草

请输入看板名称,例如:Gossiping站内搜寻

TOP