Documentation
ΒΆ
Index ΒΆ
Constants ΒΆ
View Source
const ( ActionUp input.Action = iota ActionDown ActionLeft ActionRight ActionAccept ActionBack ActionPause ActionReset ActionFullscreen )
Variables ΒΆ
This section is empty.
Functions ΒΆ
Types ΒΆ
type BPMChangeEvent ΒΆ
type Conductor ΒΆ
type Conductor struct { Bpm int Crochet float64 StepCrochet float64 SongPosition float64 LastSongPos float64 Offset float64 SafeFrames int SafeZoneOffset float64 BPMChangeMap []BPMChangeEvent }
func NewConductor ΒΆ
func (*Conductor) MapBPMChanges ΒΆ
type Flasher ΒΆ
type Flasher struct {
// contains filtered or unexported fields
}
func NewFlasher ΒΆ
type Flicker ΒΆ
type IntroText ΒΆ
type IntroText struct {
// contains filtered or unexported fields
}
func (*IntroText) CreateText ΒΆ
func (*IntroText) DeleteText ΒΆ
func (it *IntroText) DeleteText()
type MusicBeat ΒΆ
type MusicBeat struct { LastBeat float64 LastStep float64 CurBeat int CurStep int StepHitFunc func(int) BeatHitFunc func(int) // contains filtered or unexported fields }
MusicBeat is basically MusicBeatState in vanilla FNF.
func NewMusicBeat ΒΆ
func (*MusicBeat) UpdateBeat ΒΆ
func (mb *MusicBeat) UpdateBeat()
func (*MusicBeat) UpdateCurStep ΒΆ
func (mb *MusicBeat) UpdateCurStep()
type Scene ΒΆ
type Scene interface { io.Closer // Init initializes the scene. It's called once before the scene is displayed. Init() error // Update updates the scene by one tick; dt is the time since the last update (aka delta time). // dt is only used internally by gween (the tweening library), otherwise don't use this. It could be omitted if not necessary for your case. Update(dt float64) error // Draw renders the scene onto the screen for the current frame. Draw(screen *ebiten.Image) }
Scene represents a game scene.
type SceneController ΒΆ
type SceneController struct {
// contains filtered or unexported fields
}
func NewStateController ΒΆ
func NewStateController(state Scene) *SceneController
func (*SceneController) Close ΒΆ
func (sc *SceneController) Close() error
func (*SceneController) Draw ΒΆ
func (sc *SceneController) Draw(screen *ebiten.Image)
func (*SceneController) SwitchScene ΒΆ
func (sc *SceneController) SwitchScene(newScene Scene) error
func (*SceneController) Update ΒΆ
func (sc *SceneController) Update(dt float64) error
type Song ΒΆ
type Song struct { Song string `json:"song"` Notes []Section `json:"notes"` Bpm int `json:"bpm"` NeedsVoices bool `json:"needsVoices"` Speed float64 `json:"speed"` Player1 string `json:"player1"` Player2 string `json:"player2"` ValidScore bool `json:"validScore"` }
func LoadSongFromJSON ΒΆ
type Sprite ΒΆ
type Sprite struct { Position image.Point Img *ebiten.Image Visible bool AnimController *anim.AnimController }
func (*Sprite) DrawImageOptions ΒΆ
func (s *Sprite) DrawImageOptions() *ebiten.DrawImageOptions
func (*Sprite) DrawWithOptions ΒΆ
func (s *Sprite) DrawWithOptions(img *ebiten.Image, opts *ebiten.DrawImageOptions)
Source Files
ΒΆ
Directories
ΒΆ
Path | Synopsis |
---|---|
Package assets provides access to the embedded FNF assets.
|
Package assets provides access to the embedded FNF assets. |
cmd
|
|
internal
|
|
anim
Package anim implements animations.
|
Package anim implements animations. |
anim/animhcl
Package animhcl allows loading from external HCL files (see `assets/images` for examples).
|
Package animhcl allows loading from external HCL files (see `assets/images` for examples). |
character/boyfriend
Package boyfriend implements Boyfriend as defined here: https://github.com/FunkinCrew/Funkin/blob/v0.2.7.1/source/Boyfriend.hx
|
Package boyfriend implements Boyfriend as defined here: https://github.com/FunkinCrew/Funkin/blob/v0.2.7.1/source/Boyfriend.hx |
config
Package config implements a simple key-value store used to securely store game save data and high scores in a non-human readable binary format.
|
Package config implements a simple key-value store used to securely store game save data and high scores in a non-human readable binary format. |
scene
Package scene implements the scenes.
|
Package scene implements the scenes. |
Click to show internal directories.
Click to hide internal directories.