Documentation ¶
Index ¶
- Constants
- func ColorConv(c color.Color) tcell.Color
- type Cell
- type Game
- func (g *Game) Background(c color.Color)
- func (g *Game) Bottom() int
- func (g *Game) DeltaT() time.Duration
- func (g *Game) DrawText(x, y int, text string)
- func (g *Game) Foreground(c color.Color)
- func (g *Game) Frame() int
- func (g *Game) Height() int
- func (g *Game) Left() int
- func (g *Game) Loop()
- func (g *Game) MouseX() int
- func (g *Game) MouseY() int
- func (g *Game) Noise() opensimplex.Noise
- func (g *Game) OutOfScreen(x, y int) bool
- func (g *Game) PatchChar(x, y int, r rune)
- func (g *Game) PlayerX() float64
- func (g *Game) PlayerY() float64
- func (g *Game) PutChar(x, y int, r rune)
- func (g *Game) PutColor(x, y int)
- func (g *Game) ResetStyle()
- func (g *Game) Right() int
- func (g *Game) Top() int
- func (g *Game) Width() int
- type GameState
Constants ¶
View Source
const HitRange = 0.75
View Source
const MaxFPS = 50.0
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Game ¶
type Game struct {
// contains filtered or unexported fields
}
func (*Game) Background ¶
func (*Game) Foreground ¶
func (*Game) Noise ¶
func (g *Game) Noise() opensimplex.Noise
func (*Game) OutOfScreen ¶
func (*Game) ResetStyle ¶
func (g *Game) ResetStyle()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.