Documentation
¶
Overview ¶
Package matrix provides a matrix-style code rain visualization.
Index ¶
- func Run()
- type Fader
- type ForcedLetter
- type Letter
- type LetterForcer
- type LetterGrid
- type Letters
- type Message
- type Messages
- type Mover
- type Position
- type SysFadeLetters
- type SysInitLetters
- type SysMessages
- type SysMoveLetters
- type SysSwitchFaders
- type UISysDrawLetters
- type UISysDrawMessages
- type UISysManagePause
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ForcedLetter ¶
ForcedLetter component.
type LetterForcer ¶
type LetterGrid ¶
LetterGrid is a resource that holds references to fader entities.
func NewLetterGrid ¶
func NewLetterGrid(width, height, colWidth, lineHeight int) LetterGrid
NewLetterGrid creates a new LetterGrid.
type Letters ¶
type Letters struct {
Letters []rune
}
Letters is a resource that contains all available characters.
type Messages ¶
type Messages struct {
// contains filtered or unexported fields
}
Messages resource.
func NewMessages ¶
type SysFadeLetters ¶
type SysFadeLetters struct { FadeDuration int MessageFadeDuration int // contains filtered or unexported fields }
SysMoveLetters is a system to fade out letters over time.
func (*SysFadeLetters) Finalize ¶
func (s *SysFadeLetters) Finalize(world *ecs.World)
Finalize the system
func (*SysFadeLetters) Initialize ¶
func (s *SysFadeLetters) Initialize(world *ecs.World)
Initialize the system
type SysInitLetters ¶
type SysInitLetters struct { SpawnProb float64 MinMoveInterval int MaxMoveInterval int MinGap int // contains filtered or unexported fields }
SysInitLetters is a system to initialize entities.
func (*SysInitLetters) Finalize ¶
func (s *SysInitLetters) Finalize(world *ecs.World)
Finalize the system
func (*SysInitLetters) Initialize ¶
func (s *SysInitLetters) Initialize(world *ecs.World)
Initialize the system
type SysMessages ¶
SysMessages is a system that places suplimal messages.
func (*SysMessages) Initialize ¶
func (s *SysMessages) Initialize(world *ecs.World)
Initialize the system
type SysMoveLetters ¶
type SysMoveLetters struct { MessageProb float64 // contains filtered or unexported fields }
SysMoveLetters is a system to move letter and activate/de-activate faders.
func (*SysMoveLetters) Finalize ¶
func (s *SysMoveLetters) Finalize(world *ecs.World)
Finalize the system
func (*SysMoveLetters) Initialize ¶
func (s *SysMoveLetters) Initialize(world *ecs.World)
Initialize the system
type SysSwitchFaders ¶
type SysSwitchFaders struct { MinChangeInterval int MaxChangeInterval int // contains filtered or unexported fields }
SysSwitchFaders is a system that occasionally changes the character of faders.
func (*SysSwitchFaders) Finalize ¶
func (s *SysSwitchFaders) Finalize(world *ecs.World)
Finalize the system
func (*SysSwitchFaders) Initialize ¶
func (s *SysSwitchFaders) Initialize(world *ecs.World)
Initialize the system
func (*SysSwitchFaders) Update ¶
func (s *SysSwitchFaders) Update(world *ecs.World)
Update the system
type UISysDrawLetters ¶
type UISysDrawLetters struct {
// contains filtered or unexported fields
}
UISysDrawLetters is a system that draws letters.
func (*UISysDrawLetters) FinalizeUI ¶
func (s *UISysDrawLetters) FinalizeUI(world *ecs.World)
FinalizeUI the system
func (*UISysDrawLetters) InitializeUI ¶
func (s *UISysDrawLetters) InitializeUI(world *ecs.World)
InitializeUI the system
func (*UISysDrawLetters) PostUpdateUI ¶
func (s *UISysDrawLetters) PostUpdateUI(world *ecs.World)
PostUpdateUI the system
func (*UISysDrawLetters) UpdateUI ¶
func (s *UISysDrawLetters) UpdateUI(world *ecs.World)
UpdateUI the system
type UISysDrawMessages ¶
type UISysDrawMessages struct { SecretKey ebiten.Key // contains filtered or unexported fields }
UISysDrawLetters is a system that highlights messages.
func (*UISysDrawMessages) FinalizeUI ¶
func (s *UISysDrawMessages) FinalizeUI(world *ecs.World)
FinalizeUI the system
func (*UISysDrawMessages) InitializeUI ¶
func (s *UISysDrawMessages) InitializeUI(world *ecs.World)
InitializeUI the system
func (*UISysDrawMessages) PostUpdateUI ¶
func (s *UISysDrawMessages) PostUpdateUI(world *ecs.World)
PostUpdateUI the system
func (*UISysDrawMessages) UpdateUI ¶
func (s *UISysDrawMessages) UpdateUI(world *ecs.World)
UpdateUI the system
type UISysManagePause ¶
type UISysManagePause struct {
// contains filtered or unexported fields
}
UISysManagePause is a simple system that transfers the pause state from the common.PauseMouseListener resource to the model's model.Systems.
func (*UISysManagePause) FinalizeUI ¶
func (s *UISysManagePause) FinalizeUI(world *ecs.World)
FinalizeUI the system
func (*UISysManagePause) InitializeUI ¶
func (s *UISysManagePause) InitializeUI(world *ecs.World)
InitializeUI the system
func (*UISysManagePause) PostUpdateUI ¶
func (s *UISysManagePause) PostUpdateUI(world *ecs.World)
PostUpdateUI the system
func (*UISysManagePause) UpdateUI ¶
func (s *UISysManagePause) UpdateUI(world *ecs.World)
UpdateUI the system