battleship_flutter_flame

所属分类:collect
开发工具:Dart
文件大小:0KB
下载次数:0
上传日期:2021-06-14 12:12:38
上 传 者sh-1993
说明:  战舰_堵塞器_火焰,,
(battleship_flutter_flame,,)

文件列表:
.metadata (305, 2021-06-11)
android/ (0, 2021-06-11)
android/app/ (0, 2021-06-11)
android/app/build.gradle (1711, 2021-06-11)
android/app/src/ (0, 2021-06-11)
android/app/src/debug/ (0, 2021-06-11)
android/app/src/debug/AndroidManifest.xml (330, 2021-06-11)
android/app/src/main/ (0, 2021-06-11)
android/app/src/main/AndroidManifest.xml (2148, 2021-06-11)
android/app/src/main/kotlin/ (0, 2021-06-11)
android/app/src/main/kotlin/com/ (0, 2021-06-11)
android/app/src/main/kotlin/com/example/ (0, 2021-06-11)
android/app/src/main/kotlin/com/example/battleship/ (0, 2021-06-11)
android/app/src/main/kotlin/com/example/battleship/MainActivity.kt (127, 2021-06-11)
android/app/src/main/res/ (0, 2021-06-11)
android/app/src/main/res/drawable-v21/ (0, 2021-06-11)
android/app/src/main/res/drawable-v21/launch_background.xml (438, 2021-06-11)
android/app/src/main/res/drawable/ (0, 2021-06-11)
android/app/src/main/res/drawable/launch_background.xml (434, 2021-06-11)
android/app/src/main/res/mipmap-hdpi/ (0, 2021-06-11)
android/app/src/main/res/mipmap-hdpi/ic_launcher.png (544, 2021-06-11)
android/app/src/main/res/mipmap-mdpi/ (0, 2021-06-11)
android/app/src/main/res/mipmap-mdpi/ic_launcher.png (442, 2021-06-11)
android/app/src/main/res/mipmap-xhdpi/ (0, 2021-06-11)
android/app/src/main/res/mipmap-xhdpi/ic_launcher.png (721, 2021-06-11)
android/app/src/main/res/mipmap-xxhdpi/ (0, 2021-06-11)
android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png (1031, 2021-06-11)
android/app/src/main/res/mipmap-xxxhdpi/ (0, 2021-06-11)
android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png (1443, 2021-06-11)
android/app/src/main/res/values-night/ (0, 2021-06-11)
android/app/src/main/res/values-night/styles.xml (993, 2021-06-11)
android/app/src/main/res/values/ (0, 2021-06-11)
android/app/src/main/res/values/styles.xml (994, 2021-06-11)
android/app/src/profile/ (0, 2021-06-11)
android/app/src/profile/AndroidManifest.xml (330, 2021-06-11)
android/build.gradle (566, 2021-06-11)
android/gradle.properties (82, 2021-06-11)
... ...

# :ship: Battleship Game ([Flutter Flame:fire:](https://pub.dev/packages/flame/versions/1.0.0-releasecandidate.11)) Battleship is a two player game. In this game players will place 4 ships on desired quadrants and then start. Both the players will have turns one by one to guess quadrants and destroy opponent's ship. Whoever manages to destroy opponent's all four ships wins the game. You can learn more about rules and how to play it on [wikipedia](https://en.wikipedia.org/wiki/Battleship_(game)). This app include null safety support as well. ## :page_facing_up: Requirements Make sure that you have all the requirements fulfilled and properly set for project execution. - IDE: [`Android Studio 3.4+`](https://developer.android.com/studio) or [`VSCode`](https://code.visualstudio.com/download) - [Flutter SDK (Master): 2.2.0+](https://flutter.dev/docs/get-started/install) - Dart SDK: 2.12+ (flutter sdk will also provide dart sdk so no need to download it manually. just make sure version matches.) - Working device or emulator (only if you want to execute [step 3](#3-run-app)). - Working Internet Connection ## :hammer_and_wrench: Build project ### 1. Install dependencies ```shell flutter packages get ``` ### 2. Build apk ```shell # run this step only if you want to create an apk file and install it to multiple device else you can go for step 3. flutter build apk ``` ### 3. Run app ```shell # run this step if you do not want to create apk and install app on device or emulator directly. flutter run ``` ## :iphone: Usage ``` shell 1. Install and Open Battleship game. 2. Place all four ships on quadrants as you want. 3. Hit start button to play game. 4. Guess the ship locations on quadrants and tap on it to destroy the ships. 5. If you manage to destroy all 4 ships, you are a winner. ``` Here is an example, ![Demo Image](/readme_assets/demo_play.gif) ## :rocket: Development We have used [flame](https://pub.dev/packages/flame/versions/1.0.0-releasecandidate.11) package to develop this app. ### What is flame? Flame is a modular Flutter game engine that provides a complete set of out-of-the-way solutions for games. It takes advantage of the powerful infrastructure provided by Flutter but simplifies the code you need to build your projects. Flame provides simple yet effective game loop implementation, and the necessary functionalities that we need in a game. For instance; input, images, sprites, sprite sheets, animations, collision detection and a component system that we call Flame Component System (FCS for short). you can learn more about flame and how to develop game in flame at [flame documentation](https://flame-engine.org/docs/#/). ### Why flame? As defined in above section flame provides verity of components and functionalities that we can use to develop a 2D game. If we do the same thing using flutter components there are higher chances that it can become more complicated. Also there might be some performance issues. Also if you have a prior experience with game engines developing game in flame becomes even easier.

近期下载者

相关文件


收藏者