Allow Setting Color Change Speed for Variable Timestep

This commit is contained in:
Marty Oehme 2018-07-24 15:33:11 +02:00
parent 08c7e8ac1d
commit 46150e3c34
3 changed files with 23 additions and 12 deletions

View file

@ -21,8 +21,7 @@ class Game {
}
// In-World Logic Updates
void update([num speed]) {
print(speed);
void update([int speed]) {
Point next = isRandom ? nextPosRandom() : nextPosOrdered(_curPos);
if (_curPos.x < 0) _curPos = Point(0, _curPos.y);
Color newColor = isRandom ? randomColor() : nextColor(