diff --git a/covid_game/.gradle/6.1.1/executionHistory/executionHistory.bin b/covid_game/.gradle/6.1.1/executionHistory/executionHistory.bin new file mode 100644 index 0000000..03764bd Binary files /dev/null and b/covid_game/.gradle/6.1.1/executionHistory/executionHistory.bin differ diff --git a/covid_game/.gradle/6.1.1/executionHistory/executionHistory.lock b/covid_game/.gradle/6.1.1/executionHistory/executionHistory.lock new file mode 100644 index 0000000..87a3595 Binary files /dev/null and b/covid_game/.gradle/6.1.1/executionHistory/executionHistory.lock differ diff --git a/covid_game/.gradle/6.1.1/fileChanges/last-build.bin b/covid_game/.gradle/6.1.1/fileChanges/last-build.bin new file mode 100644 index 0000000..f76dd23 Binary files /dev/null and b/covid_game/.gradle/6.1.1/fileChanges/last-build.bin differ diff --git a/covid_game/.gradle/6.1.1/fileHashes/fileHashes.bin b/covid_game/.gradle/6.1.1/fileHashes/fileHashes.bin new file mode 100644 index 0000000..5ca327b Binary files /dev/null and b/covid_game/.gradle/6.1.1/fileHashes/fileHashes.bin differ diff --git a/covid_game/.gradle/6.1.1/fileHashes/fileHashes.lock b/covid_game/.gradle/6.1.1/fileHashes/fileHashes.lock new file mode 100644 index 0000000..5ccfd13 Binary files /dev/null and b/covid_game/.gradle/6.1.1/fileHashes/fileHashes.lock differ diff --git a/covid_game/.gradle/6.1.1/gc.properties b/covid_game/.gradle/6.1.1/gc.properties new file mode 100644 index 0000000..e69de29 diff --git a/covid_game/.gradle/6.7.1/executionHistory/executionHistory.bin b/covid_game/.gradle/6.7.1/executionHistory/executionHistory.bin new file mode 100644 index 0000000..c04c016 Binary files /dev/null and b/covid_game/.gradle/6.7.1/executionHistory/executionHistory.bin differ diff --git a/covid_game/.gradle/6.7.1/executionHistory/executionHistory.lock b/covid_game/.gradle/6.7.1/executionHistory/executionHistory.lock new file mode 100644 index 0000000..2a5db8e Binary files /dev/null and b/covid_game/.gradle/6.7.1/executionHistory/executionHistory.lock differ diff --git a/covid_game/.gradle/6.7.1/fileChanges/last-build.bin b/covid_game/.gradle/6.7.1/fileChanges/last-build.bin new file mode 100644 index 0000000..f76dd23 Binary files /dev/null and b/covid_game/.gradle/6.7.1/fileChanges/last-build.bin differ diff --git a/covid_game/.gradle/6.7.1/fileHashes/fileHashes.bin b/covid_game/.gradle/6.7.1/fileHashes/fileHashes.bin new file mode 100644 index 0000000..4b28cb9 Binary files /dev/null and b/covid_game/.gradle/6.7.1/fileHashes/fileHashes.bin differ diff --git a/covid_game/.gradle/6.7.1/fileHashes/fileHashes.lock b/covid_game/.gradle/6.7.1/fileHashes/fileHashes.lock new file mode 100644 index 0000000..2159c8c Binary files /dev/null and b/covid_game/.gradle/6.7.1/fileHashes/fileHashes.lock differ diff --git a/covid_game/.gradle/6.7.1/fileHashes/resourceHashesCache.bin b/covid_game/.gradle/6.7.1/fileHashes/resourceHashesCache.bin new file mode 100644 index 0000000..a3186e1 Binary files /dev/null and b/covid_game/.gradle/6.7.1/fileHashes/resourceHashesCache.bin differ diff --git a/covid_game/.gradle/6.7.1/gc.properties b/covid_game/.gradle/6.7.1/gc.properties new file mode 100644 index 0000000..e69de29 diff --git a/covid_game/.gradle/6.7.1/javaCompile/classAnalysis.bin b/covid_game/.gradle/6.7.1/javaCompile/classAnalysis.bin new file mode 100644 index 0000000..53bdcd5 Binary files /dev/null and b/covid_game/.gradle/6.7.1/javaCompile/classAnalysis.bin differ diff --git a/covid_game/.gradle/6.7.1/javaCompile/jarAnalysis.bin b/covid_game/.gradle/6.7.1/javaCompile/jarAnalysis.bin new file mode 100644 index 0000000..df2ff41 Binary files /dev/null and b/covid_game/.gradle/6.7.1/javaCompile/jarAnalysis.bin differ diff --git a/covid_game/.gradle/6.7.1/javaCompile/javaCompile.lock b/covid_game/.gradle/6.7.1/javaCompile/javaCompile.lock new file mode 100644 index 0000000..d2c84c7 Binary files /dev/null and b/covid_game/.gradle/6.7.1/javaCompile/javaCompile.lock differ diff --git a/covid_game/.gradle/6.7.1/javaCompile/taskHistory.bin b/covid_game/.gradle/6.7.1/javaCompile/taskHistory.bin new file mode 100644 index 0000000..49ae883 Binary files /dev/null and b/covid_game/.gradle/6.7.1/javaCompile/taskHistory.bin differ diff --git a/covid_game/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/covid_game/.gradle/buildOutputCleanup/buildOutputCleanup.lock new file mode 100644 index 0000000..a76ad52 Binary files /dev/null and b/covid_game/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/covid_game/.gradle/buildOutputCleanup/cache.properties b/covid_game/.gradle/buildOutputCleanup/cache.properties new file mode 100644 index 0000000..5990389 --- /dev/null +++ b/covid_game/.gradle/buildOutputCleanup/cache.properties @@ -0,0 +1,2 @@ +#Sat Apr 03 18:08:07 CDT 2021 +gradle.version=6.1.1 diff --git a/covid_game/.gradle/buildOutputCleanup/outputFiles.bin b/covid_game/.gradle/buildOutputCleanup/outputFiles.bin new file mode 100644 index 0000000..25e650a Binary files /dev/null and b/covid_game/.gradle/buildOutputCleanup/outputFiles.bin differ diff --git a/covid_game/.gradle/checksums/checksums.lock b/covid_game/.gradle/checksums/checksums.lock new file mode 100644 index 0000000..4fd2863 Binary files /dev/null and b/covid_game/.gradle/checksums/checksums.lock differ diff --git a/covid_game/.gradle/configuration-cache/gc.properties b/covid_game/.gradle/configuration-cache/gc.properties new file mode 100644 index 0000000..e69de29 diff --git a/covid_game/.gradle/vcs-1/gc.properties b/covid_game/.gradle/vcs-1/gc.properties new file mode 100644 index 0000000..e69de29 diff --git a/covid_game/.idea/caches/build_file_checksums.ser b/covid_game/.idea/caches/build_file_checksums.ser new file mode 100644 index 0000000..198d156 Binary files /dev/null and b/covid_game/.idea/caches/build_file_checksums.ser differ diff --git a/covid_game/.idea/compiler.xml b/covid_game/.idea/compiler.xml new file mode 100644 index 0000000..53730dd --- /dev/null +++ b/covid_game/.idea/compiler.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/covid_game/.idea/covid_game.iml b/covid_game/.idea/covid_game.iml new file mode 100644 index 0000000..789af07 --- /dev/null +++ b/covid_game/.idea/covid_game.iml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/covid_game/.idea/gradle.xml b/covid_game/.idea/gradle.xml new file mode 100644 index 0000000..6979378 --- /dev/null +++ b/covid_game/.idea/gradle.xml @@ -0,0 +1,21 @@ + + + + + + + \ No newline at end of file diff --git a/covid_game/.idea/jarRepositories.xml b/covid_game/.idea/jarRepositories.xml new file mode 100644 index 0000000..347fc87 --- /dev/null +++ b/covid_game/.idea/jarRepositories.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/covid_game/.idea/libraries/Gradle__com_badlogicgames_gdx_gdx_1_9_14.xml b/covid_game/.idea/libraries/Gradle__com_badlogicgames_gdx_gdx_1_9_14.xml new file mode 100644 index 0000000..2d2e72f --- /dev/null +++ b/covid_game/.idea/libraries/Gradle__com_badlogicgames_gdx_gdx_1_9_14.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/covid_game/.idea/libraries/Gradle__com_badlogicgames_gdx_gdx_backend_android_1_9_14.xml b/covid_game/.idea/libraries/Gradle__com_badlogicgames_gdx_gdx_backend_android_1_9_14.xml new file mode 100644 index 0000000..188c6f4 --- /dev/null +++ b/covid_game/.idea/libraries/Gradle__com_badlogicgames_gdx_gdx_backend_android_1_9_14.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/covid_game/.idea/libraries/Gradle__com_badlogicgames_gdx_gdx_backend_lwjgl_1_9_14.xml b/covid_game/.idea/libraries/Gradle__com_badlogicgames_gdx_gdx_backend_lwjgl_1_9_14.xml new file mode 100644 index 0000000..80f34c2 --- /dev/null +++ b/covid_game/.idea/libraries/Gradle__com_badlogicgames_gdx_gdx_backend_lwjgl_1_9_14.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/covid_game/.idea/libraries/Gradle__com_badlogicgames_gdx_gdx_box2d_1_9_14.xml b/covid_game/.idea/libraries/Gradle__com_badlogicgames_gdx_gdx_box2d_1_9_14.xml new file mode 100644 index 0000000..935eda7 --- /dev/null +++ b/covid_game/.idea/libraries/Gradle__com_badlogicgames_gdx_gdx_box2d_1_9_14.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/covid_game/.idea/libraries/Gradle__com_badlogicgames_gdx_gdx_box2d_platform_1_9_14_natives_desktop.xml b/covid_game/.idea/libraries/Gradle__com_badlogicgames_gdx_gdx_box2d_platform_1_9_14_natives_desktop.xml new file mode 100644 index 0000000..e2e75cb --- /dev/null +++ b/covid_game/.idea/libraries/Gradle__com_badlogicgames_gdx_gdx_box2d_platform_1_9_14_natives_desktop.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/covid_game/.idea/libraries/Gradle__com_badlogicgames_gdx_gdx_platform_1_9_14_natives_desktop.xml b/covid_game/.idea/libraries/Gradle__com_badlogicgames_gdx_gdx_platform_1_9_14_natives_desktop.xml new file mode 100644 index 0000000..de2a434 --- /dev/null +++ b/covid_game/.idea/libraries/Gradle__com_badlogicgames_gdx_gdx_platform_1_9_14_natives_desktop.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/covid_game/.idea/libraries/Gradle__com_badlogicgames_jlayer_jlayer_1_0_1_gdx.xml b/covid_game/.idea/libraries/Gradle__com_badlogicgames_jlayer_jlayer_1_0_1_gdx.xml new file mode 100644 index 0000000..064f7d0 --- /dev/null +++ b/covid_game/.idea/libraries/Gradle__com_badlogicgames_jlayer_jlayer_1_0_1_gdx.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/covid_game/.idea/libraries/Gradle__net_java_jinput_jinput_2_0_5.xml b/covid_game/.idea/libraries/Gradle__net_java_jinput_jinput_2_0_5.xml new file mode 100644 index 0000000..1cf7b51 --- /dev/null +++ b/covid_game/.idea/libraries/Gradle__net_java_jinput_jinput_2_0_5.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/covid_game/.idea/libraries/Gradle__net_java_jinput_jinput_platform_2_0_5_natives_linux.xml b/covid_game/.idea/libraries/Gradle__net_java_jinput_jinput_platform_2_0_5_natives_linux.xml new file mode 100644 index 0000000..4eeffda --- /dev/null +++ b/covid_game/.idea/libraries/Gradle__net_java_jinput_jinput_platform_2_0_5_natives_linux.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/covid_game/.idea/libraries/Gradle__net_java_jinput_jinput_platform_2_0_5_natives_osx.xml b/covid_game/.idea/libraries/Gradle__net_java_jinput_jinput_platform_2_0_5_natives_osx.xml new file mode 100644 index 0000000..9551c28 --- /dev/null +++ b/covid_game/.idea/libraries/Gradle__net_java_jinput_jinput_platform_2_0_5_natives_osx.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/covid_game/.idea/libraries/Gradle__net_java_jinput_jinput_platform_2_0_5_natives_windows.xml b/covid_game/.idea/libraries/Gradle__net_java_jinput_jinput_platform_2_0_5_natives_windows.xml new file mode 100644 index 0000000..0aba83e --- /dev/null +++ b/covid_game/.idea/libraries/Gradle__net_java_jinput_jinput_platform_2_0_5_natives_windows.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/covid_game/.idea/libraries/Gradle__net_java_jutils_jutils_1_0_0.xml b/covid_game/.idea/libraries/Gradle__net_java_jutils_jutils_1_0_0.xml new file mode 100644 index 0000000..439fbb9 --- /dev/null +++ b/covid_game/.idea/libraries/Gradle__net_java_jutils_jutils_1_0_0.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/covid_game/.idea/libraries/Gradle__org_jcraft_jorbis_0_0_17.xml b/covid_game/.idea/libraries/Gradle__org_jcraft_jorbis_0_0_17.xml new file mode 100644 index 0000000..42c08a6 --- /dev/null +++ b/covid_game/.idea/libraries/Gradle__org_jcraft_jorbis_0_0_17.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/covid_game/.idea/libraries/Gradle__org_lwjgl_lwjgl_lwjgl_2_9_3.xml b/covid_game/.idea/libraries/Gradle__org_lwjgl_lwjgl_lwjgl_2_9_3.xml new file mode 100644 index 0000000..44c89c0 --- /dev/null +++ b/covid_game/.idea/libraries/Gradle__org_lwjgl_lwjgl_lwjgl_2_9_3.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/covid_game/.idea/libraries/Gradle__org_lwjgl_lwjgl_lwjgl_platform_2_9_3_natives_linux.xml b/covid_game/.idea/libraries/Gradle__org_lwjgl_lwjgl_lwjgl_platform_2_9_3_natives_linux.xml new file mode 100644 index 0000000..7d7b0bc --- /dev/null +++ b/covid_game/.idea/libraries/Gradle__org_lwjgl_lwjgl_lwjgl_platform_2_9_3_natives_linux.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/covid_game/.idea/libraries/Gradle__org_lwjgl_lwjgl_lwjgl_platform_2_9_3_natives_osx.xml b/covid_game/.idea/libraries/Gradle__org_lwjgl_lwjgl_lwjgl_platform_2_9_3_natives_osx.xml new file mode 100644 index 0000000..9796464 --- /dev/null +++ b/covid_game/.idea/libraries/Gradle__org_lwjgl_lwjgl_lwjgl_platform_2_9_3_natives_osx.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/covid_game/.idea/libraries/Gradle__org_lwjgl_lwjgl_lwjgl_platform_2_9_3_natives_windows.xml b/covid_game/.idea/libraries/Gradle__org_lwjgl_lwjgl_lwjgl_platform_2_9_3_natives_windows.xml new file mode 100644 index 0000000..2b270b1 --- /dev/null +++ b/covid_game/.idea/libraries/Gradle__org_lwjgl_lwjgl_lwjgl_platform_2_9_3_natives_windows.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/covid_game/.idea/libraries/Gradle__org_lwjgl_lwjgl_lwjgl_util_2_9_3.xml b/covid_game/.idea/libraries/Gradle__org_lwjgl_lwjgl_lwjgl_util_2_9_3.xml new file mode 100644 index 0000000..bf09d4c --- /dev/null +++ b/covid_game/.idea/libraries/Gradle__org_lwjgl_lwjgl_lwjgl_util_2_9_3.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/covid_game/.idea/misc.xml b/covid_game/.idea/misc.xml new file mode 100644 index 0000000..5bd773d --- /dev/null +++ b/covid_game/.idea/misc.xml @@ -0,0 +1,9 @@ + + + + + + + + \ No newline at end of file diff --git a/covid_game/.idea/modules.xml b/covid_game/.idea/modules.xml new file mode 100644 index 0000000..82127bb --- /dev/null +++ b/covid_game/.idea/modules.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/covid_game/.idea/modules/android/covid_game.android.iml b/covid_game/.idea/modules/android/covid_game.android.iml new file mode 100644 index 0000000..2de90ac --- /dev/null +++ b/covid_game/.idea/modules/android/covid_game.android.iml @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/covid_game/.idea/modules/core/covid_game.core.iml b/covid_game/.idea/modules/core/covid_game.core.iml new file mode 100644 index 0000000..cdf4007 --- /dev/null +++ b/covid_game/.idea/modules/core/covid_game.core.iml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/covid_game/.idea/modules/covid_game.iml b/covid_game/.idea/modules/covid_game.iml new file mode 100644 index 0000000..cc4ba81 --- /dev/null +++ b/covid_game/.idea/modules/covid_game.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/covid_game/.idea/modules/desktop/covid_game.desktop.iml b/covid_game/.idea/modules/desktop/covid_game.desktop.iml new file mode 100644 index 0000000..443f084 --- /dev/null +++ b/covid_game/.idea/modules/desktop/covid_game.desktop.iml @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/covid_game/.idea/vcs.xml b/covid_game/.idea/vcs.xml new file mode 100644 index 0000000..6c0b863 --- /dev/null +++ b/covid_game/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/covid_game/.idea/workspace.xml b/covid_game/.idea/workspace.xml new file mode 100644 index 0000000..437d7b5 --- /dev/null +++ b/covid_game/.idea/workspace.xml @@ -0,0 +1,227 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1617477441273 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/covid_game/android/AndroidManifest.xml b/covid_game/android/AndroidManifest.xml new file mode 100644 index 0000000..a7960c7 --- /dev/null +++ b/covid_game/android/AndroidManifest.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + diff --git a/covid_game/android/assets/Protag.pack b/covid_game/android/assets/Protag.pack new file mode 100644 index 0000000..0487e9f --- /dev/null +++ b/covid_game/android/assets/Protag.pack @@ -0,0 +1,19 @@ + +Protag.png +format: RGBA8888 +filter: Nearest,Nearest +repeat: none +Mobile - Bears Restaurant - Doctor + rotate: false + xy: 1, 15 + size: 239, 130 + orig: 239, 130 + offset: 0, 0 + index: -1 +pixel_icons_by_oceansdream + rotate: false + xy: 242, 1 + size: 144, 144 + orig: 144, 144 + offset: 0, 0 + index: -1 diff --git a/covid_game/android/assets/Protag.png b/covid_game/android/assets/Protag.png new file mode 100644 index 0000000..a3d8be0 Binary files /dev/null and b/covid_game/android/assets/Protag.png differ diff --git a/covid_game/android/assets/badlogic.jpg b/covid_game/android/assets/badlogic.jpg new file mode 100644 index 0000000..4390da6 Binary files /dev/null and b/covid_game/android/assets/badlogic.jpg differ diff --git a/covid_game/android/build.gradle b/covid_game/android/build.gradle new file mode 100644 index 0000000..718bd84 --- /dev/null +++ b/covid_game/android/build.gradle @@ -0,0 +1,92 @@ +android { + buildToolsVersion "30.0.3" + compileSdkVersion 30 + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + jniLibs.srcDirs = ['libs'] + } + + } + packagingOptions { + exclude 'META-INF/robovm/ios/robovm.xml' + } + defaultConfig { + applicationId "com.rona.game" + minSdkVersion 14 + targetSdkVersion 30 + versionCode 1 + versionName "1.0" + } + buildTypes { + release { + minifyEnabled true + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + } + } +} + + +// called every time gradle gets executed, takes the native dependencies of +// the natives configuration, and extracts them to the proper libs/ folders +// so they get packed with the APK. +task copyAndroidNatives { + doFirst { + file("libs/armeabi/").mkdirs() + file("libs/armeabi-v7a/").mkdirs() + file("libs/arm64-v8a/").mkdirs() + file("libs/x86_64/").mkdirs() + file("libs/x86/").mkdirs() + + configurations.natives.copy().files.each { jar -> + def outputDir = null + if (jar.name.endsWith("natives-arm64-v8a.jar")) outputDir = file("libs/arm64-v8a") + if (jar.name.endsWith("natives-armeabi-v7a.jar")) outputDir = file("libs/armeabi-v7a") + if(jar.name.endsWith("natives-armeabi.jar")) outputDir = file("libs/armeabi") + if(jar.name.endsWith("natives-x86_64.jar")) outputDir = file("libs/x86_64") + if(jar.name.endsWith("natives-x86.jar")) outputDir = file("libs/x86") + if(outputDir != null) { + copy { + from zipTree(jar) + into outputDir + include "*.so" + } + } + } + } +} + +tasks.whenTaskAdded { packageTask -> + if (packageTask.name.contains("package")) { + packageTask.dependsOn 'copyAndroidNatives' + } +} + +task run(type: Exec) { + def path + def localProperties = project.file("../local.properties") + if (localProperties.exists()) { + Properties properties = new Properties() + localProperties.withInputStream { instr -> + properties.load(instr) + } + def sdkDir = properties.getProperty('sdk.dir') + if (sdkDir) { + path = sdkDir + } else { + path = "$System.env.ANDROID_HOME" + } + } else { + path = "$System.env.ANDROID_HOME" + } + + def adb = path + "/platform-tools/adb" + commandLine "$adb", 'shell', 'am', 'start', '-n', 'com.rona.game/com.rona.game.AndroidLauncher' +} + +eclipse.project.name = appName + "-android" diff --git a/covid_game/android/ic_launcher-web.png b/covid_game/android/ic_launcher-web.png new file mode 100644 index 0000000..8f0110d Binary files /dev/null and b/covid_game/android/ic_launcher-web.png differ diff --git a/covid_game/android/proguard-rules.pro b/covid_game/android/proguard-rules.pro new file mode 100644 index 0000000..6e0b079 --- /dev/null +++ b/covid_game/android/proguard-rules.pro @@ -0,0 +1,42 @@ +# To enable ProGuard in your project, edit project.properties +# to define the proguard.config property as described in that file. +# +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in ${sdk.dir}/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the ProGuard +# include property in project.properties. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +-verbose + +-dontwarn com.badlogic.gdx.backends.android.AndroidFragmentApplication +-dontwarn com.badlogic.gdx.utils.GdxBuild +-dontwarn com.badlogic.gdx.physics.box2d.utils.Box2DBuild +-dontwarn com.badlogic.gdx.jnigen.BuildTarget* +-dontwarn com.badlogic.gdx.graphics.g2d.freetype.FreetypeBuild + +# Required if using Gdx-Controllers extension +-keep class com.badlogic.gdx.controllers.android.AndroidControllers + +# Required if using Box2D extension +-keepclassmembers class com.badlogic.gdx.physics.box2d.World { + boolean contactFilter(long, long); + void beginContact(long); + void endContact(long); + void preSolve(long, long); + void postSolve(long, long); + boolean reportFixture(long); + float reportRayFixture(long, float, float, float, float, float); +} diff --git a/covid_game/android/project.properties b/covid_game/android/project.properties new file mode 100644 index 0000000..3fefa92 --- /dev/null +++ b/covid_game/android/project.properties @@ -0,0 +1,9 @@ +# This file is used by the Eclipse ADT plugin. It is unnecessary for IDEA and Android Studio projects, which +# configure Proguard and the Android target via the build.gradle file. + +# To enable ProGuard to work with Eclipse ADT, uncomment this (available properties: sdk.dir, user.home) +# and ensure proguard.jar in the Android SDK is up to date (or alternately reduce the android target to 23 or lower): +# proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-rules.pro + +# Project target. +target=android-19 diff --git a/covid_game/android/res/drawable-anydpi-v26/ic_launcher.xml b/covid_game/android/res/drawable-anydpi-v26/ic_launcher.xml new file mode 100644 index 0000000..6c7313a --- /dev/null +++ b/covid_game/android/res/drawable-anydpi-v26/ic_launcher.xml @@ -0,0 +1,6 @@ + + + + + diff --git a/covid_game/android/res/drawable-anydpi-v26/ic_launcher_foreground.xml b/covid_game/android/res/drawable-anydpi-v26/ic_launcher_foreground.xml new file mode 100644 index 0000000..5916ee8 --- /dev/null +++ b/covid_game/android/res/drawable-anydpi-v26/ic_launcher_foreground.xml @@ -0,0 +1,40 @@ + + + + + + + + + diff --git a/covid_game/android/res/drawable-hdpi/ic_launcher.png b/covid_game/android/res/drawable-hdpi/ic_launcher.png new file mode 100644 index 0000000..91f696b Binary files /dev/null and b/covid_game/android/res/drawable-hdpi/ic_launcher.png differ diff --git a/covid_game/android/res/drawable-mdpi/ic_launcher.png b/covid_game/android/res/drawable-mdpi/ic_launcher.png new file mode 100644 index 0000000..c1ab239 Binary files /dev/null and b/covid_game/android/res/drawable-mdpi/ic_launcher.png differ diff --git a/covid_game/android/res/drawable-xhdpi/ic_launcher.png b/covid_game/android/res/drawable-xhdpi/ic_launcher.png new file mode 100644 index 0000000..2011cc0 Binary files /dev/null and b/covid_game/android/res/drawable-xhdpi/ic_launcher.png differ diff --git a/covid_game/android/res/drawable-xxhdpi/ic_launcher.png b/covid_game/android/res/drawable-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..25fcef0 Binary files /dev/null and b/covid_game/android/res/drawable-xxhdpi/ic_launcher.png differ diff --git a/covid_game/android/res/drawable-xxxhdpi/ic_launcher.png b/covid_game/android/res/drawable-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000..d109946 Binary files /dev/null and b/covid_game/android/res/drawable-xxxhdpi/ic_launcher.png differ diff --git a/covid_game/android/res/values/color.xml b/covid_game/android/res/values/color.xml new file mode 100644 index 0000000..933353e --- /dev/null +++ b/covid_game/android/res/values/color.xml @@ -0,0 +1,4 @@ + + + #FFFFFFFF + diff --git a/covid_game/android/res/values/strings.xml b/covid_game/android/res/values/strings.xml new file mode 100644 index 0000000..8a58126 --- /dev/null +++ b/covid_game/android/res/values/strings.xml @@ -0,0 +1,6 @@ + + + + Coronagamevirus + + diff --git a/covid_game/android/res/values/styles.xml b/covid_game/android/res/values/styles.xml new file mode 100644 index 0000000..3f00fc5 --- /dev/null +++ b/covid_game/android/res/values/styles.xml @@ -0,0 +1,12 @@ + + + + + diff --git a/covid_game/android/src/com/rona/game/AndroidLauncher.java b/covid_game/android/src/com/rona/game/AndroidLauncher.java new file mode 100644 index 0000000..94b0acb --- /dev/null +++ b/covid_game/android/src/com/rona/game/AndroidLauncher.java @@ -0,0 +1,16 @@ +package com.rona.game; + +import android.os.Bundle; + +import com.badlogic.gdx.backends.android.AndroidApplication; +import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration; +import com.rona.game.Coronagamevirus; + +public class AndroidLauncher extends AndroidApplication { + @Override + protected void onCreate (Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + AndroidApplicationConfiguration config = new AndroidApplicationConfiguration(); + initialize(new Coronagamevirus(), config); + } +} diff --git a/covid_game/core/build/classes/java/main/Scenes/Hud.class b/covid_game/core/build/classes/java/main/Scenes/Hud.class new file mode 100644 index 0000000..9c7d401 Binary files /dev/null and b/covid_game/core/build/classes/java/main/Scenes/Hud.class differ diff --git a/covid_game/core/build/classes/java/main/Screens/PlayScreen.class b/covid_game/core/build/classes/java/main/Screens/PlayScreen.class new file mode 100644 index 0000000..81d70bd Binary files /dev/null and b/covid_game/core/build/classes/java/main/Screens/PlayScreen.class differ diff --git a/covid_game/core/build/classes/java/main/com/rona/game/Coronagamevirus.class b/covid_game/core/build/classes/java/main/com/rona/game/Coronagamevirus.class new file mode 100644 index 0000000..660563a Binary files /dev/null and b/covid_game/core/build/classes/java/main/com/rona/game/Coronagamevirus.class differ diff --git a/covid_game/core/build/libs/core-1.0.jar b/covid_game/core/build/libs/core-1.0.jar new file mode 100644 index 0000000..62c10e8 Binary files /dev/null and b/covid_game/core/build/libs/core-1.0.jar differ diff --git a/covid_game/core/build/tmp/compileJava/source-classes-mapping.txt b/covid_game/core/build/tmp/compileJava/source-classes-mapping.txt new file mode 100644 index 0000000..efb9bd0 --- /dev/null +++ b/covid_game/core/build/tmp/compileJava/source-classes-mapping.txt @@ -0,0 +1,6 @@ +Scenes/Hud.java + Scenes.Hud +com/rona/game/Coronagamevirus.java + com.rona.game.Coronagamevirus +Screens/PlayScreen.java + Screens.PlayScreen diff --git a/covid_game/core/build/tmp/jar/MANIFEST.MF b/covid_game/core/build/tmp/jar/MANIFEST.MF new file mode 100644 index 0000000..59499bc --- /dev/null +++ b/covid_game/core/build/tmp/jar/MANIFEST.MF @@ -0,0 +1,2 @@ +Manifest-Version: 1.0 + diff --git a/covid_game/desktop/build/classes/java/main/com/rona/game/desktop/DesktopLauncher.class b/covid_game/desktop/build/classes/java/main/com/rona/game/desktop/DesktopLauncher.class new file mode 100644 index 0000000..89e3ef0 Binary files /dev/null and b/covid_game/desktop/build/classes/java/main/com/rona/game/desktop/DesktopLauncher.class differ diff --git a/covid_game/desktop/build/resources/main/badlogic.jpg b/covid_game/desktop/build/resources/main/badlogic.jpg new file mode 100644 index 0000000..4390da6 Binary files /dev/null and b/covid_game/desktop/build/resources/main/badlogic.jpg differ diff --git a/covid_game/desktop/build/tmp/compileJava/source-classes-mapping.txt b/covid_game/desktop/build/tmp/compileJava/source-classes-mapping.txt new file mode 100644 index 0000000..4c820d3 --- /dev/null +++ b/covid_game/desktop/build/tmp/compileJava/source-classes-mapping.txt @@ -0,0 +1,2 @@ +com/rona/game/desktop/DesktopLauncher.java + com.rona.game.desktop.DesktopLauncher diff --git a/covid_game/gradle/wrapper/gradle-wrapper.jar b/covid_game/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000..f3d88b1 Binary files /dev/null and b/covid_game/gradle/wrapper/gradle-wrapper.jar differ diff --git a/covid_game/gradle/wrapper/gradle-wrapper.properties b/covid_game/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..1b16c34 --- /dev/null +++ b/covid_game/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-bin.zip +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/covid_game/gradlew b/covid_game/gradlew new file mode 100644 index 0000000..2fe81a7 --- /dev/null +++ b/covid_game/gradlew @@ -0,0 +1,183 @@ +#!/usr/bin/env sh + +# +# Copyright 2015 the original author or authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >/dev/null +APP_HOME="`pwd -P`" +cd "$SAVED" >/dev/null + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn () { + echo "$*" +} + +die () { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; + NONSTOP* ) + nonstop=true + ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin or MSYS, switch paths to Windows format before running java +if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + JAVACMD=`cygpath --unix "$JAVACMD"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=`expr $i + 1` + done + case $i in + 0) set -- ;; + 1) set -- "$args0" ;; + 2) set -- "$args0" "$args1" ;; + 3) set -- "$args0" "$args1" "$args2" ;; + 4) set -- "$args0" "$args1" "$args2" "$args3" ;; + 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Escape application args +save () { + for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done + echo " " +} +APP_ARGS=`save "$@"` + +# Collect all arguments for the java command, following the shell quoting and substitution rules +eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" + +exec "$JAVACMD" "$@" diff --git a/covid_game/gradlew.bat b/covid_game/gradlew.bat new file mode 100644 index 0000000..9618d8d --- /dev/null +++ b/covid_game/gradlew.bat @@ -0,0 +1,100 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto init + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto init + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:init +@rem Get command-line arguments, handling Windows variants + +if not "%OS%" == "Windows_NT" goto win9xME_args + +:win9xME_args +@rem Slurp the command line arguments. +set CMD_LINE_ARGS= +set _SKIP=2 + +:win9xME_args_slurp +if "x%~1" == "x" goto execute + +set CMD_LINE_ARGS=%* + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/covid_game/local.properties b/covid_game/local.properties new file mode 100644 index 0000000..0521c58 --- /dev/null +++ b/covid_game/local.properties @@ -0,0 +1,2 @@ +# Location of the android SDK +sdk.dir=C:/Users/Girls Who Code/AppData/Local/Android/Sdk \ No newline at end of file diff --git a/covid_game_GFX/Mobile - Bears Restaurant - Doctor.png b/covid_game_GFX/Mobile - Bears Restaurant - Doctor.png new file mode 100644 index 0000000..56103b6 Binary files /dev/null and b/covid_game_GFX/Mobile - Bears Restaurant - Doctor.png differ diff --git a/covid_game_GFX/pixel_icons_by_oceansdream.png b/covid_game_GFX/pixel_icons_by_oceansdream.png new file mode 100644 index 0000000..2d33940 Binary files /dev/null and b/covid_game_GFX/pixel_icons_by_oceansdream.png differ diff --git a/covid_game_w_and/.gitignore b/covid_game_w_and/.gitignore new file mode 100644 index 0000000..a4b5d51 --- /dev/null +++ b/covid_game_w_and/.gitignore @@ -0,0 +1,115 @@ +## Java + +*.class +*.war +*.ear +hs_err_pid* + +## Robovm +/ios/robovm-build/ + +## GWT +/html/war/ +/html/gwt-unitCache/ +.apt_generated/ +.gwt/ +gwt-unitCache/ +www-test/ +.gwt-tmp/ + +## Android Studio and Intellij and Android in general +/android/libs/armeabi/ +/android/libs/armeabi-v7a/ +/android/libs/arm64-v8a/ +/android/libs/x86/ +/android/libs/x86_64/ +/android/gen/ +.idea/ +*.ipr +*.iws +*.iml +/android/out/ +com_crashlytics_export_strings.xml + +## Eclipse + +.classpath +.project +.metadata/ +/android/bin/ +/core/bin/ +/desktop/bin/ +/html/bin/ +/ios/bin/ +*.tmp +*.bak +*.swp +*~.nib +.settings/ +.loadpath +.externalToolBuilders/ +*.launch + +## NetBeans + +/nbproject/private/ +/android/nbproject/private/ +/core/nbproject/private/ +/desktop/nbproject/private/ +/html/nbproject/private/ +/ios/nbproject/private/ + +/build/ +/android/build/ +/core/build/ +/desktop/build/ +/html/build/ +/ios/build/ + +/nbbuild/ +/android/nbbuild/ +/core/nbbuild/ +/desktop/nbbuild/ +/html/nbbuild/ +/ios/nbbuild/ + +/dist/ +/android/dist/ +/core/dist/ +/desktop/dist/ +/html/dist/ +/ios/dist/ + +/nbdist/ +/android/nbdist/ +/core/nbdist/ +/desktop/nbdist/ +/html/nbdist/ +/ios/nbdist/ + +nbactions.xml +nb-configuration.xml + +## Gradle + +/local.properties +.gradle/ +gradle-app.setting +/build/ +/android/build/ +/core/build/ +/desktop/build/ +/html/build/ +/ios/build/ + +## OS Specific +.DS_Store +Thumbs.db + +## iOS +/ios/xcode/*.xcodeproj/* +!/ios/xcode/*.xcodeproj/xcshareddata +!/ios/xcode/*.xcodeproj/project.pbxproj +/ios/xcode/native/ +/ios/IOSLauncher.app +/ios/IOSLauncher.app.dSYM diff --git a/covid_game_w_and/build.gradle b/covid_game_w_and/build.gradle new file mode 100644 index 0000000..74d0dd0 --- /dev/null +++ b/covid_game_w_and/build.gradle @@ -0,0 +1,86 @@ +buildscript { + + + repositories { + mavenLocal() + mavenCentral() + maven { url "https://plugins.gradle.org/m2/" } + maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } + google() + } + dependencies { + classpath 'com.android.tools.build:gradle:3.5.4' + + + } +} + +allprojects { + apply plugin: "eclipse" + + version = '1.0' + ext { + appName = "Coronagamevirus" + gdxVersion = '1.9.14' + roboVMVersion = '2.3.12' + box2DLightsVersion = '1.5' + ashleyVersion = '1.7.3' + aiVersion = '1.8.2' + gdxControllersVersion = '2.1.0' + } + + repositories { + mavenLocal() + mavenCentral() + google() + maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } + maven { url "https://oss.sonatype.org/content/repositories/releases/" } + } +} + +project(":desktop") { + apply plugin: "java-library" + + + dependencies { + implementation project(":core") + api "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion" + api "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop" + api "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-desktop" + + } +} + +project(":core") { + apply plugin: "java-library" + + + dependencies { + api "com.badlogicgames.gdx:gdx:$gdxVersion" + api "com.badlogicgames.gdx:gdx-box2d:$gdxVersion" + + } +} + +project(":android") { + apply plugin: "com.android.application" + + configurations { natives } + + dependencies { + implementation project(":core") + api "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion" + natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi" + natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi-v7a" + natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-arm64-v8a" + natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86" + natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86_64" + api "com.badlogicgames.gdx:gdx-box2d:$gdxVersion" + natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-armeabi" + natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-armeabi-v7a" + natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-arm64-v8a" + natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-x86" + natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-x86_64" + + } +} diff --git a/covid_game_w_and/core/build.gradle b/covid_game_w_and/core/build.gradle new file mode 100644 index 0000000..d192d04 --- /dev/null +++ b/covid_game_w_and/core/build.gradle @@ -0,0 +1,6 @@ +sourceCompatibility = 1.7 +[compileJava, compileTestJava]*.options*.encoding = 'UTF-8' + +sourceSets.main.java.srcDirs = [ "src/" ] + +eclipse.project.name = appName + "-core" diff --git a/covid_game_w_and/core/src/com/rona/game/Coronagamevirus.java b/covid_game_w_and/core/src/com/rona/game/Coronagamevirus.java new file mode 100644 index 0000000..b7ea13a --- /dev/null +++ b/covid_game_w_and/core/src/com/rona/game/Coronagamevirus.java @@ -0,0 +1,33 @@ +package com.rona.game; + +import com.badlogic.gdx.ApplicationAdapter; +import com.badlogic.gdx.Gdx; +import com.badlogic.gdx.graphics.GL20; +import com.badlogic.gdx.graphics.Texture; +import com.badlogic.gdx.graphics.g2d.SpriteBatch; + +public class Coronagamevirus extends ApplicationAdapter { + SpriteBatch batch; + Texture img; + + @Override + public void create () { + batch = new SpriteBatch(); + img = new Texture("badlogic.jpg"); + } + + @Override + public void render () { + Gdx.gl.glClearColor(1, 0, 0, 1); + Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); + batch.begin(); + batch.draw(img, 0, 0); + batch.end(); + } + + @Override + public void dispose () { + batch.dispose(); + img.dispose(); + } +} diff --git a/covid_game_w_and/desktop/build.gradle b/covid_game_w_and/desktop/build.gradle new file mode 100644 index 0000000..4c15b67 --- /dev/null +++ b/covid_game_w_and/desktop/build.gradle @@ -0,0 +1,39 @@ +sourceCompatibility = 1.7 +sourceSets.main.java.srcDirs = [ "src/" ] +sourceSets.main.resources.srcDirs = ["../android/assets"] + +project.ext.mainClassName = "com.rona.game.desktop.DesktopLauncher" +project.ext.assetsDir = new File("../android/assets") + +task run(dependsOn: classes, type: JavaExec) { + main = project.mainClassName + classpath = sourceSets.main.runtimeClasspath + standardInput = System.in + workingDir = project.assetsDir + ignoreExitValue = true +} + +task debug(dependsOn: classes, type: JavaExec) { + main = project.mainClassName + classpath = sourceSets.main.runtimeClasspath + standardInput = System.in + workingDir = project.assetsDir + ignoreExitValue = true + debug = true +} + +task dist(type: Jar) { + manifest { + attributes 'Main-Class': project.mainClassName + } + dependsOn configurations.runtimeClasspath + from { + configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } + } + with jar +} + + +dist.dependsOn classes + +eclipse.project.name = appName + "-desktop" diff --git a/covid_game_w_and/desktop/src/com/rona/game/desktop/DesktopLauncher.java b/covid_game_w_and/desktop/src/com/rona/game/desktop/DesktopLauncher.java new file mode 100644 index 0000000..2c9c0b1 --- /dev/null +++ b/covid_game_w_and/desktop/src/com/rona/game/desktop/DesktopLauncher.java @@ -0,0 +1,12 @@ +package com.rona.game.desktop; + +import com.badlogic.gdx.backends.lwjgl.LwjglApplication; +import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration; +import com.rona.game.Coronagamevirus; + +public class DesktopLauncher { + public static void main (String[] arg) { + LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); + new LwjglApplication(new Coronagamevirus(), config); + } +} diff --git a/covid_game_w_and/gradle.properties b/covid_game_w_and/gradle.properties new file mode 100644 index 0000000..ff329ac --- /dev/null +++ b/covid_game_w_and/gradle.properties @@ -0,0 +1,3 @@ +org.gradle.daemon=true +org.gradle.jvmargs=-Xms128m -Xmx1500m +org.gradle.configureondemand=false diff --git a/covid_game_w_and/gradle/wrapper/gradle-wrapper.jar b/covid_game_w_and/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000..e708b1c Binary files /dev/null and b/covid_game_w_and/gradle/wrapper/gradle-wrapper.jar differ diff --git a/covid_game_w_and/gradle/wrapper/gradle-wrapper.properties b/covid_game_w_and/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..4d9ca16 --- /dev/null +++ b/covid_game_w_and/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/covid_game_w_and/gradlew b/covid_game_w_and/gradlew new file mode 100644 index 0000000..4f906e0 --- /dev/null +++ b/covid_game_w_and/gradlew @@ -0,0 +1,185 @@ +#!/usr/bin/env sh + +# +# Copyright 2015 the original author or authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >/dev/null +APP_HOME="`pwd -P`" +cd "$SAVED" >/dev/null + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn () { + echo "$*" +} + +die () { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; + NONSTOP* ) + nonstop=true + ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin or MSYS, switch paths to Windows format before running java +if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + + JAVACMD=`cygpath --unix "$JAVACMD"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=`expr $i + 1` + done + case $i in + 0) set -- ;; + 1) set -- "$args0" ;; + 2) set -- "$args0" "$args1" ;; + 3) set -- "$args0" "$args1" "$args2" ;; + 4) set -- "$args0" "$args1" "$args2" "$args3" ;; + 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Escape application args +save () { + for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done + echo " " +} +APP_ARGS=`save "$@"` + +# Collect all arguments for the java command, following the shell quoting and substitution rules +eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" + +exec "$JAVACMD" "$@" diff --git a/covid_game_w_and/gradlew.bat b/covid_game_w_and/gradlew.bat new file mode 100644 index 0000000..107acd3 --- /dev/null +++ b/covid_game_w_and/gradlew.bat @@ -0,0 +1,89 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/covid_game_w_and/settings.gradle b/covid_game_w_and/settings.gradle new file mode 100644 index 0000000..b8df9f7 --- /dev/null +++ b/covid_game_w_and/settings.gradle @@ -0,0 +1 @@ +include 'desktop', 'core', 'android' \ No newline at end of file diff --git a/game/.gitignore b/game/.gitignore new file mode 100644 index 0000000..a4b5d51 --- /dev/null +++ b/game/.gitignore @@ -0,0 +1,115 @@ +## Java + +*.class +*.war +*.ear +hs_err_pid* + +## Robovm +/ios/robovm-build/ + +## GWT +/html/war/ +/html/gwt-unitCache/ +.apt_generated/ +.gwt/ +gwt-unitCache/ +www-test/ +.gwt-tmp/ + +## Android Studio and Intellij and Android in general +/android/libs/armeabi/ +/android/libs/armeabi-v7a/ +/android/libs/arm64-v8a/ +/android/libs/x86/ +/android/libs/x86_64/ +/android/gen/ +.idea/ +*.ipr +*.iws +*.iml +/android/out/ +com_crashlytics_export_strings.xml + +## Eclipse + +.classpath +.project +.metadata/ +/android/bin/ +/core/bin/ +/desktop/bin/ +/html/bin/ +/ios/bin/ +*.tmp +*.bak +*.swp +*~.nib +.settings/ +.loadpath +.externalToolBuilders/ +*.launch + +## NetBeans + +/nbproject/private/ +/android/nbproject/private/ +/core/nbproject/private/ +/desktop/nbproject/private/ +/html/nbproject/private/ +/ios/nbproject/private/ + +/build/ +/android/build/ +/core/build/ +/desktop/build/ +/html/build/ +/ios/build/ + +/nbbuild/ +/android/nbbuild/ +/core/nbbuild/ +/desktop/nbbuild/ +/html/nbbuild/ +/ios/nbbuild/ + +/dist/ +/android/dist/ +/core/dist/ +/desktop/dist/ +/html/dist/ +/ios/dist/ + +/nbdist/ +/android/nbdist/ +/core/nbdist/ +/desktop/nbdist/ +/html/nbdist/ +/ios/nbdist/ + +nbactions.xml +nb-configuration.xml + +## Gradle + +/local.properties +.gradle/ +gradle-app.setting +/build/ +/android/build/ +/core/build/ +/desktop/build/ +/html/build/ +/ios/build/ + +## OS Specific +.DS_Store +Thumbs.db + +## iOS +/ios/xcode/*.xcodeproj/* +!/ios/xcode/*.xcodeproj/xcshareddata +!/ios/xcode/*.xcodeproj/project.pbxproj +/ios/xcode/native/ +/ios/IOSLauncher.app +/ios/IOSLauncher.app.dSYM diff --git a/game/build.gradle b/game/build.gradle new file mode 100644 index 0000000..9e0c988 --- /dev/null +++ b/game/build.gradle @@ -0,0 +1,62 @@ +buildscript { + + + repositories { + mavenLocal() + mavenCentral() + maven { url "https://plugins.gradle.org/m2/" } + maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } + google() + } + dependencies { + + + } +} + +allprojects { + apply plugin: "eclipse" + + version = '1.0' + ext { + appName = "another-game" + gdxVersion = '1.9.14' + roboVMVersion = '2.3.12' + box2DLightsVersion = '1.5' + ashleyVersion = '1.7.3' + aiVersion = '1.8.2' + gdxControllersVersion = '2.1.0' + } + + repositories { + mavenLocal() + mavenCentral() + google() + maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } + maven { url "https://oss.sonatype.org/content/repositories/releases/" } + } +} + +project(":desktop") { + apply plugin: "java-library" + + + dependencies { + implementation project(":core") + api "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion" + api "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop" + api "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-desktop" + + } +} + +project(":core") { + apply plugin: "java-library" + + + dependencies { + api "com.badlogicgames.gdx:gdx:$gdxVersion" + api "com.badlogicgames.gdx:gdx-box2d:$gdxVersion" + + } +} diff --git a/game/core/assets/badlogic.jpg b/game/core/assets/badlogic.jpg new file mode 100644 index 0000000..4390da6 Binary files /dev/null and b/game/core/assets/badlogic.jpg differ diff --git a/game/core/build.gradle b/game/core/build.gradle new file mode 100644 index 0000000..d192d04 --- /dev/null +++ b/game/core/build.gradle @@ -0,0 +1,6 @@ +sourceCompatibility = 1.7 +[compileJava, compileTestJava]*.options*.encoding = 'UTF-8' + +sourceSets.main.java.srcDirs = [ "src/" ] + +eclipse.project.name = appName + "-core" diff --git a/game/core/src/com/mygdx/game/AnotherGame.java b/game/core/src/com/mygdx/game/AnotherGame.java new file mode 100644 index 0000000..0d4d308 --- /dev/null +++ b/game/core/src/com/mygdx/game/AnotherGame.java @@ -0,0 +1,33 @@ +package com.mygdx.game; + +import com.badlogic.gdx.ApplicationAdapter; +import com.badlogic.gdx.Gdx; +import com.badlogic.gdx.graphics.GL20; +import com.badlogic.gdx.graphics.Texture; +import com.badlogic.gdx.graphics.g2d.SpriteBatch; + +public class AnotherGame extends ApplicationAdapter { + SpriteBatch batch; + Texture img; + //this is a comment! + @Override + public void create () { + batch = new SpriteBatch(); + img = new Texture("badlogic.jpg"); + } + + @Override + public void render () { + Gdx.gl.glClearColor(1, 0, 0, 1); + Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); + batch.begin(); + batch.draw(img, 0, 0); + batch.end(); + } + + @Override + public void dispose () { + batch.dispose(); + img.dispose(); + } +} diff --git a/game/desktop/build.gradle b/game/desktop/build.gradle new file mode 100644 index 0000000..21fbde5 --- /dev/null +++ b/game/desktop/build.gradle @@ -0,0 +1,39 @@ +sourceCompatibility = 1.7 +sourceSets.main.java.srcDirs = [ "src/" ] +sourceSets.main.resources.srcDirs = ["../core/assets"] + +project.ext.mainClassName = "com.mygdx.game.desktop.DesktopLauncher" +project.ext.assetsDir = new File("../core/assets") + +task run(dependsOn: classes, type: JavaExec) { + main = project.mainClassName + classpath = sourceSets.main.runtimeClasspath + standardInput = System.in + workingDir = project.assetsDir + ignoreExitValue = true +} + +task debug(dependsOn: classes, type: JavaExec) { + main = project.mainClassName + classpath = sourceSets.main.runtimeClasspath + standardInput = System.in + workingDir = project.assetsDir + ignoreExitValue = true + debug = true +} + +task dist(type: Jar) { + manifest { + attributes 'Main-Class': project.mainClassName + } + dependsOn configurations.runtimeClasspath + from { + configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } + } + with jar +} + + +dist.dependsOn classes + +eclipse.project.name = appName + "-desktop" diff --git a/game/desktop/src/com/mygdx/game/desktop/DesktopLauncher.java b/game/desktop/src/com/mygdx/game/desktop/DesktopLauncher.java new file mode 100644 index 0000000..ee1fb31 --- /dev/null +++ b/game/desktop/src/com/mygdx/game/desktop/DesktopLauncher.java @@ -0,0 +1,12 @@ +package com.mygdx.game.desktop; + +import com.badlogic.gdx.backends.lwjgl.LwjglApplication; +import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration; +import com.mygdx.game.AnotherGame; + +public class DesktopLauncher { + public static void main (String[] arg) { + LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); + new LwjglApplication(new AnotherGame(), config); + } +} diff --git a/game/gradle.properties b/game/gradle.properties new file mode 100644 index 0000000..ff329ac --- /dev/null +++ b/game/gradle.properties @@ -0,0 +1,3 @@ +org.gradle.daemon=true +org.gradle.jvmargs=-Xms128m -Xmx1500m +org.gradle.configureondemand=false diff --git a/game/gradle/wrapper/gradle-wrapper.jar b/game/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000..e708b1c Binary files /dev/null and b/game/gradle/wrapper/gradle-wrapper.jar differ diff --git a/game/gradle/wrapper/gradle-wrapper.properties b/game/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..4d9ca16 --- /dev/null +++ b/game/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/game/gradlew b/game/gradlew new file mode 100644 index 0000000..4f906e0 --- /dev/null +++ b/game/gradlew @@ -0,0 +1,185 @@ +#!/usr/bin/env sh + +# +# Copyright 2015 the original author or authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >/dev/null +APP_HOME="`pwd -P`" +cd "$SAVED" >/dev/null + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn () { + echo "$*" +} + +die () { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; + NONSTOP* ) + nonstop=true + ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin or MSYS, switch paths to Windows format before running java +if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + + JAVACMD=`cygpath --unix "$JAVACMD"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=`expr $i + 1` + done + case $i in + 0) set -- ;; + 1) set -- "$args0" ;; + 2) set -- "$args0" "$args1" ;; + 3) set -- "$args0" "$args1" "$args2" ;; + 4) set -- "$args0" "$args1" "$args2" "$args3" ;; + 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Escape application args +save () { + for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done + echo " " +} +APP_ARGS=`save "$@"` + +# Collect all arguments for the java command, following the shell quoting and substitution rules +eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" + +exec "$JAVACMD" "$@" diff --git a/game/gradlew.bat b/game/gradlew.bat new file mode 100644 index 0000000..107acd3 --- /dev/null +++ b/game/gradlew.bat @@ -0,0 +1,89 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/game/settings.gradle b/game/settings.gradle new file mode 100644 index 0000000..74fc652 --- /dev/null +++ b/game/settings.gradle @@ -0,0 +1 @@ +include 'desktop', 'core' \ No newline at end of file diff --git a/second_covid_game/.gitignore b/second_covid_game/.gitignore new file mode 100644 index 0000000..a4b5d51 --- /dev/null +++ b/second_covid_game/.gitignore @@ -0,0 +1,115 @@ +## Java + +*.class +*.war +*.ear +hs_err_pid* + +## Robovm +/ios/robovm-build/ + +## GWT +/html/war/ +/html/gwt-unitCache/ +.apt_generated/ +.gwt/ +gwt-unitCache/ +www-test/ +.gwt-tmp/ + +## Android Studio and Intellij and Android in general +/android/libs/armeabi/ +/android/libs/armeabi-v7a/ +/android/libs/arm64-v8a/ +/android/libs/x86/ +/android/libs/x86_64/ +/android/gen/ +.idea/ +*.ipr +*.iws +*.iml +/android/out/ +com_crashlytics_export_strings.xml + +## Eclipse + +.classpath +.project +.metadata/ +/android/bin/ +/core/bin/ +/desktop/bin/ +/html/bin/ +/ios/bin/ +*.tmp +*.bak +*.swp +*~.nib +.settings/ +.loadpath +.externalToolBuilders/ +*.launch + +## NetBeans + +/nbproject/private/ +/android/nbproject/private/ +/core/nbproject/private/ +/desktop/nbproject/private/ +/html/nbproject/private/ +/ios/nbproject/private/ + +/build/ +/android/build/ +/core/build/ +/desktop/build/ +/html/build/ +/ios/build/ + +/nbbuild/ +/android/nbbuild/ +/core/nbbuild/ +/desktop/nbbuild/ +/html/nbbuild/ +/ios/nbbuild/ + +/dist/ +/android/dist/ +/core/dist/ +/desktop/dist/ +/html/dist/ +/ios/dist/ + +/nbdist/ +/android/nbdist/ +/core/nbdist/ +/desktop/nbdist/ +/html/nbdist/ +/ios/nbdist/ + +nbactions.xml +nb-configuration.xml + +## Gradle + +/local.properties +.gradle/ +gradle-app.setting +/build/ +/android/build/ +/core/build/ +/desktop/build/ +/html/build/ +/ios/build/ + +## OS Specific +.DS_Store +Thumbs.db + +## iOS +/ios/xcode/*.xcodeproj/* +!/ios/xcode/*.xcodeproj/xcshareddata +!/ios/xcode/*.xcodeproj/project.pbxproj +/ios/xcode/native/ +/ios/IOSLauncher.app +/ios/IOSLauncher.app.dSYM diff --git a/second_covid_game/android/AndroidManifest.xml b/second_covid_game/android/AndroidManifest.xml new file mode 100644 index 0000000..135c19d --- /dev/null +++ b/second_covid_game/android/AndroidManifest.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + diff --git a/second_covid_game/android/assets/badlogic.jpg b/second_covid_game/android/assets/badlogic.jpg new file mode 100644 index 0000000..4390da6 Binary files /dev/null and b/second_covid_game/android/assets/badlogic.jpg differ diff --git a/second_covid_game/android/build.gradle b/second_covid_game/android/build.gradle new file mode 100644 index 0000000..6e3af4d --- /dev/null +++ b/second_covid_game/android/build.gradle @@ -0,0 +1,92 @@ +android { + buildToolsVersion "30.0.3" + compileSdkVersion 30 + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + jniLibs.srcDirs = ['libs'] + } + + } + packagingOptions { + exclude 'META-INF/robovm/ios/robovm.xml' + } + defaultConfig { + applicationId "com.rona2.game" + minSdkVersion 14 + targetSdkVersion 30 + versionCode 1 + versionName "1.0" + } + buildTypes { + release { + minifyEnabled true + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + } + } +} + + +// called every time gradle gets executed, takes the native dependencies of +// the natives configuration, and extracts them to the proper libs/ folders +// so they get packed with the APK. +task copyAndroidNatives { + doFirst { + file("libs/armeabi/").mkdirs() + file("libs/armeabi-v7a/").mkdirs() + file("libs/arm64-v8a/").mkdirs() + file("libs/x86_64/").mkdirs() + file("libs/x86/").mkdirs() + + configurations.natives.copy().files.each { jar -> + def outputDir = null + if (jar.name.endsWith("natives-arm64-v8a.jar")) outputDir = file("libs/arm64-v8a") + if (jar.name.endsWith("natives-armeabi-v7a.jar")) outputDir = file("libs/armeabi-v7a") + if(jar.name.endsWith("natives-armeabi.jar")) outputDir = file("libs/armeabi") + if(jar.name.endsWith("natives-x86_64.jar")) outputDir = file("libs/x86_64") + if(jar.name.endsWith("natives-x86.jar")) outputDir = file("libs/x86") + if(outputDir != null) { + copy { + from zipTree(jar) + into outputDir + include "*.so" + } + } + } + } +} + +tasks.whenTaskAdded { packageTask -> + if (packageTask.name.contains("package")) { + packageTask.dependsOn 'copyAndroidNatives' + } +} + +task run(type: Exec) { + def path + def localProperties = project.file("../local.properties") + if (localProperties.exists()) { + Properties properties = new Properties() + localProperties.withInputStream { instr -> + properties.load(instr) + } + def sdkDir = properties.getProperty('sdk.dir') + if (sdkDir) { + path = sdkDir + } else { + path = "$System.env.ANDROID_HOME" + } + } else { + path = "$System.env.ANDROID_HOME" + } + + def adb = path + "/platform-tools/adb" + commandLine "$adb", 'shell', 'am', 'start', '-n', 'com.rona2.game/com.rona2.game.AndroidLauncher' +} + +eclipse.project.name = appName + "-android" diff --git a/second_covid_game/android/ic_launcher-web.png b/second_covid_game/android/ic_launcher-web.png new file mode 100644 index 0000000..8f0110d Binary files /dev/null and b/second_covid_game/android/ic_launcher-web.png differ diff --git a/second_covid_game/android/proguard-rules.pro b/second_covid_game/android/proguard-rules.pro new file mode 100644 index 0000000..6e0b079 --- /dev/null +++ b/second_covid_game/android/proguard-rules.pro @@ -0,0 +1,42 @@ +# To enable ProGuard in your project, edit project.properties +# to define the proguard.config property as described in that file. +# +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in ${sdk.dir}/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the ProGuard +# include property in project.properties. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +-verbose + +-dontwarn com.badlogic.gdx.backends.android.AndroidFragmentApplication +-dontwarn com.badlogic.gdx.utils.GdxBuild +-dontwarn com.badlogic.gdx.physics.box2d.utils.Box2DBuild +-dontwarn com.badlogic.gdx.jnigen.BuildTarget* +-dontwarn com.badlogic.gdx.graphics.g2d.freetype.FreetypeBuild + +# Required if using Gdx-Controllers extension +-keep class com.badlogic.gdx.controllers.android.AndroidControllers + +# Required if using Box2D extension +-keepclassmembers class com.badlogic.gdx.physics.box2d.World { + boolean contactFilter(long, long); + void beginContact(long); + void endContact(long); + void preSolve(long, long); + void postSolve(long, long); + boolean reportFixture(long); + float reportRayFixture(long, float, float, float, float, float); +} diff --git a/second_covid_game/android/project.properties b/second_covid_game/android/project.properties new file mode 100644 index 0000000..3fefa92 --- /dev/null +++ b/second_covid_game/android/project.properties @@ -0,0 +1,9 @@ +# This file is used by the Eclipse ADT plugin. It is unnecessary for IDEA and Android Studio projects, which +# configure Proguard and the Android target via the build.gradle file. + +# To enable ProGuard to work with Eclipse ADT, uncomment this (available properties: sdk.dir, user.home) +# and ensure proguard.jar in the Android SDK is up to date (or alternately reduce the android target to 23 or lower): +# proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-rules.pro + +# Project target. +target=android-19 diff --git a/second_covid_game/android/res/drawable-anydpi-v26/ic_launcher.xml b/second_covid_game/android/res/drawable-anydpi-v26/ic_launcher.xml new file mode 100644 index 0000000..6c7313a --- /dev/null +++ b/second_covid_game/android/res/drawable-anydpi-v26/ic_launcher.xml @@ -0,0 +1,6 @@ + + + + + diff --git a/second_covid_game/android/res/drawable-anydpi-v26/ic_launcher_foreground.xml b/second_covid_game/android/res/drawable-anydpi-v26/ic_launcher_foreground.xml new file mode 100644 index 0000000..5916ee8 --- /dev/null +++ b/second_covid_game/android/res/drawable-anydpi-v26/ic_launcher_foreground.xml @@ -0,0 +1,40 @@ + + + + + + + + + diff --git a/second_covid_game/android/res/drawable-hdpi/ic_launcher.png b/second_covid_game/android/res/drawable-hdpi/ic_launcher.png new file mode 100644 index 0000000..91f696b Binary files /dev/null and b/second_covid_game/android/res/drawable-hdpi/ic_launcher.png differ diff --git a/second_covid_game/android/res/drawable-mdpi/ic_launcher.png b/second_covid_game/android/res/drawable-mdpi/ic_launcher.png new file mode 100644 index 0000000..c1ab239 Binary files /dev/null and b/second_covid_game/android/res/drawable-mdpi/ic_launcher.png differ diff --git a/second_covid_game/android/res/drawable-xhdpi/ic_launcher.png b/second_covid_game/android/res/drawable-xhdpi/ic_launcher.png new file mode 100644 index 0000000..2011cc0 Binary files /dev/null and b/second_covid_game/android/res/drawable-xhdpi/ic_launcher.png differ diff --git a/second_covid_game/android/res/drawable-xxhdpi/ic_launcher.png b/second_covid_game/android/res/drawable-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..25fcef0 Binary files /dev/null and b/second_covid_game/android/res/drawable-xxhdpi/ic_launcher.png differ diff --git a/second_covid_game/android/res/drawable-xxxhdpi/ic_launcher.png b/second_covid_game/android/res/drawable-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000..d109946 Binary files /dev/null and b/second_covid_game/android/res/drawable-xxxhdpi/ic_launcher.png differ diff --git a/second_covid_game/android/res/values/color.xml b/second_covid_game/android/res/values/color.xml new file mode 100644 index 0000000..933353e --- /dev/null +++ b/second_covid_game/android/res/values/color.xml @@ -0,0 +1,4 @@ + + + #FFFFFFFF + diff --git a/second_covid_game/android/res/values/strings.xml b/second_covid_game/android/res/values/strings.xml new file mode 100644 index 0000000..d9feed2 --- /dev/null +++ b/second_covid_game/android/res/values/strings.xml @@ -0,0 +1,6 @@ + + + + Coronagamevirus2 + + diff --git a/second_covid_game/android/res/values/styles.xml b/second_covid_game/android/res/values/styles.xml new file mode 100644 index 0000000..3f00fc5 --- /dev/null +++ b/second_covid_game/android/res/values/styles.xml @@ -0,0 +1,12 @@ + + + + + diff --git a/second_covid_game/android/src/com/rona2/game/AndroidLauncher.java b/second_covid_game/android/src/com/rona2/game/AndroidLauncher.java new file mode 100644 index 0000000..e1bc07d --- /dev/null +++ b/second_covid_game/android/src/com/rona2/game/AndroidLauncher.java @@ -0,0 +1,16 @@ +package com.rona2.game; + +import android.os.Bundle; + +import com.badlogic.gdx.backends.android.AndroidApplication; +import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration; +import com.rona2.game.Coronagamevirus2; + +public class AndroidLauncher extends AndroidApplication { + @Override + protected void onCreate (Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + AndroidApplicationConfiguration config = new AndroidApplicationConfiguration(); + initialize(new Coronagamevirus2(), config); + } +} diff --git a/second_covid_game/build.gradle b/second_covid_game/build.gradle new file mode 100644 index 0000000..aa4dca5 --- /dev/null +++ b/second_covid_game/build.gradle @@ -0,0 +1,86 @@ +buildscript { + + + repositories { + mavenLocal() + mavenCentral() + maven { url "https://plugins.gradle.org/m2/" } + maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } + google() + } + dependencies { + classpath 'com.android.tools.build:gradle:3.5.4' + + + } +} + +allprojects { + apply plugin: "eclipse" + + version = '1.0' + ext { + appName = "Coronagamevirus2" + gdxVersion = '1.9.14' + roboVMVersion = '2.3.12' + box2DLightsVersion = '1.5' + ashleyVersion = '1.7.3' + aiVersion = '1.8.2' + gdxControllersVersion = '2.1.0' + } + + repositories { + mavenLocal() + mavenCentral() + google() + maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } + maven { url "https://oss.sonatype.org/content/repositories/releases/" } + } +} + +project(":desktop") { + apply plugin: "java-library" + + + dependencies { + implementation project(":core") + api "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion" + api "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop" + api "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-desktop" + + } +} + +project(":core") { + apply plugin: "java-library" + + + dependencies { + api "com.badlogicgames.gdx:gdx:$gdxVersion" + api "com.badlogicgames.gdx:gdx-box2d:$gdxVersion" + + } +} + +project(":android") { + apply plugin: "com.android.application" + + configurations { natives } + + dependencies { + implementation project(":core") + api "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion" + natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi" + natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi-v7a" + natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-arm64-v8a" + natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86" + natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86_64" + api "com.badlogicgames.gdx:gdx-box2d:$gdxVersion" + natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-armeabi" + natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-armeabi-v7a" + natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-arm64-v8a" + natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-x86" + natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-x86_64" + + } +} diff --git a/second_covid_game/core/build.gradle b/second_covid_game/core/build.gradle new file mode 100644 index 0000000..d192d04 --- /dev/null +++ b/second_covid_game/core/build.gradle @@ -0,0 +1,6 @@ +sourceCompatibility = 1.7 +[compileJava, compileTestJava]*.options*.encoding = 'UTF-8' + +sourceSets.main.java.srcDirs = [ "src/" ] + +eclipse.project.name = appName + "-core" diff --git a/second_covid_game/core/src/com/rona2/game/Coronagamevirus2.java b/second_covid_game/core/src/com/rona2/game/Coronagamevirus2.java new file mode 100644 index 0000000..e4677ff --- /dev/null +++ b/second_covid_game/core/src/com/rona2/game/Coronagamevirus2.java @@ -0,0 +1,32 @@ +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by Fernflower decompiler) +// + +package com.rona2.game; + +import com.rona2.game.Screens.PlayScreen; +import com.badlogic.gdx.Game; +import com.badlogic.gdx.graphics.g2d.SpriteBatch; + +public class Coronagamevirus2 extends Game { + public static final int V_WIDTH = 400; + public static final int V_HEIGHT = 208; + public SpriteBatch batch; + + public Coronagamevirus2() { + } + + public void create() { + this.batch = new SpriteBatch(); + this.setScreen(new PlayScreen(this)); + } + + public void render() { + super.render(); + } + + public void dispose() { + this.batch.dispose(); + } +} diff --git a/second_covid_game/core/src/com/rona2/game/Scenes/Hud.java b/second_covid_game/core/src/com/rona2/game/Scenes/Hud.java new file mode 100644 index 0000000..8d5777c --- /dev/null +++ b/second_covid_game/core/src/com/rona2/game/Scenes/Hud.java @@ -0,0 +1,68 @@ +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by Fernflower decompiler) +// + +package com.rona2.game.Scenes; + +import com.badlogic.gdx.graphics.Color; +import com.badlogic.gdx.graphics.OrthographicCamera; +import com.badlogic.gdx.graphics.g2d.BitmapFont; +import com.badlogic.gdx.graphics.g2d.SpriteBatch; +import com.badlogic.gdx.scenes.scene2d.Stage; +import com.badlogic.gdx.scenes.scene2d.ui.Label; +import com.badlogic.gdx.scenes.scene2d.ui.Table; +import com.badlogic.gdx.scenes.scene2d.ui.Label.LabelStyle; +import com.badlogic.gdx.utils.viewport.FitViewport; +import com.badlogic.gdx.utils.viewport.Viewport; + +public class Hud { + public Stage stage; + private Viewport viewport; + + private Integer worldTimer; + private float timeCount; + private Integer score; + + Label countdownLabel; + Label scoreLabel; + Label timeLabel; + Label levelLabel; + Label worldLabel; + Label covidLabel; + + public Hud(SpriteBatch sb) { + worldTimer = 300; + timeCount = 0; + score = 0; + + viewport = new FitViewport(400.0F, 208.0F, + new OrthographicCamera()); + this.stage = new Stage(this.viewport, sb); + + Table table = new Table(); + table.top(); + table.setFillParent(true); + this.countdownLabel = new Label(String.format("%03d", this.worldTimer), + new Label.LabelStyle(new BitmapFont(), Color.WHITE)); + this.scoreLabel = new Label(String.format("%06d", this.score), + new Label.LabelStyle(new BitmapFont(), Color.WHITE)); + this.timeLabel = new Label("TIME", + new Label.LabelStyle(new BitmapFont(), Color.WHITE)); + this.levelLabel = new Label("1-1", + new Label.LabelStyle(new BitmapFont(), Color.WHITE)); + this.worldLabel = new Label("WORLD", + new Label.LabelStyle(new BitmapFont(), Color.WHITE)); + this.covidLabel = new Label("CORONA", + new Label.LabelStyle(new BitmapFont(), Color.WHITE)); + + table.add(this.covidLabel).expandX().padTop(10.0F); + table.add(this.worldLabel).expandX().padTop(10.0F); + table.add(this.timeLabel).expandX().padTop(10.0F); + table.row(); + table.add(this.scoreLabel).expandX(); + table.add(this.levelLabel).expandX(); + table.add(this.countdownLabel).expandX(); + this.stage.addActor(table); + } +} diff --git a/second_covid_game/core/src/com/rona2/game/Screens/PlayScreen.java b/second_covid_game/core/src/com/rona2/game/Screens/PlayScreen.java new file mode 100644 index 0000000..770d00c --- /dev/null +++ b/second_covid_game/core/src/com/rona2/game/Screens/PlayScreen.java @@ -0,0 +1,54 @@ +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by Fernflower decompiler) +// + +package com.rona2.game.Screens; + +import com.rona2.game.Scenes.Hud; +import com.badlogic.gdx.Gdx; +import com.badlogic.gdx.Screen; +import com.badlogic.gdx.graphics.OrthographicCamera; +import com.badlogic.gdx.utils.viewport.FitViewport; +import com.badlogic.gdx.utils.viewport.Viewport; +import com.rona2.game.Coronagamevirus2; + +public class PlayScreen implements Screen { + private com.rona2.game.Coronagamevirus2 game; + private OrthographicCamera gamecam; + private Viewport gamePort; + private Hud hud; + + public PlayScreen(com.rona2.game.Coronagamevirus2 game) { + this.game = game; + this.gamecam = new OrthographicCamera(); + this.gamePort = new FitViewport(400.0F, 208.0F, this.gamecam); + this.hud = new Hud(game.batch); + } + + public void show() { + } + + public void render(float delta) { + Gdx.gl.glClearColor(1.0F, 0.0F, 0.0F, 1.0F); + Gdx.gl.glClear(16384); + this.game.batch.setProjectionMatrix(this.hud.stage.getCamera().combined); + this.hud.stage.draw(); + } + + public void resize(int width, int height) { + this.gamePort.update(width, height); + } + + public void pause() { + } + + public void resume() { + } + + public void hide() { + } + + public void dispose() { + } +} diff --git a/second_covid_game/desktop/build.gradle b/second_covid_game/desktop/build.gradle new file mode 100644 index 0000000..fde283c --- /dev/null +++ b/second_covid_game/desktop/build.gradle @@ -0,0 +1,39 @@ +sourceCompatibility = 1.7 +sourceSets.main.java.srcDirs = [ "src/" ] +sourceSets.main.resources.srcDirs = ["../android/assets"] + +project.ext.mainClassName = "com.rona2.game.desktop.DesktopLauncher" +project.ext.assetsDir = new File("../android/assets") + +task run(dependsOn: classes, type: JavaExec) { + main = project.mainClassName + classpath = sourceSets.main.runtimeClasspath + standardInput = System.in + workingDir = project.assetsDir + ignoreExitValue = true +} + +task debug(dependsOn: classes, type: JavaExec) { + main = project.mainClassName + classpath = sourceSets.main.runtimeClasspath + standardInput = System.in + workingDir = project.assetsDir + ignoreExitValue = true + debug = true +} + +task dist(type: Jar) { + manifest { + attributes 'Main-Class': project.mainClassName + } + dependsOn configurations.runtimeClasspath + from { + configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } + } + with jar +} + + +dist.dependsOn classes + +eclipse.project.name = appName + "-desktop" diff --git a/second_covid_game/desktop/src/com/rona2/game/desktop/DesktopLauncher.java b/second_covid_game/desktop/src/com/rona2/game/desktop/DesktopLauncher.java new file mode 100644 index 0000000..775c8fa --- /dev/null +++ b/second_covid_game/desktop/src/com/rona2/game/desktop/DesktopLauncher.java @@ -0,0 +1,12 @@ +package com.rona2.game.desktop; + +import com.badlogic.gdx.backends.lwjgl.LwjglApplication; +import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration; +import com.rona2.game.Coronagamevirus2; + +public class DesktopLauncher { + public static void main (String[] arg) { + LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); + new LwjglApplication(new Coronagamevirus2(), config); + } +} diff --git a/second_covid_game/gradle.properties b/second_covid_game/gradle.properties new file mode 100644 index 0000000..ff329ac --- /dev/null +++ b/second_covid_game/gradle.properties @@ -0,0 +1,3 @@ +org.gradle.daemon=true +org.gradle.jvmargs=-Xms128m -Xmx1500m +org.gradle.configureondemand=false diff --git a/second_covid_game/gradle/wrapper/gradle-wrapper.jar b/second_covid_game/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000..e708b1c Binary files /dev/null and b/second_covid_game/gradle/wrapper/gradle-wrapper.jar differ diff --git a/second_covid_game/gradle/wrapper/gradle-wrapper.properties b/second_covid_game/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..4d9ca16 --- /dev/null +++ b/second_covid_game/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/second_covid_game/gradlew b/second_covid_game/gradlew new file mode 100644 index 0000000..4f906e0 --- /dev/null +++ b/second_covid_game/gradlew @@ -0,0 +1,185 @@ +#!/usr/bin/env sh + +# +# Copyright 2015 the original author or authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >/dev/null +APP_HOME="`pwd -P`" +cd "$SAVED" >/dev/null + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn () { + echo "$*" +} + +die () { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; + NONSTOP* ) + nonstop=true + ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin or MSYS, switch paths to Windows format before running java +if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + + JAVACMD=`cygpath --unix "$JAVACMD"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=`expr $i + 1` + done + case $i in + 0) set -- ;; + 1) set -- "$args0" ;; + 2) set -- "$args0" "$args1" ;; + 3) set -- "$args0" "$args1" "$args2" ;; + 4) set -- "$args0" "$args1" "$args2" "$args3" ;; + 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Escape application args +save () { + for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done + echo " " +} +APP_ARGS=`save "$@"` + +# Collect all arguments for the java command, following the shell quoting and substitution rules +eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" + +exec "$JAVACMD" "$@" diff --git a/second_covid_game/gradlew.bat b/second_covid_game/gradlew.bat new file mode 100644 index 0000000..107acd3 --- /dev/null +++ b/second_covid_game/gradlew.bat @@ -0,0 +1,89 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/second_covid_game/settings.gradle b/second_covid_game/settings.gradle new file mode 100644 index 0000000..b8df9f7 --- /dev/null +++ b/second_covid_game/settings.gradle @@ -0,0 +1 @@ +include 'desktop', 'core', 'android' \ No newline at end of file