This commit is contained in:
Andrey Parhomenko 2023-12-26 21:37:45 +03:00
parent b5ca8bef88
commit e7cb2fdb58

View file

@ -136,7 +136,7 @@ func (p *Player) Event(c *gg.Context) {
c.Camera.Position = pos.Sub(ec.Abs) c.Camera.Position = pos.Sub(ec.Abs)
case *gg.WheelChange : case *gg.WheelChange :
c.Camera.Scale = c.Camera.Scale.Add(gg.V2( c.Camera.Scale = c.Camera.Scale.Add(gg.V2(
ec.Offset.Y * c.DT() * p.ScaleSpeed, ec.Offset.Y * c.DT() * p.ScaleSpeed * 20,
)) ))
} }