25#define ORB_BASE_RADIUS 120.0f
26#define ORB_SPEED_MIN 15.0f
27#define ORB_SPEED_MAX 35.0f
31#define M_PI 3.14159265358979323846f
35#define BLUR_ALPHA_CENTER 100
36#define BLUR_ALPHA_OFFSET 50
39#define BLOOM_ALPHA_BLUR 180
40#define BLOOM_ALPHA_PLASMA 120
41#define BLOOM_ALPHA_LOGO 255
148 SYSTEM_LOG <<
"OlympeEffectSystem: Failed to load logo texture\n";
173 SYSTEM_LOG <<
"OlympeEffectSystem initialized\n";
198 orb.position.y +=
orb.velocity.y * deltaTime;
201 orb.pulsePhase +=
orb.pulseSpeed * 2.0f *
M_PI * deltaTime;
213 const float margin =
orb.radius;
216 if (
orb.position.x < margin)
218 orb.position.x = margin;
221 else if (
orb.position.x > width - margin)
223 orb.position.x = width - margin;
228 if (
orb.position.y < margin)
230 orb.position.y = margin;
233 else if (
orb.position.y > height - margin)
235 orb.position.y = height - margin;
273 int cx =
static_cast<int>(
orb.position.x);
274 int cy =
static_cast<int>(
orb.position.y);
335 SDL_FRect topRect = {0, -
static_cast<float>(
offset),
static_cast<float>(width),
static_cast<float>(height)};
376 SDL_FRect logoRect = {(width - 300.0f) / 2.0f, (height - 121.0f) / 2.0f, 300.0f, 121.0f};
ComponentTypeID GetComponentTypeID_Static()
CameraTransform GetActiveCameraTransform(short playerID)
#define BLUR_ALPHA_CENTER
#define BLUR_ALPHA_OFFSET
static DataManager & Get()
Sprite * GetSprite(const std::string &id, const std::string &path, ResourceCategory category=ResourceCategory::GameEntity)
static int screenWidth
Screen width in pixels.
static float fDt
Delta time between frames in seconds.
static int screenHeight
Screen height in pixels.
static SDL_Renderer * renderer
Main SDL renderer.
virtual void Process() override
virtual void Render() override
virtual ~OlympeEffectSystem()
void Draw_Circle(int cx, int cy, int radius)
void UpdateOrbs(float deltaTime)
SDL_Texture * bloomTexture
SDL_Texture * blurTexture1
SDL_Texture * logoTexture
SDL_Color GeneratePlasmaColor(int index)
SDL_Texture * backgroundTexture
SDL_Texture * blurTexture2
SDL_Texture * plasmaTexture
void BounceOffEdges(GlowOrb &orb)