update 03 guide code
This commit is contained in:
parent
99168db639
commit
9a9e5299ec
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue