Learn R Programming

miner (version 0.1.2)

moveForward: Move the player in the direction of the player heading

Description

Move the player in the direction of the player heading

Usage

moveForward(player_id, distance = 1)

Arguments

player_id

An integer with the player id

distance

The distance to move the player

Examples

Run this code
# NOT RUN {
initHeading(myid)
moveForward(myid, 0.5)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab