mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
examples/windowsize: Use more consts
This commit is contained in:
parent
a7a1f6b4c6
commit
eadbabffd9
@ -133,14 +133,14 @@ func update(screen *ebiten.Image) error {
|
||||
}
|
||||
if inpututil.IsKeyJustPressed(ebiten.KeyT) {
|
||||
switch tps {
|
||||
case -1:
|
||||
case ebiten.UncappedTPS:
|
||||
tps = 30
|
||||
case 30:
|
||||
tps = 60
|
||||
case 60:
|
||||
tps = 120
|
||||
case 120:
|
||||
tps = -1
|
||||
tps = ebiten.UncappedTPS
|
||||
default:
|
||||
panic("not reached")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user