chore: Expunge codebase of unholy abbreviations (idx) (#3677)

Expunge codebase of unholy abbreviations (idx). This prevents further
misery to be latched upon @spydon
This commit is contained in:
Luan Nico
2025-08-10 13:05:32 -04:00
committed by GitHub
parent b79fee0ae2
commit e7777d9914
12 changed files with 39 additions and 37 deletions

View File

@ -74,7 +74,7 @@ class _TapWorld extends World
paint: BasicPalette.black.paint(),
);
int _currentFlipIdx = 0;
int _currentFlipIndex = 0;
final _flips = [
(Vector2(1, 1), Vector2(1, 1)),
(Vector2(1, 1), Vector2(1, -1)),
@ -111,8 +111,8 @@ class _TapWorld extends World
}
void _cycleFlips() {
_currentFlipIdx = (_currentFlipIdx + 1) % _flips.length;
final nextFlip = _flips[_currentFlipIdx];
_currentFlipIndex = (_currentFlipIndex + 1) % _flips.length;
final nextFlip = _flips[_currentFlipIndex];
for (final parent in game._choppers) {
parent.scale = nextFlip.$1;
parent.chopper.scale = nextFlip.$2;