-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Consolidate game title. * Read build version from text file. - Rename directory for user data from "spaced' to "userdata". * Add menu music, replace game music: light jazz theme. * Add tools/build_release.cmake. * Move assets to assets/assets, in prep for CLI zipping. * Fixup release package script. * Add package CI on "v*" tag push. * Customize log filename. * Add windows app icon. * Add Android icon. * Add Android package step. * Add Play Store BS. * Add screenshot to README. * Update README. [Android] minify release builds.
- Loading branch information
Showing
99 changed files
with
458 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: package | ||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
jobs: | ||
package-linux: | ||
runs-on: ubuntu-24.04 | ||
env: | ||
PACKAGE_NAME: NovaSwarm-x64-linux-v0.1.0.zip | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: init | ||
run: sudo apt update -yqq && sudo apt install -yqq ninja-build xorg-dev libpulse-dev libkpipewire-dev | ||
- name: package release | ||
run: cmake -DPACKAGE_NAME=${{ env.PACKAGE_NAME }} -P tools/package_release.cmake | ||
- name: upload release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: ${{ env.PACKAGE_NAME }} | ||
draft: true | ||
fail_on_unmatched_files: true | ||
package-windows: | ||
runs-on: windows-latest | ||
env: | ||
PACKAGE_NAME: NovaSwarm-x64-windows-v0.1.0.zip | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: package release | ||
run: cmake -DPACKAGE_NAME="${{ env.PACKAGE_NAME }}" -P tools/package_release.cmake | ||
- name: upload release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: ${{ env.PACKAGE_NAME }} | ||
draft: true | ||
fail_on_unmatched_files: true | ||
package-android: | ||
env: | ||
PACKAGE_NAME: NovaSwarm-arm64-android-v0.1.0.apk | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: init | ||
run: | | ||
wget https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.tar.gz | ||
tar xvzf jdk-17_linux-x64_bin.tar.gz -C /opt | ||
- name: build APK | ||
run: | | ||
export JAVA_HOME=$(find /opt -name "jdk-17.*") | ||
cd src/android | ||
./gradlew assembleRelease | ||
mv app/build/outputs/apk/release/app-release-unsigned.apk ../../$PACKAGE_NAME | ||
- name: upload release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: ${{ env.PACKAGE_NAME }} | ||
draft: true | ||
fail_on_unmatched_files: true | ||
package-macos: | ||
runs-on: macos-latest | ||
env: | ||
CPU_ARCH: arm64 | ||
OS_NAME: macos | ||
PACKAGE_NAME: NovaSwarm-arm64-macos-v0.1.0.zip | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: init | ||
run: brew install ninja | ||
- name: package release | ||
run: cmake -DPACKAGE_NAME=${{ env.PACKAGE_NAME }} -P tools/package_release.cmake | ||
- name: upload release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: ${{ env.PACKAGE_NAME }} | ||
draft: true | ||
fail_on_unmatched_files: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,60 @@ | ||
# spaced | ||
# Nova Swarm | ||
|
||
**A 2D space shooter game, homage to Space Impact** | ||
|
||
[](https://github.com/cpp-gamedev/spaced/actions/workflows/ci.yml) | ||
|
||
 | ||
|
||
## Running the game | ||
|
||
### Requirements | ||
|
||
1. GPU that supports Vulkan 1.1+. | ||
1. Vulkan 1.1+ loader (driver). | ||
1. Windows: | ||
1. x64 (64 bit Intel/AMD). | ||
1. Windows 10+. | ||
1. Latest Visual C++ runtime. | ||
1. GNU/Linux: | ||
1. x64 (64 bit Intel/AMD). | ||
1. libstdc++6 or newer. | ||
1. MacOS (experimental): | ||
1. arm64 (64 bit ARM). | ||
1. Vulkan SDK must be installed globally. | ||
1. Android: | ||
1. arm64 (64 bit ARM) or x64 (64 bit Intel/AMD). | ||
|
||
*Note: Adreno GPUs on Android seem to have driver bugs that cause rendering artifacts and can sometimes crash the app.* | ||
|
||
### Steps | ||
|
||
1. Download the latest release from the [releases page](https://github.com/cpp-gamedev/spaced/releases). | ||
2. Unzip to a desired location / install the APK. | ||
3. Run the app. | ||
|
||
*Note: executable binaries in releases are not signed.* | ||
|
||
## Building the source | ||
|
||
### Requirements | ||
|
||
In addition to runtime requirements: | ||
|
||
1. C++20 compiler and standard library. | ||
1. CMake 3.22+. | ||
1. Git. | ||
|
||
### Steps | ||
|
||
1. Clone this repo locally. | ||
1. Use an IDE / the command line to choose a compatible CMake preset or configure a build manually. First-time configuration takes some time to complete. | ||
1. Build and run/debug. | ||
|
||
## Attribution | ||
|
||
See [attribution.txt](attribution.txt). | ||
|
||
## Contributing | ||
|
||
Contributions are welcome via PRs. |
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
assets/particles/exhaust.json → assets/assets/particles/exhaust.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
assets/particles/explode.json → assets/assets/particles/explode.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
assets/particles/powerup.json → assets/assets/particles/powerup.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
SpaceShooterRedux: https://opengameart.org/content/space-shooter-redux, https://www.kenney.nl | ||
sfx/beam_fire.wav: https://opengameart.org/content/laser-rifle | ||
sfx/swish.wav: https://opengameart.org/content/battle-sound-effects | ||
music/menu.mp3: https://opengameart.org/content/trouble-makers-coolriff-jazz | ||
music/game.mp3: https://opengameart.org/content/shake-and-bake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Nova Swarm does not collect any user data. It stores user preferences, play progression, and app statistics locally. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions
5
src/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<background android:drawable="@color/ic_launcher_background"/> | ||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/> | ||
</adaptive-icon> |
5 changes: 5 additions & 0 deletions
5
src/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<background android:drawable="@color/ic_launcher_background"/> | ||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/> | ||
</adaptive-icon> |
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
src/android/app/src/main/res/mipmap-anydpi/ic_launcher_round.xml
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+2.07 KB
(170%)
src/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp
Binary file not shown.
Binary file modified
BIN
+784 Bytes
(180%)
src/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+1.17 KB
(170%)
src/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+8.06 KB
src/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp
Binary file not shown.
Binary file modified
BIN
+3.01 KB
(180%)
src/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
Binary file not shown.
Binary file modified
BIN
+3.09 KB
(210%)
src/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp
Binary file not shown.
Binary file added
BIN
+14.6 KB
src/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp
Binary file not shown.
Binary file modified
BIN
+5.35 KB
(190%)
src/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
Binary file not shown.
Binary file modified
BIN
+4.69 KB
(230%)
src/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
Binary file not shown.
Binary file added
BIN
+22.6 KB
src/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp
Binary file not shown.
Binary file modified
BIN
+8.08 KB
(210%)
src/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
Binary file not shown.
4 changes: 4 additions & 0 deletions
4
src/android/app/src/main/res/values/ic_launcher_background.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="ic_launcher_background">#A27EE5</color> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<resources> | ||
<string name="app_name">Spaced</string> | ||
<string name="app_name">Nova Swarm</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
IDI_APPLICATION ICON "icon.ico" |
Binary file not shown.
Oops, something went wrong.