Skip to content

Commit 1d0ba12

Browse files
committed
.
1 parent 8a51818 commit 1d0ba12

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

pczero.img

24 Bytes
Binary file not shown.

src/game.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ class Game {
7878
inline static Count enemies_alive{};
7979
inline static Point boss_pos{20, 60};
8080
inline static Vector boss_vel{10, 0};
81+
inline static Vector boss_acc{0, 9};
8182

8283
static auto is_in_play_area(const Point& p) -> bool {
8384
return !(p.x >= Coord(play_area_top_left.x + play_area_dim.width()) ||
@@ -538,6 +539,7 @@ auto Game::create_boss() -> void {
538539
}
539540
o->phy().position = boss_pos;
540541
o->phy().linear_velocity = boss_vel;
542+
o->phy().acceleration = boss_acc;
541543
o->phy().angular_velocity = deg_to_rad(25);
542544
}
543545

0 commit comments

Comments
 (0)