SetGlobalScale sets the GlobalScale to the given dimensions. If either dimension is less than or equal to zero, GlobalScale is set to (1, 1).
(p Point)
| 309 | // SetGlobalScale sets the GlobalScale to the given dimensions. If either dimension is |
| 310 | // less than or equal to zero, GlobalScale is set to (1, 1). |
| 311 | func SetGlobalScale(p Point) { |
| 312 | if p.X <= 0 || p.Y <= 0 { |
| 313 | opts.GlobalScale = Point{X: 1, Y: 1} |
| 314 | return |
| 315 | } |
| 316 | opts.GlobalScale = p |
| 317 | } |
| 318 | |
| 319 | // GetTitle returns the title of the game. |
| 320 | func GetTitle() string { |
no outgoing calls