Documentation ¶
Overview ¶
Package fighters is a prototype of The Everlasting Fighters.
Index ¶
Constants ¶
View Source
const MaxSoundFrames = 120
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Character ¶
type Character struct { RoomID string Sprites []*sprites.Sprite States []CharacterState MaxHP uint8 MaxMeter int8 }
func (*Character) Render ¶
func (c *Character) Render(ps *PlayerState, b *sprites.Batch, sx float32)
func (*Character) Update ¶
func (c *Character) Update(s *State, ps *PlayerState, inputs rollback.InputFrame)
type CharacterState ¶
type CharacterState struct { Sprite int Sound *audio.Sound Update func(s *State, ps *PlayerState, inputs rollback.InputFrame) Hitboxes []HitboxDef }
type Game ¶
type Game struct {
// contains filtered or unexported fields
}
func (*Game) MakeScreenReaderUI ¶ added in v0.3.19
func (g *Game) MakeScreenReaderUI() *screenreader.UI
type PlayerState ¶
type PlayerState struct { Char *Character Pos [2]float32 Vel [2]float32 HP uint8 Meter int8 HPDelay uint8 HPChanged uint8 Combo uint8 Flip bool State int Count int Sound [MaxSoundFrames]SoundRecord }
func (*PlayerState) SetState ¶
func (ps *PlayerState) SetState(i int)
type SoundRecord ¶ added in v0.3.17
type State ¶
type State struct { FrameNum uint64 Player [2]PlayerState }
func (*State) OnRollback ¶ added in v0.3.12
func (s *State) OnRollback()
func (*State) Update ¶
func (s *State) Update(p1, p2 rollback.InputFrame)
Click to show internal directories.
Click to hide internal directories.