1 parent 8a51818 commit 1d0ba12Copy full SHA for 1d0ba12
2 files changed
pczero.img
24 Bytes
src/game.hpp
@@ -78,6 +78,7 @@ class Game {
78
inline static Count enemies_alive{};
79
inline static Point boss_pos{20, 60};
80
inline static Vector boss_vel{10, 0};
81
+ inline static Vector boss_acc{0, 9};
82
83
static auto is_in_play_area(const Point& p) -> bool {
84
return !(p.x >= Coord(play_area_top_left.x + play_area_dim.width()) ||
@@ -538,6 +539,7 @@ auto Game::create_boss() -> void {
538
539
}
540
o->phy().position = boss_pos;
541
o->phy().linear_velocity = boss_vel;
542
+ o->phy().acceleration = boss_acc;
543
o->phy().angular_velocity = deg_to_rad(25);
544
545
0 commit comments