Documentation ¶
Index ¶
- Variables
- type Animation
- type Camera
- func (c *Camera) GetCameraOptions() *ebiten.DrawImageOptions
- func (c *Camera) GetCameraTranslation() types.Vec2
- func (c *Camera) GetScreenCoordsTranslation(x, y float64) types.Vec2
- func (c *Camera) GetWorldCoordX(wc float64) float64
- func (c *Camera) GetWorldCoordY(wc float64) float64
- func (c *Camera) MovePosition(x, y float64) *Camera
- func (c *Camera) Resize(w, h int) *Camera
- func (c *Camera) Rotate(phi float64) *Camera
- func (c *Camera) RunShakingLimitedAnimation(duration, delay time.Duration, maxRot, rotGap float64, cancel <-chan int)
- func (c *Camera) SetPositionX(x float64) *Camera
- func (c *Camera) SetPositionY(y float64) *Camera
- func (c *Camera) SetRotation(rot float64) *Camera
- func (c *Camera) SetZeroPositionX()
- func (c *Camera) SetZeroPositionY()
- func (c *Camera) Zoom(mul float64) *Camera
Constants ¶
This section is empty.
Variables ¶
View Source
var Cam = NewCamera(1113, 670, 0, 0, 0, 2)
Functions ¶
This section is empty.
Types ¶
type Camera ¶
Camera can look at positions, zoom and rotate.
func (*Camera) GetCameraOptions ¶
func (c *Camera) GetCameraOptions() *ebiten.DrawImageOptions
Blit draws the camera's surface to the screen and applies zoom
func (*Camera) GetCameraTranslation ¶
func (*Camera) GetScreenCoordsTranslation ¶
func (*Camera) GetWorldCoordX ¶
func (*Camera) GetWorldCoordY ¶
func (*Camera) MovePosition ¶
MovePosition moves the Camera by x and y. Use SetPosition if you want to set the position
func (*Camera) RunShakingLimitedAnimation ¶
func (*Camera) SetPositionX ¶
func (*Camera) SetPositionY ¶
func (*Camera) SetRotation ¶
SetRotation sets the rotation to rot
func (*Camera) SetZeroPositionX ¶
func (c *Camera) SetZeroPositionX()
func (*Camera) SetZeroPositionY ¶
func (c *Camera) SetZeroPositionY()
Click to show internal directories.
Click to hide internal directories.