From c5827793efd75d87a0fe4d94fe9ec17bece32a0d Mon Sep 17 00:00:00 2001 From: Sacha Ligthert Date: Thu, 23 Nov 2023 23:59:54 +0100 Subject: [PATCH] Moving a constant between files. --- game.go | 7 ------- types.go | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) 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