Documentation ¶
Index ¶
- Constants
- func Clear()
- func DrawRune(x, y int, r rune)
- func GameToScreen(x, y int) (int, int)
- func Print(x, y int, chars string)
- func PrintSlice(x, y int, items []string)
- func PrintSliceAtBottom(items []string)
- func ScreenToGame(x, y int) (int, int)
- func SetCell(x, y int, r rune)
- func Uninit()
- func Update()
- type Event
Constants ¶
View Source
const ( ENTER = iota UP DOWN LEFT RIGHT ESC )
View Source
const OffSet = 1
OffSet defines how much buffer space should be left between the top left corner of the screen and the top left corner of the game map display
Variables ¶
This section is empty.
Functions ¶
func DrawRune ¶
DrawRune is the display function to be used when representing objects on the screen. It is not to be used when displaying text.
func GameToScreen ¶
Converts Game coordinates to Screen Coordinates, adjusted for offset and aspect
func PrintSlice ¶
PrintSlice displays a given slice of strings in series, beginning at position
func PrintSliceAtBottom ¶
func PrintSliceAtBottom(items []string)
PrintSliceAtBottom displays a given slice of strings, snapped to the bottom of the screen
func ScreenToGame ¶
Converts Screen coordinates to Game Coordinates, useful for turning mouse click coordinates to the cell in that position on the game map
Types ¶
Click to show internal directories.
Click to hide internal directories.