diff --git a/lua_scripts/map.lua b/lua_scripts/map.lua index 4ad34d8..7eb7dc5 100644 --- a/lua_scripts/map.lua +++ b/lua_scripts/map.lua @@ -25,6 +25,7 @@ local map = { return "w" end end, + -- Map Populate / check if map exists populate = function(self, map) for h=1,10 do for i=1,10 do @@ -44,6 +45,8 @@ local map = { else return true end + end, + tileColor = function(self) end } local tiles = {} diff --git a/reset b/reset new file mode 100755 index 0000000..2f520c0 --- /dev/null +++ b/reset @@ -0,0 +1,12 @@ +#!/bin/bash + +echo "This will reset ALL data! Are you sure you want to proceed? [y/N]" +read input +if [ "$input" == "y" ] +then + rm database.sqlite3 + ./setup_db + echo "Reset completed, have a nice day." +else + echo "Reset cancelled." +fi diff --git a/views/layout.etlua b/views/layout.etlua index 6367ba6..22935f9 100644 --- a/views/layout.etlua +++ b/views/layout.etlua @@ -7,7 +7,7 @@
-