Documentation
¶
Index ¶
- Variables
- func CircleOverlapsRect(c Circle, r Rect) bool
- func Clear(screen Screen, c Color)
- func DrawCircle(screen Screen, x float64, y float64, radius float64, c Color)
- func DrawLine(screen Screen, x1 float64, y1 float64, x2 float64, y2 float64, c Color)
- func DrawRect(screen Screen, x float64, y float64, w float64, h float64, c Color)
- func DrawText(screen Screen, msg string, x int, y int, _ Color)
- func FrameCount() int64
- func IsKeyDown(key ebiten.Key) bool
- func IsKeyPressed(key ebiten.Key) bool
- func MouseClicked() bool
- func MousePosition() (float64, float64)
- func Overlaps(a Rect, b Rect) bool
- func OverlapsCircle(a Circle, b Circle) bool
- func Random(lo int, hi int) int
- func RandomFloat(lo float64, hi float64) float64
- func Run(app App) error
- func TouchJustClicked() bool
- func TouchPosition() (float64, float64, bool)
- type App
- type Circle
- type Color
- type Position
- type Rect
- type Screen
- type Size
Constants ¶
This section is empty.
Variables ¶
View Source
var KeyDown ebiten.Key = ebiten.KeyArrowDown
View Source
var KeyEnter ebiten.Key = ebiten.KeyEnter
View Source
var KeyEscape ebiten.Key = ebiten.KeyEscape
View Source
var KeyLeft ebiten.Key = ebiten.KeyArrowLeft
View Source
var KeyRight ebiten.Key = ebiten.KeyArrowRight
View Source
var KeySpace ebiten.Key = ebiten.KeySpace
View Source
var KeyUp ebiten.Key = ebiten.KeyArrowUp
Functions ¶
func CircleOverlapsRect ¶
func FrameCount ¶
func FrameCount() int64
func IsKeyPressed ¶
func MouseClicked ¶
func MouseClicked() bool
func MousePosition ¶
func OverlapsCircle ¶
func RandomFloat ¶
func TouchJustClicked ¶
func TouchJustClicked() bool
func TouchPosition ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.