The game is modified on the basis of this template. flutter game template
first you need to install appdmg
- npm install appdmg -g
then
cd installer/mdg_creator
appdmg ./config.json ./Ninja_Kunai.dmg
- shooting Kunai onto a timber,Failed to collide with Kunai.
- each level timber will speed up
Main code of the game in lib/src/game.dart
-
panel has a background, restIcon,BackIcon,SoundIcon sprite.
-
KunaispriteComponent has shooting animation, when it hit the timber, Replace with static Kunai spriteComponent.
-
when gameover, a layer of image mask simulated timber broke,Kunai spriteComponent random direction drop animation
-
use flame_bloc manager game state.
- support macos,andoird,ios
- sound
- music
- main menu screen
- settings
- ads (AdMob)
- game ranking
- i18
To run the app in debug mode:
flutter run
] Flutter (Channel stable, 3.0.1, on macOS 12.2 21D49 darwin-arm, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[✓] Xcode - develop for iOS and macOS (Xcode 13.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] VS Code (version 1.68.1)
[✓] Connected device (3 available)