Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mouseWidth = 0
- mouseHeight = 0
- -- this creates two variables called mouseWidth
- -- and mouseHeight and sets them to 0.
- monitor = peripheral.wrap("bottom")
- -- you need this line! It tells the computer
- -- the monitor at bottom.
- monitor.clear()
- -- this clears the monitor screen
- monitor.setCursorPos(1,1)
- -- this sets the cursor position to the top left
- -- corner of the monitor
- w,h=monitor.getSize()
- -- gets the width and the height of the monitor
- -- and stores the numbers as w and h.
- -- w and h are variables
- print(w)
- print(h)
- -- prints the w and h to the computer screen.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement