turnLeft: Rotate the player heading to the left

Description Usage Arguments Examples

View source: R/move.R

Description

Use a positive angle value to rotate to the left. Use a negative angle to rotate to the right. The player does not turn in the game; rather, the heading for subsequent movement commands is rotated.

Usage

1
turnLeft(player_id, angle = 90)

Arguments

player_id

An integer with the player id

angle

The number of degrees to rotate left

Examples

1
2
3
4
## Not run: 
turnLeft(myid)

## End(Not run)

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