Advertisement
Guest User

startup

a guest
Oct 31st, 2014
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. os.loadAPI("move")
  2. while true do
  3. local event,param = os.pullEvent("key")
  4. if param == 200
  5. then move.north()
  6. end
  7.  
  8. if param == 208
  9. then move.south()
  10. end
  11.  
  12. if param == 203
  13. then move.west()
  14. end
  15.  
  16. if param == 205
  17. then move.east()
  18. end
  19.  
  20. if param == 78
  21. then move.up()
  22. end
  23.  
  24. if param == 74
  25. then move.down()
  26. end
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement