From 1360956c0af4b61cd25140f67faa6b13b189005b Mon Sep 17 00:00:00 2001 From: Joseph Manley Date: Fri, 21 Aug 2020 00:38:22 -0400 Subject: [PATCH] Update map size --- server/plugin/gamemap/gamemap.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/plugin/gamemap/gamemap.go b/server/plugin/gamemap/gamemap.go index a4fa6f0..437e284 100644 --- a/server/plugin/gamemap/gamemap.go +++ b/server/plugin/gamemap/gamemap.go @@ -7,7 +7,7 @@ import ( // WorldMap is the data structure used game world type WorldMap struct { - data [64][64]int + data [256][256]int max_x int max_y int } @@ -50,9 +50,9 @@ func (m WorldMap) GetJSONRegionAround(centerX float64, centerY float64, regionRa // generate WorldMap objects func IntializeMap() *WorldMap { worldMap := new(WorldMap) - worldMap.max_x = 64 - worldMap.max_y = 64 - worldMap.data = [64][64]int{} + worldMap.max_x = 256 + worldMap.max_y = 256 + worldMap.data = [256][256]int{} for x := 0; x < worldMap.max_x; x++ { for y := 0; y < worldMap.max_y; y++ { worldMap.data[x][y] = 0