So… Yesterday evening.. damn…
I was like "Lets just add this function, and then go to sleep"
It became "Ya know, I feel like programming, lets just get this map going. […] Okay, thats good, but I realy need to sleep now… But I would realy like to see the player run around… […] …But then I need this function… […] Oh, and this needs to be added too… […] Hm, why wont this work and- WAIT, IS IT THIS LATE?!"
So now I'm tired and there will hopefully be a new version out this evening, which has:
-First testing map done…
-Map properties.
-Key clicking options.
-Tick is done.
-And the basics for the player to run around…
Also, what is the best way to 'store' a map, this is how I'm doing it now:
-- testMap1
-- ''[]'' is a block, '' '' is air.
local testMap1x1 = {"[]", ''[]'', '' '', '' '', ''[]''}
local testMap1x2 = {'' '', '' '', '' '', ''[]'', ''[]''}
local testMap1x1Props = {''solid'', ''solid'', ''air'', ''air'', ''solid''}
local testMap1x2Props = {"air'', ''air'', ''air'', ''solid'', ''solid''}
And how I load it for now…
-- Load testMap1
for i = 1, 5 do
term.write("" ..testMap1x1[i]
end
print("")
for i = 1, 5 do
term.write("" ..testMap1x2[i]
end
I have a better Idea for storing the properties, and loading it, but how do I save it better?