find_the_word 1.0.3
find_the_word: ^1.0.3 copied to clipboard
A word search game package built with Flutter and Flame. Features include customizable word lists, animations, and game over callbacks.
Find The Word #
A customizable word search game package for Flutter, built with Flame game engine.
Features #
- Customizable word lists
- Beautiful animations
- Game over callback for score tracking
- Responsive design
- Support for multiple word directions (horizontal, vertical, L-shape)
- Score tracking and timer
- Customizable colors and themes
Getting started #
Add this to your package's pubspec.yaml file:
dependencies:
find_the_word: ^1.0.0
Screenshot #
https://github.com/abhiiishek2000/flutter-ftw/blob/main/screenshot/ftw_preview.gif
Usage #
import 'package:find_the_word/find_the_word.dart';
class GameScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: GameWidget(
game: WordSearchGame(
config: WordSearchConfig(
words: ['FLUTTER', 'GAME', 'FUN', 'CODE'],
onGameOver: (result) {
print('Score: ${result.score}');
print('Words Found: ${result.foundWords}');
},
primaryColor: Colors.purple,
secondaryColor: Colors.pink,
timeLimit: 180,
),
),
overlayBuilderMap: {
'gameOver': (context, game) => GameOverOverlay(
game: game as WordSearchGame,
),
},
),
);
}
}