tweak
This commit is contained in:
parent
9592cfc794
commit
1ff2aa1fcf
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ type Camera struct {
|
|||
}
|
||||
|
||||
func (c *Camera) Draw(screen *ebiten.Image, geom ebiten.GeoM) {
|
||||
// move the c.Centre to the origin
|
||||
// move c.Centre to the origin
|
||||
geom.Translate(-float64(c.Centre.X), -float64(c.Centre.Y))
|
||||
// zoom and rotate
|
||||
geom.Scale(c.Zoom, c.Zoom)
|
||||
|
|
Loading…
Reference in a new issue