Documentation ¶
Index ¶
- Constants
- Variables
- func Gopt_MyGame_Main(game interface{})
- func Gopt_MyGame_Run(game interface{}, resource string) error
- func Gopt_Sprite_Clone__0(sprite interface{})
- func Gopt_Sprite_Clone__1(sprite interface{}, data interface{})
- func Gopt_Sprite_OnKey2(sprite interface{}, a string, fn func(key string))
- func Gopt_Sprite_OnKey__0(sprite interface{}, a string, fn func())
- func Gopt_Sprite_OnKey__1(sprite interface{}, a string, fn func(key string))
- func Gopt_Sprite_OnKey__2(sprite interface{}, a []string, fn func())
- func Gopt_Sprite_OnKey__3(sprite interface{}, a []string, fn func(key string))
- func Gopt_Sprite_OnKey__4(sprite interface{}, a []Mesher, fn func())
- func Gopt_Sprite_OnKey__5(sprite interface{}, a []Mesher, fn func(key Mesher))
- func Gopt_Sprite_OnKey__6(sprite interface{}, a []string, b []string, fn func(key string))
- func Gopt_Sprite_OnKey__7(sprite interface{}, a []string, b []Mesher, fn func(key string))
- func Gopt_Sprite_OnKey__8(sprite interface{}, x int, y int)
- func Rand__0(int) int
- func Rand__1(float64) float64
- func Sched()
- func SchedNow()
- type Entry
- type Mesher
- type MyGame
- func (p *MyGame) Broadcast__0(msg string)
- func (p *MyGame) Broadcast__1(msg string, wait bool)
- func (p *MyGame) Broadcast__2(msg string, data interface{}, wait bool)
- func (p *MyGame) Capout(doSth func()) (string, error)
- func (p *MyGame) Gop_Env(name string) int
- func (p *MyGame) Gop_Exec(name string, args ...any)
- func (p *MyGame) InitGameApp(args ...string)
- func (p *MyGame) Ls(n int)
- func (p *MyGame) Play(media string, wait ...bool)
- func (p *MyGame) SendMessage(data interface{})
- type Sound
- type Sprite
Constants ¶
View Source
const ( GopPackage = "github.com/goplus/gop/cl/internal/spx/pkg" Gop_sched = "Sched,SchedNow" )
Variables ¶
View Source
var (
TestIntValue int
)
Functions ¶
func Gopt_MyGame_Main ¶ added in v1.0.10
func Gopt_MyGame_Main(game interface{})
func Gopt_MyGame_Run ¶ added in v1.0.5
func Gopt_Sprite_Clone__0 ¶ added in v1.1.8
func Gopt_Sprite_Clone__0(sprite interface{})
func Gopt_Sprite_Clone__1 ¶ added in v1.1.8
func Gopt_Sprite_Clone__1(sprite interface{}, data interface{})
func Gopt_Sprite_OnKey2 ¶ added in v1.2.0
func Gopt_Sprite_OnKey__0 ¶ added in v1.2.0
func Gopt_Sprite_OnKey__0(sprite interface{}, a string, fn func())
func Gopt_Sprite_OnKey__1 ¶ added in v1.2.0
func Gopt_Sprite_OnKey__2 ¶ added in v1.2.0
func Gopt_Sprite_OnKey__2(sprite interface{}, a []string, fn func())
func Gopt_Sprite_OnKey__3 ¶ added in v1.2.0
func Gopt_Sprite_OnKey__4 ¶ added in v1.2.0
func Gopt_Sprite_OnKey__4(sprite interface{}, a []Mesher, fn func())
func Gopt_Sprite_OnKey__5 ¶ added in v1.2.0
func Gopt_Sprite_OnKey__6 ¶ added in v1.2.0
func Gopt_Sprite_OnKey__7 ¶ added in v1.2.0
func Gopt_Sprite_OnKey__8 ¶ added in v1.2.0
Types ¶
type MyGame ¶ added in v1.0.5
type MyGame struct { }
func (*MyGame) Broadcast__0 ¶ added in v1.0.5
func (*MyGame) Broadcast__1 ¶ added in v1.0.5
func (*MyGame) Broadcast__2 ¶ added in v1.0.5
func (*MyGame) InitGameApp ¶ added in v1.2.0
func (*MyGame) SendMessage ¶ added in v1.1.9
func (p *MyGame) SendMessage(data interface{})
Click to show internal directories.
Click to hide internal directories.