Fix incorrect force threshold in RLGL project (#1912)

* Fix incorrect force threshold in RLGL project

* set delta back to 100 in code samples and formula
This commit is contained in:
Galen Nickel 2019-03-11 18:07:40 -07:00 committed by GitHub
parent d2b7f22215
commit 93282e577f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,12 +149,12 @@ At all times, gravity is applied to the @boardname@, so the acceleration strengt
If the acceleration strength is far from that value, say ``1100`` or ``900``, we can assume that the player is moving. To compute this we use the formula:
```
moving = | acc strength - 1000 | > 1000
moving = | acc strength - 1000 | > 100
```
Now that we know the math for it, we can turn this into code.
```block
```blocks
let REDLIGHT = 0
let state = 0
let GREENLIGHT = 0