Files
Techmino/parts/modes/classic_e.lua
Not-A-Normal-Robot 30ed4179d6 Add easier Classic modes (#302)
* Remove SDARR limitation on Rhythm

* Remove SDARR limitation on Rhythm

* Remove SDARR limitation on Rhythm

* Revert "Remove SDARR limitation on Rhythm"

This reverts commit 1a0a56bbf6.

* Add classic modes: easy and normal

(Easy: lvl9 start, Normal: lvl15 start)

* fixed typos

* Updated map
2021-09-22 11:03:52 +08:00

32 lines
881 B
Lua

return{
color=COLOR.lBlue,
env={
center=0,ghost=0,
smooth=false,
face={0,0,2,2,2,0,0},
eventSet='classic_e',
bg='rgb',bgm='magicblock',
},
slowMark=true,
mesDisp=function(P)
setFont(75)
local r=P.modeData.target*.1
mStr(r<11 and 9 or r<22 and r or("%02x"):format(r*10-220),63,210)
mText(drawableText.speedLV,63,290)
PLY.draw.drawProgress(P.stat.row,P.modeData.target)
end,
score=function(P)return{P.stat.score,P.stat.row}end,
scoreDisp=function(D)return D[1].." "..D[2].." Lines"end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
getRank=function(P)
local L=P.stat.row
return
L>=150 and 5 or
L>=120 and 4 or
L>=90 and 3 or
L>=60 and 2 or
L>=40 and 1 or
L>=10 and 0
end,
}