Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("move")
- while true do
- local event,param = os.pullEvent("key")
- if param == 200
- then move.north()
- end
- if param == 208
- then move.south()
- end
- if param == 203
- then move.west()
- end
- if param == 205
- then move.east()
- end
- if param == 78
- then move.up()
- end
- if param == 74
- then move.down()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement