mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 03:58:55 +01:00
go fmt
This commit is contained in:
parent
970b087035
commit
faa9c1bfe8
@ -44,8 +44,8 @@ func (game *RotatingImage) Draw(g graphics.GraphicsContext, offscreen graphics.T
|
|||||||
geometryMatrix.Translate(-tx/2, -ty/2)
|
geometryMatrix.Translate(-tx/2, -ty/2)
|
||||||
geometryMatrix.Rotate(float64(game.x) / 60)
|
geometryMatrix.Rotate(float64(game.x) / 60)
|
||||||
geometryMatrix.Translate(tx/2, ty/2)
|
geometryMatrix.Translate(tx/2, ty/2)
|
||||||
centerX, centerY := float64(offscreen.Width) / 2, float64(offscreen.Height) / 2
|
centerX, centerY := float64(offscreen.Width)/2, float64(offscreen.Height)/2
|
||||||
geometryMatrix.Translate(centerX - tx/2, centerY - ty/2)
|
geometryMatrix.Translate(centerX-tx/2, centerY-ty/2)
|
||||||
g.DrawTexture(game.ebitenTexture.ID,
|
g.DrawTexture(game.ebitenTexture.ID,
|
||||||
0, 0, int(tx), int(ty),
|
0, 0, int(tx), int(ty),
|
||||||
geometryMatrix,
|
geometryMatrix,
|
||||||
|
@ -1,3 +1 @@
|
|||||||
package matrix_test
|
package matrix_test
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user