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

View File

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

View File

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