Versions in this module Expand all Collapse all v0 v0.3.0 Apr 16, 2022 Changes in this version + func GetStreamingAssetTyped(ass *AssetsManager, name string) (asset t, err any) + type AssetsManager struct + AssetMap map[string]interface{} + AudioPlayers []*AudioPlayer + func NewAssetsManager() *AssetsManager + func (ass *AssetsManager) AddStreamingResource(name string, f StreamingAssetsFunc) any type Game + AssetsManager *AssetsManager + func (g *Game) LoadAssetsManager(gFunction GameLoadAssetsManager) + type GameLoadAssetsManager func() *AssetsManager + type StreamingAssetsFunc func(name string) (asset interface{}, err any) v0.2.2 Apr 16, 2022 Changes in this version + const CursorCrosshair + const CursorPointer + const FntBold + const FntBoldItalic + const FntItalic + const FntMono + const FntMonoBold + const FntMonoBoldItalic + const FntMonoItalic + const FntRegular + const GameStateMsgNone + const GameStateMsgNotStarted + const GameStateMsgPause + const GameStateMsgUnPause + const KeyStateDown + const KeyStateJustDown + const KeyStateJustUp + const KeyStateUp + const MouseStateDown + const MouseStateJustDown + const MouseStateJustUp + const MouseStateUp + const MouseStateWheel + var Alt = Modifier(0x0004) + var Control = Modifier(0x0002) + var Move = Action(0) + var Neutral = Action(99) + var Pixel *ebiten.Image + var Press = Action(1) + var Release = Action(2) + var Shift = Modifier(0x0001) + var Super = Modifier(0x0008) + func CenterCursor(uiController *UIController, center bool) + func Collision(obj1 *BasicObject, obj2 *BasicObject) bool + func DrawLine(dst *ebiten.Image, x1, y1, x2, y2 float64, clr color.Color, camera *Camera) + func LoadDefaultFonts(uiController *UIController) + func PrepareTileSet(tilemap *Map) + func RenderTextToImage(text []string, w, h int, fntSize float64, fnt *truetype.Font, ...) *ebiten.Image + func SetCustomCursor(uiController *UIController, width, height, sx, sy int, ...) + type Action int + type Animation struct + Frames []int + ImageParts *BasicImageParts + LoopCompleted bool + Repeating bool + SpriteSheet *SpriteSheet + func NewAnimation(spriteSheet *SpriteSheet, frames []int, speed int) *Animation + func (a *Animation) Pause() + func (a *Animation) Play() + func (a *Animation) Reset() + func (a *Animation) Resume() + func (a *Animation) ReturnImageParts() *BasicImageParts + func (a *Animation) SetAnimationSpeed(s int) + func (a *Animation) SetCurrentFrame(frame int) + func (a *Animation) SetForward() + func (a *Animation) SetFrameSpeed(speed int) + func (a *Animation) SetReverse() + func (a *Animation) Stop() + func (a *Animation) Update() + func (a Animation) CurrentFrame() int + func (a Animation) IsPaused() bool + type AudioPlayer struct + func NewAudioPlayer() (*AudioPlayer, error) + func (p *AudioPlayer) AddSongFromBytes(name string, fb []byte) error + func (p *AudioPlayer) AddSongFromFile(name, filelocation string) error + func (p *AudioPlayer) AddSoundEffectFromBytes(name string, fb []byte, volume float64) error + func (p *AudioPlayer) AddSoundEffectFromFile(name, filelocation string, volume float64) error + func (p *AudioPlayer) IsMusicMuted() bool + func (p *AudioPlayer) IsSEMuted() bool + func (p *AudioPlayer) MuteAll(m bool) + func (p *AudioPlayer) MuteMusic(m bool) + func (p *AudioPlayer) MuteSE(m bool) + func (p *AudioPlayer) PauseAllMusic() + func (p *AudioPlayer) PlaySE(se string) error + func (p *AudioPlayer) ReturnSongPlayer(name string) *audio.Player + func (p *AudioPlayer) Update() error + func (p *AudioPlayer) UpdateVolumeIfNeeded() + type BaseGameState struct + GameStateMessage GameStateMsg + func NewBaseGameState() *BaseGameState + func (b *BaseGameState) Draw(g *Game) error + func (b *BaseGameState) Msg() GameStateMsg + func (b *BaseGameState) SetMsg(g GameStateMsg) + func (b *BaseGameState) Update(g *Game) error + type BasicImageParts struct + DestHeight int + DestWidth int + Height int + Reverse bool + SourceRect *image.Rectangle + Sx int + Sy int + Width int + func BasicImagePartsFromSpriteSheet(spriteSheet *SpriteSheet, frame int) *BasicImageParts + func NewBasicImageParts(sx, sy, width, height int) *BasicImageParts + func (b *BasicImageParts) Dst(i int) (x0, y0, x1, y1 int) + func (b *BasicImageParts) Len() int + func (b *BasicImageParts) ReturnSourceRect() image.Rectangle + func (b *BasicImageParts) ReverseX(reverse bool) + func (b *BasicImageParts) SetDestinationDimensions(width, height int) + func (b *BasicImageParts) SetScale(op *ebiten.DrawImageOptions) + func (b *BasicImageParts) Src(i int) (x0, y0, x1, y1 int) + func (b BasicImageParts) SubImage(img *ebiten.Image) *ebiten.Image + type BasicObject struct + Angle float64 + Height int + HeightF float64 + ID xid.ID + NotCentered bool + Position *Vector2d + PrevX float64 + PrevY float64 + Speed float64 + VX float64 + VY float64 + Velocity *Vector2d + Width int + WidthF float64 + func NewBasicObject(x, y float64, w, h int) *BasicObject + func (obj *BasicObject) AddAngle(inc float64) + func (obj *BasicObject) AddPosition(vX, vY float64) + func (obj *BasicObject) AddX(vX float64) + func (obj *BasicObject) AddY(vY float64) + func (obj *BasicObject) Bottom() float64 + func (obj *BasicObject) BottomNoCenter() float64 + func (obj *BasicObject) Contains(srcX, srcY float64) bool + func (obj *BasicObject) ContainsNoCenter(srcX, srcY float64) bool + func (obj *BasicObject) Draw(screen *ebiten.Image) error + func (obj *BasicObject) GetHealth() float64 + func (obj *BasicObject) GetSpeed() float64 + func (obj *BasicObject) GetVelocity() (float64, float64) + func (obj *BasicObject) Left() float64 + func (obj *BasicObject) LeftNoCenter() float64 + func (obj *BasicObject) Right() float64 + func (obj *BasicObject) RightNoCenter() float64 + func (obj *BasicObject) SetAngle(angle float64) + func (obj *BasicObject) SetCentered(isCentered bool) + func (obj *BasicObject) SetCollision2D(isCircle bool) + func (obj *BasicObject) SetID() + func (obj *BasicObject) SetPosition(x, y float64) + func (obj *BasicObject) SetSize(width, height int) + func (obj *BasicObject) SetX(x float64) + func (obj *BasicObject) SetY(y float64) + func (obj *BasicObject) Top() float64 + func (obj *BasicObject) TopNoCenter() float64 + func (obj *BasicObject) Update() + func (obj BasicObject) GetAngle() float64 + func (obj BasicObject) GetHeight() int + func (obj BasicObject) GetHeightF() float64 + func (obj BasicObject) GetID() xid.ID + func (obj BasicObject) GetIDasString() string + func (obj BasicObject) GetPosition() (float64, float64) + func (obj BasicObject) GetSize() (int, int) + func (obj BasicObject) GetWidth() int + func (obj BasicObject) GetWidthF() float64 + func (obj BasicObject) GetX() float64 + func (obj BasicObject) GetY() float64 + func (obj BasicObject) ReturnVectorPosition() Vector2d + type BasicUIElement struct + func NewBasicUIElement(x, y float64, w, h int) *BasicUIElement + func (u *BasicUIElement) AddPosition(x, y float64) + func (u *BasicUIElement) Contains(x, y float64) bool + func (u *BasicUIElement) Highlighted() bool + func (u *BasicUIElement) UnHighlighted() bool + func (u BasicUIElement) Size() (int, int) + type Button struct + Name string + Triggers []ebiten.Key + func NewButton(name string, triggerKeys []ebiten.Key, input *InputController) Button + func (b Button) Down() bool + func (b Button) JustPressed() bool + func (b Button) JustReleased() bool + type Camera struct + FreeFloating bool + Height float64 + MaxZoomIn float64 + MaxZoomOut float64 + ScreenHeight float64 + ScreenWidth float64 + Width float64 + Zoom float64 + func CreateCamera(width, height float64) *Camera + func (c *Camera) Center(x, y float64) + func (c *Camera) CenterX(x float64) + func (c *Camera) CenterY(y float64) + func (c *Camera) ChangeZoom() + func (c *Camera) DrawCameraTransform(op *ebiten.DrawImageOptions) + func (c *Camera) DrawCameraTransformIgnoreZoom(op *ebiten.DrawImageOptions) + func (c *Camera) FollowObject(player GameObject, bounds bool) + func (c *Camera) FollowObjectInBounds(player GameObject) + func (c *Camera) FollowObjectNoBounds(player GameObject) + func (c *Camera) FollowPlayer(player GameObject, worldWidth, worldHeight float64) + func (c *Camera) GetDestination() (float64, float64) + func (c *Camera) GetX() float64 + func (c *Camera) GetY() float64 + func (c *Camera) SetBounds(lowerX, upperX, lowerY, upperY float64) + func (c *Camera) SetClamp(clamp bool) + func (c *Camera) SetDimensions(width, height float64) + func (c *Camera) SetOffsetX(offset float64) + func (c *Camera) SetOffsetY(offset float64) + func (c *Camera) SetPosition(x, y float64) + func (c *Camera) SetShakeRadius(radius float64) + func (c *Camera) SetSpeed(s float64) + func (c *Camera) SetX(x float64) + func (c *Camera) SetY(y float64) + func (c *Camera) SetZoom(zoom float64) + func (c *Camera) SetZoomGradual(zoom, speed float64) + func (c *Camera) Shake() + func (c *Camera) StartShaking(r float64) + func (c *Camera) TransformMatrix() *ebiten.DrawImageOptions + func (c *Camera) Update() + func (c *Camera) ZoomIn() + func (c *Camera) ZoomOut() + func (c Camera) ApplyCameraTransform(op *ebiten.DrawImageOptions, applyZoom bool) + func (c Camera) GetOffsetX() float64 + func (c Camera) GetOffsetY() float64 + func (c Camera) GetScreenCoords(x, y float64) (float64, float64) + func (c Camera) OnScreen(x, y float64, w, h int) bool + func (c Camera) Position() (x, y float64) + type Cursor struct + func NewCursor(screenWidth, screenHeight float64, spritesheet *ebiten.Image) *Cursor + func (c *Cursor) Draw(screen *ebiten.Image) error + func (c *Cursor) SetStyle(cursorstyle int) + func (c *Cursor) Update(mx, my float64) + type Frame struct + Filename string + Frame map[string]int + Pivot map[string]float64 + Rotated bool + SourceSize map[string]int + SpriteSourceSize map[string]int + Trimmed bool + type Game struct + AdditionalCameras map[string]*Camera + AudioPlayer *AudioPlayer + DefaultCamera *Camera + GameData *GameData + GameDrawLoop GameDrawHelperFunction + GameStateLoop GameHelperFunction + ImageManager *ImageManager + Input *InputController + IsMobile bool + PausedState GameState + Random *rand.Rand + Screen *ebiten.Image + UIController *UIController + func NewGame(screenWidth, screenHeight float64) (game *Game, err error) + func (g *Game) Draw(screen *ebiten.Image) + func (g *Game) Layout(outsideWidth, outsideHeight int) (screenWidth, screenHeight int) + func (g *Game) LoadAudio(gFunction GameLoadAudioFunction) + func (g *Game) LoadImages(gFunction GameLoadImagesFunction) + func (g *Game) SetGameDrawLoop(gFunction GameDrawHelperFunction) + func (g *Game) SetGameState(gs GameState) + func (g *Game) SetGameStateLoop(gFunction GameHelperFunction) + func (g *Game) SetMobile(m bool) + func (g *Game) SetPauseState(gs GameState) + func (g *Game) ToggleFullscreen() + func (g *Game) UnPause() + func (g *Game) Update() error + func (g Game) GetGameState() GameState + func (g Game) ScreenHeight() int + func (g Game) ScreenSize() (w, h int) + func (g Game) ScreenWidth() int + type GameData struct + Settings map[string]*GameValuePair + func NewGameData() *GameData + func (g *GameData) SetCurrentScore(score float64) + func (g *GameData) SetHighScore(score float64) + func (g *GameData) TimeInMilliseconds() int + func (g *GameData) TimeInSecond() int + func (g *GameData) Update() + type GameDrawHelperFunction func(*ebiten.Image) error + type GameHelperFunction func() error + type GameLoadAudioFunction func() *AudioPlayer + type GameLoadImagesFunction func() *ImageManager + type GameMode int + const GameModeNormal + type GameObject interface + Contains func(float64, float64) bool + Draw func(*ebiten.Image) error + GetAngle func() float64 + GetHealth func() float64 + GetHeight func() int + GetPosition func() (float64, float64) + GetVelocity func() (float64, float64) + GetWidth func() int + SetPosition func(float64, float64) + type GamePad struct + type GamePadManager struct + GamePads []*GamePad + func NewGamePadManager() *GamePadManager + type GameState interface + Draw func(*Game) error + Msg func() GameStateMsg + SetMsg func(GameStateMsg) + Update func(*Game) error + type GameStateMsg string + type GameValuePair struct + Name string + ValueFloat float64 + ValueInt int + ValueText string + ValueType GameValueType + type GameValueType int + const GameValueFloat + const GameValueInt + const GameValueText + type HUD struct + func NewHUD(screenWidth, screenHeight float64) *HUD + func (hud *HUD) AddBottomLeft(element UIElement) + func (hud *HUD) AddBottomRight(element UIElement) + func (hud *HUD) AddTopLeft(element UIElement) + func (hud *HUD) AddTopRight(element UIElement) + func (hud *HUD) Draw(screen *ebiten.Image, camera *Camera) + func (hud *HUD) Update() + type ImageManager struct + Images map[string]*ebiten.Image + func NewImageManager() *ImageManager + func (im *ImageManager) AddImage(name string, image *ebiten.Image) + func (im *ImageManager) AddImageFromBytes(name string, b []byte) error + func (im *ImageManager) AddImageFromFile(name string, path string) error + func (im *ImageManager) LoadImageFromFile(name string, path string) error + func (im *ImageManager) ReturnImage(name string) *ebiten.Image + type InputController struct + Mouse *Mouse + func NewInputController() *InputController + func (ic *InputController) Button(name string) Button + func (ic *InputController) GetGameMouseCoords(camera *Camera) (x, y float64) + func (ic *InputController) GetGameMouseCoordsNoZoom(camera *Camera) (x, y float64) + func (ic *InputController) GetGameMouseCoordsOffset(camera *Camera, xOffset, yOffset float64) (x, y float64) + func (ic *InputController) GetMouseCoords() (float64, float64) + func (ic *InputController) LeftClick() MouseState + func (ic *InputController) MouseButton(name string) MouseButton + func (ic *InputController) MouseWheelDown() bool + func (ic *InputController) MouseWheelUp() bool + func (ic *InputController) RegisterButton(name string, triggerKeys ...ebiten.Key) + func (ic *InputController) RegisterMouseButton(name string, buttons ...ebiten.MouseButton) + func (ic *InputController) RightClick() MouseState + func (ic *InputController) Update() + type JukeBox struct + AudioPlayer *AudioPlayer + BGDefaultVol float64 + CurrSong string + CurrVol float64 + NextSong string + PrevSong string + SongList []string + func CreateJukeBox(audioPlayer *AudioPlayer, musicList []string) *JukeBox + func (j *JukeBox) ContinuousPlay(songName string) + func (j *JukeBox) CurrentSongName() string + func (j *JukeBox) PlayBG() + func (j *JukeBox) PlaySong(songName string, vol float64) + type KeyManager struct + func NewKeyManager() *KeyManager + func (km *KeyManager) AddKey(k ebiten.Key) + func (km *KeyManager) Get(k ebiten.Key) KeyState + func (km *KeyManager) Set(k ebiten.Key, state bool) + type KeyState struct + func (key *KeyState) State() int + func (key KeyState) Down() bool + func (key KeyState) JustPressed() bool + func (key KeyState) JustReleased() bool + func (key KeyState) Up() bool + type Layer struct + Data []int + DrawOrder string + Height int + Name string + Objects []*MapObject + Opacity int + Properties []*Property + Type string + Visible bool + Width int + X int + Y int + type Line struct + Angle float64 + Length float64 + X1 float64 + X2 float64 + Y1 float64 + Y2 float64 + func NewLineFromTo(fromX, fromY, toX, toY float64) *Line + func (l Line) CalculateAngle() float64 + func (l Line) CalculateLength() float64 + type Map struct + Height int + Layers []*Layer + Orientation string + Properties []*Property + TileHeight int + TileSets []*TileSet + TileWidth int + Version int + Width int + func ReadMap(filename string) *Map + func ReadMapfromByte(byteMap []byte) *Map + func ReadMapfromString(jString string) *Map + type MapObject struct + Height int + ID int + Name string + Rotation float64 + Type string + Visible bool + Width int + X float64 + Y float64 + type Menu struct + Active bool + Elements [][]*MenuElement + Name string + func NewMenu(screenWidth, screenHeight float64) *Menu + func (m *Menu) AddElement(element []UIElement, action []func()) + func (m *Menu) Draw(screen *ebiten.Image, camera *Camera) + func (m *Menu) PressSelected() + func (m *Menu) ReturnSelected() (int, int) + func (m *Menu) SelectHorizontal(id int) + func (m *Menu) SelectVertical(id int) + func (m *Menu) SetBackground(src *ebiten.Image, imgParts *BasicImageParts) + func (m *Menu) SetPadding(x, y int) + func (m *Menu) Update(input *InputController, offsetX, offsetY float64) + type MenuElement struct + Action func() + Selectable bool + func (m *MenuElement) Hide(h bool) + func (m *MenuElement) SetAction(function func()) + func (m *MenuElement) SetCentered(c bool) + func (m *MenuElement) Update(input *InputController, offsetX, offsetY float64) bool + func (m *MenuElement) UpdateWithCamera(input *InputController, camera *Camera, offsetX, offsetY float64) bool + type Modifier int + type Mouse struct + X float64 + Y float64 + func NewMouse() *Mouse + func (m *Mouse) AddKey(k ebiten.MouseButton) + func (m *Mouse) Get(k ebiten.MouseButton) MouseState + func (m *Mouse) GetGameMouseCoordsNoZoom(camera *Camera) (x, y float64) + func (m *Mouse) IsScrollDown() bool + func (m *Mouse) IsScrollUp() bool + func (m *Mouse) Set(key ebiten.MouseButton, state bool) + type MouseButton struct + Name string + Triggers []ebiten.MouseButton + func (b MouseButton) Down() bool + func (b MouseButton) JustPressed() bool + func (b MouseButton) JustReleased() bool + type MouseState struct + func (key *MouseState) State() int + func (key MouseState) Down() bool + func (key MouseState) JustPressed() bool + func (key MouseState) JustReleased() bool + func (key MouseState) Up() bool + type Point struct + X float64 + Y float64 + type Property struct + Name string + PropType string + Value string + type Rectangle struct + H int + W int + X float64 + Y float64 + func (rect *Rectangle) Bottom() float64 + func (rect *Rectangle) Contains(srcX, srcY float64) bool + func (rect *Rectangle) Left() float64 + func (rect *Rectangle) Right() float64 + func (rect *Rectangle) Top() float64 + type SpriteSheet struct + Frames []Frame + func NewSpriteSheet(...) *SpriteSheet + func ReadSpriteSheet(filename string) *SpriteSheet + func ReadSpriteSheetJSON(jsonByte []byte) *SpriteSheet + func (s SpriteSheet) ReturnImageParts(f int) *BasicImageParts + type TextArea struct + Lines int + Selected bool + func NewTextArea(x, y float64, w, h, lines int, font *truetype.Font, textColor color.Color, ...) *TextArea + func (ta *TextArea) AddLine(text string) + func (ta *TextArea) NewLine() + func (ta *TextArea) ReturnLastEntered() string + func (ta *TextArea) Update(input *InputController) + type TextBox struct + Selected bool + Text *TextElement + func NewTextBox(x, y float64, w, h int, font *truetype.Font, text []string, ...) *TextBox + func (tb *TextBox) Draw(screen *ebiten.Image, camera *Camera) error + func (tb *TextBox) Update(input *InputController) + type TextElement struct + Name string + Stationary bool + func NewTextElement(x, y float64, w, h int, fnt *truetype.Font, text []string, ...) *TextElement + func NewTextElementCentered(x, y float64, w, h int, fnt *truetype.Font, text []string, ...) *TextElement + func NewTextElementStationary(x, y float64, w, h int, fnt *truetype.Font, text []string, ...) *TextElement + func (t *TextElement) Draw(screen *ebiten.Image, camera *Camera) error + func (t *TextElement) DrawApplyZoom(screen *ebiten.Image) error + func (t *TextElement) DrawPosition(screen *ebiten.Image, camera *Camera) error + func (t *TextElement) GetDrawImage() *ebiten.Image + func (t *TextElement) Hide() + func (t *TextElement) Highlighted() bool + func (t *TextElement) ReturnText() string + func (t *TextElement) SetCentered(c bool) + func (t *TextElement) SetColor(color color.Color) + func (t *TextElement) SetDropShadow(drop bool) + func (t *TextElement) SetDropShadowColor(color color.Color) + func (t *TextElement) SetFontSize(fntSize float64) + func (t *TextElement) SetHighlightColor(c color.Color) + func (t *TextElement) SetPosition(x, y float64) + func (t *TextElement) SetText(text []string) + func (t *TextElement) SetTextColor(c color.Color) + func (t *TextElement) Show() + func (t *TextElement) UnHighlighted() bool + func (t *TextElement) Update() + type Tile struct + Collide bool + Gid int + Image *ebiten.Image + ImageName string + func (t *Tile) DetermineTileSet(tilemap *Map) + func (t *Tile) Draw(screen *ebiten.Image, imageManager *ImageManager) error + type TileLayer struct + Above bool + Collide bool + Data []*Tile + DrawOrder int + Height int + ImageName string + IsImageLayer bool + Name string + Properties []*Property + Width int + X float64 + Y float64 + func (tl *TileLayer) Draw(screen *ebiten.Image, imageManager *ImageManager) error + type TileMap struct + Height int + Layers []*TileLayer + TileHeight int + TileWidth int + Width int + func CreateTileMap(tilemap *Map) *TileMap + func CreateTileMapFromFile(fileLocation string) *TileMap + func (tm *TileMap) Draw(screen *ebiten.Image, imageManager *ImageManager) error + type TileSet struct + Columns int + FirstGID int + Image *ebiten.Image + ImageHeight int + ImageName string + ImageWidth int + LastGID int + Margin int + Name string + Properties []*Property + Rows int + Spacing int + TileCount int + TileHeight int + TileWidth int + func (ts *TileSet) ReturnImagePosition(gid int) (float64, float64) + type UIController struct + Cursor *Cursor + DrawCursor bool + func NewUIController(input *InputController) *UIController + func (ui *UIController) ActivateMenu(name string) + func (ui *UIController) ActiveMenu() string + func (ui *UIController) AddFont(fntName string, tt *truetype.Font) + func (ui *UIController) AddFontFile(fntName, fntFileLoc string) error + func (ui *UIController) AddFontFromBytes(fntName string, bytes []byte) error + func (ui *UIController) AddMenu(name string, menu *Menu) + func (ui *UIController) AddTextDisplay(name string, textElement *TextElement) + func (ui *UIController) DeActivateMenu(name string) + func (ui *UIController) HideMouse() + func (ui *UIController) HideTextElement(name string) + func (ui *UIController) LoadDefaultFonts() + func (ui *UIController) ReturnFont(name string) *truetype.Font + func (ui *UIController) SetCustomCursor(width, height, sx, sy int, spritesheet *ebiten.Image) + func (ui *UIController) ShowMouse() + func (ui *UIController) ShowTextElement(name string) + func (ui *UIController) TextElementExists(name string) bool + func (ui *UIController) ToggleMenu(name string) + func (ui *UIController) Update() + func (ui *UIController) UpdateTextPosition(name string, x, y float64) + func (ui *UIController) WriteText(text []string, name, font string, x, y float64, w, h int, ...) + func (ui UIController) Draw(screen *ebiten.Image, camera *Camera) error + type UIElement interface + AddPosition func(float64, float64) + Contains func(float64, float64) bool + Draw func(*ebiten.Image, *Camera) error + Highlighted func() bool + SetHighlightColor func(color.Color) + SetPosition func(float64, float64) + SetSize func(int, int) + Size func() (int, int) + UnHighlighted func() bool + Update func() + type UINumberDisplay struct + func NewUINumberDisplay(number *float64, x, y float64, w, h int, font *truetype.Font, ...) *UINumberDisplay + func NewUINumberDisplayStationary(number *float64, x, y float64, w, h int, font *truetype.Font, ...) *UINumberDisplay + func (nd *UINumberDisplay) Update() + type UINumberDisplayInt struct + func NewUINumberDisplayInt(number *int, x, y float64, w, h int, font *truetype.Font, fntSize float64, ...) *UINumberDisplayInt + func NewUINumberDisplayIntStationary(number *int, x, y float64, w, h int, font *truetype.Font, ...) *UINumberDisplayInt + func (nd *UINumberDisplayInt) Update() + type UITextDisplay struct + func NewUITextDisplay(text *string, x, y float64, w, h int, font *truetype.Font, ...) *UITextDisplay + func (td *UITextDisplay) Update() + type Vector2d struct + X float64 + Y float64 + func VectorAdd(v, u Vector2d) *Vector2d + func VectorMul(v Vector2d, r float64) *Vector2d + func VectorSub(v, u Vector2d) *Vector2d + func (v *Vector2d) Add(other Vector2d) + func (v *Vector2d) Div(other float64) + func (v *Vector2d) Limit(limit float64) + func (v *Vector2d) Mul(other float64) + func (v *Vector2d) Normalize() + func (v *Vector2d) Sub(other Vector2d) + func (v *Vector2d) Subf(number float64) + func (v Vector2d) Angle(u Vector2d) float64 + func (v Vector2d) Cross(other Vector2d) float64 + func (v Vector2d) Crossf(other float64) Vector2d + func (v Vector2d) Dot(other Vector2d) float64 + func (v Vector2d) Length() float64 + func (v Vector2d) LengthSquared() float64 + func (v Vector2d) Minus(v2 Vector2d) *Vector2d + func (v Vector2d) Normalized() *Vector2d + func (v Vector2d) Plus(v2 Vector2d) *Vector2d + func (v Vector2d) Times(r float64) *Vector2d + func (v Vector2d) ToString() string v0.2.1-alpha Jan 15, 2022