Versions in this module Expand all Collapse all v0 v0.1.0 Nov 27, 2023 Changes in this version + type Snake struct + func NewSnake(tailMove []TailMove, pos, dir [2]float32, len int) *Snake + func (s *Snake) Draw(screen *ebiten.Image) + func (s *Snake) GetLength() int + func (s *Snake) GetMode() SnakeMode + func (s *Snake) GetStatus() TailStatus + func (s *Snake) Move() + func (s *Snake) SetDirection(dir [2]float32) + func (s *Snake) SetMode(mode SnakeMode) + type SnakeMode bool + const Pause + const Play + type TailMove func(length *[][2]float32, headIndex int) (status TailStatus) + type TailStatus bool + const Dead + const Live