game

package
v0.0.0-...-efee7b9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NKeyMap = map[string]uint8{
	"dance-single": 4,
	"dance-solo":   6,
	"dance-double": 8,
}

Functions

This section is empty.

Types

type BPM

type BPM struct {
	StartingBeat float64
	Value        float64
}

type Chart

type Chart struct {
	Notes      []*Note
	NoteCount  int64
	MineCount  int64
	Difficulty Difficulty
	// contains filtered or unexported fields
}

func (*Chart) Active

func (c *Chart) Active() ([]*Note, int, int)

func (*Chart) SetActive

func (c *Chart) SetActive(start int, end int)

type Difficulty

type Difficulty struct {
	Name    string
	Msd     string
	Section string
	NKeys   uint8
}

type Input

type Input struct {
	Index   uint8 // game column index
	HitTime time.Duration
}

type Judgement

type Judgement struct {
	Time time.Duration
	Name string
}

type Note

type Note struct {
	Index   uint8 // The chart column
	Denom   int   // The beat length, as a denominator, 4 = 1/4 beat
	IsMine  bool
	Time    time.Duration // The time the note should be hit
	TimeEnd time.Duration // TDurationhe time the note should be unhit

	// This is state
	Row     uint16        // The current row this note is rendered on, for clearing
	HitTime time.Duration // When the note was hit
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL