Posted 15 April 2013 - 07:42 AM
Hi! I'm working on a saving/loading thing with a "new" button
for a new game.
But it shows the load function.
Code:
Whats wrong?
for a new game.
But it shows the load function.
Code:
function main()
slc = 0
term.setBackgroundColor(colors.white)
term.setTextColor(colors.black)
term.clear()
term.setCursorPos(1,1)
print("[Load]")
print(" ")
print("[New] ")
while true do
event, X, Y = os.pullEvent("mouse_click")
if slc == 0 then
if event == "mouse_click" then
if X >= 1 and X <= 7 and Y == 1 then
load()
elseif X >= 1 and X <= 7 and Y == 3 then
game()
end
end
end
end
end
Whats wrong?