Skip to content

Commit a138a64

Browse files
authored
Fixes, balance, polish. (#53)
* WIP bgf v0.1.8. * Fix Trooper oscillation, pause on focus loss. * Add player death and game over SFX. * bgf update, balance gameplay. * Fixup Hud. * Finalize bgf v0.1.8. Add interact SFX. * Fixup text align, add menu fade-in, display version.
1 parent 8eb8837 commit a138a64

File tree

21 files changed

+268
-53
lines changed

21 files changed

+268
-53
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: ci
2-
on: [push]
2+
on:
3+
push:
4+
branches:
5+
- '*'
36
jobs:
47
format-check:
58
runs-on: ubuntu-latest
@@ -10,17 +13,15 @@ jobs:
1013
- name: check diff
1114
run: .github/format_check_diff.sh
1215
build-linux:
13-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-24.04
1417
steps:
1518
- uses: actions/checkout@v4
1619
- name: init
17-
run: |
18-
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
19-
sudo apt update -yqq && sudo apt install -yqq ninja-build xorg-dev g++-13
20+
run: sudo apt update -yqq && sudo apt install -yqq ninja-build xorg-dev
2021
- name: configure gcc
21-
run: cmake -S . --preset=default -B build -DBAVE_BUILD_SHADERS=OFF -DBAVE_USE_FREETYPE=OFF -DCAPO_USE_OPENAL=OFF -DCMAKE_CXX_COMPILER=g++-13
22+
run: cmake -S . --preset=default -B build -DBAVE_BUILD_SHADERS=OFF -DBAVE_USE_FREETYPE=OFF -DCAPO_USE_OPENAL=OFF
2223
- name: configure clang
23-
run: cmake -S . --preset=default -B clang -DBAVE_BUILD_SHADERS=OFF -DBAVE_USE_FREETYPE=OFF -DCAPO_USE_OPENAL=OFF -DCMAKE_CXX_COMPILER=clang++-15
24+
run: cmake -S . --preset=ninja-clang -B clang -DBAVE_BUILD_SHADERS=OFF -DBAVE_USE_FREETYPE=OFF -DCAPO_USE_OPENAL=OFF
2425
- name: build gcc
2526
run: cmake --build build --config=Release -- -d explain
2627
- name: build clang

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ bave*.log
1616
/spaced
1717
/notes.txt
1818
/local_store
19+
/massif.*

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ include(FetchContent)
1111
FetchContent_Declare(
1212
bgf
1313
GIT_REPOSITORY https://github.com/karnkaul/bgf
14-
GIT_TAG v0.1.7
14+
GIT_TAG v0.1.8
1515
SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ext/bgf"
1616
)
1717

assets/images/ship_trooper.png

316 Bytes
Loading

assets/sfx/crunch.wav

58.5 KB
Binary file not shown.

assets/sfx/interact.wav

23.3 KB
Binary file not shown.

assets/sfx/lose.wav

56.5 KB
Binary file not shown.

assets/styles.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
},
3535
"progress_bars": {
3636
"default": {
37-
"background": "#9f2b68ff",
38-
"fill": "milk",
37+
"background": "#db7a7eff",
38+
"fill": "#9f2b68ff",
3939
"corner_ratio": 0.5,
4040
"padding": 20
4141
},
@@ -81,4 +81,4 @@
8181
"padding": 20
8282
}
8383
}
84-
}
84+
}

src/spaced/spaced/game/enemies/creep.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ Creep::Creep(bave::Services const& services) : Enemy(services, "Creep") {
1313

1414
health = 1.0f;
1515
speed = 100.0f;
16+
points = 10;
1617
}
1718
} // namespace spaced::enemy

src/spaced/spaced/game/enemies/gunner.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ Gunner::Gunner(bave::Services const& services, bave::NotNull<GunKinetic*> gun) :
1313

1414
health = 2.0f;
1515
speed = 120.0f;
16+
points = 20;
1617
}
1718
} // namespace spaced::enemy

0 commit comments

Comments
 (0)