GMU:Human and Nonhuman Performances II SS16/Shuyan: Difference between revisions

From Medien Wiki
Line 105: Line 105:
[[File:guacode12.jpg]]
[[File:guacode12.jpg]]


Order is the varible created to count the times of keypressed, any time when a key is pressed, it is to be judged if it is within 8 times
Order is the variable created to count the times of keypressed, any time when a key is pressed, it is to be judged if it is within 8 times.
secondly, the key is to be told if it is "1" or "0" which represents the front face or back face of coin.
 
[[File:guacode13.jpg]]
[[File:guacode13.jpg]]
If the times exceeds to 9th time, it is to be assigned to "0" which represents the first time again, and the "refresh" to be true which will consequently draw background to black to make the canvas refresh again.
If the times exceeds to 9th time, it is to be assigned to "0" which represents the first time again, and the "refresh" to be true which will consequently draw background to black to make the canvas refresh again.