-
Notifications
You must be signed in to change notification settings - Fork 0
Add Enemy health bars. #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Use rounded corners for background, shrinking quad as progress.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good!
src/spaced/spaced/scenes/home.cpp
Outdated
@@ -15,6 +17,9 @@ Home::Home(bave::App& app, Services const& services) : Scene(app, services, "Hom | |||
auto const& resources = services.get<Resources>(); | |||
auto const tasks = std::array{ | |||
util::create_font_atlas_task(resources.main_font, {TextHeight{100}, TextHeight{60}}), | |||
std::function<void()>{[] { std::this_thread::sleep_for(1s); }}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's this doing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops this needs to be reverted, nice catch! It's basically test code to "see" the progress bar update when loading the home scene. Since there's only one task we never get to see it move.
20f7a7b
to
7f4688f
Compare
Refactor progress bars to use a single rounded quad as the background, and a shrinking progress quad.
Also balance weapons and enemy HP a bit: buff beam, buff creep HP, nerf kinetic.
Screencap:
recording-2024-03-30_10.48.52.mp4
Close #28