Resize game for better visual clarity / looks

This commit is contained in:
Maple Redleaf
2025-12-18 12:31:00 -06:00
parent 992907dfad
commit 5f079d45a3
4 changed files with 12 additions and 12 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.8 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@@ -17,15 +17,15 @@ const int INV_HORMOVE_CHANCE = 5;
namespace Lights { namespace Lights {
const int MAX_CYCLE_FRAMES = 30; const int MAX_CYCLE_FRAMES = 30;
const std::array<Vector2, 9> POSITIONS{{{112, 68}, const std::array<Vector2, 9> POSITIONS{{{28, 17},
{144, 60}, {36, 15},
{196, 64}, {49, 16},
{88, 124}, {22, 31},
{136, 124}, {34, 31},
{244, 120}, {61, 30},
{236, 168}, {59, 42},
{112, 112}, {28, 28},
{188, 116}}}; {47, 29}}};
const raylib::Color col1 = raylib::Color::Green(); const raylib::Color col1 = raylib::Color::Green();
const raylib::Color col2 = raylib::Color::Red(); const raylib::Color col2 = raylib::Color::Red();
} // namespace Lights } // namespace Lights

View File

@@ -9,7 +9,7 @@ Manager::Manager() {
lights.reserve(POSITIONS.size()); lights.reserve(POSITIONS.size());
for (const auto &position : POSITIONS) { for (const auto &position : POSITIONS) {
lights.emplace_back(new Light( lights.emplace_back(new Light(
position, col1, col2, 4, position, col1, col2, 2,
(cycle % 2 == 0) ? LightState::color1 : LightState::color2, 0)); (cycle % 2 == 0) ? LightState::color1 : LightState::color2, 0));
cycle++; cycle++;
} }

View File

@@ -30,7 +30,7 @@ Snow::Manager sMgr;
Lights::Manager lMgr; Lights::Manager lMgr;
int main(void) { int main(void) {
window.SetMinSize({320, 240}); window.SetMinSize({SCREEN_WIDTH, SCREEN_HEIGHT});
window.SetTargetFPS(60); window.SetTargetFPS(60);
window.SetExitKey(KEY_BACKSPACE); window.SetExitKey(KEY_BACKSPACE);
@@ -61,8 +61,8 @@ void MainLoop() {
{ {
// ClearBackground(BLACK); // ClearBackground(BLACK);
DrawTexture(tree, 0, 0, raylib::Color::White()); DrawTexture(tree, 0, 0, raylib::Color::White());
sMgr.Draw();
lMgr.Draw(); lMgr.Draw();
sMgr.Draw();
} }
target.EndMode(); target.EndMode();