Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ScreenResized ¶
func ScreenResized(w, h int16)
ScreenResized repositions the grid on the screen
Types ¶
type Position ¶
type Position struct {
// contains filtered or unexported fields
}
A Position on the grid
func PositionAt ¶
PositionAt returns the grid position containing the screen coordinates c.
func PositionOf ¶
PositionOf returns the grid position of entity e.
func (Position) ScreenXY ¶
ScreenXY returns the screen coordinates of the grid position, given a cell size of s.
Click to show internal directories.
Click to hide internal directories.