Difference between revisions of "Talk:Making a Password Protected Door"

From ComputerCraft Wiki
Jump to: navigation, search
(New talk topic)
Line 1: Line 1:
  
−
== While true loop instead of functions ==
+
== Rewriting Page ==
−
 
+
This page needs a rewrite. I am currently working on one, you can see the progress [http://thesbros.kodingen.com/lua/cc.php here]. It may not be updated for a while since I am quite busy right now. If anyone could rewrite this page with pictures, better code, and clean it up a bit, then that would be awesome.
−
<!--
+
−
Please use correct formatting when adding comments.
+
−
-->
+
−
We need a new picture tutorial, the current one should be using this code:
+
−
<pre>
+
−
while true do
+
−
term.clear()
+
−
term.setCursorPos(1,1)
+
−
write("Password: ")
+
−
local t = read("*")
+
−
if t == "password" then
+
−
rs.setOutput("back", true)
+
−
sleep(2)
+
−
rs.setOutput("back", false)
+
−
else
+
−
end
+
−
end
+
−
</pre>
+
−
(a few improvements, plus using a while true loop instead of calling a function over and over again (that crashes the computer after some time)
+
−
 
+
−
Done with slightly different code. Updated writeup to match.  Did not add new screenshots. --[[Special:Contributions/50.39.186.71|50.39.186.71]] 00:41, 22 July 2012 (UTC)
+

Revision as of 18:10, 24 July 2012

Rewriting Page

This page needs a rewrite. I am currently working on one, you can see the progress here. It may not be updated for a while since I am quite busy right now. If anyone could rewrite this page with pictures, better code, and clean it up a bit, then that would be awesome.