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

Description Usage Arguments Examples

View source: R/move.R

Description

Move the player in the direction of the player heading

Usage

1
moveForward(player_id, distance = 1)

Arguments

player_id

An integer with the player id

distance

The distance to move the player

Examples

1
2
3
4
5
## Not run: 
initHeading(myid)
moveForward(myid, 0.5)

## End(Not run)

ropenscilabs/miner.extra documentation built on Dec. 20, 2020, 1:25 p.m.