ebiten: rename TPS functions

* SetMaxTPS() -> SetTPS()
* MaxTPS() -> TPS()
* CurrentTPS() -> ActualTPS()
* CurrentFPS() -> ActualFPS()

Closes #2071
This commit is contained in:
Hajime Hoshi
2022-07-17 11:25:45 +09:00
parent 356c625601
commit 0f52381580
34 changed files with 89 additions and 58 deletions

View File

@@ -312,7 +312,7 @@ func (g *Game) Draw(screen *ebiten.Image) {
scoreStr := fmt.Sprintf("%04d", g.score())
text.Draw(screen, scoreStr, arcadeFont, screenWidth-len(scoreStr)*fontSize, fontSize, color.White)
ebitenutil.DebugPrint(screen, fmt.Sprintf("TPS: %0.2f", ebiten.CurrentTPS()))
ebitenutil.DebugPrint(screen, fmt.Sprintf("TPS: %0.2f", ebiten.ActualTPS()))
}
func (g *Game) pipeAt(tileX int) (tileY int, ok bool) {