Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MelonFunction/ebiten-camera
/ functions
Functions
27 in github.com/MelonFunction/ebiten-camera
⨍
Functions
27
◇
Types & classes
4
↓ 6 callers
Method
Rotate
Rotate rotates a point about 0,0
examples/cube/main.go:53
↓ 4 callers
Method
GetTranslation
GetTranslation alters the provided *ebiten.DrawImageOptions' translation based on the given x,y offset and the camera's position
camera.go:92
↓ 4 callers
Function
NewPoint
NewPoint returns a new *Point
examples/cube/main.go:48
↓ 4 callers
Method
Resize
Resize resizes the camera Surface
camera.go:78
↓ 2 callers
Method
Blit
Blit draws the camera's surface to the screen and applies zoom
camera.go:120
↓ 2 callers
Method
GetScale
GetScale alters the provided *ebiten.DrawImageOptions' scale
camera.go:108
↓ 2 callers
Method
Rotate
Rotate rotates by phi
camera.go:46
↓ 2 callers
Method
Zoom
Zoom *= the current zoom
camera.go:58
↓ 1 callers
Method
AngleTo
AngleTo returns the angle between p to other
examples/cube/main.go:62
↓ 1 callers
Method
GetCursorCoords
GetCursorCoords converts cursor/screen coords into world coords
camera.go:159
↓ 1 callers
Method
GetRotation
GetRotation alters the provided *ebiten.DrawImageOptions' rotation using the provided originX and originY args
camera.go:100
↓ 1 callers
Method
GetSkew
GetSkew alters the provided *ebiten.DrawImageOptions' skew
camera.go:114
↓ 1 callers
Method
GetWorldCoords
GetWorldCoords converts screen coords into world coords
camera.go:147
↓ 1 callers
Method
MovePosition
MovePosition moves the Camera by x and y. Use SetPosition if you want to set the position
camera.go:39
↓ 1 callers
Method
SetPosition
SetPosition looks at a position
camera.go:31
Method
Draw
Draw draws the game screen. Draw is called every frame (typically 1/60[s] for 60Hz display).
examples/cube/main.go:91
Method
Draw
Draw renders everything to screen
examples/platformer/main.go:187
Method
GetScreenCoords
GetScreenCoords converts world coords into screen coords
camera.go:135
Method
Layout
Layout sets window size
examples/cube/main.go:156
Method
Layout
Layout sets window size
examples/platformer/main.go:236
Function
NewCamera
NewCamera returns a new Camera
camera.go:18
Method
SetRotation
SetRotation sets the rotation to rot
camera.go:52
Method
SetZoom
SetZoom sets the zoom
camera.go:68
Method
Update
Update proceeds the game state. Update is called every tick (1/60 [s] by default).
examples/cube/main.go:71
Method
Update
Update updates the Game
examples/platformer/main.go:71
Function
main
()
examples/cube/main.go:166
Function
main
()
examples/platformer/main.go:245