From 7dd2bf7a368ae1394e529b762ecdcbcc540f007b Mon Sep 17 00:00:00 2001 From: Alejandro Ulate Date: Sun, 14 May 2023 06:04:34 -0600 Subject: [PATCH] docs: Remove deprecated mixin from klondike tutorial (#2535) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It just removes a deprecated line that is in the tutorial for building a Klondike game. The final code does not have it and it is no longer necessary to have it in the KlondikeGame class. --- doc/tutorials/klondike/step4.md | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/doc/tutorials/klondike/step4.md b/doc/tutorials/klondike/step4.md index 0b9a0f0de..2e9a04918 100644 --- a/doc/tutorials/klondike/step4.md +++ b/doc/tutorials/klondike/step4.md @@ -148,14 +148,8 @@ Now that the waste pile is ready, let's get back to the `StockPile`. The second item on our todo list is the first interactive functionality in the game: tap the stock pile to deal 3 cards onto the waste. -Adding tap functionality to the components in Flame is quite simple: first, we add the mixin -`HasTappableComponents` to our top-level game class: - -```dart -class KlondikeGame extends FlameGame with HasTappableComponents { ... } -``` - -And second, we add the mixin `TapCallbacks` to the component that we want to be tappable: +Adding tap functionality to the components in Flame is quite simple: we just add the mixin +`TapCallbacks` to the component that we want to be tappable: ```dart class StockPile extends PositionComponent with TapCallbacks { ... }