package
Version:
v0.0.0-...-6d6c343
Opens a new window with list of versions in this module.
Published: Jun 17, 2023
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
ScreenWidth = 320
ScreenHeight = 240
TileSize = 5
)
type Food struct {
Position Point
}
type Point struct {
X int
Y int
}
type Snake struct {
Body []Point
Direction Point
GrowCounter int
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.