选择模式后右侧显示排行榜等信息

This commit is contained in:
MrZ626
2021-12-09 19:41:42 +08:00
parent 24760801af
commit 6e78a3fedd
26 changed files with 93 additions and 48 deletions

View File

@@ -492,20 +492,9 @@ end
function loadGame(mode,ifQuickPlay,ifNet)--Load a mode and go to game scene
freshDate()
if legalGameTime()then
if not MODES[mode]then
if love.filesystem.getInfo('parts/modes/'..mode..'.lua')and love.filesystem.getRealDirectory('parts/modes/'..mode..'.lua')~=SAVEDIR then
MODES[mode]=require('parts.modes.'..mode)
MODES[mode].name=mode
if MODES[mode].score then
MODES[mode].records=loadFile("record/"..mode..".rec",'-luaon -canSkip')or{}
end
else
MES.new('error',"No mode called "..mode)
return
end
end
if MODES[mode].score then
STAT.lastPlay=mode
if not MODES[mode].available then
MES.new('error',"Unavailable mode: "..mode)
return
end
GAME.playing=true
GAME.init=true