mirror of
https://github.com/NickTheFox99/ChristmOS.git
synced 2026-06-28 16:55:11 -04:00
Resize game for better visual clarity / looks
This commit is contained in:
BIN
assets/tree.png
BIN
assets/tree.png
Binary file not shown.
|
Before Width: | Height: | Size: 9.8 KiB After Width: | Height: | Size: 4.2 KiB |
@@ -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
|
||||
|
||||
@@ -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++;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user