Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Camera ¶
Camera controls camera position in a pixel window.
type GridRenderOptions ¶
type GridRenderer ¶
GridRenderer abstracts a pixel-powered grid renderer.
func NewRenderer ¶
func NewRenderer(opt GridRenderOptions) (*GridRenderer, error)
NewRenderer initializes and returns a new pixel renderer in the specified window.
func (*GridRenderer) Clear ¶
func (r *GridRenderer) Clear()
func (*GridRenderer) Draw ¶
func (r *GridRenderer) Draw()
func (*GridRenderer) GetCamera ¶
func (r *GridRenderer) GetCamera() *Camera
func (*GridRenderer) Running ¶
func (r *GridRenderer) Running() bool
type InputHandler ¶
type InputHandler struct {
// contains filtered or unexported fields
}
InputHandler handles input using pixel.
func NewInputHandler ¶
func NewInputHandler(win *pixelgl.Window) *InputHandler
func (*InputHandler) AutoExploreTriggered ¶
func (i *InputHandler) AutoExploreTriggered() bool
func (*InputHandler) GetDirection ¶
func (i *InputHandler) GetDirection() cartography.Direction
func (*InputHandler) RepeatModeTriggered ¶
func (i *InputHandler) RepeatModeTriggered() bool
RepeatModeTriggered returns if repeat mode was triggered.
Click to show internal directories.
Click to hide internal directories.