Sổ Tay Nhật Ký Học Tập - Bộ Não Thứ 2 - Nguyễn Đăng Trung - 02-04-2007
Appearance

các phép di chuyển và phép quay

6 phép di chuyển và 2 phép quay

di chuyển theo hàm số "num1"

player.onChat("mr", function () {

agent.move(RIGHT, 1)

})

player.onChat("mu", function () {

agent.move(UP, 1)

})

player.onChat("tr", function () {

agent.turn(RIGHT_TURN)

})

player.onChat("mfm", function (num1) {

agent.move(FORWARD, num1)
//(di chuyển theo hàm số num1)

})

player.onChat("mb", function () {

agent.move(BACK, 1)

})

player.onChat("md", function () {

agent.move(DOWN, 1)

})

player.onChat("tl", function () {

agent.turn(LEFT_TURN)

})

player.onChat("ml", function () {

agent.move(LEFT, 1)

})

player.onChat("tp", function () {

agent.teleportToPlayer()

})

player.onChat("mf", function () {

agent.move(FORWARD, 1)

})