Allow Setting Color Change Speed for Variable Timestep
This commit is contained in:
parent
08c7e8ac1d
commit
46150e3c34
3 changed files with 23 additions and 12 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue