Skip to content

Commit 110f50e

Browse files
authored
Merge pull request #385 from OneLoneCoder/develop
How to really frustrate Moros
2 parents 7f266f3 + b3fc0aa commit 110f50e

File tree

2 files changed

+324
-96
lines changed

2 files changed

+324
-96
lines changed

extensions/olcPGEX_SplashScreen.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ namespace olc
165165
for (int y = 0; y < spr.Sprite()->height; y++)
166166
for (int x = 0; x < spr.Sprite()->width; x++)
167167
vBoom[y * spr.Sprite()->width + x] = std::make_pair(
168-
vPosition + olc::vf2d(x, y),
168+
vPosition + olc::vf2d(float(x), float(y)),
169169
olc::vf2d(
170170
(float(rand()) / float(RAND_MAX)) * 10.0f - 5.0f,
171171
(float(rand()) / float(RAND_MAX)) * 10.0f - 5.0f)
@@ -207,7 +207,7 @@ namespace olc
207207
bComplete = true;
208208
}
209209

210-
pge->DrawPartialDecal(vScale * vBoom[y * spr.Sprite()->width + x].first * 2.0f, spr.Decal(), olc::vf2d(x, y), { 1, 1 }, vScale * 2.0f, olc::PixelF(1.0f, 1.0f, 1.0f, std::min(1.0f, std::max(4.0f - fParticleTime, 0.0f))));
210+
pge->DrawPartialDecal(vScale * vBoom[y * spr.Sprite()->width + x].first * 2.0f, spr.Decal(), olc::vf2d(float(x), float(y)), { 1, 1 }, vScale * 2.0f, olc::PixelF(1.0f, 1.0f, 1.0f, std::min(1.0f, std::max(4.0f - fParticleTime, 0.0f))));
211211
}
212212

213213
olc::vi2d vSize = pge->GetTextSizeProp("Copyright OneLoneCoder.com 2024");

0 commit comments

Comments
 (0)