Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeyboardPitch ¶
Types ¶
type FinishScene ¶
type Particle ¶
type Particle struct { Sprite int Time float64 MaxTime float64 Source pixel.Vec Destination pixel.Vec Frequency float64 Amplitude float64 Phase float64 }
func (Particle) CurrentLocation ¶
type ParticleSystem ¶
func NewParticleSystem ¶
func NewParticleSystem(filename string, width, height float64) *ParticleSystem
func (*ParticleSystem) Spawn ¶
func (ps *ParticleSystem) Spawn(src, dst pixel.Vec)
func (*ParticleSystem) UpdateAndRender ¶
func (ps *ParticleSystem) UpdateAndRender(win *pixelgl.Window, dt float64)
type Session ¶
type Session struct { Song []notes.SongNote SongID int ModeName string BPM int Played []playedNote Score float64 PlayToStart float64 // if this is < 1.0 game is not started yet Start time.Time // time of start of the session Duration float64 // session duration, progress of song in seconds SongDuration float64 // Duration of the song in seconds SongCursor int // number of passsed notes in song LastUpdateTime time.Time // time of last update PointsParticles *ParticleSystem // contains filtered or unexported fields }
func (Session) RoundedScore ¶
Click to show internal directories.
Click to hide internal directories.