Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RegularText = FontFaceID{ Font: BackTo1982Font, Size: 32, } BigText = FontFaceID{ Font: BackTo1982Font, Size: 48, } )
Functions ¶
func FontFace ¶
func FontFace(id FontFaceID) font.Face
Types ¶
type FontFaceID ¶
type ImageID ¶
type ImageID string
const ( SnakeHeadSide ImageID = "img/snake-head-side.png" SnakeHeadTop ImageID = "img/snake-head-top.png" SnakeBody ImageID = "img/snake-body.png" SnakeBodyTurn ImageID = "img/snake-body-turn.png" SnakeTail ImageID = "img/snake-tail.png" Apple ImageID = "img/apple.png" Floor ImageID = "img/floor.png" Wall ImageID = "img/wall.png" )
Click to show internal directories.
Click to hide internal directories.