From 9a9a39cbfbae693c745b5841b7e7b8fa268671d0 Mon Sep 17 00:00:00 2001 From: Anish Lakhwara Date: Sat, 24 Dec 2022 20:26:49 +1000 Subject: [PATCH] add map stuff --- map.fnl | 10 ++++++++++ map.txt | 26 ++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 map.fnl create mode 100644 map.txt diff --git a/map.fnl b/map.fnl new file mode 100644 index 0000000..9425c39 --- /dev/null +++ b/map.fnl @@ -0,0 +1,10 @@ +(local gridWidth 50) +(local gridHeight 25) + +(var map {}) + +(fn start [map width height] + (for [i 1 width] + (tset map i {}) + (for [j 1 height] + (tset map i j "#")))) diff --git a/map.txt b/map.txt new file mode 100644 index 0000000..d8baa19 --- /dev/null +++ b/map.txt @@ -0,0 +1,26 @@ + + ############## + # ############################ + # # + # # + # ############# # + # # # # + ############## # # + # # + # # + # # + ########### ### + # # + # # ##### + # #### # + # c# + # #### # + # # ##### + ############################ # + # # + ############################ # + # # + #### + + +