代码整理

This commit is contained in:
MrZ626
2020-09-15 11:05:18 +08:00
parent f64bf2bc27
commit b139cfe62f
3 changed files with 9 additions and 9 deletions

View File

@@ -2,7 +2,7 @@ local gc=love.graphics
local int=math.floor
local format=string.format
do
do--setFont
local newFont=gc.setNewFont
local setNewFont=gc.setFont
local fontCache,currentFontSize={}

View File

@@ -209,13 +209,14 @@ function freshMostBadge()
game.mostBadge,game.secBadge=nil
local m,m2=0,0
for i=1,#players.alive do
local h=players.alive[i].badge
if h>=m then
game.mostBadge,game.secBadge=players.alive[i],game.mostBadge
m,m2=h,m
elseif h>=m2 then
game.secBadge=players.alive[i]
m2=h
local P=players.alive[i]
local b=P.badge
if b>=m then
game.mostBadge,game.secBadge=P,game.mostBadge
m,m2=b,m
elseif b>=m2 then
game.secBadge=P
m2=b
end
end
end

View File

@@ -1,4 +1,3 @@
local gc=love.graphics
local Tick={}
function Tick.finish(P)
P.endCounter=P.endCounter+1