Commit b771ad49 authored by Derek Xu's avatar Derek Xu
Browse files

Add demo

parent 8da0847f
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -34,8 +34,7 @@ output.json

#NDK
obj/
<<<<<<< HEAD
.externalNativeBuild
=======
.externalNativeBuild
>>>>>>> Joystick

app/.cxx/

INSTRUCTIONS.md

0 → 100644
+24 −0
Original line number Diff line number Diff line
INSTALL INSTRUCTIONS

In order to run 8-Bit Invaders, you must first have Android Studio installed [[install](https://developer.android.com/studio)] on your device. 
After downloading, you are ready to create a new project in Android Studio [Do not open the repo for 8-Bit Invaders – you will need to download more software before opening the 8-Bit Invaders project code]. To create a new project, open android studio, create a new project. From templates choose Phone and Tablets -> No Activity -> next. Then pick a name (does not matter because it is temporary), choose java as a language, and then press finish.

After you finish creating the project, please download an Android Emulator [[install](https://developer.android.com/studio/run/emulator)]. 

In order to run our project you will also need to download Android NDK and CMake. To do this please follow these instructions [[install](https://developer.android.com/studio/projects/install-ndk)].

After installing these components, you will need to clone the project repository to your local device. To do this, please use your computer’s terminal and use the following instructions:

1. Make sure you have git installed on your computer [[install](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)]
2. Then create a directory [through your file explorer or terminal -- NOT IN ANDROID STUDIO] in which you would like to clone the project, and subsequently navigate to that directory in your terminal.
3. Then you will need to clone the App branch of this project. To do this use the command:

git clone --branch App https://agile.bu.edu/gitlab/ec327_projects/group5project.git

NOTE: The https link is the HTTPS link when you navigate to the project repo on Gitlab, and use the blue drop down on the right hand side of the screen [the link provided may be out of date upon your cloning]. 

After downloading all of the above, you are ready to open the 8-Bit Invaders code. To do this navigate to File->Open. Then find the directory in which you cloned the project, and open the project. You may need to wait a few minutes for the project to configure everything. You will then be ready to run the project.



README.md

0 → 100644
+27 −0
Original line number Diff line number Diff line
# Group5Project

# Title
8-bit Invaders

# Category:
Animated Game

# Description:
We are building a Space Shooter-like game in an 8-bit style.

# Roles
Lead: AnishSinha [14.29%], KrishShah [14.29%], NathanStrahs [14.29%], JamesKnee [14.29%], ThomasPoimenidis [14.29%], DerekXu [14.29%], JiaweiXiang [14.29%]

Front: AnishSinha [14.29%], KrishShah [14.29%], NathanStrahs [14.29%], JamesKnee [14.29%], ThomasPoimenidis [14.29%], DerekXu [14.29%], JiaweiXiang [14.29%]

Back: AnishSinha [14.29%], KrishShah [14.29%], NathanStrahs [14.29%], JamesKnee [14.29%], ThomasPoimenidis [14.29%], DerekXu [14.29%], JiaweiXiang [14.29%]

Documenter: AnishSinha [14.29%], KrishShah [14.29%], NathanStrahs [14.29%], JamesKnee [14.29%], ThomasPoimenidis [14.29%], DerekXu [14.29%], JiaweiXiang [14.29%]

Tester: AnishSinha [14.29%], KrishShah [14.29%], NathanStrahs [14.29%], JamesKnee [14.29%], ThomasPoimenidis [14.29%], DerekXu [14.29%], JiaweiXiang [14.29%]

# Member Names:
Anish Sinha, Thomas Poimenidis, Jiawei Xiang(DavidXiang), Krish Shah, Nathan Strahs, Derek Xu, James Knee

# Personalize Gitlab Task:
Completed

app/.gitignore

0 → 100644
+1 −0
Original line number Diff line number Diff line
/build
 No newline at end of file

app/build.gradle

0 → 100644
+64 −0
Original line number Diff line number Diff line
plugins {
    id 'com.android.application'
}

android {
    namespace 'com.example.a8_bitinvader'
    compileSdk 33

    defaultConfig {
        applicationId "com.example.a8_bitinvader"
        minSdk 21
        targetSdk 33
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"


// Added this line
        externalNativeBuild{
            cmake{
                cppFlags ""
            }
        }
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
// Added this line
    externalNativeBuild{
        cmake{
            path "src/main/cpp/CMakeLists.txt"
        }
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

dependencies {

    implementation 'androidx.appcompat:appcompat:1.4.1'
    implementation 'com.google.android.material:material:1.5.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
    implementation 'androidx.viewpager:viewpager:1.1.0-alpha01'
    testImplementation 'junit:junit:4.13.2'


    androidTestImplementation "androidx.test:runner:1.5.2"
    androidTestImplementation "androidx.test:rules:1.5.0"
    // Optional -- UI testing with Espresso
    androidTestImplementation "androidx.test.espresso:espresso-core:3.5.1"
    // To use the JUnit Extension APIs
    androidTestImplementation "androidx.test.ext:junit:1.1.5"
    // Kotlin extensions for androidx.test.ext.junit
    androidTestImplementation "androidx.test.ext:junit-ktx:1.1.5"

}
 No newline at end of file
Loading