Welcome to the Space Choppers multiplayer game for Android! Developed as part of the TDT4240 Software Architecture course in the spring semester of 2023 at the Norwegian University of Science and Technology (NTNU). In this game, you will be able to compete with friends to get the highest score traveling with your chopper through space. SpaceChoppers is developed using the LibGDX framework.
Main menu | Gameplay |
---|---|
This README file will guide you through the process of running and building the SpaceChoppers game in Android Studio.
- Prerequisites
- Running the App in Android Studio
- Building with Gradle
- Known Bugs
Before you start, make sure you have the following software installed on your system:
- Android Studio (version 4.0 or higher)
- Java Development Kit (JDK) 8
- Android SDK (API Level 29 or higher)
- Gradle (version 6.1.1 or higher)
- Kotlin (version 1.3.41 or higher)
To run the app in Android Studio, follow these steps:
- Clone the SpaceChoppers repository to your local machine using Git SSH:
git clone git@github.com:oskarhlm/TDT4240-SpaceChoppers.git
-
Open Android Studio and select "Open an existing Android Studio project" from the welcome screen.
-
Browse to the TDT4240-SpaceChoppers/SpaceChoppers directory you cloned in step 1 and click "Open".
-
Wait for the Android Studio to sync the project and resolve any dependencies.
-
Connect your Android device to your computer or create a new Android Virtual Device (AVD) using the AVD Manager.
-
In the toolbar, select the device you want to run the app on from the device dropdown.
-
Click the green "Run" button (a triangle icon) or press
Shift + F10
to build and run the app on the selected device.
Gradle is the default build system for Android projects and is used to build and package the SpaceChoppers game. You can build the game using the command line or Android Studio.
To build the app using the command line, follow these steps:
-
Open a terminal or command prompt and navigate to the root directory of the SpaceChoppers project.
-
Run the following command to build the app:
./gradlew assembleDebug
- Wait for the build to complete. The generated APK file will be located in the
SpaceChoppers/android/build/outputs/apk/debug
directory.
To build the app using Android Studio, follow these steps:
-
Open the SpaceChoppers project in Android Studio.
-
Click "Build" in the menu bar and then click "Build Bundle(s) / APK(s)" > "Build APK(s)".
-
Wait for the build to complete. The generated APK file will be located in the
SpaceChoppers/android/build/outputs/apk/debug
directory.
- If our servers are down or you are somehow not able to establish a websocket connection, the game will not start.
- If you pass an invalid lobby ID when trying to join a game, the game will provide an error.