diff --git a/as6/Entities.cpp b/as6/Entities.cpp index fbfecc3..be4bdae 100644 --- a/as6/Entities.cpp +++ b/as6/Entities.cpp @@ -35,7 +35,14 @@ std::shared_ptr CreateProbe() { if (!transform) { return; } - DrawCircleV({transform->get().x, transform->get().y}, 7.0f, Color{250, 244, 227, 255}); + + const Color PROBE_COLOR = Color{120, 210, 255, 255}; + const Color PROBE_HIGHLIGHT = Color{255, 255, 255, 120}; + + DrawCircleV({transform->get().x, transform->get().y}, 7.0f, PROBE_COLOR); + + DrawCircleV({transform->get().x - 1, transform->get().y - 1}, 3.0f, + PROBE_HIGHLIGHT); }; return e; } @@ -71,7 +78,7 @@ std::shared_ptr CreateStar(float x, float y) { auto &scrollable = e->AddComponent(); scrollable.worldX = x; auto &collider = e->AddComponent(); - collider.radius = 6.0f; + collider.radius = 12.0f; e->AddComponent(); auto &render = e->AddComponent(); @@ -80,7 +87,11 @@ std::shared_ptr CreateStar(float x, float y) { if (!transform) { return; } - DrawCircleV({transform->get().x, transform->get().y}, 6.0f, Color{255, 223, 86, 255}); + Vector2 center = {transform->get().x, transform->get().y}; + Color STAR_COLOR = Color{255, 223, 86, 255}; + Color GLOW_COLOR = Color{255, 223, 86, 120}; + DrawCircleV(center, 12.0f, GLOW_COLOR); + DrawPoly(center, 3, 4.0f, transform->get().x, STAR_COLOR); }; return e; } @@ -151,8 +162,12 @@ std::shared_ptr CreateNullZone(float x, float width) { return; } - DrawRectangle(static_cast(transform->get().x), 0, static_cast(zone->get().width), + int x = (int)(transform->get().x); + + DrawRectangle(x, 0, (int)(zone->get().width), GetScreenHeight(), Color{96, 64, 146, 80}); + + DrawText("Null Zone", x + 8, 12, 16, Color{96, 64, 146, 200}); }; return e; } diff --git a/as6/components/NullZoneComponent.hpp b/as6/components/NullZoneComponent.hpp index 6512025..52e21b1 100644 --- a/as6/components/NullZoneComponent.hpp +++ b/as6/components/NullZoneComponent.hpp @@ -6,7 +6,7 @@ * Defines a vertical strip where gravity pull is disabled. */ struct NullZoneComponent : public Component { - float width = 70.0f; + float width = 120.0f; void Setup() override; void Update(float dt) override; diff --git a/as6/scene/GameplayScene.cpp b/as6/scene/GameplayScene.cpp index 747f608..14f9a2e 100644 --- a/as6/scene/GameplayScene.cpp +++ b/as6/scene/GameplayScene.cpp @@ -32,7 +32,7 @@ void GameplayScene::Enter() { entities.push_back(CreateProbe()); entities.push_back(CreateStar(900.0f, 120.0f)); entities.push_back(CreateAsteroid(1100.0f, 330.0f)); - entities.push_back(CreateNullZone(1280.0f, 70.0f)); + entities.push_back(CreateNullZone(1280.0f, 120.0f)); entities.push_back(CreateHUD()); if (auto meter = entities.back()->GetComponent()) {