Moving a constant between files.

This commit is contained in:
Sacha Ligthert 2023-11-23 23:59:54 +01:00
parent 1a9d75574b
commit c5827793ef
2 changed files with 7 additions and 7 deletions

View File

@ -7,13 +7,6 @@ import (
"github.com/gdamore/tcell/v2"
)
const (
Left = iota
Right
Up
Down
)
func initilize() (tcell.Screen, tcell.Style, error) {
style := tcell.StyleDefault.Background(tcell.ColorReset).Foreground(tcell.ColorReset)

View File

@ -1,5 +1,12 @@
package main
const (
Left = iota
Right
Up
Down
)
type Position struct {
x int
y int