diff --git a/game.go b/game.go index 3cc72d1..3172a29 100644 --- a/game.go +++ b/game.go @@ -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) diff --git a/types.go b/types.go index dcedcc7..b04b6ef 100644 --- a/types.go +++ b/types.go @@ -1,5 +1,12 @@ package main +const ( + Left = iota + Right + Up + Down +) + type Position struct { x int y int