Ryhthm game using raylib
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

23 lines
439 B

package game
type Chart struct {
Notes []*Note
NoteCount int64
HoldCount int64
MineCount int64
Difficulty Difficulty
activeNotes []*Note
startNoteIndex int
endNoteIndex int
}
func (c *Chart) Active() ([]*Note, int, int) {
return c.activeNotes, c.startNoteIndex, c.endNoteIndex
}
func (c *Chart) SetActive(start int, end int) {
c.activeNotes = c.Notes[start:end]
c.startNoteIndex = start
c.endNoteIndex = end
}