Update the README.md
This commit is contained in:
parent
5f7dbb34d9
commit
51cdda821d
2 changed files with 39 additions and 24 deletions
|
@ -22,21 +22,21 @@ Commands take the form of a single char literal.
|
|||
All units have 1 health.
|
||||
|
||||
|
||||
## X
|
||||
X is your basic slow melee unit. It has very basic data and controls, basically acting like a turtle.
|
||||
## V
|
||||
V is your basic slow melee unit. It has very basic data and controls, basically acting like a turtle.
|
||||
Can be represented based on direction by `<` `^` `>` `v`
|
||||
|
||||
##### properties
|
||||
| property | type | description |
|
||||
|:---------|:--------|:----------------------------------|
|
||||
| pos | char[2] | x,y position on the board |
|
||||
| dir | char[2] | compass direction unit is facing |
|
||||
| dir | char | compass direction unit is facing |
|
||||
|
||||
##### commands
|
||||
| command | description |
|
||||
|:---------|:--------------------------------------------|
|
||||
| L/R | turn left/right |
|
||||
| F | move forward |
|
||||
| B | move backward |
|
||||
| A | deal 1 damage to unit directly in front |
|
||||
|
||||
--------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue