dartfmt Project

This commit is contained in:
Marty Oehme 2018-07-24 13:35:25 +02:00
parent ba76f934a8
commit 5c2efd2fd9
8 changed files with 31 additions and 30 deletions

View file

@ -65,11 +65,11 @@ class Game {
// Slightly oscillating colors to highlight rendering updates
void _oscillate() {
if(_oscill >= 50.0 || _oscill <= -50.0) {
if (_oscill >= 50.0 || _oscill <= -50.0) {
_oscillDir = !_oscillDir;
_oscill = max( min(_oscill, 49.0), -49.0);
}
else _oscillDir == true ? _oscill += _OSCILLSPEED : _oscill -= _OSCILLSPEED;
_oscill = max(min(_oscill, 49.0), -49.0);
} else
_oscillDir == true ? _oscill += _OSCILLSPEED : _oscill -= _OSCILLSPEED;
}
Color _getOscillatedCol(Color col) {

View file

@ -1,6 +1,6 @@
import 'package:browserloop/game/Game.dart';
abstract class LoopExample{
abstract class LoopExample {
Game game;
void stop() {}
@ -9,4 +9,4 @@ abstract class LoopExample{
abstract class VariableUpdates {
double MS_PER_UPDATE = 300.0;
}
}