Documentation ¶
Index ¶
- Constants
- func Clamp(value float64, min float64, max float64) float64
- func DrawHitCircleNumber(number int64, position bmath.Vector2d, batch *render.SpriteBatch)
- func GetHitCircleNumberWidth(number int64) int32
- type BaseObject
- type Circle
- func (self *Circle) Draw(time int64, preempt float64, fadeIn float64, color mgl32.Vec4, ...) bool
- func (self *Circle) DrawApproach(time int64, preempt float64, fadeIn float64, color mgl32.Vec4, ...)
- func (self Circle) GetBasicData() *basicData
- func (self *Circle) GetObjectNumber() int64
- func (self *Circle) GetPosition() bmath.Vector2d
- func (self *Circle) SetDifficulty(preempt, fadeIn float64)
- func (self *Circle) SetTiming(timings *Timings)
- func (self *Circle) Update(time int64) bool
- type Pause
- type Renderable
- type Slider
- func (self *Slider) Draw(time int64, preempt float64, fadeIn float64, color mgl32.Vec4, ...) bool
- func (self *Slider) DrawApproach(time int64, preempt float64, fadeIn float64, color mgl32.Vec4, ...)
- func (self *Slider) DrawBody(time int64, preempt float64, fadeIn float64, color mgl32.Vec4, ...)
- func (self *Slider) GetAsDummyCircles() []BaseObject
- func (self Slider) GetBasicData() *basicData
- func (self *Slider) GetCurve() []m2.Vector2d
- func (self Slider) GetCurvePointsLen() int
- func (self Slider) GetEndAngle() float64
- func (self Slider) GetHalf() m2.Vector2d
- func (self *Slider) GetObjectNumber() int64
- func (self Slider) GetPartLen() float64
- func (self Slider) GetPointAt(time int64) m2.Vector2d
- func (self Slider) GetPointAtTail(time int64) m2.Vector2d
- func (self *Slider) GetPosition() m2.Vector2d
- func (self Slider) GetStartAngle() float64
- func (self *Slider) InitCurve(renderer *render.SliderRenderer, flag bool)
- func (self *Slider) SetDifficulty(preempt, fadeIn float64)
- func (self *Slider) SetTiming(timings *Timings)
- func (self *Slider) Update(time int64) bool
- type Spinner
- func (self *Spinner) Draw(time int64, preempt float64, fadeIn float64, color mgl32.Vec4, ...) bool
- func (self *Spinner) DrawApproach(time int64, preempt float64, fadeIn float64, color mgl32.Vec4, ...)
- func (self Spinner) GetBasicData() *basicData
- func (self *Spinner) GetObjectNumber() int64
- func (self *Spinner) GetPosition() bmath.Vector2d
- func (self *Spinner) SetDifficulty(preempt, fadeIn float64)
- func (self *Spinner) SetTiming(timings *Timings)
- func (self *Spinner) Update(time int64) bool
- type TimingPoint
- type Timings
- func (tim *Timings) AddPoint(time int64, bpm float64, sampleset, sampleindex int, samplevolume float64)
- func (tim *Timings) GetPoint(time int64) TimingPoint
- func (tim Timings) GetSliderTime(pixelLength float64) int64
- func (tim Timings) GetSliderTimeP(point TimingPoint, pixelLength float64) int64
- func (tim Timings) GetSliderTimeS(time int64, pixelLength float64) int64
- func (tim *Timings) Log()
- func (tim *Timings) Reset()
- func (tim *Timings) Update(time int64)
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func DrawHitCircleNumber ¶
func DrawHitCircleNumber(number int64, position bmath.Vector2d, batch *render.SpriteBatch)
绘制圈内数字
Types ¶
type BaseObject ¶
type BaseObject interface { GetBasicData() *basicData Update(time int64) bool GetPosition() om.Vector2d SetDifficulty(preempt, fadeIn float64) }
func GetObjectbyPath ¶
func GetObjectbyPath(data []string, number int64, isHR bool) (BaseObject, int64)
type Circle ¶
type Circle struct { Timings *Timings // contains filtered or unexported fields }
func DummyCircleInherit ¶
func (*Circle) DrawApproach ¶
func (Circle) GetBasicData ¶
func (self Circle) GetBasicData() *basicData
func (*Circle) GetObjectNumber ¶
func (*Circle) GetPosition ¶
func (*Circle) SetDifficulty ¶
type Pause ¶
type Pause struct {
// contains filtered or unexported fields
}
func (Pause) GetBasicData ¶
func (self Pause) GetBasicData() *basicData
func (*Pause) GetObjectNumber ¶
func (*Pause) GetPosition ¶
func (*Pause) SetDifficulty ¶
type Renderable ¶
type Slider ¶
type Slider struct { Timings *Timings TPoint TimingPoint Pos m2.Vector2d TickPoints []tickPoint TickReverse []tickPoint TickReverseTrue []tickPoint ScorePoints []tickPoint ScorePointsTrue []tickPoint End bool //加入tail真正的judge点 TailJudgePoint bmath.Vector2d TailJudgeOffset int64 // contains filtered or unexported fields }
func (*Slider) DrawApproach ¶
func (*Slider) GetAsDummyCircles ¶
func (self *Slider) GetAsDummyCircles() []BaseObject
func (Slider) GetBasicData ¶
func (self Slider) GetBasicData() *basicData
func (Slider) GetCurvePointsLen ¶
func (Slider) GetEndAngle ¶
func (*Slider) GetObjectNumber ¶
func (Slider) GetPartLen ¶
func (*Slider) GetPosition ¶
func (Slider) GetStartAngle ¶
func (*Slider) InitCurve ¶
func (self *Slider) InitCurve(renderer *render.SliderRenderer, flag bool)
func (*Slider) SetDifficulty ¶
type Spinner ¶
type Spinner struct { Timings *Timings // contains filtered or unexported fields }
func NewSpinner ¶
func (*Spinner) DrawApproach ¶
func (Spinner) GetBasicData ¶
func (self Spinner) GetBasicData() *basicData
func (*Spinner) GetObjectNumber ¶
func (*Spinner) GetPosition ¶
func (*Spinner) SetDifficulty ¶
type TimingPoint ¶
type TimingPoint struct { Time int64 BaseBpm, Bpm float64 SampleSet int SampleIndex int SampleVolume float64 }
func (TimingPoint) GetRatio ¶
func (t TimingPoint) GetRatio() float64
type Timings ¶
type Timings struct { Points []TimingPoint SliderMult float64 Current TimingPoint BaseSet int LastSet int TickRate float64 // contains filtered or unexported fields }
func NewTimings ¶
func NewTimings() *Timings
func (*Timings) GetPoint ¶
func (tim *Timings) GetPoint(time int64) TimingPoint
func (Timings) GetSliderTime ¶
func (Timings) GetSliderTimeP ¶
func (tim Timings) GetSliderTimeP(point TimingPoint, pixelLength float64) int64
func (Timings) GetSliderTimeS ¶
Click to show internal directories.
Click to hide internal directories.