Documentation
¶
Index ¶
- Constants
- Variables
- func Delay(f func())
- func Dist(ax, ay, bx, by int) float64
- func DrawOptions(idx int, alpha, rotation float64) *ebiten.DrawImageOptions
- func DrawTile(sprite int, screen *ebiten.Image, tileset *ebiten.Image, alpha float64, ...)
- func GenerateTodos()
- func IdxToX(idx int) int
- func IdxToXY(idx int) (int, int)
- func IdxToY(idx int) int
- func XYToIdx(x, y int) int
Constants ¶
View Source
const ( TileSize = 16 TilesetW = 16 ScreenWidth = (36 + 10) * TileSize ScreenHeight = (24 + 10) * TileSize TilesW = ScreenWidth / TileSize TilesH = (ScreenHeight / TileSize) - 2 TilesT = TilesW * TilesH TilesBottom = TilesT - TilesW TPS = 30 CycleLength = TPS * 8 )
Game globals.
Variables ¶
View Source
var ( DEBUG = false GAME_PAUSED = false ESC_MENU = false )
Functions ¶
func DrawOptions ¶
func DrawOptions(idx int, alpha, rotation float64) *ebiten.DrawImageOptions
func GenerateTodos ¶
func GenerateTodos()
Each TODO must be in the following format:
///////// // TODO // [non-empty description] /////////
Where the start and end slashes must be four or more in length.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.