aboutsummaryrefslogtreecommitdiffstats
path: root/example.txt
diff options
context:
space:
mode:
authornathan <thenathansmithsmith@gmail.com>2023-04-07 00:36:56 +0000
committernathan <thenathansmithsmith@gmail.com>2023-04-07 00:36:56 +0000
commit4fb3172f1baf4813fcc18259b971bfe121e5f116 (patch)
tree342a6106bb819f87a7099db45574494a72a1fffa /example.txt
downloadcolor_game-4fb3172f1baf4813fcc18259b971bfe121e5f116.tar.gz
color_game-4fb3172f1baf4813fcc18259b971bfe121e5f116.tar.bz2
color_game-4fb3172f1baf4813fcc18259b971bfe121e5f116.zip
first commit
Diffstat (limited to 'example.txt')
-rw-r--r--example.txt31
1 files changed, 31 insertions, 0 deletions
diff --git a/example.txt b/example.txt
new file mode 100644
index 0000000..c7b119f
--- /dev/null
+++ b/example.txt
@@ -0,0 +1,31 @@
+0 = not on the map
+1 = red
+2 = yellow
+3 = green
+4 = blue
+5 = white
+6 = black
+7 = brown
+8 = blank
+
+Make the 2d array the size of the map.
+Your .json file goes in the map folder.
+
+linux:
+ /usr/local/share/color_game/maps
+
+Start of .json.
+{
+ "size": {"w": 8, "h": 9},
+ "map": [
+ [0, 0, 0, 0, 0, 0, 8, 8],
+ [0, 0, 4, 3, 2, 0, 8, 4],
+ [6, 8, 8, 8, 8, 8, 8, 0],
+ [0, 8, 0, 8, 0, 8, 8, 0],
+ [0, 1, 8, 8, 8, 8, 0, 0],
+ [0, 0, 8, 0, 8, 8, 8, 8],
+ [0, 8, 8, 0, 8, 8, 8, 5],
+ [0, 0, 8, 0, 8, 0, 0, 0],
+ [0, 0, 2, 7, 8, 0, 0, 0]
+ ]
+}