mirror of
				https://github.com/hajimehoshi/ebiten.git
				synced 2025-10-31 19:52:47 +08:00 
			
		
		
		
	ebiten: rename TPS functions
* SetMaxTPS() -> SetTPS() * MaxTPS() -> TPS() * CurrentTPS() -> ActualTPS() * CurrentFPS() -> ActualFPS() Closes #2071
This commit is contained in:
		| @@ -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) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Hajime Hoshi
					Hajime Hoshi