├── .gitignore ├── .idea ├── codeStyles │ └── Project.xml ├── gradle.xml ├── misc.xml ├── runConfigurations.xml └── vcs.xml ├── 1.jpg ├── README.md ├── app ├── .gitignore ├── build.gradle ├── libs │ └── cocos2d-android.jar ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── xin │ │ └── lrvik │ │ └── plantsvszombies │ │ └── ExampleInstrumentedTest.java │ ├── main │ ├── AndroidManifest.xml │ ├── assets │ │ ├── bullet │ │ │ ├── bullet1.png │ │ │ ├── bullet2.png │ │ │ └── bulletBlast1.png │ │ ├── cg │ │ │ ├── cg00.png │ │ │ ├── cg01.png │ │ │ ├── cg02.png │ │ │ ├── cg03.png │ │ │ ├── cg04.png │ │ │ ├── cg05.png │ │ │ ├── cg06.png │ │ │ ├── cg07.png │ │ │ ├── cg08.png │ │ │ ├── cg09.png │ │ │ ├── cg10.png │ │ │ ├── cg11.png │ │ │ ├── cg12.png │ │ │ ├── cg13.png │ │ │ ├── cg14.png │ │ │ ├── cg15.png │ │ │ ├── cg16.png │ │ │ ├── cg17.png │ │ │ └── cg18.png │ │ ├── choose │ │ │ ├── SeedBank.png │ │ │ ├── SeedChooser.png │ │ │ ├── SeedChooser_Button.png │ │ │ ├── SeedChooser_Button_Disabled.png │ │ │ ├── p00.png │ │ │ ├── p01.png │ │ │ ├── p02.png │ │ │ ├── p03.png │ │ │ ├── p04.png │ │ │ ├── p05.png │ │ │ ├── p06.png │ │ │ └── p07.png │ │ ├── combat │ │ │ ├── combat.png │ │ │ └── map1.tmx │ │ ├── fps_images.png │ │ ├── logo │ │ │ ├── logo1.png │ │ │ └── logo2.png │ │ ├── menu │ │ │ ├── main_menu_bg.png │ │ │ ├── start_adventure_default.png │ │ │ └── start_adventure_press.png │ │ ├── other │ │ │ ├── FinalWave.png │ │ │ ├── Store_N.png │ │ │ ├── Store_P.png │ │ │ ├── button.png │ │ │ ├── diamond.png │ │ │ ├── lawnmower.png │ │ │ ├── menuback.png │ │ │ ├── shop.png │ │ │ ├── shop_press.png │ │ │ ├── shovel.png │ │ │ ├── store_car.jpg │ │ │ ├── tipbg.png │ │ │ └── trophy.png │ │ ├── plant │ │ │ ├── CherryBomb │ │ │ │ ├── Frame00.png │ │ │ │ ├── Frame01.png │ │ │ │ ├── Frame02.png │ │ │ │ ├── Frame03.png │ │ │ │ ├── Frame04.png │ │ │ │ ├── Frame05.png │ │ │ │ ├── Frame06.png │ │ │ │ └── boom │ │ │ │ │ ├── Frame00.png │ │ │ │ │ ├── Frame01.png │ │ │ │ │ ├── Frame02.png │ │ │ │ │ ├── Frame03.png │ │ │ │ │ ├── Frame04.png │ │ │ │ │ ├── Frame05.png │ │ │ │ │ ├── Frame06.png │ │ │ │ │ ├── Frame07.png │ │ │ │ │ ├── Frame08.png │ │ │ │ │ ├── Frame09.png │ │ │ │ │ ├── Frame10.png │ │ │ │ │ └── Frame11.png │ │ │ ├── Chomper │ │ │ │ ├── Frame00.png │ │ │ │ ├── Frame01.png │ │ │ │ ├── Frame02.png │ │ │ │ ├── Frame03.png │ │ │ │ ├── Frame04.png │ │ │ │ ├── Frame05.png │ │ │ │ ├── Frame06.png │ │ │ │ ├── Frame07.png │ │ │ │ ├── Frame08.png │ │ │ │ ├── Frame09.png │ │ │ │ ├── Frame10.png │ │ │ │ ├── Frame11.png │ │ │ │ ├── Frame12.png │ │ │ │ ├── attack │ │ │ │ │ ├── Frame00.png │ │ │ │ │ ├── Frame01.png │ │ │ │ │ ├── Frame02.png │ │ │ │ │ ├── Frame03.png │ │ │ │ │ ├── Frame04.png │ │ │ │ │ ├── Frame05.png │ │ │ │ │ ├── Frame06.png │ │ │ │ │ ├── Frame07.png │ │ │ │ │ └── Frame08.png │ │ │ │ └── eat │ │ │ │ │ ├── Frame00.png │ │ │ │ │ ├── Frame01.png │ │ │ │ │ ├── Frame02.png │ │ │ │ │ ├── Frame03.png │ │ │ │ │ ├── Frame04.png │ │ │ │ │ └── Frame05.png │ │ │ ├── Peashooter │ │ │ │ ├── Frame00.png │ │ │ │ ├── Frame01.png │ │ │ │ ├── Frame02.png │ │ │ │ ├── Frame03.png │ │ │ │ ├── Frame04.png │ │ │ │ ├── Frame05.png │ │ │ │ ├── Frame06.png │ │ │ │ ├── Frame07.png │ │ │ │ ├── Frame08.png │ │ │ │ ├── Frame09.png │ │ │ │ ├── Frame10.png │ │ │ │ ├── Frame11.png │ │ │ │ └── Frame12.png │ │ │ ├── PotatoMine │ │ │ │ ├── Frame00.png │ │ │ │ ├── Frame01.png │ │ │ │ ├── Frame02.png │ │ │ │ ├── Frame03.png │ │ │ │ ├── Frame04.png │ │ │ │ ├── Frame05.png │ │ │ │ ├── Frame06.png │ │ │ │ ├── Frame07.png │ │ │ │ ├── boom │ │ │ │ │ └── Frame00.png │ │ │ │ └── mini │ │ │ │ │ └── Frame00.png │ │ │ ├── Repeater │ │ │ │ ├── Frame00.png │ │ │ │ ├── Frame01.png │ │ │ │ ├── Frame02.png │ │ │ │ ├── Frame03.png │ │ │ │ ├── Frame04.png │ │ │ │ ├── Frame05.png │ │ │ │ ├── Frame06.png │ │ │ │ ├── Frame07.png │ │ │ │ ├── Frame08.png │ │ │ │ ├── Frame09.png │ │ │ │ ├── Frame10.png │ │ │ │ ├── Frame11.png │ │ │ │ ├── Frame12.png │ │ │ │ ├── Frame13.png │ │ │ │ └── Frame14.png │ │ │ ├── SnowPea │ │ │ │ ├── Frame00.png │ │ │ │ ├── Frame01.png │ │ │ │ ├── Frame02.png │ │ │ │ ├── Frame03.png │ │ │ │ ├── Frame04.png │ │ │ │ ├── Frame05.png │ │ │ │ ├── Frame06.png │ │ │ │ ├── Frame07.png │ │ │ │ ├── Frame08.png │ │ │ │ ├── Frame09.png │ │ │ │ ├── Frame10.png │ │ │ │ ├── Frame11.png │ │ │ │ ├── Frame12.png │ │ │ │ ├── Frame13.png │ │ │ │ └── Frame14.png │ │ │ ├── SunFlower │ │ │ │ ├── Frame00.png │ │ │ │ ├── Frame01.png │ │ │ │ ├── Frame02.png │ │ │ │ ├── Frame03.png │ │ │ │ ├── Frame04.png │ │ │ │ ├── Frame05.png │ │ │ │ ├── Frame06.png │ │ │ │ ├── Frame07.png │ │ │ │ ├── Frame08.png │ │ │ │ ├── Frame09.png │ │ │ │ ├── Frame10.png │ │ │ │ ├── Frame11.png │ │ │ │ ├── Frame12.png │ │ │ │ ├── Frame13.png │ │ │ │ ├── Frame14.png │ │ │ │ ├── Frame15.png │ │ │ │ ├── Frame16.png │ │ │ │ └── Frame17.png │ │ │ └── WallNut │ │ │ │ ├── high │ │ │ │ ├── Frame00.png │ │ │ │ ├── Frame01.png │ │ │ │ ├── Frame02.png │ │ │ │ ├── Frame03.png │ │ │ │ ├── Frame04.png │ │ │ │ ├── Frame05.png │ │ │ │ ├── Frame06.png │ │ │ │ ├── Frame07.png │ │ │ │ ├── Frame08.png │ │ │ │ ├── Frame09.png │ │ │ │ ├── Frame10.png │ │ │ │ ├── Frame11.png │ │ │ │ ├── Frame12.png │ │ │ │ ├── Frame13.png │ │ │ │ ├── Frame14.png │ │ │ │ └── Frame15.png │ │ │ │ ├── low │ │ │ │ ├── Frame00.png │ │ │ │ ├── Frame01.png │ │ │ │ ├── Frame02.png │ │ │ │ ├── Frame03.png │ │ │ │ ├── Frame04.png │ │ │ │ ├── Frame05.png │ │ │ │ ├── Frame06.png │ │ │ │ ├── Frame07.png │ │ │ │ ├── Frame08.png │ │ │ │ ├── Frame09.png │ │ │ │ ├── Frame10.png │ │ │ │ ├── Frame11.png │ │ │ │ ├── Frame12.png │ │ │ │ ├── Frame13.png │ │ │ │ └── Frame14.png │ │ │ │ └── middle │ │ │ │ ├── Frame00.png │ │ │ │ ├── Frame01.png │ │ │ │ ├── Frame02.png │ │ │ │ ├── Frame03.png │ │ │ │ ├── Frame04.png │ │ │ │ ├── Frame05.png │ │ │ │ ├── Frame06.png │ │ │ │ ├── Frame07.png │ │ │ │ ├── Frame08.png │ │ │ │ ├── Frame09.png │ │ │ │ └── Frame10.png │ │ ├── startready │ │ │ ├── startReady_00.png │ │ │ ├── startReady_01.png │ │ │ └── startReady_02.png │ │ ├── sun │ │ │ ├── Frame00.png │ │ │ ├── Frame01.png │ │ │ ├── Frame02.png │ │ │ ├── Frame03.png │ │ │ ├── Frame04.png │ │ │ ├── Frame05.png │ │ │ ├── Frame06.png │ │ │ ├── Frame07.png │ │ │ ├── Frame08.png │ │ │ ├── Frame09.png │ │ │ ├── Frame10.png │ │ │ ├── Frame11.png │ │ │ ├── Frame12.png │ │ │ ├── Frame13.png │ │ │ ├── Frame14.png │ │ │ ├── Frame15.png │ │ │ ├── Frame16.png │ │ │ ├── Frame17.png │ │ │ ├── Frame18.png │ │ │ ├── Frame19.png │ │ │ ├── Frame20.png │ │ │ └── Frame21.png │ │ ├── zombies │ │ │ └── zombies_1 │ │ │ │ ├── ashes │ │ │ │ ├── Frame00.png │ │ │ │ ├── Frame01.png │ │ │ │ ├── Frame02.png │ │ │ │ ├── Frame03.png │ │ │ │ ├── Frame04.png │ │ │ │ ├── Frame05.png │ │ │ │ ├── Frame06.png │ │ │ │ ├── Frame07.png │ │ │ │ ├── Frame08.png │ │ │ │ ├── Frame09.png │ │ │ │ ├── Frame10.png │ │ │ │ ├── Frame11.png │ │ │ │ ├── Frame12.png │ │ │ │ ├── Frame13.png │ │ │ │ ├── Frame14.png │ │ │ │ ├── Frame15.png │ │ │ │ ├── Frame16.png │ │ │ │ ├── Frame17.png │ │ │ │ ├── Frame18.png │ │ │ │ └── Frame19.png │ │ │ │ ├── attack │ │ │ │ ├── Frame00.png │ │ │ │ ├── Frame01.png │ │ │ │ ├── Frame02.png │ │ │ │ ├── Frame03.png │ │ │ │ ├── Frame04.png │ │ │ │ ├── Frame05.png │ │ │ │ ├── Frame06.png │ │ │ │ ├── Frame07.png │ │ │ │ ├── Frame08.png │ │ │ │ ├── Frame09.png │ │ │ │ ├── Frame10.png │ │ │ │ ├── Frame11.png │ │ │ │ ├── Frame12.png │ │ │ │ ├── Frame13.png │ │ │ │ ├── Frame14.png │ │ │ │ ├── Frame15.png │ │ │ │ ├── Frame16.png │ │ │ │ ├── Frame17.png │ │ │ │ ├── Frame18.png │ │ │ │ ├── Frame19.png │ │ │ │ └── Frame20.png │ │ │ │ ├── die │ │ │ │ ├── Frame00.png │ │ │ │ ├── Frame01.png │ │ │ │ ├── Frame02.png │ │ │ │ ├── Frame03.png │ │ │ │ ├── Frame04.png │ │ │ │ ├── Frame05.png │ │ │ │ ├── Frame06.png │ │ │ │ ├── Frame07.png │ │ │ │ ├── Frame08.png │ │ │ │ └── Frame09.png │ │ │ │ ├── shake │ │ │ │ ├── Frame00.png │ │ │ │ └── Frame01.png │ │ │ │ └── walk │ │ │ │ ├── Frame00.png │ │ │ │ ├── Frame01.png │ │ │ │ ├── Frame02.png │ │ │ │ ├── Frame03.png │ │ │ │ ├── Frame04.png │ │ │ │ ├── Frame05.png │ │ │ │ ├── Frame06.png │ │ │ │ ├── Frame07.png │ │ │ │ ├── Frame08.png │ │ │ │ ├── Frame09.png │ │ │ │ ├── Frame10.png │ │ │ │ ├── Frame11.png │ │ │ │ ├── Frame12.png │ │ │ │ ├── Frame13.png │ │ │ │ ├── Frame14.png │ │ │ │ ├── Frame15.png │ │ │ │ ├── Frame16.png │ │ │ │ ├── Frame17.png │ │ │ │ ├── Frame18.png │ │ │ │ ├── Frame19.png │ │ │ │ ├── Frame20.png │ │ │ │ └── Frame21.png │ │ └── zombieswon │ │ │ └── ZombiesWon.png │ ├── java │ │ └── xin │ │ │ └── lrvik │ │ │ └── plantsvszombies │ │ │ ├── CombatLayer.java │ │ │ ├── CombatLine.java │ │ │ ├── Diamond.java │ │ │ ├── LawnMower.java │ │ │ ├── MainActivity.java │ │ │ ├── MenuLayer.java │ │ │ ├── PauseLayer.java │ │ │ ├── Plant.java │ │ │ ├── PlantCard.java │ │ │ ├── SPUtils.java │ │ │ ├── ShopLayer.java │ │ │ ├── Sun.java │ │ │ ├── Zombie.java │ │ │ ├── bullet │ │ │ ├── Bullet.java │ │ │ ├── PeaBullet.java │ │ │ └── SnowBullet.java │ │ │ ├── logoLayer.java │ │ │ └── plant │ │ │ ├── CherryBomb.java │ │ │ ├── Chomper.java │ │ │ ├── Peashooter.java │ │ │ ├── PotatoMine.java │ │ │ ├── Repeater.java │ │ │ ├── ShooterPlant.java │ │ │ ├── SnowPea.java │ │ │ ├── SunFlower.java │ │ │ └── WallNut.java │ └── res │ │ ├── drawable-v24 │ │ └── ic_launcher_foreground.xml │ │ ├── drawable │ │ └── ic_launcher_background.xml │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.xml │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── raw │ │ ├── chompsoft.mp3 │ │ ├── explosion.mp3 │ │ ├── faster.mp3 │ │ ├── groan4.mp3 │ │ ├── lawnmower.mp3 │ │ ├── losemusic.mp3 │ │ ├── points.mp3 │ │ ├── shoop.mp3 │ │ ├── siren.mp3 │ │ ├── watery.mp3 │ │ └── win.mp3 │ │ └── values │ │ ├── colors.xml │ │ ├── strings.xml │ │ └── styles.xml │ └── test │ └── java │ └── xin │ └── lrvik │ └── plantsvszombies │ └── ExampleUnitTest.java ├── build.gradle ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/caches/build_file_checksums.ser 5 | /.idea/libraries 6 | /.idea/modules.xml 7 | /.idea/workspace.xml 8 | .DS_Store 9 | /build 10 | /captures 11 | .externalNativeBuild 12 | -------------------------------------------------------------------------------- /.idea/codeStyles/Project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 15 | 16 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 19 | 31 | 32 | 33 | 34 | 35 | 36 | 38 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/1.jpg -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 基于cocos2d-android 植物大战僵尸期末作业 2 | 3 | ### 预览 4 | 5 |

6 | 7 | 8 | ### 包含功能 9 | 10 | - 向日葵,豌豆射手、殷桃炸弹、坚果、土豆炸弹、寒冰射手、食人花等植物功能功能 11 | - 菜单 12 | - 僵尸随机掉落钻石 13 | - 钻石商店 14 | - 除草机 15 | - 铲子 16 | 17 | ### 联系邮箱 18 | 19 | 欢迎交流 20 | -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 28 5 | defaultConfig { 6 | applicationId "xin.lrvik.plantsvszombies" 7 | minSdkVersion 15 8 | targetSdkVersion 28 9 | versionCode 1 10 | versionName "1.0" 11 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 12 | } 13 | buildTypes { 14 | release { 15 | minifyEnabled false 16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 17 | } 18 | } 19 | } 20 | 21 | dependencies { 22 | implementation fileTree(include: ['*.jar'], dir: 'libs') 23 | testImplementation 'junit:junit:4.12' 24 | androidTestImplementation 'com.android.support.test:runner:1.0.2' 25 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' 26 | implementation files('libs/cocos2d-android.jar') 27 | } 28 | -------------------------------------------------------------------------------- /app/libs/cocos2d-android.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/libs/cocos2d-android.jar -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /app/src/androidTest/java/xin/lrvik/plantsvszombies/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package xin.lrvik.plantsvszombies; 2 | 3 | import android.content.Context; 4 | import android.support.test.InstrumentationRegistry; 5 | import android.support.test.runner.AndroidJUnit4; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | /** 13 | * Instrumented test, which will execute on an Android device. 14 | * 15 | * @see Testing documentation 16 | */ 17 | @RunWith(AndroidJUnit4.class) 18 | public class ExampleInstrumentedTest { 19 | @Test 20 | public void useAppContext() { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("xin.lrvik.plantsvszombies", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 12 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /app/src/main/assets/bullet/bullet1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/bullet/bullet1.png -------------------------------------------------------------------------------- /app/src/main/assets/bullet/bullet2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/bullet/bullet2.png -------------------------------------------------------------------------------- /app/src/main/assets/bullet/bulletBlast1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/bullet/bulletBlast1.png -------------------------------------------------------------------------------- /app/src/main/assets/cg/cg00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/cg/cg00.png -------------------------------------------------------------------------------- /app/src/main/assets/cg/cg01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/cg/cg01.png -------------------------------------------------------------------------------- /app/src/main/assets/cg/cg02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/cg/cg02.png -------------------------------------------------------------------------------- /app/src/main/assets/cg/cg03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/cg/cg03.png -------------------------------------------------------------------------------- /app/src/main/assets/cg/cg04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/cg/cg04.png -------------------------------------------------------------------------------- /app/src/main/assets/cg/cg05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/cg/cg05.png -------------------------------------------------------------------------------- /app/src/main/assets/cg/cg06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/cg/cg06.png -------------------------------------------------------------------------------- /app/src/main/assets/cg/cg07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/cg/cg07.png -------------------------------------------------------------------------------- /app/src/main/assets/cg/cg08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/cg/cg08.png -------------------------------------------------------------------------------- /app/src/main/assets/cg/cg09.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/cg/cg09.png -------------------------------------------------------------------------------- /app/src/main/assets/cg/cg10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/cg/cg10.png -------------------------------------------------------------------------------- /app/src/main/assets/cg/cg11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/cg/cg11.png -------------------------------------------------------------------------------- /app/src/main/assets/cg/cg12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/cg/cg12.png -------------------------------------------------------------------------------- /app/src/main/assets/cg/cg13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/cg/cg13.png -------------------------------------------------------------------------------- /app/src/main/assets/cg/cg14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/cg/cg14.png -------------------------------------------------------------------------------- /app/src/main/assets/cg/cg15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/cg/cg15.png -------------------------------------------------------------------------------- /app/src/main/assets/cg/cg16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/cg/cg16.png -------------------------------------------------------------------------------- /app/src/main/assets/cg/cg17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/cg/cg17.png -------------------------------------------------------------------------------- /app/src/main/assets/cg/cg18.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/cg/cg18.png -------------------------------------------------------------------------------- /app/src/main/assets/choose/SeedBank.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/choose/SeedBank.png -------------------------------------------------------------------------------- /app/src/main/assets/choose/SeedChooser.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/choose/SeedChooser.png -------------------------------------------------------------------------------- /app/src/main/assets/choose/SeedChooser_Button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/choose/SeedChooser_Button.png -------------------------------------------------------------------------------- /app/src/main/assets/choose/SeedChooser_Button_Disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/choose/SeedChooser_Button_Disabled.png -------------------------------------------------------------------------------- /app/src/main/assets/choose/p00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/choose/p00.png -------------------------------------------------------------------------------- /app/src/main/assets/choose/p01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/choose/p01.png -------------------------------------------------------------------------------- /app/src/main/assets/choose/p02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/choose/p02.png -------------------------------------------------------------------------------- /app/src/main/assets/choose/p03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/choose/p03.png -------------------------------------------------------------------------------- /app/src/main/assets/choose/p04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/choose/p04.png -------------------------------------------------------------------------------- /app/src/main/assets/choose/p05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/choose/p05.png -------------------------------------------------------------------------------- /app/src/main/assets/choose/p06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/choose/p06.png -------------------------------------------------------------------------------- /app/src/main/assets/choose/p07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/choose/p07.png -------------------------------------------------------------------------------- /app/src/main/assets/combat/combat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/combat/combat.png -------------------------------------------------------------------------------- /app/src/main/assets/combat/map1.tmx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | eJwNw4lSQQEAAMAXEZWEpKjooEShkhJdEkmS+v9vaXdml4IgCBl22YhRV4wZd9U11024YdJNU6bNuGXWbXPuuGvegnvue2DRkoceeeyJZSueembVc2vWvfDShk1bXnntjW1v7XjnvV0f7Nn30SefffHVgW8OfXfk2A8nfjr1y5nfzv1x4a9//gNAug3z 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | -------------------------------------------------------------------------------- /app/src/main/assets/fps_images.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/fps_images.png -------------------------------------------------------------------------------- /app/src/main/assets/logo/logo1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/logo/logo1.png -------------------------------------------------------------------------------- /app/src/main/assets/logo/logo2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/logo/logo2.png -------------------------------------------------------------------------------- /app/src/main/assets/menu/main_menu_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/menu/main_menu_bg.png -------------------------------------------------------------------------------- /app/src/main/assets/menu/start_adventure_default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/menu/start_adventure_default.png -------------------------------------------------------------------------------- /app/src/main/assets/menu/start_adventure_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/menu/start_adventure_press.png -------------------------------------------------------------------------------- /app/src/main/assets/other/FinalWave.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/other/FinalWave.png -------------------------------------------------------------------------------- /app/src/main/assets/other/Store_N.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/other/Store_N.png -------------------------------------------------------------------------------- /app/src/main/assets/other/Store_P.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/other/Store_P.png -------------------------------------------------------------------------------- /app/src/main/assets/other/button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/other/button.png -------------------------------------------------------------------------------- /app/src/main/assets/other/diamond.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/other/diamond.png -------------------------------------------------------------------------------- /app/src/main/assets/other/lawnmower.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/other/lawnmower.png -------------------------------------------------------------------------------- /app/src/main/assets/other/menuback.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/other/menuback.png -------------------------------------------------------------------------------- /app/src/main/assets/other/shop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/other/shop.png -------------------------------------------------------------------------------- /app/src/main/assets/other/shop_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/other/shop_press.png -------------------------------------------------------------------------------- /app/src/main/assets/other/shovel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/other/shovel.png -------------------------------------------------------------------------------- /app/src/main/assets/other/store_car.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/other/store_car.jpg -------------------------------------------------------------------------------- /app/src/main/assets/other/tipbg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/other/tipbg.png -------------------------------------------------------------------------------- /app/src/main/assets/other/trophy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/other/trophy.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/CherryBomb/Frame00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/CherryBomb/Frame00.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/CherryBomb/Frame01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/CherryBomb/Frame01.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/CherryBomb/Frame02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/CherryBomb/Frame02.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/CherryBomb/Frame03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/CherryBomb/Frame03.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/CherryBomb/Frame04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/CherryBomb/Frame04.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/CherryBomb/Frame05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/CherryBomb/Frame05.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/CherryBomb/Frame06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/CherryBomb/Frame06.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/CherryBomb/boom/Frame00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/CherryBomb/boom/Frame00.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/CherryBomb/boom/Frame01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/CherryBomb/boom/Frame01.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/CherryBomb/boom/Frame02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/CherryBomb/boom/Frame02.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/CherryBomb/boom/Frame03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/CherryBomb/boom/Frame03.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/CherryBomb/boom/Frame04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/CherryBomb/boom/Frame04.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/CherryBomb/boom/Frame05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/CherryBomb/boom/Frame05.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/CherryBomb/boom/Frame06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/CherryBomb/boom/Frame06.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/CherryBomb/boom/Frame07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/CherryBomb/boom/Frame07.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/CherryBomb/boom/Frame08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/CherryBomb/boom/Frame08.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/CherryBomb/boom/Frame09.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/CherryBomb/boom/Frame09.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/CherryBomb/boom/Frame10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/CherryBomb/boom/Frame10.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/CherryBomb/boom/Frame11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/CherryBomb/boom/Frame11.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Chomper/Frame00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Chomper/Frame00.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Chomper/Frame01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Chomper/Frame01.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Chomper/Frame02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Chomper/Frame02.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Chomper/Frame03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Chomper/Frame03.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Chomper/Frame04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Chomper/Frame04.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Chomper/Frame05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Chomper/Frame05.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Chomper/Frame06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Chomper/Frame06.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Chomper/Frame07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Chomper/Frame07.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Chomper/Frame08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Chomper/Frame08.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Chomper/Frame09.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Chomper/Frame09.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Chomper/Frame10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Chomper/Frame10.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Chomper/Frame11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Chomper/Frame11.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Chomper/Frame12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Chomper/Frame12.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Chomper/attack/Frame00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Chomper/attack/Frame00.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Chomper/attack/Frame01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Chomper/attack/Frame01.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Chomper/attack/Frame02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Chomper/attack/Frame02.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Chomper/attack/Frame03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Chomper/attack/Frame03.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Chomper/attack/Frame04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Chomper/attack/Frame04.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Chomper/attack/Frame05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Chomper/attack/Frame05.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Chomper/attack/Frame06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Chomper/attack/Frame06.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Chomper/attack/Frame07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Chomper/attack/Frame07.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Chomper/attack/Frame08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Chomper/attack/Frame08.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Chomper/eat/Frame00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Chomper/eat/Frame00.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Chomper/eat/Frame01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Chomper/eat/Frame01.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Chomper/eat/Frame02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Chomper/eat/Frame02.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Chomper/eat/Frame03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Chomper/eat/Frame03.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Chomper/eat/Frame04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Chomper/eat/Frame04.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Chomper/eat/Frame05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Chomper/eat/Frame05.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Peashooter/Frame00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Peashooter/Frame00.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Peashooter/Frame01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Peashooter/Frame01.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Peashooter/Frame02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Peashooter/Frame02.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Peashooter/Frame03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Peashooter/Frame03.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Peashooter/Frame04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Peashooter/Frame04.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Peashooter/Frame05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Peashooter/Frame05.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Peashooter/Frame06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Peashooter/Frame06.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Peashooter/Frame07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Peashooter/Frame07.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Peashooter/Frame08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Peashooter/Frame08.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Peashooter/Frame09.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Peashooter/Frame09.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Peashooter/Frame10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Peashooter/Frame10.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Peashooter/Frame11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Peashooter/Frame11.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Peashooter/Frame12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Peashooter/Frame12.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/PotatoMine/Frame00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/PotatoMine/Frame00.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/PotatoMine/Frame01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/PotatoMine/Frame01.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/PotatoMine/Frame02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/PotatoMine/Frame02.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/PotatoMine/Frame03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/PotatoMine/Frame03.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/PotatoMine/Frame04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/PotatoMine/Frame04.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/PotatoMine/Frame05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/PotatoMine/Frame05.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/PotatoMine/Frame06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/PotatoMine/Frame06.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/PotatoMine/Frame07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/PotatoMine/Frame07.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/PotatoMine/boom/Frame00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/PotatoMine/boom/Frame00.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/PotatoMine/mini/Frame00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/PotatoMine/mini/Frame00.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Repeater/Frame00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Repeater/Frame00.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Repeater/Frame01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Repeater/Frame01.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Repeater/Frame02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Repeater/Frame02.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Repeater/Frame03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Repeater/Frame03.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Repeater/Frame04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Repeater/Frame04.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Repeater/Frame05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Repeater/Frame05.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Repeater/Frame06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Repeater/Frame06.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Repeater/Frame07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Repeater/Frame07.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Repeater/Frame08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Repeater/Frame08.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Repeater/Frame09.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Repeater/Frame09.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Repeater/Frame10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Repeater/Frame10.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Repeater/Frame11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Repeater/Frame11.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Repeater/Frame12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Repeater/Frame12.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Repeater/Frame13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Repeater/Frame13.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/Repeater/Frame14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/Repeater/Frame14.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/SnowPea/Frame00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/SnowPea/Frame00.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/SnowPea/Frame01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/SnowPea/Frame01.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/SnowPea/Frame02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/SnowPea/Frame02.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/SnowPea/Frame03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/SnowPea/Frame03.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/SnowPea/Frame04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/SnowPea/Frame04.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/SnowPea/Frame05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/SnowPea/Frame05.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/SnowPea/Frame06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/SnowPea/Frame06.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/SnowPea/Frame07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/SnowPea/Frame07.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/SnowPea/Frame08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/SnowPea/Frame08.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/SnowPea/Frame09.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/SnowPea/Frame09.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/SnowPea/Frame10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/SnowPea/Frame10.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/SnowPea/Frame11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/SnowPea/Frame11.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/SnowPea/Frame12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/SnowPea/Frame12.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/SnowPea/Frame13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/SnowPea/Frame13.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/SnowPea/Frame14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/SnowPea/Frame14.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/SunFlower/Frame00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/SunFlower/Frame00.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/SunFlower/Frame01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/SunFlower/Frame01.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/SunFlower/Frame02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/SunFlower/Frame02.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/SunFlower/Frame03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/SunFlower/Frame03.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/SunFlower/Frame04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/SunFlower/Frame04.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/SunFlower/Frame05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/SunFlower/Frame05.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/SunFlower/Frame06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/SunFlower/Frame06.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/SunFlower/Frame07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/SunFlower/Frame07.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/SunFlower/Frame08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/SunFlower/Frame08.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/SunFlower/Frame09.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/SunFlower/Frame09.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/SunFlower/Frame10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/SunFlower/Frame10.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/SunFlower/Frame11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/SunFlower/Frame11.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/SunFlower/Frame12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/SunFlower/Frame12.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/SunFlower/Frame13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/SunFlower/Frame13.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/SunFlower/Frame14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/SunFlower/Frame14.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/SunFlower/Frame15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/SunFlower/Frame15.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/SunFlower/Frame16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/SunFlower/Frame16.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/SunFlower/Frame17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/SunFlower/Frame17.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/high/Frame00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/high/Frame00.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/high/Frame01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/high/Frame01.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/high/Frame02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/high/Frame02.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/high/Frame03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/high/Frame03.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/high/Frame04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/high/Frame04.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/high/Frame05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/high/Frame05.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/high/Frame06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/high/Frame06.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/high/Frame07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/high/Frame07.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/high/Frame08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/high/Frame08.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/high/Frame09.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/high/Frame09.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/high/Frame10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/high/Frame10.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/high/Frame11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/high/Frame11.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/high/Frame12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/high/Frame12.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/high/Frame13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/high/Frame13.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/high/Frame14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/high/Frame14.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/high/Frame15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/high/Frame15.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/low/Frame00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/low/Frame00.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/low/Frame01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/low/Frame01.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/low/Frame02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/low/Frame02.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/low/Frame03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/low/Frame03.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/low/Frame04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/low/Frame04.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/low/Frame05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/low/Frame05.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/low/Frame06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/low/Frame06.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/low/Frame07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/low/Frame07.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/low/Frame08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/low/Frame08.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/low/Frame09.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/low/Frame09.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/low/Frame10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/low/Frame10.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/low/Frame11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/low/Frame11.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/low/Frame12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/low/Frame12.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/low/Frame13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/low/Frame13.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/low/Frame14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/low/Frame14.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/middle/Frame00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/middle/Frame00.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/middle/Frame01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/middle/Frame01.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/middle/Frame02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/middle/Frame02.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/middle/Frame03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/middle/Frame03.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/middle/Frame04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/middle/Frame04.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/middle/Frame05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/middle/Frame05.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/middle/Frame06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/middle/Frame06.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/middle/Frame07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/middle/Frame07.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/middle/Frame08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/middle/Frame08.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/middle/Frame09.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/middle/Frame09.png -------------------------------------------------------------------------------- /app/src/main/assets/plant/WallNut/middle/Frame10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/plant/WallNut/middle/Frame10.png -------------------------------------------------------------------------------- /app/src/main/assets/startready/startReady_00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/startready/startReady_00.png -------------------------------------------------------------------------------- /app/src/main/assets/startready/startReady_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/startready/startReady_01.png -------------------------------------------------------------------------------- /app/src/main/assets/startready/startReady_02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/startready/startReady_02.png -------------------------------------------------------------------------------- /app/src/main/assets/sun/Frame00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/sun/Frame00.png -------------------------------------------------------------------------------- /app/src/main/assets/sun/Frame01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/sun/Frame01.png -------------------------------------------------------------------------------- /app/src/main/assets/sun/Frame02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/sun/Frame02.png -------------------------------------------------------------------------------- /app/src/main/assets/sun/Frame03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/sun/Frame03.png -------------------------------------------------------------------------------- /app/src/main/assets/sun/Frame04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/sun/Frame04.png -------------------------------------------------------------------------------- /app/src/main/assets/sun/Frame05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/sun/Frame05.png -------------------------------------------------------------------------------- /app/src/main/assets/sun/Frame06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/sun/Frame06.png -------------------------------------------------------------------------------- /app/src/main/assets/sun/Frame07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/sun/Frame07.png -------------------------------------------------------------------------------- /app/src/main/assets/sun/Frame08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/sun/Frame08.png -------------------------------------------------------------------------------- /app/src/main/assets/sun/Frame09.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/sun/Frame09.png -------------------------------------------------------------------------------- /app/src/main/assets/sun/Frame10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/sun/Frame10.png -------------------------------------------------------------------------------- /app/src/main/assets/sun/Frame11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/sun/Frame11.png -------------------------------------------------------------------------------- /app/src/main/assets/sun/Frame12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/sun/Frame12.png -------------------------------------------------------------------------------- /app/src/main/assets/sun/Frame13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/sun/Frame13.png -------------------------------------------------------------------------------- /app/src/main/assets/sun/Frame14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/sun/Frame14.png -------------------------------------------------------------------------------- /app/src/main/assets/sun/Frame15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/sun/Frame15.png -------------------------------------------------------------------------------- /app/src/main/assets/sun/Frame16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/sun/Frame16.png -------------------------------------------------------------------------------- /app/src/main/assets/sun/Frame17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/sun/Frame17.png -------------------------------------------------------------------------------- /app/src/main/assets/sun/Frame18.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/sun/Frame18.png -------------------------------------------------------------------------------- /app/src/main/assets/sun/Frame19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/sun/Frame19.png -------------------------------------------------------------------------------- /app/src/main/assets/sun/Frame20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/sun/Frame20.png -------------------------------------------------------------------------------- /app/src/main/assets/sun/Frame21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/sun/Frame21.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/ashes/Frame00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/ashes/Frame00.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/ashes/Frame01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/ashes/Frame01.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/ashes/Frame02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/ashes/Frame02.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/ashes/Frame03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/ashes/Frame03.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/ashes/Frame04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/ashes/Frame04.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/ashes/Frame05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/ashes/Frame05.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/ashes/Frame06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/ashes/Frame06.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/ashes/Frame07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/ashes/Frame07.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/ashes/Frame08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/ashes/Frame08.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/ashes/Frame09.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/ashes/Frame09.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/ashes/Frame10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/ashes/Frame10.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/ashes/Frame11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/ashes/Frame11.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/ashes/Frame12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/ashes/Frame12.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/ashes/Frame13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/ashes/Frame13.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/ashes/Frame14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/ashes/Frame14.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/ashes/Frame15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/ashes/Frame15.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/ashes/Frame16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/ashes/Frame16.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/ashes/Frame17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/ashes/Frame17.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/ashes/Frame18.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/ashes/Frame18.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/ashes/Frame19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/ashes/Frame19.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/attack/Frame00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/attack/Frame00.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/attack/Frame01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/attack/Frame01.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/attack/Frame02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/attack/Frame02.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/attack/Frame03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/attack/Frame03.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/attack/Frame04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/attack/Frame04.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/attack/Frame05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/attack/Frame05.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/attack/Frame06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/attack/Frame06.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/attack/Frame07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/attack/Frame07.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/attack/Frame08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/attack/Frame08.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/attack/Frame09.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/attack/Frame09.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/attack/Frame10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/attack/Frame10.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/attack/Frame11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/attack/Frame11.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/attack/Frame12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/attack/Frame12.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/attack/Frame13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/attack/Frame13.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/attack/Frame14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/attack/Frame14.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/attack/Frame15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/attack/Frame15.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/attack/Frame16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/attack/Frame16.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/attack/Frame17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/attack/Frame17.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/attack/Frame18.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/attack/Frame18.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/attack/Frame19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/attack/Frame19.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/attack/Frame20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/attack/Frame20.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/die/Frame00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/die/Frame00.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/die/Frame01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/die/Frame01.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/die/Frame02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/die/Frame02.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/die/Frame03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/die/Frame03.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/die/Frame04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/die/Frame04.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/die/Frame05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/die/Frame05.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/die/Frame06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/die/Frame06.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/die/Frame07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/die/Frame07.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/die/Frame08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/die/Frame08.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/die/Frame09.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/die/Frame09.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/shake/Frame00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/shake/Frame00.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/shake/Frame01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/shake/Frame01.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/walk/Frame00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/walk/Frame00.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/walk/Frame01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/walk/Frame01.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/walk/Frame02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/walk/Frame02.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/walk/Frame03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/walk/Frame03.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/walk/Frame04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/walk/Frame04.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/walk/Frame05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/walk/Frame05.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/walk/Frame06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/walk/Frame06.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/walk/Frame07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/walk/Frame07.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/walk/Frame08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/walk/Frame08.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/walk/Frame09.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/walk/Frame09.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/walk/Frame10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/walk/Frame10.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/walk/Frame11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/walk/Frame11.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/walk/Frame12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/walk/Frame12.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/walk/Frame13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/walk/Frame13.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/walk/Frame14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/walk/Frame14.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/walk/Frame15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/walk/Frame15.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/walk/Frame16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/walk/Frame16.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/walk/Frame17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/walk/Frame17.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/walk/Frame18.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/walk/Frame18.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/walk/Frame19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/walk/Frame19.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/walk/Frame20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/walk/Frame20.png -------------------------------------------------------------------------------- /app/src/main/assets/zombies/zombies_1/walk/Frame21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombies/zombies_1/walk/Frame21.png -------------------------------------------------------------------------------- /app/src/main/assets/zombieswon/ZombiesWon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/assets/zombieswon/ZombiesWon.png -------------------------------------------------------------------------------- /app/src/main/java/xin/lrvik/plantsvszombies/CombatLine.java: -------------------------------------------------------------------------------- 1 | package xin.lrvik.plantsvszombies; 2 | 3 | import android.util.SparseArray; 4 | 5 | import org.cocos2d.actions.CCScheduler; 6 | import org.cocos2d.actions.base.CCRepeatForever; 7 | import org.cocos2d.actions.instant.CCCallFunc; 8 | import org.cocos2d.actions.interval.CCAnimate; 9 | import org.cocos2d.actions.interval.CCDelayTime; 10 | import org.cocos2d.actions.interval.CCSequence; 11 | import org.cocos2d.nodes.CCAnimation; 12 | import org.cocos2d.nodes.CCSprite; 13 | import org.cocos2d.nodes.CCSpriteFrame; 14 | import org.cocos2d.types.util.CGPointUtil; 15 | 16 | import java.util.ArrayList; 17 | import java.util.Iterator; 18 | import java.util.Locale; 19 | import java.util.Random; 20 | 21 | import xin.lrvik.plantsvszombies.bullet.Bullet; 22 | import xin.lrvik.plantsvszombies.plant.Chomper; 23 | import xin.lrvik.plantsvszombies.plant.PotatoMine; 24 | import xin.lrvik.plantsvszombies.plant.ShooterPlant; 25 | 26 | 27 | /** 28 | * Author by 豢涵, Email huanhanfu@126.com, Date on 2018/11/17. 29 | */ 30 | public class CombatLine { 31 | 32 | private final Random random; 33 | private final ArrayList chomperPlants; 34 | private SparseArray plants; 35 | private ArrayList zombies; 36 | private final ArrayList shooterPlants; 37 | private final ArrayList potatoMinePlants; 38 | private LawnMower lawnMower; 39 | 40 | 41 | public CombatLine(LawnMower lawnMower) { 42 | this.lawnMower = lawnMower; 43 | plants = new SparseArray<>(); 44 | zombies = new ArrayList<>(); 45 | shooterPlants = new ArrayList<>(); 46 | chomperPlants = new ArrayList<>(); 47 | potatoMinePlants = new ArrayList<>(); 48 | CCScheduler.sharedScheduler().schedule("attackPlant", this, 1, false); 49 | CCScheduler.sharedScheduler().schedule("attackZombie", this, 1, false); 50 | CCScheduler.sharedScheduler().schedule("bulletHurtCompute", this, 0.2f, false); 51 | CCScheduler.sharedScheduler().schedule("chomperHurt", this, 0.2f, false); 52 | CCScheduler.sharedScheduler().schedule("potatoMineHurt", this, 0.2f, false); 53 | CCScheduler.sharedScheduler().schedule("lawnMowerHurt", this, 0.2f, false); 54 | random = new Random(); 55 | } 56 | 57 | public CombatLine() { 58 | plants = new SparseArray<>(); 59 | zombies = new ArrayList<>(); 60 | shooterPlants = new ArrayList<>(); 61 | chomperPlants = new ArrayList<>(); 62 | potatoMinePlants = new ArrayList<>(); 63 | CCScheduler.sharedScheduler().schedule("attackPlant", this, 1, false); 64 | CCScheduler.sharedScheduler().schedule("attackZombie", this, 1, false); 65 | CCScheduler.sharedScheduler().schedule("bulletHurtCompute", this, 0.2f, false); 66 | CCScheduler.sharedScheduler().schedule("chomperHurt", this, 0.2f, false); 67 | CCScheduler.sharedScheduler().schedule("potatoMineHurt", this, 0.2f, false); 68 | CCScheduler.sharedScheduler().schedule("lawnMowerHurt", this, 0.1f, false); 69 | random = new Random(); 70 | } 71 | 72 | public void addPlant(int col, Plant plant) { 73 | plants.put(col, plant); 74 | if (plant instanceof ShooterPlant) { 75 | shooterPlants.add((ShooterPlant) plant); 76 | } 77 | if (plant instanceof Chomper) { 78 | chomperPlants.add((Chomper) plant); 79 | } 80 | if (plant instanceof PotatoMine) { 81 | potatoMinePlants.add((PotatoMine) plant); 82 | } 83 | } 84 | 85 | public void removePlant(int col) { 86 | Plant plant = plants.get(col); 87 | for (Zombie zombie : zombies) { 88 | int zombiescol = (int) (zombie.getPosition().x - 280) / 105; 89 | if (col == zombiescol && zombie.getState() == Zombie.State.ATTACK) { 90 | zombie.move(); 91 | } 92 | } 93 | 94 | plants.remove(col); 95 | if (plant instanceof ShooterPlant) { 96 | shooterPlants.remove(plant); 97 | } 98 | if (plant instanceof Chomper) { 99 | shooterPlants.remove(plant); 100 | } 101 | if (plant instanceof PotatoMine) { 102 | potatoMinePlants.remove(plant); 103 | } 104 | plant.removeSelf(); 105 | } 106 | 107 | public boolean isContainPlant(int col) { 108 | if (plants.get(col) != null) { 109 | return true; 110 | } 111 | return false; 112 | } 113 | 114 | public void addZombie(Zombie zombie) { 115 | zombies.add(zombie); 116 | } 117 | 118 | public void attackPlant(float t) { 119 | if (zombies.size() != 0 && plants.size() != 0) { 120 | for (Zombie zombie : zombies) { 121 | int col = (int) (zombie.getPosition().x - 280) / 105; 122 | if (isContainPlant(col)) {//判断当前位置是否有植物 123 | switch (zombie.getState()) { 124 | case MOVE: 125 | zombie.stopAllActions(); 126 | zombie.attack(); 127 | break; 128 | case ATTACK: 129 | Plant plant = plants.get(col); 130 | plant.hurtCompute(zombie.getAttack()); 131 | if (plant.getHP() == 0) { 132 | removePlant(col); 133 | //plant.removeSelf(); 134 | zombie.stopAllActions(); 135 | zombie.move(); 136 | } 137 | break; 138 | } 139 | } else if (zombie.getState() == Zombie.State.ATTACK) { 140 | zombie.stopAllActions(); 141 | zombie.move(); 142 | } 143 | } 144 | } 145 | } 146 | 147 | public void attackZombie(float t) { 148 | if (!shooterPlants.isEmpty()) { 149 | for (ShooterPlant shooterPlant : shooterPlants) { 150 | if (zombies.isEmpty()) { 151 | shooterPlant.stopAttackZombie(); 152 | } else { 153 | shooterPlant.attackZombie(); 154 | } 155 | } 156 | } 157 | } 158 | 159 | public void chomperHurt(float t) { 160 | if (chomperPlants.size() > 0 && zombies.size() > 0) { 161 | for (Chomper chomperPlant : chomperPlants) { 162 | for (Zombie zombie : zombies) { 163 | float dis = zombie.getPosition().x - chomperPlant.getPosition().x; 164 | if (dis < 50 && dis > -50) { 165 | if (!chomperPlant.isEat()) { 166 | chomperPlant.eat(zombie); 167 | ((CombatLayer) zombie.getParent().getParent()).setKillZombiesNum(); 168 | zombies.remove(zombie); 169 | } 170 | //zombie.removeSelf(); 171 | } 172 | 173 | } 174 | } 175 | } 176 | } 177 | 178 | public void potatoMineHurt(float t) { 179 | 180 | if (potatoMinePlants.size() > 0 && zombies.size() > 0) { 181 | for (PotatoMine potatoMine : potatoMinePlants) { 182 | //int col = (int) (potatoMine.getPosition().x - 280) / 105; 183 | for (Zombie zombie : zombies) { 184 | float dis = zombie.getPosition().x - potatoMine.getPosition().x; 185 | if (dis < 50 && dis > -50) { 186 | if (potatoMine.isBig() && !potatoMine.isBoom()) { 187 | potatoMine.boom(); 188 | /*zombies.remove(zombie); 189 | removePlant(col);*/ 190 | } 191 | } 192 | 193 | } 194 | } 195 | } 196 | } 197 | 198 | public void bulletHurtCompute(float t) { 199 | //判断植物和僵尸是否为空 200 | if (!zombies.isEmpty()) { 201 | //遍历植物 202 | for (ShooterPlant shooterPlant : shooterPlants) { 203 | //获取植物的子弹 204 | for (Bullet bullet : shooterPlant.getBullets()) { 205 | //遍历僵尸 206 | Iterator iterator = zombies.iterator(); 207 | 208 | while (iterator.hasNext()) { 209 | Zombie zombie = iterator.next(); 210 | //如果子弹可见且子弹在僵尸左右 211 | if (bullet.getVisible() && bullet.getPosition().x > zombie.getPosition().x - 20 212 | && bullet.getPosition().x < zombie.getPosition().x + 20) { 213 | //展示子弹破裂 214 | bullet.showBulletBlast(zombie); 215 | //设置隐藏子弹 216 | bullet.setVisible(false); 217 | //增加僵尸伤害 218 | zombie.hurtCompute(bullet.getAttack()); 219 | //僵尸血量为0时移除僵尸 220 | if (zombie.getHP() == 0) { 221 | //设置击杀僵尸数 222 | ((CombatLayer) zombie.getParent().getParent()).setKillZombiesNum(); 223 | //随机掉落钻石 224 | if (random.nextInt(100) > 60) { 225 | ((CombatLayer) zombie.getParent().getParent()).addDiamond(zombie); 226 | } 227 | 228 | //zombie.removeSelf(); 229 | zombie.die(0); 230 | iterator.remove(); 231 | } 232 | 233 | } 234 | } 235 | } 236 | } 237 | } 238 | } 239 | 240 | public void lawnMowerHurt(float t) { 241 | if (lawnMower != null && lawnMower.getState() != LawnMower.State.END) { 242 | for (Zombie zombie : zombies) { 243 | float dis = zombie.getPosition().x - lawnMower.getPosition().x; 244 | if (dis < 0) { 245 | zombie.die(0); 246 | ((CombatLayer) zombie.getParent().getParent()).setKillZombiesNum(); 247 | zombies.remove(zombie); 248 | } 249 | } 250 | } 251 | } 252 | 253 | public ArrayList getZombies() { 254 | return zombies; 255 | } 256 | 257 | public void setZombies(ArrayList zombies) { 258 | this.zombies = zombies; 259 | } 260 | 261 | public LawnMower getLawnMower() { 262 | return lawnMower; 263 | } 264 | } 265 | -------------------------------------------------------------------------------- /app/src/main/java/xin/lrvik/plantsvszombies/Diamond.java: -------------------------------------------------------------------------------- 1 | package xin.lrvik.plantsvszombies; 2 | 3 | import org.cocos2d.actions.instant.CCCallFunc; 4 | import org.cocos2d.actions.interval.CCMoveTo; 5 | import org.cocos2d.actions.interval.CCSequence; 6 | import org.cocos2d.nodes.CCSprite; 7 | import org.cocos2d.types.CGPoint; 8 | import org.cocos2d.types.util.CGPointUtil; 9 | 10 | /** 11 | * Author by 豢涵, Email huanhanfu@126.com, Date on 2018/12/12. 12 | */ 13 | public class Diamond extends CCSprite { 14 | 15 | public Diamond() { 16 | super("other/diamond.png"); 17 | } 18 | 19 | public void collect(CGPoint position) { 20 | float t = CGPointUtil.distance(getPosition(), position) / 1000; 21 | CCMoveTo ccMoveTo = CCMoveTo.action(t, position); 22 | CCCallFunc ccCallFunc = CCCallFunc.action(this, "addDiamondNumber"); 23 | CCSequence ccSequence = CCSequence.actions(ccMoveTo, ccCallFunc); 24 | runAction(ccSequence); 25 | } 26 | 27 | public void addDiamondNumber() { 28 | ((CombatLayer) getParent()).addDiamondNumber(); 29 | removeSelf(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /app/src/main/java/xin/lrvik/plantsvszombies/LawnMower.java: -------------------------------------------------------------------------------- 1 | package xin.lrvik.plantsvszombies; 2 | 3 | import org.cocos2d.actions.instant.CCCallFunc; 4 | import org.cocos2d.actions.interval.CCMoveTo; 5 | import org.cocos2d.actions.interval.CCSequence; 6 | import org.cocos2d.nodes.CCSprite; 7 | import org.cocos2d.types.CGPoint; 8 | import org.cocos2d.types.util.CGPointUtil; 9 | 10 | 11 | /** 12 | * Author by 豢涵, Email huanhanfu@126.com, Date on 2018/12/15. 13 | */ 14 | public class LawnMower extends CCSprite { 15 | 16 | private float speed = 340; 17 | private final CGPoint end; 18 | private State state = State.WAIT; 19 | 20 | public enum State{ 21 | WAIT,RUNNING,END 22 | } 23 | 24 | public LawnMower(CGPoint start, CGPoint end) { 25 | super("other/lawnmower.png"); 26 | setPosition(start); 27 | setAnchorPoint(0.4f, 0f); 28 | this.end = end; 29 | } 30 | 31 | public void move() { 32 | this.state = State.RUNNING; 33 | float t = CGPointUtil.distance(getPosition(), end) / speed; 34 | CCMoveTo ccMoveTo = CCMoveTo.action(t, end); 35 | CCCallFunc ccCallFunc = CCCallFunc.action(this, "remove"); 36 | CCSequence ccSequence = CCSequence.actions(ccMoveTo, ccCallFunc); 37 | runAction(ccSequence); 38 | } 39 | 40 | public void remove() { 41 | removeSelf(); 42 | this.state = State.END; 43 | } 44 | 45 | public State getState() { 46 | return state; 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /app/src/main/java/xin/lrvik/plantsvszombies/MainActivity.java: -------------------------------------------------------------------------------- 1 | package xin.lrvik.plantsvszombies; 2 | 3 | import android.app.Activity; 4 | import android.os.Build; 5 | import android.os.Bundle; 6 | import android.view.View; 7 | import android.view.WindowManager; 8 | 9 | import org.cocos2d.layers.CCScene; 10 | import org.cocos2d.nodes.CCDirector; 11 | import org.cocos2d.opengl.CCGLSurfaceView; 12 | 13 | public class MainActivity extends Activity { 14 | 15 | private CCDirector ccDirector; 16 | 17 | @Override 18 | protected void onCreate(Bundle savedInstanceState) { 19 | super.onCreate(savedInstanceState); 20 | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { 21 | getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION 22 | |View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY); 23 | //View.SYSTEM_UI_FLAG_HIDE_NAVIGATION :隐藏虚拟按键(导航栏) 24 | //View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY :粘性全屏沉浸模式 25 | //顶部下滑会显示出透明的状态栏和虚拟导航栏,在一段时间以后自动恢复成全屏沉浸模式 26 | } 27 | getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); 28 | 29 | CCGLSurfaceView ccglSurfaceView = new CCGLSurfaceView(this);//创建画布 30 | setContentView(ccglSurfaceView); 31 | 32 | ccDirector = CCDirector.sharedDirector();//获得导演 33 | ccDirector.attachInView(ccglSurfaceView);//将导演连接到画布 34 | ccDirector.setDisplayFPS(true);//设置显示FPS 35 | ccDirector.setScreenSize(1280, 768);//设置屏幕大小,超过会自动适配 36 | CCScene ccScene = CCScene.node();//创建场景 37 | ccScene.addChild(new logoLayer());//给场景增加图层 38 | ccDirector.runWithScene(ccScene);//运行场景 39 | 40 | } 41 | 42 | @Override 43 | protected void onDestroy() { 44 | super.onDestroy(); 45 | ccDirector.end(); 46 | } 47 | 48 | @Override 49 | protected void onResume() { 50 | super.onResume(); 51 | ccDirector.onResume(); 52 | } 53 | 54 | @Override 55 | protected void onPause() { 56 | super.onPause(); 57 | ccDirector.onPause(); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /app/src/main/java/xin/lrvik/plantsvszombies/MenuLayer.java: -------------------------------------------------------------------------------- 1 | package xin.lrvik.plantsvszombies; 2 | 3 | import android.view.MotionEvent; 4 | 5 | import org.cocos2d.layers.CCLayer; 6 | import org.cocos2d.layers.CCScene; 7 | import org.cocos2d.menus.CCMenu; 8 | import org.cocos2d.menus.CCMenuItemSprite; 9 | import org.cocos2d.nodes.CCDirector; 10 | import org.cocos2d.nodes.CCSprite; 11 | import org.cocos2d.sound.SoundEngine; 12 | import org.cocos2d.transitions.CCFadeTransition; 13 | import org.cocos2d.types.CGPoint; 14 | import org.cocos2d.types.CGRect; 15 | import org.cocos2d.types.CGSize; 16 | 17 | /** 18 | * Author by 豢涵, Email huanhanfu@126.com, Date on 2018/11/5. 19 | */ 20 | class MenuLayer extends CCLayer { 21 | 22 | private final CGSize winSize; 23 | private final SoundEngine engine; 24 | 25 | public MenuLayer() { 26 | engine = SoundEngine.sharedEngine(); 27 | engine.preloadEffect(CCDirector.theApp,R.raw.chompsoft); 28 | engine.preloadEffect(CCDirector.theApp,R.raw.explosion); 29 | engine.preloadEffect(CCDirector.theApp,R.raw.lawnmower); 30 | engine.preloadEffect(CCDirector.theApp,R.raw.losemusic); 31 | engine.preloadEffect(CCDirector.theApp,R.raw.points); 32 | engine.preloadEffect(CCDirector.theApp,R.raw.shoop); 33 | engine.preloadEffect(CCDirector.theApp,R.raw.siren); 34 | engine.preloadEffect(CCDirector.theApp,R.raw.win); 35 | engine.preloadEffect(CCDirector.theApp,R.raw.groan4); 36 | engine.playSound(CCDirector.theApp, R.raw.faster, true); 37 | 38 | CCSprite ccSprite_menu = CCSprite.sprite("menu/main_menu_bg.png"); 39 | ccSprite_menu.setAnchorPoint(0, 0); 40 | addChild(ccSprite_menu); 41 | 42 | //创建菜单 43 | CCMenu ccMenu = CCMenu.menu(); 44 | 45 | //开始冒险 46 | //菜单默认未按下 47 | CCSprite ccSprite_start_adventure_default = CCSprite.sprite("menu/start_adventure_default.png"); 48 | //菜单按下 49 | CCSprite ccSprite_start_adventure_press = CCSprite.sprite("menu/start_adventure_press.png"); 50 | //创建菜单子项精灵 51 | CCMenuItemSprite ccMenuItemSprite = CCMenuItemSprite.item(ccSprite_start_adventure_default, 52 | ccSprite_start_adventure_press, this, "start"); 53 | 54 | //设置菜单子项位置 55 | ccMenuItemSprite.setPosition(270, 160); 56 | //增加进菜单 57 | ccMenu.addChild(ccMenuItemSprite); 58 | 59 | //商店 60 | //菜单默认未按下 61 | CCSprite ccSprite_shop = CCSprite.sprite("other/shop.png"); 62 | //菜单按下 63 | CCSprite ccSprite_shop_press = CCSprite.sprite("other/shop_press.png"); 64 | //创建菜单子项精灵 65 | CCMenuItemSprite ccMenuItemSprite2 = CCMenuItemSprite.item(ccSprite_shop, 66 | ccSprite_shop_press, this, "shop"); 67 | ccMenuItemSprite2.setScale(1.5f); 68 | //设置菜单子项位置 69 | ccMenuItemSprite2.setPosition(60, -180); 70 | //增加进菜单 71 | ccMenu.addChild(ccMenuItemSprite2); 72 | 73 | //将菜单增加进图层 74 | addChild(ccMenu); 75 | 76 | winSize = CCDirector.sharedDirector().winSize(); 77 | setIsTouchEnabled(true); 78 | 79 | } 80 | 81 | public void start(Object item) { 82 | CCScene ccScene = CCScene.node(); 83 | ccScene.addChild(new CombatLayer()); 84 | CCFadeTransition ccFadeTransition = CCFadeTransition.transition(2, ccScene); 85 | CCDirector.sharedDirector().runWithScene(ccFadeTransition); 86 | } 87 | 88 | public void shop(Object item) { 89 | CCScene ccScene = CCScene.node(); 90 | ccScene.addChild(new ShopLayer()); 91 | CCFadeTransition ccFadeTransition = CCFadeTransition.transition(2, ccScene); 92 | CCDirector.sharedDirector().runWithScene(ccFadeTransition); 93 | } 94 | 95 | @Override 96 | public boolean ccTouchesBegan(MotionEvent event) { 97 | CGRect cgRect = CGRect.make(winSize.width - 130, 80, 100, 100); 98 | if (CGRect.containsPoint(cgRect, convertTouchToNodeSpace(event))) { 99 | //点击了退出 100 | CCDirector.sharedDirector().getActivity().finish(); 101 | } 102 | return super.ccTouchesBegan(event); 103 | } 104 | 105 | 106 | } 107 | -------------------------------------------------------------------------------- /app/src/main/java/xin/lrvik/plantsvszombies/PauseLayer.java: -------------------------------------------------------------------------------- 1 | package xin.lrvik.plantsvszombies; 2 | 3 | import android.view.MotionEvent; 4 | 5 | import org.cocos2d.layers.CCLayer; 6 | import org.cocos2d.layers.CCScene; 7 | import org.cocos2d.nodes.CCDirector; 8 | import org.cocos2d.nodes.CCLabel; 9 | import org.cocos2d.nodes.CCSprite; 10 | import org.cocos2d.sound.SoundEngine; 11 | import org.cocos2d.transitions.CCFadeTransition; 12 | import org.cocos2d.types.CGRect; 13 | import org.cocos2d.types.CGSize; 14 | import org.cocos2d.types.ccColor3B; 15 | 16 | /** 17 | * Author by 豢涵, Email huanhanfu@126.com, Date on 2018/12/16. 18 | */ 19 | public class PauseLayer extends CCLayer { 20 | 21 | private final CCSprite ccSprite_button1; 22 | private final CCSprite ccSprite_button11; 23 | private final CCSprite ccSprite_button12; 24 | 25 | public PauseLayer() { 26 | 27 | CGSize winSize = CCDirector.sharedDirector().getWinSize(); 28 | CCSprite ccSprite_menuback = CCSprite.sprite("other/menuback.png"); 29 | ccSprite_menuback.setPosition(winSize.getWidth() / 2, winSize.getHeight() / 2); 30 | addChild(ccSprite_menuback); 31 | 32 | ccSprite_button1 = CCSprite.sprite("other/button.png"); 33 | ccSprite_button1.setPosition(ccSprite_menuback.getPosition().x, ccSprite_menuback.getPosition().y - 190); 34 | addChild(ccSprite_button1); 35 | 36 | CCLabel ccLabel_back = CCLabel.makeLabel("返回游戏", "", 20); 37 | ccLabel_back.setColor(ccColor3B.ccGREEN); 38 | ccLabel_back.setPosition(ccSprite_button1.getPosition().x, ccSprite_button1.getPosition().y); 39 | addChild(ccLabel_back); 40 | 41 | ccSprite_button11 = CCSprite.sprite("other/button.png"); 42 | ccSprite_button11.setScale(0.6f); 43 | ccSprite_button11.setPosition(ccSprite_menuback.getPosition().x, ccSprite_menuback.getPosition().y - 100); 44 | addChild(ccSprite_button11); 45 | 46 | CCLabel ccLabel_restart = CCLabel.makeLabel("重新开始", "", 20); 47 | ccLabel_restart.setColor(ccColor3B.ccGREEN); 48 | ccLabel_restart.setPosition(ccSprite_button11.getPosition().x, ccSprite_button11.getPosition().y); 49 | addChild(ccLabel_restart); 50 | 51 | ccSprite_button12 = CCSprite.sprite("other/button.png"); 52 | ccSprite_button12.setScale(0.6f); 53 | ccSprite_button12.setPosition(ccSprite_menuback.getPosition().x, ccSprite_menuback.getPosition().y - 50); 54 | addChild(ccSprite_button12); 55 | 56 | CCLabel ccLabel_menu = CCLabel.makeLabel("返回主菜单", "", 20); 57 | ccLabel_menu.setColor(ccColor3B.ccGREEN); 58 | ccLabel_menu.setPosition(ccSprite_button12.getPosition().x, ccSprite_button12.getPosition().y); 59 | addChild(ccLabel_menu); 60 | 61 | setIsTouchEnabled(true); 62 | } 63 | 64 | @Override 65 | public boolean ccTouchesBegan(MotionEvent event) { 66 | if (CGRect.containsPoint(ccSprite_button1.getBoundingBox(), convertTouchToNodeSpace(event))) { 67 | SoundEngine.sharedEngine().resumeSound(); 68 | CCDirector.sharedDirector().popScene(); 69 | } else if (CGRect.containsPoint(ccSprite_button11.getBoundingBox(), convertTouchToNodeSpace(event))) { 70 | SoundEngine.sharedEngine().playSound(CCDirector.theApp, R.raw.faster, true); 71 | CCScene ccScene = CCScene.node(); 72 | ccScene.addChild(new CombatLayer()); 73 | CCFadeTransition ccFadeTransition = CCFadeTransition.transition(2, ccScene); 74 | CCDirector.sharedDirector().runWithScene(ccFadeTransition); 75 | } else if (CGRect.containsPoint(ccSprite_button12.getBoundingBox(), convertTouchToNodeSpace(event))) { 76 | CCScene ccScene = CCScene.node(); 77 | ccScene.addChild(new MenuLayer()); 78 | CCFadeTransition ccFadeTransition = CCFadeTransition.transition(2, ccScene); 79 | CCDirector.sharedDirector().runWithScene(ccFadeTransition); 80 | } else { 81 | 82 | } 83 | return super.ccTouchesBegan(event); 84 | } 85 | } 86 | -------------------------------------------------------------------------------- /app/src/main/java/xin/lrvik/plantsvszombies/Plant.java: -------------------------------------------------------------------------------- 1 | package xin.lrvik.plantsvszombies; 2 | 3 | import org.cocos2d.actions.base.CCRepeatForever; 4 | import org.cocos2d.actions.interval.CCAnimate; 5 | import org.cocos2d.nodes.CCAnimation; 6 | import org.cocos2d.nodes.CCDirector; 7 | import org.cocos2d.nodes.CCSprite; 8 | import org.cocos2d.nodes.CCSpriteFrame; 9 | import org.cocos2d.sound.SoundEngine; 10 | 11 | import java.util.ArrayList; 12 | import java.util.Locale; 13 | 14 | /** 15 | * Created by Administrator on 2018/11/15 0015. 16 | */ 17 | 18 | public abstract class Plant extends CCSprite { 19 | 20 | private int HP=100; 21 | private int price; 22 | 23 | public Plant(String format, int number) { 24 | super(String.format(Locale.CHINA, format, 0)); 25 | setAnchorPoint(0.5f, 0); 26 | ArrayList frames = new ArrayList<>(); 27 | for (int i = 0; i < number; i++) { 28 | CCSpriteFrame ccSpriteFrame = CCSprite.sprite(String.format(Locale.CHINA, format, i)).displayedFrame(); 29 | frames.add(ccSpriteFrame); 30 | } 31 | CCAnimation ccAnimation = CCAnimation.animationWithFrames(frames, 0.2f); 32 | CCAnimate ccAnimate = CCAnimate.action(ccAnimation, true); 33 | CCRepeatForever ccRepeatForever = CCRepeatForever.action(ccAnimate); 34 | runAction(ccRepeatForever); 35 | } 36 | 37 | public int getHP() { 38 | return HP; 39 | } 40 | 41 | public void setHP(int HP) { 42 | this.HP = HP; 43 | } 44 | 45 | public void hurtCompute(int hurt){ 46 | SoundEngine.sharedEngine().playEffect(CCDirector.theApp, R.raw.chompsoft, false); 47 | HP-=hurt; 48 | if(HP<0){ 49 | HP=0; 50 | } 51 | } 52 | 53 | public int getPrice() { 54 | return price; 55 | } 56 | 57 | public void setPrice(int price) { 58 | this.price = price; 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /app/src/main/java/xin/lrvik/plantsvszombies/PlantCard.java: -------------------------------------------------------------------------------- 1 | package xin.lrvik.plantsvszombies; 2 | 3 | import org.cocos2d.nodes.CCSprite; 4 | 5 | import java.util.Locale; 6 | 7 | /** 8 | * Author by 豢涵, Email huanhanfu@126.com, Date on 2018/11/9. 9 | */ 10 | public class PlantCard { 11 | private int id; 12 | private CCSprite light; 13 | private CCSprite dark; 14 | 15 | public PlantCard(int id) { 16 | this.id = id; 17 | light=CCSprite.sprite(String.format(Locale.CHINA,"choose/p%02d.png",id)); 18 | dark=CCSprite.sprite(String.format(Locale.CHINA,"choose/p%02d.png",id)); 19 | dark.setOpacity(100); 20 | } 21 | 22 | public int getId() { 23 | return id; 24 | } 25 | 26 | public void setId(int id) { 27 | this.id = id; 28 | } 29 | 30 | public CCSprite getLight() { 31 | return light; 32 | } 33 | 34 | public void setLight(CCSprite light) { 35 | this.light = light; 36 | } 37 | 38 | public CCSprite getDark() { 39 | return dark; 40 | } 41 | 42 | public void setDark(CCSprite dark) { 43 | this.dark = dark; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /app/src/main/java/xin/lrvik/plantsvszombies/SPUtils.java: -------------------------------------------------------------------------------- 1 | package xin.lrvik.plantsvszombies; 2 | 3 | import android.content.Context; 4 | import android.content.SharedPreferences; 5 | 6 | import java.lang.reflect.InvocationTargetException; 7 | import java.lang.reflect.Method; 8 | import java.util.Map; 9 | 10 | /** 11 | * SharedPreferences工具类 12 | *

13 | * 注意一点,里面所有的commit操作使用了SharedPreferencesCompat.apply进行了替代, 14 | * 目的是尽可能的使用apply代替commit 15 | *

16 | * 因为commit方法是同步的,并且我们很多时候的commit操作都是UI线程中,毕竟是IO操作,尽可能异步; 17 | */ 18 | public class SPUtils { 19 | /** 20 | * 保存在手机里面的文件名 21 | */ 22 | public static final String FILE_NAME = "share_data"; 23 | 24 | /** 25 | * 保存数据的方法,我们需要拿到保存数据的具体类型,然后根据类型调用不同的保存方法 26 | * 27 | * @param context 28 | * @param key 29 | * @param object 30 | */ 31 | public static void put(Context context, String key, Object object) { 32 | 33 | SharedPreferences sp = context.getSharedPreferences(FILE_NAME, Context.MODE_PRIVATE); 34 | SharedPreferences.Editor editor = sp.edit(); 35 | 36 | if (object instanceof String) { 37 | editor.putString(key, (String) object); 38 | } else if (object instanceof Integer) { 39 | editor.putInt(key, (Integer) object); 40 | } else if (object instanceof Boolean) { 41 | editor.putBoolean(key, (Boolean) object); 42 | } else if (object instanceof Float) { 43 | editor.putFloat(key, (Float) object); 44 | } else if (object instanceof Long) { 45 | editor.putLong(key, (Long) object); 46 | } else { 47 | editor.putString(key, object.toString()); 48 | } 49 | 50 | SharedPreferencesCompat.apply(editor); 51 | } 52 | 53 | /** 54 | * 得到保存数据的方法,我们根据默认值得到保存的数据的具体类型,然后调用相对于的方法获取值 55 | * 56 | * @param context 57 | * @param key 58 | * @param defaultObject 59 | * @return 60 | */ 61 | public static Object get(Context context, String key, Object defaultObject) { 62 | SharedPreferences sp = context.getSharedPreferences(FILE_NAME, Context.MODE_PRIVATE); 63 | 64 | if (defaultObject instanceof String) { 65 | return sp.getString(key, (String) defaultObject); 66 | } else if (defaultObject instanceof Integer) { 67 | return sp.getInt(key, (Integer) defaultObject); 68 | } else if (defaultObject instanceof Boolean) { 69 | return sp.getBoolean(key, (Boolean) defaultObject); 70 | } else if (defaultObject instanceof Float) { 71 | return sp.getFloat(key, (Float) defaultObject); 72 | } else if (defaultObject instanceof Long) { 73 | return sp.getLong(key, (Long) defaultObject); 74 | } 75 | 76 | return null; 77 | } 78 | 79 | /** 80 | * 移除某个key值已经对应的值 81 | * 82 | * @param context 83 | * @param key 84 | */ 85 | public static void remove(Context context, String key) { 86 | SharedPreferences sp = context.getSharedPreferences(FILE_NAME, Context.MODE_PRIVATE); 87 | SharedPreferences.Editor editor = sp.edit(); 88 | editor.remove(key); 89 | SharedPreferencesCompat.apply(editor); 90 | } 91 | 92 | /** 93 | * 清除所有数据 94 | * 95 | * @param context 96 | */ 97 | public static void clear(Context context) { 98 | SharedPreferences sp = context.getSharedPreferences(FILE_NAME, Context.MODE_PRIVATE); 99 | SharedPreferences.Editor editor = sp.edit(); 100 | editor.clear(); 101 | SharedPreferencesCompat.apply(editor); 102 | } 103 | 104 | /** 105 | * 查询某个key是否已经存在 106 | * 107 | * @param context 108 | * @param key 109 | * @return 110 | */ 111 | public static boolean contains(Context context, String key) { 112 | SharedPreferences sp = context.getSharedPreferences(FILE_NAME, Context.MODE_PRIVATE); 113 | return sp.contains(key); 114 | } 115 | 116 | /** 117 | * 返回所有的键值对 118 | * 119 | * @param context 120 | * @return 121 | */ 122 | public static Map getAll(Context context) { 123 | SharedPreferences sp = context.getSharedPreferences(FILE_NAME, Context.MODE_PRIVATE); 124 | return sp.getAll(); 125 | } 126 | 127 | /** 128 | * 创建一个解决SharedPreferencesCompat.apply方法的一个兼容类 129 | * 130 | * @author zhy 131 | */ 132 | private static class SharedPreferencesCompat { 133 | private static final Method sApplyMethod = findApplyMethod(); 134 | 135 | /** 136 | * 反射查找apply的方法 137 | * 138 | * @return 139 | */ 140 | @SuppressWarnings({"unchecked", "rawtypes"}) 141 | private static Method findApplyMethod() { 142 | try { 143 | Class clz = SharedPreferences.Editor.class; 144 | return clz.getMethod("apply"); 145 | } catch (NoSuchMethodException e) { 146 | } 147 | 148 | return null; 149 | } 150 | 151 | /** 152 | * 如果找到则使用apply执行,否则使用commit 153 | * 154 | * @param editor 155 | */ 156 | public static void apply(SharedPreferences.Editor editor) { 157 | try { 158 | if (sApplyMethod != null) { 159 | sApplyMethod.invoke(editor); 160 | return; 161 | } 162 | } catch (IllegalArgumentException e) { 163 | } catch (IllegalAccessException e) { 164 | } catch (InvocationTargetException e) { 165 | } 166 | editor.commit(); 167 | } 168 | } 169 | 170 | } -------------------------------------------------------------------------------- /app/src/main/java/xin/lrvik/plantsvszombies/ShopLayer.java: -------------------------------------------------------------------------------- 1 | package xin.lrvik.plantsvszombies; 2 | 3 | import android.view.MotionEvent; 4 | import android.widget.Toast; 5 | 6 | import org.cocos2d.actions.instant.CCCallFunc; 7 | import org.cocos2d.actions.interval.CCDelayTime; 8 | import org.cocos2d.actions.interval.CCMoveTo; 9 | import org.cocos2d.actions.interval.CCSequence; 10 | import org.cocos2d.layers.CCLayer; 11 | import org.cocos2d.layers.CCScene; 12 | import org.cocos2d.nodes.CCDirector; 13 | import org.cocos2d.nodes.CCLabel; 14 | import org.cocos2d.nodes.CCSprite; 15 | import org.cocos2d.transitions.CCFadeTransition; 16 | import org.cocos2d.transitions.CCJumpZoomTransition; 17 | import org.cocos2d.types.CGRect; 18 | import org.cocos2d.types.CGSize; 19 | import org.cocos2d.types.ccColor3B; 20 | 21 | /** 22 | * Author by 豢涵, Email huanhanfu@126.com, Date on 2018/12/15. 23 | */ 24 | public class ShopLayer extends CCLayer { 25 | 26 | private final CCSprite ccSprite_store_p; 27 | private final CCSprite ccSprite_store_n; 28 | private final CCSprite ccSprite_lawnmower; 29 | private final CCLabel ccLabel_tip; 30 | private int diamondsNum; 31 | private CCSprite ccSprite_diamond; 32 | private CCSprite ccSprite_tipbg2; 33 | private CCLabel ccLabel_diamond; 34 | 35 | public ShopLayer() { 36 | CGSize winSize = CCDirector.sharedDirector().getWinSize(); 37 | CCSprite ccSprite_store_car = CCSprite.sprite("other/store_car.jpg"); 38 | ccSprite_store_car.setAnchorPoint(0, 0); 39 | ccSprite_store_car.setScale(1.6f); 40 | ccSprite_store_car.setPosition(winSize.getWidth() / 2 - ccSprite_store_car.getBoundingBox().size.getWidth() / 2, 0); 41 | addChild(ccSprite_store_car); 42 | 43 | ccSprite_store_n = CCSprite.sprite("other/Store_N.png"); 44 | ccSprite_store_n.setScale(1.6f); 45 | ccSprite_store_n.setAnchorPoint(0, 0); 46 | ccSprite_store_n.setPosition(800, 185); 47 | addChild(ccSprite_store_n); 48 | 49 | 50 | ccSprite_store_p = CCSprite.sprite("other/Store_P.png"); 51 | ccSprite_store_p.setScale(1.6f); 52 | ccSprite_store_p.setAnchorPoint(0, 0); 53 | ccSprite_store_p.setPosition(240, 195); 54 | addChild(ccSprite_store_p); 55 | 56 | CCLabel ccLabel = CCLabel.makeLabel("返回", "", 40); 57 | ccLabel.setColor(ccColor3B.ccGREEN); 58 | ccLabel.setPosition(ccSprite_store_p.getPosition().x + 70, ccSprite_store_p.getPosition().y + 70); 59 | addChild(ccLabel); 60 | 61 | ccSprite_lawnmower = CCSprite.sprite("other/lawnmower.png"); 62 | ccSprite_lawnmower.setScale(2f); 63 | ccSprite_lawnmower.setAnchorPoint(0, 0); 64 | ccSprite_lawnmower.setPosition(500, 350); 65 | addChild(ccSprite_lawnmower); 66 | 67 | ccLabel_tip = CCLabel.makeLabel("购买成功", "", 40); 68 | ccLabel_tip.setColor(ccColor3B.ccRED); 69 | ccLabel_tip.setPosition(winSize.getWidth() / 2, winSize.getHeight() - 140); 70 | addChild(ccLabel_tip); 71 | ccLabel_tip.setVisible(false); 72 | 73 | 74 | ccSprite_tipbg2 = CCSprite.sprite("other/tipbg.png"); 75 | ccSprite_tipbg2.setPosition(winSize.getWidth() / 7 * 5 - ccSprite_tipbg2.getBoundingBox().size.getWidth() / 2 + 200, 76 | winSize.getHeight() - ccSprite_tipbg2.getBoundingBox().size.getHeight() / 2 - 30); 77 | addChild(ccSprite_tipbg2); 78 | ccSprite_diamond = CCSprite.sprite("other/diamond.png"); 79 | //ccSprite_diamond.setContentSize(4,4); 80 | ccSprite_diamond.setScale(0.5); 81 | ccSprite_diamond.setPosition(ccp(ccSprite_tipbg2.getPosition().x - 30, 82 | ccSprite_tipbg2.getPosition().y)); 83 | addChild(ccSprite_diamond); 84 | 85 | diamondsNum = (int) SPUtils.get(CCDirector.sharedDirector().getActivity(), "zs", 0); 86 | ccLabel_diamond = CCLabel.makeLabel(diamondsNum + "", "", 20); 87 | ccLabel_diamond.setColor(ccColor3B.ccGREEN); 88 | ccLabel_diamond.setPosition(ccSprite_diamond.getPosition().x + 50, ccSprite_diamond.getPosition().y); 89 | addChild(ccLabel_diamond); 90 | 91 | setIsTouchEnabled(true); 92 | } 93 | 94 | 95 | @Override 96 | public boolean ccTouchesBegan(MotionEvent event) { 97 | if (CGRect.containsPoint(ccSprite_lawnmower.getBoundingBox(), convertTouchToNodeSpace(event))) { 98 | boolean lm = (boolean) SPUtils.get(CCDirector.sharedDirector().getActivity(), "lm", false); 99 | if (!lm && diamondsNum > 10) { 100 | diamondsNum -= 10; 101 | ccLabel_diamond.setString(diamondsNum + ""); 102 | SPUtils.put(CCDirector.sharedDirector().getActivity(), "zs", diamondsNum); 103 | SPUtils.put(CCDirector.sharedDirector().getActivity(), "lm", true); 104 | showText("购买成功"); 105 | } else { 106 | showText("购买失败,钻石不足或已购买该道具!"); 107 | } 108 | } else if (CGRect.containsPoint(ccSprite_store_p.getBoundingBox(), convertTouchToNodeSpace(event))) { 109 | CCScene ccScene = CCScene.node(); 110 | ccScene.addChild(new MenuLayer()); 111 | CCFadeTransition ccFadeTransition = CCFadeTransition.transition(2, ccScene); 112 | CCDirector.sharedDirector().runWithScene(ccFadeTransition); 113 | } 114 | 115 | return super.ccTouchesBegan(event); 116 | } 117 | 118 | private void showText(String text) { 119 | ccLabel_tip.setVisible(true); 120 | ccLabel_tip.setString(text); 121 | 122 | CCDelayTime ccDelayTime = CCDelayTime.action(2); 123 | CCCallFunc ccCallFunc = CCCallFunc.action(this, "hide"); 124 | CCSequence ccSequence = CCSequence.actions(ccDelayTime, ccCallFunc); 125 | runAction(ccSequence); 126 | } 127 | 128 | public void hide() { 129 | ccLabel_tip.setVisible(false); 130 | } 131 | } 132 | -------------------------------------------------------------------------------- /app/src/main/java/xin/lrvik/plantsvszombies/Sun.java: -------------------------------------------------------------------------------- 1 | package xin.lrvik.plantsvszombies; 2 | 3 | import org.cocos2d.actions.base.CCRepeatForever; 4 | import org.cocos2d.actions.instant.CCCallFunc; 5 | import org.cocos2d.actions.interval.CCAnimate; 6 | import org.cocos2d.actions.interval.CCMoveTo; 7 | import org.cocos2d.actions.interval.CCSequence; 8 | import org.cocos2d.nodes.CCAnimation; 9 | import org.cocos2d.nodes.CCSprite; 10 | import org.cocos2d.nodes.CCSpriteFrame; 11 | import org.cocos2d.types.CGPoint; 12 | import org.cocos2d.types.util.CGPointUtil; 13 | 14 | import java.util.ArrayList; 15 | import java.util.Locale; 16 | 17 | /** 18 | * Author by 豢涵, Email huanhanfu@126.com, Date on 2018/12/6. 19 | */ 20 | public class Sun extends CCSprite { 21 | 22 | private boolean isNowCollect; 23 | 24 | public Sun() { 25 | super("sun/Frame00.png"); 26 | ArrayList frames = new ArrayList<>(); 27 | for (int i = 0; i < 22; i++) { 28 | CCSpriteFrame ccSpriteFrame = CCSprite.sprite(String.format(Locale.CHINA, "sun/Frame%02d.png", i)).displayedFrame(); 29 | 30 | frames.add(ccSpriteFrame); 31 | } 32 | CCAnimation ccAnimation = CCAnimation.animationWithFrames(frames, 0.2f); 33 | CCAnimate ccAnimate = CCAnimate.action(ccAnimation, true); 34 | CCRepeatForever ccRepeatForever = CCRepeatForever.action(ccAnimate); 35 | runAction(ccRepeatForever); 36 | } 37 | 38 | public void collect(){ 39 | isNowCollect = true; 40 | CGPoint end = ccp(50, 720); 41 | float t = CGPointUtil.distance(getPosition(), end) / 1000; 42 | CCMoveTo ccMoveTo = CCMoveTo.action(t, end); 43 | CCCallFunc ccCallFunc = CCCallFunc.action(this, "addSunNumber"); 44 | CCSequence ccSequence = CCSequence.actions(ccMoveTo, ccCallFunc); 45 | runAction(ccSequence); 46 | } 47 | 48 | public void addSunNumber(){ 49 | ((CombatLayer) getParent()).addSunNumber(25); 50 | removeSelf(); 51 | } 52 | 53 | public boolean isNowCollect() { 54 | return isNowCollect; 55 | } 56 | 57 | 58 | } 59 | -------------------------------------------------------------------------------- /app/src/main/java/xin/lrvik/plantsvszombies/Zombie.java: -------------------------------------------------------------------------------- 1 | package xin.lrvik.plantsvszombies; 2 | 3 | import org.cocos2d.actions.base.CCRepeatForever; 4 | import org.cocos2d.actions.base.CCSpeed; 5 | import org.cocos2d.actions.instant.CCCallFunc; 6 | import org.cocos2d.actions.instant.CCCallFuncN; 7 | import org.cocos2d.actions.instant.CCCallFuncND; 8 | import org.cocos2d.actions.interval.CCAnimate; 9 | import org.cocos2d.actions.interval.CCDelayTime; 10 | import org.cocos2d.actions.interval.CCMoveTo; 11 | import org.cocos2d.actions.interval.CCSequence; 12 | import org.cocos2d.actions.interval.CCTintTo; 13 | import org.cocos2d.nodes.CCAnimation; 14 | import org.cocos2d.nodes.CCDirector; 15 | import org.cocos2d.nodes.CCSprite; 16 | import org.cocos2d.nodes.CCSpriteFrame; 17 | import org.cocos2d.sound.SoundEngine; 18 | import org.cocos2d.types.CGPoint; 19 | import org.cocos2d.types.util.CGPointUtil; 20 | 21 | import java.util.ArrayList; 22 | import java.util.Locale; 23 | 24 | /** 25 | * Author by 豢涵, Email huanhanfu@126.com, Date on 2018/11/19. 26 | */ 27 | public class Zombie extends CCSprite { 28 | private final int row; 29 | private float speed = 15; 30 | private final CGPoint end; 31 | private final CombatLayer combatLayer; 32 | private int attack = 10; 33 | private State state; 34 | private boolean isSlow; 35 | private int HP = 100; 36 | 37 | public void slow() { 38 | isSlow = true; 39 | setAttack(2); 40 | stopAllActions(); 41 | switch (getState()) { 42 | case MOVE: 43 | move(); 44 | break; 45 | case ATTACK: 46 | attack(); 47 | break; 48 | } 49 | CCTintTo ccTintTo1 = CCTintTo.action(0.1f, ccc3(150, 150, 255)); 50 | CCDelayTime ccDelayTime = CCDelayTime.action(3); 51 | CCTintTo ccTintTo2 = CCTintTo.action(0.1f, ccc3(255, 255, 255)); 52 | CCCallFunc ccCallFunc = CCCallFunc.action(this, "normal"); 53 | CCSequence ccSequence = CCSequence.actions(ccTintTo1, ccDelayTime, ccTintTo2, ccCallFunc); 54 | runAction(ccSequence); 55 | } 56 | 57 | public void normal() { 58 | isSlow = false; 59 | setAttack(10); 60 | stopAllActions(); 61 | switch (getState()) { 62 | case MOVE: 63 | move(); 64 | break; 65 | case ATTACK: 66 | attack(); 67 | break; 68 | } 69 | } 70 | 71 | public void die(int mode) { 72 | stopAllActions(); 73 | 74 | ArrayList frames = new ArrayList<>(); 75 | 76 | if (mode == 1) { 77 | for (int i = 0; i < 19; i++) { 78 | CCSpriteFrame ccSpriteFrame = CCSprite.sprite(String.format(Locale.CHINA, 79 | "zombies/zombies_1/ashes/Frame%02d.png", i)).displayedFrame(); 80 | 81 | frames.add(ccSpriteFrame); 82 | } 83 | } else { 84 | for (int i = 0; i < 9; i++) { 85 | CCSpriteFrame ccSpriteFrame = CCSprite.sprite(String.format(Locale.CHINA, 86 | "zombies/zombies_1/die/Frame%02d.png", i)).displayedFrame(); 87 | frames.add(ccSpriteFrame); 88 | } 89 | 90 | } 91 | 92 | CCAnimation ccAnimation = CCAnimation.animationWithFrames(frames, 0.15f); 93 | CCAnimate ccAnimate = CCAnimate.action(ccAnimation, false); 94 | 95 | CCCallFunc removeZombie = CCCallFunc.action(this, "removeZombie"); 96 | CCSequence ccSequence = CCSequence.actions(ccAnimate, removeZombie); 97 | 98 | runAction(ccSequence); 99 | } 100 | 101 | public void removeZombie() { 102 | removeSelf(); 103 | } 104 | 105 | public void hurtCompute(int attack) { 106 | HP -= attack; 107 | if (HP < 0) { 108 | HP = 0; 109 | //die(); 110 | } 111 | } 112 | 113 | public int getHP() { 114 | return HP; 115 | } 116 | 117 | public void setHP(int HP) { 118 | this.HP = HP; 119 | } 120 | 121 | public enum State { 122 | MOVE, ATTACK, DIE 123 | } 124 | 125 | public Zombie(CombatLayer combatLayer, CGPoint start, CGPoint end,int row) { 126 | super("zombies/zombies_1/walk/Frame00.png"); 127 | setAnchorPoint(0.5f, 0); 128 | setPosition(start); 129 | this.combatLayer = combatLayer; 130 | this.end = end; 131 | this.row = row; 132 | SoundEngine.sharedEngine().playEffect(CCDirector.theApp, R.raw.groan4, false); 133 | move(); 134 | } 135 | 136 | public void move() { 137 | float t = CGPointUtil.distance(getPosition(), end) / speed; 138 | CCMoveTo ccMoveTo = CCMoveTo.action(t, end); 139 | CCCallFunc ccCallFunc = CCCallFuncND.action(combatLayer, "end",row); 140 | CCSequence ccSequence = CCSequence.actions(ccMoveTo, ccCallFunc); 141 | if (isSlow) { 142 | CCSpeed ccSpeed = CCSpeed.action(ccSequence, 0.2f); 143 | runAction(ccSpeed); 144 | } else { 145 | runAction(ccSequence); 146 | } 147 | ArrayList frames = new ArrayList<>(); 148 | for (int i = 0; i < 22; i++) { 149 | CCSpriteFrame ccSpriteFrame = CCSprite.sprite(String.format(Locale.CHINA, 150 | "zombies/zombies_1/walk/Frame%02d.png", i)).displayedFrame(); 151 | frames.add(ccSpriteFrame); 152 | } 153 | 154 | CCAnimation ccAnimation = CCAnimation.animationWithFrames(frames, 0.1f); 155 | CCAnimate ccAnimate = CCAnimate.action(ccAnimation, true); 156 | CCRepeatForever ccRepeatForever = CCRepeatForever.action(ccAnimate); 157 | if (isSlow) { 158 | CCSpeed ccSpeed = CCSpeed.action(ccRepeatForever, 0.2f); 159 | runAction(ccSpeed); 160 | } else { 161 | runAction(ccRepeatForever); 162 | } 163 | setState(State.MOVE); 164 | } 165 | 166 | public void attack() { 167 | ArrayList frames = new ArrayList<>(); 168 | for (int i = 0; i < 21; i++) { 169 | CCSpriteFrame ccSpriteFrame = CCSprite.sprite(String.format(Locale.CHINA, 170 | "zombies/zombies_1/attack/Frame%02d.png", i)).displayedFrame(); 171 | frames.add(ccSpriteFrame); 172 | } 173 | 174 | CCAnimation ccAnimation = CCAnimation.animationWithFrames(frames, 0.1f); 175 | CCAnimate ccAnimate = CCAnimate.action(ccAnimation, true); 176 | CCRepeatForever ccRepeatForever = CCRepeatForever.action(ccAnimate); 177 | if (isSlow) { 178 | CCSpeed ccSpeed = CCSpeed.action(ccRepeatForever, 0.2f); 179 | runAction(ccSpeed); 180 | } else { 181 | runAction(ccRepeatForever); 182 | } 183 | setState(State.ATTACK); 184 | } 185 | 186 | public State getState() { 187 | return state; 188 | } 189 | 190 | public void setState(State state) { 191 | this.state = state; 192 | } 193 | 194 | public int getAttack() { 195 | return attack; 196 | } 197 | 198 | public void setAttack(int attack) { 199 | this.attack = attack; 200 | } 201 | } 202 | -------------------------------------------------------------------------------- /app/src/main/java/xin/lrvik/plantsvszombies/bullet/Bullet.java: -------------------------------------------------------------------------------- 1 | package xin.lrvik.plantsvszombies.bullet; 2 | 3 | import org.cocos2d.actions.instant.CCCallFunc; 4 | import org.cocos2d.actions.interval.CCMoveTo; 5 | import org.cocos2d.actions.interval.CCSequence; 6 | import org.cocos2d.nodes.CCDirector; 7 | import org.cocos2d.nodes.CCSprite; 8 | import org.cocos2d.sound.SoundEngine; 9 | import org.cocos2d.types.CGPoint; 10 | import org.cocos2d.types.util.CGPointUtil; 11 | 12 | import xin.lrvik.plantsvszombies.R; 13 | import xin.lrvik.plantsvszombies.Zombie; 14 | import xin.lrvik.plantsvszombies.plant.ShooterPlant; 15 | 16 | 17 | /** 18 | * Author by 豢涵, Email huanhanfu@126.com, Date on 2018/12/2. 19 | */ 20 | public abstract class Bullet extends CCSprite { 21 | 22 | private int speed = 100; 23 | private int attack = 20; 24 | 25 | private ShooterPlant shooterPlant; 26 | 27 | public Bullet(String filepath, ShooterPlant shooterPlant) { 28 | super(filepath); 29 | this.shooterPlant = shooterPlant; 30 | SoundEngine.sharedEngine().playEffect(CCDirector.theApp, R.raw.shoop, false); 31 | setPosition(shooterPlant.getPosition().x + 20, shooterPlant.getPosition().y + 50); 32 | shooterPlant.getParent().addChild(this, 6); 33 | shooterPlant.getBullets().add(this); 34 | move(); 35 | } 36 | 37 | private void move() { 38 | CGPoint end = ccp(1400, getPosition().y); 39 | float t = CGPointUtil.distance(getPosition(), end) / speed; 40 | CCMoveTo ccMoveTo = CCMoveTo.action(t, end); 41 | CCCallFunc ccCallFunc = CCCallFunc.action(this, "end"); 42 | CCSequence ccSequence = CCSequence.actions(ccMoveTo, ccCallFunc); 43 | runAction(ccSequence); 44 | } 45 | 46 | public void end() { 47 | removeSelf(); 48 | shooterPlant.getBullets().remove(this); 49 | } 50 | 51 | public int getAttack() { 52 | return attack; 53 | } 54 | 55 | public void setAttack(int attack) { 56 | this.attack = attack; 57 | } 58 | 59 | public abstract void showBulletBlast(Zombie zombie); 60 | } 61 | -------------------------------------------------------------------------------- /app/src/main/java/xin/lrvik/plantsvszombies/bullet/PeaBullet.java: -------------------------------------------------------------------------------- 1 | package xin.lrvik.plantsvszombies.bullet; 2 | 3 | 4 | import org.cocos2d.actions.instant.CCHide; 5 | import org.cocos2d.actions.interval.CCDelayTime; 6 | import org.cocos2d.actions.interval.CCSequence; 7 | import org.cocos2d.nodes.CCSprite; 8 | 9 | import xin.lrvik.plantsvszombies.Zombie; 10 | import xin.lrvik.plantsvszombies.plant.ShooterPlant; 11 | 12 | 13 | /** 14 | * Author by 豢涵, Email huanhanfu@126.com, Date on 2018/12/2. 15 | */ 16 | public class PeaBullet extends Bullet { 17 | public PeaBullet(ShooterPlant shooterPlant) { 18 | super("bullet/bullet1.png", shooterPlant); 19 | } 20 | 21 | @Override 22 | public void showBulletBlast(Zombie zombie) { 23 | CCSprite ccSprite_bulletBlast = CCSprite.sprite("bullet/bulletBlast1.png"); 24 | ccSprite_bulletBlast.setPosition(ccp(zombie.getPosition().x, zombie.getPosition().y + 60)); 25 | getParent().addChild(ccSprite_bulletBlast,6); 26 | CCDelayTime ccDelayTime = CCDelayTime.action(0.1f); 27 | CCHide ccHide = CCHide.action(); 28 | CCSequence ccSequence = CCSequence.actions(ccDelayTime, ccHide); 29 | ccSprite_bulletBlast.runAction(ccSequence); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /app/src/main/java/xin/lrvik/plantsvszombies/bullet/SnowBullet.java: -------------------------------------------------------------------------------- 1 | package xin.lrvik.plantsvszombies.bullet; 2 | 3 | 4 | import xin.lrvik.plantsvszombies.Zombie; 5 | import xin.lrvik.plantsvszombies.plant.ShooterPlant; 6 | 7 | /** 8 | * Author by 豢涵, Email huanhanfu@126.com, Date on 2018/12/2. 9 | */ 10 | public class SnowBullet extends Bullet { 11 | public SnowBullet(ShooterPlant shooterPlant) { 12 | super("bullet/bullet2.png", shooterPlant); 13 | } 14 | 15 | @Override 16 | public void showBulletBlast(Zombie zombie) { 17 | zombie.slow(); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /app/src/main/java/xin/lrvik/plantsvszombies/logoLayer.java: -------------------------------------------------------------------------------- 1 | package xin.lrvik.plantsvszombies; 2 | 3 | import android.view.MotionEvent; 4 | 5 | import org.cocos2d.actions.instant.CCCallFunc; 6 | import org.cocos2d.actions.instant.CCHide; 7 | import org.cocos2d.actions.interval.CCAnimate; 8 | import org.cocos2d.actions.interval.CCDelayTime; 9 | import org.cocos2d.actions.interval.CCSequence; 10 | import org.cocos2d.layers.CCLayer; 11 | import org.cocos2d.layers.CCScene; 12 | import org.cocos2d.nodes.CCAnimation; 13 | import org.cocos2d.nodes.CCDirector; 14 | import org.cocos2d.nodes.CCSprite; 15 | import org.cocos2d.nodes.CCSpriteFrame; 16 | import org.cocos2d.transitions.CCJumpZoomTransition; 17 | import org.cocos2d.types.CGRect; 18 | import org.cocos2d.types.CGSize; 19 | 20 | import java.util.ArrayList; 21 | import java.util.Locale; 22 | 23 | /** 24 | * Author by 豢涵, Email huanhanfu@126.com, Date on 2018/11/5. 25 | */ 26 | class logoLayer extends CCLayer { 27 | 28 | public logoLayer() { 29 | logo1(); 30 | } 31 | 32 | private void logo1() { 33 | CCSprite ccSprite_logo1 = CCSprite.sprite("logo/logo1.png");//创建精灵 34 | ccSprite_logo1.setAnchorPoint(0,0);//设置精灵锚点 35 | addChild(ccSprite_logo1);//将精灵增加到图层里 36 | 37 | CCDelayTime ccDelayTime = CCDelayTime.action(2);//设置延时2秒 38 | CCHide ccHide = CCHide.action();//设置隐藏图层 39 | CCCallFunc ccCallFunc = CCCallFunc.action(this, "logo2");//设置下一阶段运行的方法 40 | CCSequence ccSequence = CCSequence.actions(ccDelayTime, ccHide, ccCallFunc);//顺序调用 41 | ccSprite_logo1.runAction(ccSequence);//运行顺序调用 42 | } 43 | 44 | public void logo2(){ 45 | 46 | CCSprite ccSprite_logo2 = CCSprite.sprite("logo/logo2.png"); 47 | CGSize winSize = CCDirector.sharedDirector().winSize(); 48 | ccSprite_logo2.setPosition(winSize.getWidth()/2,winSize.getHeight()/2); 49 | addChild(ccSprite_logo2); 50 | 51 | CCDelayTime ccDelayTime = CCDelayTime.action(2); 52 | CCHide ccHide = CCHide.action(); 53 | CCCallFunc ccCallFunc = CCCallFunc.action(this, "cg"); 54 | CCSequence ccSequence = CCSequence.actions(ccDelayTime, ccHide, ccCallFunc); 55 | ccSprite_logo2.runAction(ccSequence); 56 | } 57 | 58 | public void cg(){ 59 | CCSprite ccSprite_cg = CCSprite.sprite("cg/cg00.png"); 60 | ccSprite_cg.setAnchorPoint(0, 0); 61 | addChild(ccSprite_cg); 62 | ArrayList frames = new ArrayList<>();//创建图片贞 63 | for (int i = 0; i < 19; i++) { 64 | CCSpriteFrame ccSpriteFrame = CCSprite.sprite(String.format(Locale.CHINA, "cg/cg%02d.png", i)).displayedFrame(); 65 | frames.add(ccSpriteFrame); 66 | } 67 | 68 | CCAnimation ccAnimation = CCAnimation.animationWithFrames(frames, 0.2f);//创建动画,0.2秒每贞 69 | CCAnimate ccAnimate = CCAnimate.action(ccAnimation, false);//将动画变为action,不循环 70 | CCCallFunc ccCallFunc = CCCallFunc.action(this, "setTouch"); 71 | CCSequence ccSequence = CCSequence.actions(ccAnimate, ccCallFunc); 72 | ccSprite_cg.runAction(ccSequence); 73 | } 74 | 75 | public void setTouch(){ 76 | setIsTouchEnabled(true);//设置点击事件 77 | } 78 | 79 | @Override 80 | public boolean ccTouchesBegan(MotionEvent event) { 81 | CGRect cgRect = CGRect.make(390, 30, 490, 60); 82 | if (CGRect.containsPoint(cgRect,convertTouchToNodeSpace(event))) { 83 | CCScene ccScene = CCScene.node();//创建场景 84 | ccScene.addChild(new MenuLayer());//创建图层 85 | CCJumpZoomTransition ccJumpZoomTransition = CCJumpZoomTransition.transition(2, ccScene);//创建场景转换动画 86 | CCDirector.sharedDirector().runWithScene(ccJumpZoomTransition);//利用导演转换场景 87 | } 88 | return super.ccTouchesBegan(event); 89 | } 90 | } 91 | -------------------------------------------------------------------------------- /app/src/main/java/xin/lrvik/plantsvszombies/plant/CherryBomb.java: -------------------------------------------------------------------------------- 1 | package xin.lrvik.plantsvszombies.plant; 2 | 3 | 4 | import org.cocos2d.actions.instant.CCCallFunc; 5 | import org.cocos2d.actions.interval.CCAnimate; 6 | import org.cocos2d.actions.interval.CCDelayTime; 7 | import org.cocos2d.actions.interval.CCSequence; 8 | import org.cocos2d.nodes.CCAnimation; 9 | import org.cocos2d.nodes.CCDirector; 10 | import org.cocos2d.nodes.CCSprite; 11 | import org.cocos2d.nodes.CCSpriteFrame; 12 | import org.cocos2d.sound.SoundEngine; 13 | import org.cocos2d.types.util.CGPointUtil; 14 | 15 | import java.util.ArrayList; 16 | import java.util.Iterator; 17 | import java.util.Locale; 18 | 19 | import xin.lrvik.plantsvszombies.CombatLayer; 20 | import xin.lrvik.plantsvszombies.CombatLine; 21 | import xin.lrvik.plantsvszombies.Plant; 22 | import xin.lrvik.plantsvszombies.R; 23 | import xin.lrvik.plantsvszombies.Zombie; 24 | 25 | /** 26 | * Created by Administrator on 2018/11/15 0015. 27 | */ 28 | 29 | public class CherryBomb extends Plant { 30 | public CherryBomb() { 31 | super("plant/CherryBomb/Frame%02d.png", 7); 32 | setPrice(150); 33 | //setHP(200); 34 | 35 | CCDelayTime ccDelayTime = CCDelayTime.action(1); 36 | CCCallFunc boom = CCCallFunc.action(this, "boom"); 37 | CCSequence actions = CCSequence.actions(ccDelayTime, boom); 38 | runAction(actions); 39 | } 40 | 41 | //爆炸 42 | public void boom() { 43 | stopAllActions(); 44 | ArrayList frames = new ArrayList<>(); 45 | for (int i = 0; i < 12; i++) { 46 | CCSpriteFrame ccSpriteFrame = CCSprite.sprite(String.format(Locale.CHINA, 47 | "plant/CherryBomb/boom/Frame%02d.png", i)).displayedFrame(); 48 | frames.add(ccSpriteFrame); 49 | } 50 | CCAnimation ccAnimation = CCAnimation.animationWithFrames(frames, 0.1f); 51 | CCAnimate ccAnimate = CCAnimate.action(ccAnimation, false); 52 | //runAction(ccAnimate); 53 | 54 | CCCallFunc removeZombie = CCCallFunc.action(this, "removeCherryBomb"); 55 | // CCDelayTime ccDelayTime = CCDelayTime.action(2f); 56 | CCSequence ccSequence = CCSequence.actions(ccAnimate, removeZombie); 57 | runAction(ccSequence); 58 | 59 | SoundEngine.sharedEngine().playEffect(CCDirector.theApp, R.raw.explosion, false); 60 | } 61 | 62 | public void removeCherryBomb(){ 63 | int col = (int) (getPosition().x - 320) / 105; 64 | int row = (int) (getPosition().y - 40) / 120; 65 | //((CombatLine) this.getParent()).removePlant(col); 66 | ArrayList combatLines = ((CombatLayer) getParent().getParent()).getCombatLines(); 67 | CombatLine combatLine = combatLines.get(row); 68 | combatLine.removePlant(col); 69 | 70 | //杀死周围的僵尸 71 | for (CombatLine line : combatLines) { 72 | Iterator iterator = line.getZombies().iterator(); 73 | while (iterator.hasNext()) { 74 | Zombie zombie = iterator.next(); 75 | if(CGPointUtil.distance(zombie.getPosition(),this.getPosition())<150){ 76 | zombie.die(1); 77 | ((CombatLayer) zombie.getParent().getParent()).setKillZombiesNum(); 78 | iterator.remove(); 79 | } 80 | } 81 | } 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /app/src/main/java/xin/lrvik/plantsvszombies/plant/Chomper.java: -------------------------------------------------------------------------------- 1 | package xin.lrvik.plantsvszombies.plant; 2 | 3 | 4 | import org.cocos2d.actions.base.CCRepeatForever; 5 | import org.cocos2d.actions.instant.CCCallFunc; 6 | import org.cocos2d.actions.interval.CCAnimate; 7 | import org.cocos2d.actions.interval.CCDelayTime; 8 | import org.cocos2d.actions.interval.CCSequence; 9 | import org.cocos2d.nodes.CCAnimation; 10 | import org.cocos2d.nodes.CCSprite; 11 | import org.cocos2d.nodes.CCSpriteFrame; 12 | 13 | import java.util.ArrayList; 14 | import java.util.Locale; 15 | 16 | import xin.lrvik.plantsvszombies.Plant; 17 | import xin.lrvik.plantsvszombies.Zombie; 18 | 19 | /** 20 | * Created by Administrator on 2018/11/15 0015. 21 | */ 22 | 23 | public class Chomper extends Plant { 24 | private Zombie zombie; 25 | 26 | public Chomper() { 27 | super("plant/Chomper/Frame%02d.png", 13); 28 | setPrice(150); 29 | } 30 | 31 | private boolean isEat = false; 32 | 33 | public boolean isEat() { 34 | return isEat; 35 | } 36 | 37 | public void eat(Zombie zombie) { 38 | this.zombie = zombie; 39 | isEat = true; 40 | stopAllActions(); 41 | ArrayList frames = new ArrayList<>(); 42 | for (int i = 0; i < 8; i++) { 43 | CCSpriteFrame ccSpriteFrame = CCSprite.sprite(String.format(Locale.CHINA, 44 | "plant/Chomper/attack/Frame%02d.png", i)).displayedFrame(); 45 | frames.add(ccSpriteFrame); 46 | } 47 | CCAnimation ccAnimation1 = CCAnimation.animationWithFrames(frames, 0.15f); 48 | CCAnimate ccAnimate1 = CCAnimate.action(ccAnimation1, false); 49 | CCCallFunc eatZombie = CCCallFunc.action(this, "eatZombie"); 50 | CCSequence actions = CCSequence.actions(ccAnimate1, eatZombie); 51 | runAction(actions); 52 | } 53 | 54 | public void eatZombie() { 55 | this.zombie.removeSelf(); 56 | stopAllActions(); 57 | ArrayList frames = new ArrayList<>(); 58 | for (int i = 0; i < 5; i++) { 59 | CCSpriteFrame ccSpriteFrame = CCSprite.sprite(String.format(Locale.CHINA, 60 | "plant/Chomper/eat/Frame%02d.png", i)).displayedFrame(); 61 | frames.add(ccSpriteFrame); 62 | } 63 | CCAnimation ccAnimation2 = CCAnimation.animationWithFrames(frames, 0.15f); 64 | CCAnimate ccAnimate2 = CCAnimate.action(ccAnimation2, true); 65 | CCRepeatForever ccRepeatForever = CCRepeatForever.action(ccAnimate2); 66 | runAction(ccRepeatForever); 67 | //食人花吃东西时间 68 | CCDelayTime ccDelayTime = CCDelayTime.action(10); 69 | CCCallFunc setNormal = CCCallFunc.action(this, "setNormal"); 70 | CCSequence actions = CCSequence.actions(ccDelayTime, setNormal); 71 | runAction(actions); 72 | } 73 | 74 | 75 | public void setNormal() { 76 | stopAllActions(); 77 | ArrayList frames = new ArrayList<>(); 78 | for (int i = 0; i < 13; i++) { 79 | CCSpriteFrame ccSpriteFrame = CCSprite.sprite(String.format(Locale.CHINA, "plant/Chomper/Frame%02d.png", i)).displayedFrame(); 80 | frames.add(ccSpriteFrame); 81 | } 82 | CCAnimation ccAnimation = CCAnimation.animationWithFrames(frames, 0.2f); 83 | CCAnimate ccAnimate = CCAnimate.action(ccAnimation, true); 84 | CCRepeatForever ccRepeatForever = CCRepeatForever.action(ccAnimate); 85 | runAction(ccRepeatForever); 86 | isEat = false; 87 | this.zombie = null; 88 | } 89 | 90 | 91 | } 92 | -------------------------------------------------------------------------------- /app/src/main/java/xin/lrvik/plantsvszombies/plant/Peashooter.java: -------------------------------------------------------------------------------- 1 | package xin.lrvik.plantsvszombies.plant; 2 | 3 | 4 | import xin.lrvik.plantsvszombies.bullet.PeaBullet; 5 | 6 | /** 7 | * Created by Administrator on 2018/11/15 0015. 8 | */ 9 | 10 | public class Peashooter extends ShooterPlant { 11 | public Peashooter() { 12 | super("plant/Peashooter/Frame%02d.png", 13); 13 | setPrice(100); 14 | } 15 | 16 | @Override 17 | public void createBullet(float t) { 18 | new PeaBullet(this); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /app/src/main/java/xin/lrvik/plantsvszombies/plant/PotatoMine.java: -------------------------------------------------------------------------------- 1 | package xin.lrvik.plantsvszombies.plant; 2 | 3 | 4 | import org.cocos2d.actions.base.CCRepeatForever; 5 | import org.cocos2d.actions.instant.CCCallFunc; 6 | import org.cocos2d.actions.interval.CCAnimate; 7 | import org.cocos2d.actions.interval.CCDelayTime; 8 | import org.cocos2d.actions.interval.CCSequence; 9 | import org.cocos2d.nodes.CCAnimation; 10 | import org.cocos2d.nodes.CCDirector; 11 | import org.cocos2d.nodes.CCSprite; 12 | import org.cocos2d.nodes.CCSpriteFrame; 13 | import org.cocos2d.sound.SoundEngine; 14 | import org.cocos2d.types.util.CGPointUtil; 15 | 16 | import java.util.ArrayList; 17 | import java.util.Iterator; 18 | import java.util.Locale; 19 | 20 | import xin.lrvik.plantsvszombies.CombatLayer; 21 | import xin.lrvik.plantsvszombies.CombatLine; 22 | import xin.lrvik.plantsvszombies.Plant; 23 | import xin.lrvik.plantsvszombies.R; 24 | import xin.lrvik.plantsvszombies.Zombie; 25 | 26 | /** 27 | * Created by Administrator on 2018/11/15 0015. 28 | */ 29 | 30 | public class PotatoMine extends Plant { 31 | 32 | private boolean isBig = false; 33 | private boolean isBoom = false; 34 | private ArrayList zombies; 35 | 36 | public PotatoMine() { 37 | super("plant/PotatoMine/mini/Frame%02d.png", 1); 38 | setPrice(25); 39 | //十秒就长大 40 | CCDelayTime ccDelayTime = CCDelayTime.action(10); 41 | CCCallFunc growup = CCCallFunc.action(this, "growup"); 42 | CCSequence actions = CCSequence.actions(ccDelayTime, growup); 43 | runAction(actions); 44 | } 45 | 46 | public void growup() { 47 | isBig = true; 48 | stopAllActions(); 49 | ArrayList frames = new ArrayList<>(); 50 | for (int i = 0; i < 8; i++) { 51 | CCSpriteFrame ccSpriteFrame = CCSprite.sprite(String.format(Locale.CHINA, 52 | "plant/PotatoMine/Frame%02d.png", i)).displayedFrame(); 53 | frames.add(ccSpriteFrame); 54 | } 55 | CCAnimation ccAnimation = CCAnimation.animationWithFrames(frames, 0.2f); 56 | CCAnimate ccAnimate = CCAnimate.action(ccAnimation, true); 57 | CCRepeatForever ccRepeatForever = CCRepeatForever.action(ccAnimate); 58 | runAction(ccRepeatForever); 59 | } 60 | 61 | public boolean isBig() { 62 | return isBig; 63 | } 64 | 65 | public void boom() { 66 | SoundEngine.sharedEngine().playEffect(CCDirector.theApp, R.raw.explosion, false); 67 | isBoom = true; 68 | stopAllActions(); 69 | ArrayList frames = new ArrayList<>(); 70 | for (int i = 0; i < 1; i++) { 71 | CCSpriteFrame ccSpriteFrame = CCSprite.sprite(String.format(Locale.CHINA, 72 | "plant/PotatoMine/boom/Frame%02d.png", i)).displayedFrame(); 73 | frames.add(ccSpriteFrame); 74 | } 75 | CCAnimation ccAnimation = CCAnimation.animationWithFrames(frames, 0.4f); 76 | CCAnimate ccAnimate = CCAnimate.action(ccAnimation, false); 77 | 78 | CCCallFunc removeZombie = CCCallFunc.action(this, "removePotatoMine"); 79 | // CCDelayTime ccDelayTime = CCDelayTime.action(2f); 80 | CCSequence ccSequence = CCSequence.actions(ccAnimate, removeZombie); 81 | runAction(ccSequence); 82 | } 83 | 84 | public void removePotatoMine() { 85 | int col = (int) (getPosition().x - 320) / 105; 86 | int row = (int) (getPosition().y - 40) / 120; 87 | //((CombatLine) this.getParent()).removePlant(col); 88 | ArrayList combatLines = ((CombatLayer) getParent().getParent()).getCombatLines(); 89 | CombatLine combatLine = combatLines.get(row); 90 | combatLine.removePlant(col); 91 | ArrayList zombies = combatLine.getZombies(); 92 | //杀死周围的僵尸 93 | Iterator iterator = zombies.iterator(); 94 | while (iterator.hasNext()) { 95 | Zombie zombie = iterator.next(); 96 | if (CGPointUtil.distance(zombie.getPosition(), this.getPosition()) < 50) { 97 | zombie.die(1); 98 | ((CombatLayer) zombie.getParent().getParent()).setKillZombiesNum(); 99 | iterator.remove(); 100 | } 101 | } 102 | 103 | } 104 | 105 | public boolean isBoom() { 106 | return isBoom; 107 | } 108 | } 109 | -------------------------------------------------------------------------------- /app/src/main/java/xin/lrvik/plantsvszombies/plant/Repeater.java: -------------------------------------------------------------------------------- 1 | package xin.lrvik.plantsvszombies.plant; 2 | 3 | 4 | import org.cocos2d.actions.instant.CCCallFunc; 5 | import org.cocos2d.actions.interval.CCDelayTime; 6 | import org.cocos2d.actions.interval.CCSequence; 7 | 8 | import xin.lrvik.plantsvszombies.bullet.PeaBullet; 9 | 10 | 11 | /** 12 | * Created by Administrator on 2018/11/15 0015. 13 | */ 14 | 15 | public class Repeater extends ShooterPlant { 16 | public Repeater() { 17 | super("plant/Repeater/Frame%02d.png", 15); 18 | setPrice(200); 19 | } 20 | 21 | 22 | @Override 23 | public void createBullet(float t) { 24 | new PeaBullet(this); 25 | CCDelayTime ccDelayTime = CCDelayTime.action(0.5f); 26 | CCCallFunc ccCallFunc = CCCallFunc.action(this, "createBulletTwo"); 27 | CCSequence ccSequence = CCSequence.actions(ccDelayTime, ccCallFunc); 28 | runAction(ccSequence); 29 | } 30 | 31 | public void createBulletTwo(){ 32 | new PeaBullet(this); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /app/src/main/java/xin/lrvik/plantsvszombies/plant/ShooterPlant.java: -------------------------------------------------------------------------------- 1 | package xin.lrvik.plantsvszombies.plant; 2 | 3 | import org.cocos2d.actions.CCScheduler; 4 | 5 | import java.util.ArrayList; 6 | 7 | import xin.lrvik.plantsvszombies.Plant; 8 | import xin.lrvik.plantsvszombies.bullet.Bullet; 9 | 10 | /** 11 | * Author by 豢涵, Email huanhanfu@126.com, Date on 2018/12/2. 12 | */ 13 | public abstract class ShooterPlant extends Plant { 14 | 15 | private final ArrayList bullets; 16 | private boolean isAttack; 17 | 18 | public ShooterPlant(String format, int number) { 19 | super(format, number); 20 | bullets = new ArrayList<>(); 21 | } 22 | 23 | public void attackZombie() { 24 | if (!isAttack) { 25 | CCScheduler.sharedScheduler().schedule("createBullet", this, 5, false); 26 | isAttack = true; 27 | } 28 | } 29 | 30 | public void stopAttackZombie() { 31 | if (isAttack) { 32 | CCScheduler.sharedScheduler().unschedule("createBullet", this); 33 | isAttack = false; 34 | } 35 | } 36 | 37 | public ArrayList getBullets() { 38 | return bullets; 39 | } 40 | 41 | 42 | public abstract void createBullet(float t); 43 | 44 | } 45 | -------------------------------------------------------------------------------- /app/src/main/java/xin/lrvik/plantsvszombies/plant/SnowPea.java: -------------------------------------------------------------------------------- 1 | package xin.lrvik.plantsvszombies.plant; 2 | 3 | 4 | import xin.lrvik.plantsvszombies.bullet.SnowBullet; 5 | 6 | /** 7 | * Created by Administrator on 2018/11/15 0015. 8 | */ 9 | 10 | public class SnowPea extends ShooterPlant { 11 | public SnowPea() { 12 | super("plant/SnowPea/Frame%02d.png", 15); 13 | setPrice(175); 14 | } 15 | 16 | @Override 17 | public void createBullet(float t) { 18 | new SnowBullet(this); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /app/src/main/java/xin/lrvik/plantsvszombies/plant/SunFlower.java: -------------------------------------------------------------------------------- 1 | package xin.lrvik.plantsvszombies.plant; 2 | 3 | 4 | import org.cocos2d.actions.CCScheduler; 5 | import org.cocos2d.actions.instant.CCCallFunc; 6 | import org.cocos2d.actions.interval.CCDelayTime; 7 | import org.cocos2d.actions.interval.CCJumpTo; 8 | import org.cocos2d.actions.interval.CCSequence; 9 | 10 | import xin.lrvik.plantsvszombies.CombatLayer; 11 | import xin.lrvik.plantsvszombies.Plant; 12 | import xin.lrvik.plantsvszombies.Sun; 13 | 14 | /** 15 | * Created by Administrator on 2018/11/15 0015. 16 | */ 17 | 18 | public class SunFlower extends Plant { 19 | 20 | private Sun sun; 21 | 22 | public SunFlower() { 23 | super("plant/SunFlower/Frame%02d.png", 18); 24 | CCScheduler.sharedScheduler().schedule("createSun", this, 10, false); 25 | setPrice(50); 26 | } 27 | 28 | public void createSun(float t) { 29 | sun = new Sun(); 30 | sun.setPosition(getPosition().x - 100, getPosition().y + 40); 31 | getParent().getParent().addChild(sun); 32 | CCJumpTo ccJumpTo = CCJumpTo.action(0.5f, 33 | ccp(getPosition().x - 100, getPosition().y), 40, 1); 34 | CCCallFunc ccCallFunc1 = CCCallFunc.action(this, "addSun"); 35 | CCDelayTime ccDelayTime = CCDelayTime.action(5); 36 | CCCallFunc ccCallFunc2 = CCCallFunc.action(this, "removeSun"); 37 | CCSequence ccSequence = CCSequence.actions(ccJumpTo, ccCallFunc1, ccDelayTime, ccCallFunc2); 38 | sun.runAction(ccSequence); 39 | } 40 | 41 | public void addSun(){ 42 | ((CombatLayer) getParent().getParent()).addSun(sun); 43 | } 44 | 45 | public void removeSun(){ 46 | ((CombatLayer) getParent().getParent()).removeSun(sun); 47 | if (!sun.isNowCollect()) { 48 | sun.removeSelf(); 49 | } 50 | } 51 | 52 | } 53 | -------------------------------------------------------------------------------- /app/src/main/java/xin/lrvik/plantsvszombies/plant/WallNut.java: -------------------------------------------------------------------------------- 1 | package xin.lrvik.plantsvszombies.plant; 2 | 3 | 4 | import org.cocos2d.actions.base.CCRepeatForever; 5 | import org.cocos2d.actions.interval.CCAnimate; 6 | import org.cocos2d.nodes.CCAnimation; 7 | import org.cocos2d.nodes.CCSprite; 8 | import org.cocos2d.nodes.CCSpriteFrame; 9 | 10 | import java.util.ArrayList; 11 | import java.util.Locale; 12 | 13 | import xin.lrvik.plantsvszombies.Plant; 14 | 15 | /** 16 | * Created by Administrator on 2018/11/15 0015. 17 | */ 18 | 19 | public class WallNut extends Plant { 20 | public WallNut() { 21 | super("plant/WallNut/high/Frame%02d.png", 16); 22 | setPrice(50); 23 | setHP(600); 24 | } 25 | 26 | @Override 27 | public void hurtCompute(int hurt) { 28 | super.hurtCompute(hurt); 29 | if (getHP() >= 200 && getHP() <= 400) { 30 | stopAllActions(); 31 | ArrayList frames = new ArrayList<>(); 32 | for (int i = 0; i < 11; i++) { 33 | CCSpriteFrame ccSpriteFrame = CCSprite.sprite(String.format(Locale.CHINA, 34 | "plant/WallNut/middle/Frame%02d.png", i)).displayedFrame(); 35 | frames.add(ccSpriteFrame); 36 | } 37 | 38 | CCAnimation ccAnimation = CCAnimation.animationWithFrames(frames, 0.2f); 39 | CCAnimate ccAnimate = CCAnimate.action(ccAnimation, true); 40 | CCRepeatForever ccRepeatForever = CCRepeatForever.action(ccAnimate); 41 | runAction(ccRepeatForever); 42 | } 43 | 44 | if (getHP()<200) { 45 | stopAllActions(); 46 | ArrayList frames = new ArrayList<>(); 47 | for (int i = 0; i < 15; i++) { 48 | CCSpriteFrame ccSpriteFrame = CCSprite.sprite(String.format(Locale.CHINA, 49 | "plant/WallNut/low/Frame%02d.png", i)).displayedFrame(); 50 | frames.add(ccSpriteFrame); 51 | } 52 | 53 | CCAnimation ccAnimation = CCAnimation.animationWithFrames(frames, 0.2f); 54 | CCAnimate ccAnimate = CCAnimate.action(ccAnimation, true); 55 | CCRepeatForever ccRepeatForever = CCRepeatForever.action(ccAnimate); 56 | runAction(ccRepeatForever); 57 | } 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 7 | 12 | 13 | 19 | 22 | 25 | 26 | 27 | 28 | 34 | 35 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_launcher_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 10 | 15 | 20 | 25 | 30 | 35 | 40 | 45 | 50 | 55 | 60 | 65 | 70 | 75 | 80 | 85 | 90 | 95 | 100 | 105 | 110 | 115 | 120 | 125 | 130 | 135 | 140 | 145 | 150 | 155 | 160 | 165 | 170 | 171 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/raw/chompsoft.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/res/raw/chompsoft.mp3 -------------------------------------------------------------------------------- /app/src/main/res/raw/explosion.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/res/raw/explosion.mp3 -------------------------------------------------------------------------------- /app/src/main/res/raw/faster.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/res/raw/faster.mp3 -------------------------------------------------------------------------------- /app/src/main/res/raw/groan4.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/res/raw/groan4.mp3 -------------------------------------------------------------------------------- /app/src/main/res/raw/lawnmower.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/res/raw/lawnmower.mp3 -------------------------------------------------------------------------------- /app/src/main/res/raw/losemusic.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/res/raw/losemusic.mp3 -------------------------------------------------------------------------------- /app/src/main/res/raw/points.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/res/raw/points.mp3 -------------------------------------------------------------------------------- /app/src/main/res/raw/shoop.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/res/raw/shoop.mp3 -------------------------------------------------------------------------------- /app/src/main/res/raw/siren.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/res/raw/siren.mp3 -------------------------------------------------------------------------------- /app/src/main/res/raw/watery.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/res/raw/watery.mp3 -------------------------------------------------------------------------------- /app/src/main/res/raw/win.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/app/src/main/res/raw/win.mp3 -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #008577 4 | #00574B 5 | #D81B60 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | PlantsVsZombies 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/test/java/xin/lrvik/plantsvszombies/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package xin.lrvik.plantsvszombies; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | 5 | repositories { 6 | google() 7 | jcenter() 8 | } 9 | dependencies { 10 | classpath 'com.android.tools.build:gradle:3.2.1' 11 | 12 | 13 | // NOTE: Do not place your application dependencies here; they belong 14 | // in the individual module build.gradle files 15 | } 16 | } 17 | 18 | allprojects { 19 | repositories { 20 | google() 21 | jcenter() 22 | } 23 | } 24 | 25 | task clean(type: Delete) { 26 | delete rootProject.buildDir 27 | } 28 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | # IDE (e.g. Android Studio) users: 3 | # Gradle settings configured through the IDE *will override* 4 | # any settings specified in this file. 5 | # For more details on how to configure your build environment visit 6 | # http://www.gradle.org/docs/current/userguide/build_environment.html 7 | # Specifies the JVM arguments used for the daemon process. 8 | # The setting is particularly useful for tweaking memory settings. 9 | org.gradle.jvmargs=-Xmx1536m 10 | # When configured, Gradle will run in incubating parallel mode. 11 | # This option should only be used with decoupled projects. More details, visit 12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 13 | # org.gradle.parallel=true 14 | 15 | 16 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanhan/PlantsVsZombies/8c06991ce97ea066d8eb2156c2aaa47c156afcdf/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Attempt to set APP_HOME 10 | # Resolve links: $0 may be a link 11 | PRG="$0" 12 | # Need this for relative symlinks. 13 | while [ -h "$PRG" ] ; do 14 | ls=`ls -ld "$PRG"` 15 | link=`expr "$ls" : '.*-> \(.*\)$'` 16 | if expr "$link" : '/.*' > /dev/null; then 17 | PRG="$link" 18 | else 19 | PRG=`dirname "$PRG"`"/$link" 20 | fi 21 | done 22 | SAVED="`pwd`" 23 | cd "`dirname \"$PRG\"`/" >/dev/null 24 | APP_HOME="`pwd -P`" 25 | cd "$SAVED" >/dev/null 26 | 27 | APP_NAME="Gradle" 28 | APP_BASE_NAME=`basename "$0"` 29 | 30 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 31 | DEFAULT_JVM_OPTS="" 32 | 33 | # Use the maximum available, or set MAX_FD != -1 to use that value. 34 | MAX_FD="maximum" 35 | 36 | warn () { 37 | echo "$*" 38 | } 39 | 40 | die () { 41 | echo 42 | echo "$*" 43 | echo 44 | exit 1 45 | } 46 | 47 | # OS specific support (must be 'true' or 'false'). 48 | cygwin=false 49 | msys=false 50 | darwin=false 51 | nonstop=false 52 | case "`uname`" in 53 | CYGWIN* ) 54 | cygwin=true 55 | ;; 56 | Darwin* ) 57 | darwin=true 58 | ;; 59 | MINGW* ) 60 | msys=true 61 | ;; 62 | NONSTOP* ) 63 | nonstop=true 64 | ;; 65 | esac 66 | 67 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 68 | 69 | # Determine the Java command to use to start the JVM. 70 | if [ -n "$JAVA_HOME" ] ; then 71 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 72 | # IBM's JDK on AIX uses strange locations for the executables 73 | JAVACMD="$JAVA_HOME/jre/sh/java" 74 | else 75 | JAVACMD="$JAVA_HOME/bin/java" 76 | fi 77 | if [ ! -x "$JAVACMD" ] ; then 78 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 79 | 80 | Please set the JAVA_HOME variable in your environment to match the 81 | location of your Java installation." 82 | fi 83 | else 84 | JAVACMD="java" 85 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 86 | 87 | Please set the JAVA_HOME variable in your environment to match the 88 | location of your Java installation." 89 | fi 90 | 91 | # Increase the maximum file descriptors if we can. 92 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then 93 | MAX_FD_LIMIT=`ulimit -H -n` 94 | if [ $? -eq 0 ] ; then 95 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 96 | MAX_FD="$MAX_FD_LIMIT" 97 | fi 98 | ulimit -n $MAX_FD 99 | if [ $? -ne 0 ] ; then 100 | warn "Could not set maximum file descriptor limit: $MAX_FD" 101 | fi 102 | else 103 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 104 | fi 105 | fi 106 | 107 | # For Darwin, add options to specify how the application appears in the dock 108 | if $darwin; then 109 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 110 | fi 111 | 112 | # For Cygwin, switch paths to Windows format before running java 113 | if $cygwin ; then 114 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 115 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 116 | JAVACMD=`cygpath --unix "$JAVACMD"` 117 | 118 | # We build the pattern for arguments to be converted via cygpath 119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 120 | SEP="" 121 | for dir in $ROOTDIRSRAW ; do 122 | ROOTDIRS="$ROOTDIRS$SEP$dir" 123 | SEP="|" 124 | done 125 | OURCYGPATTERN="(^($ROOTDIRS))" 126 | # Add a user-defined pattern to the cygpath arguments 127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 129 | fi 130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 131 | i=0 132 | for arg in "$@" ; do 133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 135 | 136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 138 | else 139 | eval `echo args$i`="\"$arg\"" 140 | fi 141 | i=$((i+1)) 142 | done 143 | case $i in 144 | (0) set -- ;; 145 | (1) set -- "$args0" ;; 146 | (2) set -- "$args0" "$args1" ;; 147 | (3) set -- "$args0" "$args1" "$args2" ;; 148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 154 | esac 155 | fi 156 | 157 | # Escape application args 158 | save () { 159 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done 160 | echo " " 161 | } 162 | APP_ARGS=$(save "$@") 163 | 164 | # Collect all arguments for the java command, following the shell quoting and substitution rules 165 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" 166 | 167 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong 168 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then 169 | cd "$(dirname "$0")" 170 | fi 171 | 172 | exec "$JAVACMD" "$@" 173 | -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | set DIRNAME=%~dp0 12 | if "%DIRNAME%" == "" set DIRNAME=. 13 | set APP_BASE_NAME=%~n0 14 | set APP_HOME=%DIRNAME% 15 | 16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 17 | set DEFAULT_JVM_OPTS= 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windows variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | 53 | :win9xME_args 54 | @rem Slurp the command line arguments. 55 | set CMD_LINE_ARGS= 56 | set _SKIP=2 57 | 58 | :win9xME_args_slurp 59 | if "x%~1" == "x" goto execute 60 | 61 | set CMD_LINE_ARGS=%* 62 | 63 | :execute 64 | @rem Setup the command line 65 | 66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 67 | 68 | @rem Execute Gradle 69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 70 | 71 | :end 72 | @rem End local scope for the variables with windows NT shell 73 | if "%ERRORLEVEL%"=="0" goto mainEnd 74 | 75 | :fail 76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 77 | rem the _cmd.exe /c_ return code! 78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 79 | exit /b 1 80 | 81 | :mainEnd 82 | if "%OS%"=="Windows_NT" endlocal 83 | 84 | :omega 85 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | --------------------------------------------------------------------------------