Versions in this module Expand all Collapse all v0 v0.1.0 Feb 6, 2021 Changes in this version + type Animation struct + func (a *Animation) Pause() + func (a *Animation) Play() + func (a *Animation) Reset() + func (a *Animation) SetState(state string) + func (a *Animation) SetTickCount(count int) + func (a *Animation) Size() (int, int) + type Asset struct + func (a *Asset) ToAnimation() engine.Animation + func (a *Asset) ToAtlas() engine.Atlas + func (a *Asset) ToImage() engine.Image + func (a *Asset) ToSound() engine.Sound + func (a *Asset) UnmarshalBinary(data []byte) error + type Atlas struct + func (a *Atlas) GetImage(k string) engine.Image + type Game struct + func NewGame(title string, w, h int, flags byte, tickFunc func(), ...) *Game + func (c Game) NewAnimationFromAssetPath(path string) (engine.Animation, error) + func (c Game) NewAssetFromPath(path string) (engine.Asset, error) + func (c Game) NewAtlasFromAssetPath(path string) (engine.Atlas, error) + func (c Game) NewCamera() engine.Camera + func (c Game) NewCollider() engine.Collider + func (c Game) NewImageFromAssetPath(path string) (engine.Image, error) + func (c Game) NewImageFromImage(img image.Image) engine.Image + func (c Game) NewImageFromPath(path string) (engine.Image, error) + func (c Game) NewIsoRenderer() engine.IsoRenderer + func (c Game) NewRenderer() engine.Renderer + func (c Game) NewSoundFromAssetPath(path string) (engine.Sound, error) + func (c Game) NewTextImage(txt string, w, h int, face font.Face, clr color.Color) engine.Image + func (c Game) NewTilemap(width int, data [2][][]int, mapper map[int]engine.Image, ...) engine.Tilemap + func (g *Game) AddRenderer(renderer ...engine.Renderer) + func (g *Game) Draw(screen *ebiten.Image) + func (g *Game) Layout(ow, oh int) (int, int) + func (g *Game) Run() error + func (g *Game) Update() error + func (g Game) IsFocused() bool + func (g Game) IsFullscreen() bool + func (g Game) IsVsync() bool + func (g Game) SetFullscreen(v bool) + func (g Game) SetVsync(v bool) + type Image struct + func (i *Image) Alpha(alpha float64) + func (i *Image) Class() string + func (i *Image) Dispose() + func (i *Image) IsDisposed() bool + func (i *Image) IsRenderable() bool + func (i *Image) Offset(x, y float64) + func (i *Image) Origin(x, y float64) + func (i *Image) Position() engine.Vec2 + func (i *Image) Rotate(d float64) + func (i *Image) RoundTranslations(round bool) + func (i *Image) Scale(x, y float64) + func (i *Image) SetRenderable(r bool) + func (i *Image) SetZDepth(z int) + func (i *Image) Size() (int, int) + func (i *Image) Tint(r, g, b float64) + func (i *Image) Translate(x, y float64) + func (i *Image) TriggersTileOverlapEvent(triggers bool) + func (i *Image) Undispose() + type Input struct + func (i *Input) CursorPosition() (int, int) + func (i *Input) IsAnyKeyJustPressed() bool + func (i *Input) IsAnyKeyPressed() bool + func (i *Input) IsKeyJustPressed(k int) bool + func (i *Input) IsKeyJustReleased(k int) bool + func (i *Input) IsKeyPressed(k int) bool + func (i *Input) IsMouseButtonJustPressed(k int) bool + func (i *Input) IsMouseButtonJustReleased(k int) bool + func (i *Input) IsMouseButtonPressed(k int) bool + func (i *Input) SetCursorBounds(minX, minY, maxX, maxY int) + func (i *Input) SetCursorMode(mode engine.CursorMode) + type IsoRenderer struct + func NewIsoRenderer() *IsoRenderer + func (r *IsoRenderer) SetTilemap(tilemap engine.Tilemap) + type Renderer struct + func NewRenderer() *Renderer + func (r *Renderer) AddImage(images ...engine.Image) + func (r *Renderer) ScreenToWorld(screen engine.Vec2) engine.Vec2 + func (r *Renderer) SetCamera(camera engine.Camera) + func (r *Renderer) SetViewport(w, h int) + func (r *Renderer) Tick() + func (r *Renderer) Viewport() image.Rectangle + type Sound struct + func (s *Sound) Close() + func (s *Sound) Loop() error + func (s *Sound) Pause() + func (s *Sound) Play() error + func (s *Sound) Reset() + type SoundControl struct + func NewSoundControl() *SoundControl + func (sc *SoundControl) SetVolume(group string, v float64) + func (sc *SoundControl) Volume(group string) (v float64)