snake/snake.go

14 lines
229 B
Go
Raw Normal View History

package main
import (
"github.com/gdamore/tcell/v2"
)
func updateSnakePos(x *int, y *int) {
*x = *x + 1
}
func drawSnake(screen tcell.Screen, style tcell.Style, x int, y int) {
screen.SetContent(x, y, '🐍', nil, style)
}