Versions in this module Expand all Collapse all v1 v1.0.0 Mar 13, 2024 Changes in this version + const DbgFlagAll + const DbgFlagEvent + const DbgFlagInstr + const DbgFlagLoad + const Down + const Edge + const EdgeBottom + const EdgeLeft + const EdgeRight + const EdgeTop + const GopPackage + const Gop_sched + const Left + const Mouse + const Next + const Prev + const Right + const Up + func Exit() + func Gopt_Game_Main(game Gamer, sprites ...Spriter) + func Gopt_Game_Reload(game Gamer, index interface{}) (err error) + func Gopt_Game_Run(game Gamer, resource interface{}, gameConf ...*Config) + func Gopt_Sprite_Clone(sprite Spriter) + func Iround(v float64) int + func Rand(from, to float64) float64 + func Sched() int + func SchedNow() int + func SetDebug(flags dbgFlags) + type Camera struct + func (c *Camera) ChangeXYpos(x float64, y float64) + func (c *Camera) On(obj interface{}) + func (c *Camera) SetXYpos(x float64, y float64) + type Color = color.RGBA + func RGB(r, g, b uint8) Color + func RGBA(r, g, b, a uint8) Color + type Config struct + DontParseFlags bool + DontRunOnUnfocused bool + FullScreen bool + Height int + Index interface{} + KeyDuration int + ScreenshotKey string + Title string + Width int + type EffectKind int + const BrightnessEffect + const ColorEffect + const GhostEffect + func (kind EffectKind) String() string + type Game struct + func (p *Game) Answer() Value + func (p *Game) Ask(msg interface{}) + func (p *Game) Broadcast(msg string) + func (p *Game) ChangeEffect(kind EffectKind, delta float64) + func (p *Game) ChangeVolume(delta float64) + func (p *Game) ClearSoundEffects() + func (p *Game) Draw(screen *ebiten.Image) + func (p *Game) EraseAll() + func (p *Game) HideVar(name string) + func (p *Game) KeyPressed(key Key) bool + func (p *Game) Layout(outsideWidth, outsideHeight int) (screenWidth, screenHeight int) + func (p *Game) Loudness() float64 + func (p *Game) MouseHitItem() (target *Sprite, ok bool) + func (p *Game) MousePressed() bool + func (p *Game) MouseX() float64 + func (p *Game) MouseY() float64 + func (p *Game) NextScene(wait ...bool) + func (p *Game) OnAnyKey(onKey func(key Key)) + func (p *Game) OnClick(onClick func()) + func (p *Game) OnKey(key Key, onKey func()) + func (p *Game) OnMsg(onMsg func(msg string, data interface{})) + func (p *Game) OnScene(onScene func(name string)) + func (p *Game) OnStart(onStart func()) + func (p *Game) Play(media Sound) + func (p *Game) PrevScene(wait ...bool) + func (p *Game) ResetTimer() + func (p *Game) SceneIndex() int + func (p *Game) SceneName() string + func (p *Game) SetEffect(kind EffectKind, val float64) + func (p *Game) SetVolume(volume float64) + func (p *Game) ShowVar(name string) + func (p *Game) StartScene(scene interface{}, wait ...bool) + func (p *Game) Stop(kind StopKind) + func (p *Game) StopAllSounds() + func (p *Game) Timer() float64 + func (p *Game) Update() error + func (p *Game) Username() string + func (p *Game) Volume() float64 + func (p *Game) Wait(secs float64) + type Gamer interface + type Key = ebiten.Key + const Key0 + const Key1 + const Key2 + const Key3 + const Key4 + const Key5 + const Key6 + const Key7 + const Key8 + const Key9 + const KeyA + const KeyAlt + const KeyAny + const KeyApostrophe + const KeyB + const KeyBackslash + const KeyBackspace + const KeyC + const KeyCapsLock + const KeyComma + const KeyControl + const KeyD + const KeyDelete + const KeyDown + const KeyE + const KeyEnd + const KeyEnter + const KeyEqual + const KeyEscape + const KeyF + const KeyF1 + const KeyF10 + const KeyF11 + const KeyF12 + const KeyF2 + const KeyF3 + const KeyF4 + const KeyF5 + const KeyF6 + const KeyF7 + const KeyF8 + const KeyF9 + const KeyG + const KeyGraveAccent + const KeyH + const KeyHome + const KeyI + const KeyInsert + const KeyJ + const KeyK + const KeyKP0 + const KeyKP1 + const KeyKP2 + const KeyKP3 + const KeyKP4 + const KeyKP5 + const KeyKP6 + const KeyKP7 + const KeyKP8 + const KeyKP9 + const KeyKPDecimal + const KeyKPDivide + const KeyKPEnter + const KeyKPEqual + const KeyKPMultiply + const KeyKPSubtract + const KeyL + const KeyLeft + const KeyLeftBracket + const KeyM + const KeyMax + const KeyMenu + const KeyMinus + const KeyN + const KeyNumLock + const KeyO + const KeyP + const KeyPageDown + const KeyPageUp + const KeyPause + const KeyPeriod + const KeyPrintScreen + const KeyQ + const KeyR + const KeyRight + const KeyRightBracket + const KeyS + const KeyScrollLock + const KeySemicolon + const KeyShift + const KeySlash + const KeySpace + const KeyT + const KeyTab + const KeyU + const KeyUp + const KeyV + const KeyW + const KeyX + const KeyY + const KeyZ + type List struct + func (p *List) Append(v obj) + func (p *List) At(i Pos) Value + func (p *List) Contains(v obj) bool + func (p *List) Delete(i Pos) + func (p *List) Init(data ...obj) + func (p *List) InitFrom(src *List) + func (p *List) Insert(i Pos, v obj) + func (p *List) Len() int + func (p *List) Set(i Pos, v obj) + func (p *List) String() string + type MovingInfo struct + NewX float64 + NewY float64 + Obj *Sprite + OldX float64 + OldY float64 + func (p *MovingInfo) Dx() float64 + func (p *MovingInfo) Dy() float64 + func (p *MovingInfo) StopMoving() + type PlayAction int + const PlayContinue + const PlayPause + const PlayResume + const PlayRewind + const PlayStop + type PlayOptions struct + Action PlayAction + Loop bool + Wait bool + type Pos int + const All + const Invalid + const Last + const Random + type RotationStyle int + const LeftRight + const None + const Normal + type Shape interface + type Sound *soundConfig + type Sprite struct + func (p *Sprite) Animate(name string) + func (p *Sprite) Ask(msg interface{}) + func (p *Sprite) BounceOffEdge() + func (p *Sprite) Bounds() *math32.RotatedRect + func (p *Sprite) ChangeEffect(kind EffectKind, delta float64) + func (p *Sprite) ChangeHeading(dir float64) + func (p *Sprite) ChangePenColor(delta float64) + func (p *Sprite) ChangePenHue(delta float64) + func (p *Sprite) ChangePenShade(delta float64) + func (p *Sprite) ChangePenSize(delta float64) + func (p *Sprite) ChangeSize(delta float64) + func (p *Sprite) ChangeXYpos(dx, dy float64) + func (p *Sprite) ChangeXpos(dx float64) + func (p *Sprite) ChangeYpos(dy float64) + func (p *Sprite) ClearGraphEffects() + func (p *Sprite) CostumeHeight() float64 + func (p *Sprite) CostumeIndex() int + func (p *Sprite) CostumeName() string + func (p *Sprite) CostumeWidth() float64 + func (p *Sprite) Destroy() + func (p *Sprite) Die() + func (p *Sprite) DistanceTo(obj interface{}) float64 + func (p *Sprite) Glide(x, y float64, secs float64) + func (p *Sprite) GoBackLayers(n int) + func (p *Sprite) Goto(obj interface{}) + func (p *Sprite) GotoBack() + func (p *Sprite) GotoFront() + func (p *Sprite) Heading() float64 + func (p *Sprite) Hide() + func (p *Sprite) HideVar(name string) + func (p *Sprite) InitFrom(src *Sprite) + func (p *Sprite) IsCloned() bool + func (p *Sprite) Move(step float64) + func (p *Sprite) NextCostume() + func (p *Sprite) OnAnyKey(onKey func(key Key)) + func (p *Sprite) OnClick(onClick func()) + func (p *Sprite) OnCloned(onCloned func(data interface{})) + func (p *Sprite) OnKey(key Key, onKey func()) + func (p *Sprite) OnMoving(onMoving func(mi *MovingInfo)) + func (p *Sprite) OnMsg(onMsg func(msg string, data interface{})) + func (p *Sprite) OnScene(onScene func(name string)) + func (p *Sprite) OnStart(onStart func()) + func (p *Sprite) OnTouched(onTouched func(obj *Sprite)) + func (p *Sprite) OnTurning(onTurning func(ti *TurningInfo)) + func (p *Sprite) Parent() *Game + func (p *Sprite) PenDown() + func (p *Sprite) PenUp() + func (p *Sprite) PrevCostume() + func (p *Sprite) Quote(message string) + func (p *Sprite) Say(msg interface{}, secs ...float64) + func (p *Sprite) SetCostume(costume interface{}) + func (p *Sprite) SetDying() + func (p *Sprite) SetEffect(kind EffectKind, val float64) + func (p *Sprite) SetHeading(dir float64) + func (p *Sprite) SetPenColor(color Color) + func (p *Sprite) SetPenHue(hue float64) + func (p *Sprite) SetPenShade(shade float64) + func (p *Sprite) SetPenSize(size float64) + func (p *Sprite) SetRotationStyle(style RotationStyle) + func (p *Sprite) SetSize(size float64) + func (p *Sprite) SetXYpos(x, y float64) + func (p *Sprite) SetXpos(x float64) + func (p *Sprite) SetYpos(y float64) + func (p *Sprite) Show() + func (p *Sprite) ShowVar(name string) + func (p *Sprite) Size() float64 + func (p *Sprite) Stamp() + func (p *Sprite) Step(step float64) + func (p *Sprite) Stop(kind StopKind) + func (p *Sprite) Think(msg interface{}, secs ...float64) + func (p *Sprite) Touching(obj interface{}) bool + func (p *Sprite) TouchingColor(color Color) bool + func (p *Sprite) Turn(val interface{}) + func (p *Sprite) TurnTo(obj interface{}) + func (p *Sprite) Visible() bool + func (p *Sprite) Xpos() float64 + func (p *Sprite) Ypos() float64 + type Spriter interface + Main func() + type StopKind int + const AllOtherScripts + const AllSprites + const OtherScriptsInSprite + const ThisScript + const ThisSprite + type TurningInfo struct + NewDir float64 + Obj *Sprite + OldDir float64 + func (p *TurningInfo) Dir() float64 + type Value struct + func (p Value) Equal(v obj) bool + func (p Value) Float() float64 + func (p Value) Int() int + func (p Value) String() string