Skip to content

Commit

Permalink
Update & publish new doc versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Blue Fire committed Apr 18, 2024
1 parent 74aa926 commit 706ce9a
Show file tree
Hide file tree
Showing 15 changed files with 30,104 additions and 30,197 deletions.
13 changes: 0 additions & 13 deletions docs/main/_sources/tutorials/klondike/step3.md.txt
Original file line number Diff line number Diff line change
Expand Up @@ -401,37 +401,31 @@ of drawing various sprites in different places on the card's face:
switch (rank.value) {
case 1:
_drawSprite(canvas, suitSprite, 0.5, 0.5, scale: 2.5);
break;
case 2:
_drawSprite(canvas, suitSprite, 0.5, 0.25);
_drawSprite(canvas, suitSprite, 0.5, 0.25, rotate: true);
break;
case 3:
_drawSprite(canvas, suitSprite, 0.5, 0.2);
_drawSprite(canvas, suitSprite, 0.5, 0.5);
_drawSprite(canvas, suitSprite, 0.5, 0.2, rotate: true);
break;
case 4:
_drawSprite(canvas, suitSprite, 0.3, 0.25);
_drawSprite(canvas, suitSprite, 0.7, 0.25);
_drawSprite(canvas, suitSprite, 0.3, 0.25, rotate: true);
_drawSprite(canvas, suitSprite, 0.7, 0.25, rotate: true);
break;
case 5:
_drawSprite(canvas, suitSprite, 0.3, 0.25);
_drawSprite(canvas, suitSprite, 0.7, 0.25);
_drawSprite(canvas, suitSprite, 0.3, 0.25, rotate: true);
_drawSprite(canvas, suitSprite, 0.7, 0.25, rotate: true);
_drawSprite(canvas, suitSprite, 0.5, 0.5);
break;
case 6:
_drawSprite(canvas, suitSprite, 0.3, 0.25);
_drawSprite(canvas, suitSprite, 0.7, 0.25);
_drawSprite(canvas, suitSprite, 0.3, 0.5);
_drawSprite(canvas, suitSprite, 0.7, 0.5);
_drawSprite(canvas, suitSprite, 0.3, 0.25, rotate: true);
_drawSprite(canvas, suitSprite, 0.7, 0.25, rotate: true);
break;
case 7:
_drawSprite(canvas, suitSprite, 0.3, 0.2);
_drawSprite(canvas, suitSprite, 0.7, 0.2);
Expand All @@ -440,7 +434,6 @@ of drawing various sprites in different places on the card's face:
_drawSprite(canvas, suitSprite, 0.7, 0.5);
_drawSprite(canvas, suitSprite, 0.3, 0.2, rotate: true);
_drawSprite(canvas, suitSprite, 0.7, 0.2, rotate: true);
break;
case 8:
_drawSprite(canvas, suitSprite, 0.3, 0.2);
_drawSprite(canvas, suitSprite, 0.7, 0.2);
Expand All @@ -450,7 +443,6 @@ of drawing various sprites in different places on the card's face:
_drawSprite(canvas, suitSprite, 0.3, 0.2, rotate: true);
_drawSprite(canvas, suitSprite, 0.7, 0.2, rotate: true);
_drawSprite(canvas, suitSprite, 0.5, 0.35, rotate: true);
break;
case 9:
_drawSprite(canvas, suitSprite, 0.3, 0.2);
_drawSprite(canvas, suitSprite, 0.7, 0.2);
Expand All @@ -461,7 +453,6 @@ of drawing various sprites in different places on the card's face:
_drawSprite(canvas, suitSprite, 0.7, 0.2, rotate: true);
_drawSprite(canvas, suitSprite, 0.3, 0.4, rotate: true);
_drawSprite(canvas, suitSprite, 0.7, 0.4, rotate: true);
break;
case 10:
_drawSprite(canvas, suitSprite, 0.3, 0.2);
_drawSprite(canvas, suitSprite, 0.7, 0.2);
Expand All @@ -473,16 +464,12 @@ of drawing various sprites in different places on the card's face:
_drawSprite(canvas, suitSprite, 0.5, 0.3, rotate: true);
_drawSprite(canvas, suitSprite, 0.3, 0.4, rotate: true);
_drawSprite(canvas, suitSprite, 0.7, 0.4, rotate: true);
break;
case 11:
_drawSprite(canvas, suit.isRed? redJack : blackJack, 0.5, 0.5);
break;
case 12:
_drawSprite(canvas, suit.isRed? redQueen : blackQueen, 0.5, 0.5);
break;
case 13:
_drawSprite(canvas, suit.isRed? redKing : blackKing, 0.5, 0.5);
break;
}
```

Expand Down
5 changes: 0 additions & 5 deletions docs/main/_sources/tutorials/platformer/step_3.md.txt
Original file line number Diff line number Diff line change
Expand Up @@ -235,13 +235,9 @@ void loadGameSegments(int segmentIndex, double xPositionOffset) {
for (final block in segments[segmentIndex]) {
switch (block.blockType) {
case GroundBlock:
break;
case PlatformBlock:
break;
case Star:
break;
case WaterEnemy:
break;
}
}
}
Expand Down Expand Up @@ -434,7 +430,6 @@ case PlatformBlock:
gridPosition: block.gridPosition,
xOffset: xPositionOffset,
));
break;
```

If you run your code, you should now see:
Expand Down
3 changes: 0 additions & 3 deletions docs/main/_sources/tutorials/platformer/step_4.md.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ case Star:
xOffset: xPositionOffset,
),
);
break;
```

If you run your game, you should now see pulsating stars!
Expand Down Expand Up @@ -177,7 +176,6 @@ case WaterEnemy:
xOffset: xPositionOffset,
),
);
break;
```

If you run the game now, the Water Enemy should be displayed and moving!
Expand Down Expand Up @@ -397,7 +395,6 @@ case GroundBlock:
xOffset: xPositionOffset,
),
);
break;
```

If you run your code, your game should now look like this:
Expand Down
Loading

0 comments on commit 706ce9a

Please sign in to comment.