Configure steps per simulation update function call via SimStepsPerUpdate

This commit is contained in:
ChaoticByte 2025-08-21 18:26:29 +02:00
parent 1ab0b43946
commit 958e97de0c
No known key found for this signature in database
2 changed files with 5 additions and 3 deletions

View file

@ -49,7 +49,7 @@ func main() {
ebiten.MaximizeWindow()
ebiten.SetTPS(MaxTps)
app := &Application{
simulation: *simulation.NewSimulation(CanvasWidth, CanvasHeight),
simulation: *simulation.NewSimulation(CanvasWidth, CanvasHeight, SimStepsPerUpdate),
}
InitGrid(app.simulation.Grid)
err := ebiten.RunGame(app)