update 03 guide code

This commit is contained in:
faiface 2017-05-24 20:34:46 +02:00
parent 99168db639
commit 9a9e5299ec
1 changed files with 2 additions and 3 deletions

View File

@ -57,10 +57,9 @@ func run() {
win.Clear(colornames.Firebrick) win.Clear(colornames.Firebrick)
mat := pixel.IM mat := pixel.IM
mat = mat.Rotated(0, angle) mat = mat.Rotated(pixel.ZV, angle)
mat = mat.Moved(win.Bounds().Center()) mat = mat.Moved(win.Bounds().Center())
sprite.SetMatrix(mat) sprite.Draw(win, mat)
sprite.Draw(win)
win.Update() win.Update()
} }