Versions in this module Expand all Collapse all v1 v1.0.1 Dec 13, 2016 Changes in this version + const CircleType + const ColorSwapUnlockSeconds + const DefaultCircleAngleOfDescent + const DefaultSpeed + const DefaultTriangleAngleOfDescent + const HighDifficulty + const HighDifficultyUnlockSeconds + const JumpDownSpeed + const JumpHeight + const JumpUpSpeed + const LeftSide + const LowDifficulty + const LowDifficultyLockSeconds + const LowerTrack + const LowerTrackYAxis + const MediumDifficulty + const MediumDifficultyLockSeconds + const MediumDifficultyUnlockSeconds + const MinimumSpeed + const PatternDelayMillis + const PlayerX + const RightSide + const ScreenHeight + const ScreenWidth + const SquareType + const StartingUpperSpeedLimit + const TrackLength + const TriangleAfterSwap + const TriangleBeforeSwap + const TriangleDuringSwap + const TriangleType + const UpperTrack + const UpperTrackYAxis + var AudioContext *audio.Context + var CircleImage *ebiten.Image + var ColorMappings map[int]ebiten.ColorM + var Debug = false + var DefaultCircleColorMap ebiten.ColorM + var DefaultSquareColorMap ebiten.ColorM + var DefaultTriangleColorMap ebiten.ColorM + var DifficultyTypes = [...]string + var EndImage *ebiten.Image + var Font *truetype.Font + var GamePatternCollection *PatternCollection + var HitboxImageMap map[int]*ebiten.Image + var LowerTrackLine *ebiten.Image + var LowerTrackOpts *ebiten.DrawImageOptions + var PersonJumpingImage *ebiten.Image + var PersonStandingImage *ebiten.Image + var PlatformImage *ebiten.Image + var ShapeImageMap map[int][]*ebiten.Image + var ShapeTypes = [...]int + var SquareImage *ebiten.Image + var SubsequentTracks = map[int]int + var TitleImage *ebiten.Image + var TrackMappings = map[int]int + var TriangleImage *ebiten.Image + var UpperTrackLine *ebiten.Image + var UpperTrackOpts *ebiten.DrawImageOptions + func Load(lg zap.Logger) + func PauseBGM() error + func PlayBGM(bgm BGM) error + func PlaySE(se SE) error + func ResumeBGM(bgm BGM) error + func SetBGMVolume(volume float64) + type BGM string + const BGM0 + type BaseShape struct + BaseSpeed int + Center *coord + Track int + func NewBaseShape(track int, centerX int, baseSpeed int, image *ebiten.Image, ...) *BaseShape + func (s *BaseShape) CenterCoord() *coord + func (s *BaseShape) Draw(screen *ebiten.Image) + func (s *BaseShape) Dst(i int) (x0, y0, x1, y1 int) + func (s *BaseShape) Image() *ebiten.Image + func (s *BaseShape) IsExpired() bool + func (s *BaseShape) Len() int + func (s *BaseShape) RgbaImage() *image.RGBA + func (s *BaseShape) Scored() bool + func (s *BaseShape) SetScore(b bool) + func (s *BaseShape) Src(i int) (x0, y0, x1, y1 int) + type Circle struct + DestinationTrack int + TravelAngle float64 + func NewCircle(base *BaseShape) *Circle + func NewCircleNonStandardAngle(base *BaseShape, travelAngle float64) *Circle + func (c *Circle) Update() + type Drawable interface + CenterCoord func() *coord + Draw func(screen *ebiten.Image) + Dst func(int) (int, int, int, int) + Image func() *ebiten.Image + IsExpired func() bool + Len func() int + RgbaImage func() *image.RGBA + Scored func() bool + SetScore func(bool) + Src func(int) (int, int, int, int) + Update func() + type Loop struct + func NewLoop(stream audio.ReadSeekCloser, size int64) *Loop + func (l *Loop) Close() error + func (l *Loop) Read(b []byte) (int, error) + func (l *Loop) Seek(offset int64, whence int) (int64, error) + type Pattern struct + SpawnGroups []*SpawnGroup + func NewPattern(spawnGroups []*SpawnGroup) *Pattern + type PatternCollection struct + Patterns map[string][]*Pattern + func PatternCollectionFromJSON(data []byte) *PatternCollection + type PlayerCharacter struct + Center *coord + Collided bool + func NewPlayerCharacter(name string, image *ebiten.Image, jimage *ebiten.Image, ...) *PlayerCharacter + func (pc *PlayerCharacter) CheckCollision(sc *ShapeCollection) + func (pc *PlayerCharacter) CheckScore(sc *ShapeCollection) + func (pc *PlayerCharacter) Draw(screen *ebiten.Image) + func (pc *PlayerCharacter) Dst(i int) (x0, y0, x1, y1 int) + func (pc *PlayerCharacter) Image() *ebiten.Image + func (pc *PlayerCharacter) Len() int + func (pc *PlayerCharacter) RgbaImage() *image.RGBA + func (pc *PlayerCharacter) Score() int + func (pc *PlayerCharacter) Src(i int) (x0, y0, x1, y1 int) + func (pc *PlayerCharacter) Update() error + type SE string + const SE_JUMP + type ShapeCollection struct + Stop bool + func NewShapeCollection() *ShapeCollection + func (s *ShapeCollection) Add(g Drawable) + func (s *ShapeCollection) Draw(screen *ebiten.Image) + func (s *ShapeCollection) Update() + type Spawn struct + ShapeType int + Speed int + Track int + func NewSpawn(shapeType int, track int, speed int) *Spawn + func NewSpawnDefaultSpeed(shapeType int, track int) *Spawn + type SpawnGroup struct + SpawnTimeMillis int + Spawns []*Spawn + func NewSpawnGroup(spawns []*Spawn, spawnTimeMillis int) *SpawnGroup + type Square struct + func NewSquare(base *BaseShape) *Square + func (s *Square) Update() + type Stationary struct + Image *ebiten.Image + X int + Y int + func (s *Stationary) Draw(screen *ebiten.Image) + func (s *Stationary) Dst(i int) (x0, y0, x1, y1 int) + func (s *Stationary) Len() int + func (s *Stationary) Src(i int) (x0, y0, x1, y1 int) + type Triangle struct + DestinationTrack int + TravelAngle float64 + func NewTriangle(base *BaseShape) *Triangle + func NewTriangleNonStandardAngle(base *BaseShape, travelAngle float64) *Triangle + func (t *Triangle) Update() v1.0.0 Dec 12, 2016