rubyrpg / ruby_rpg

Ruby based game engine
6 stars 0 forks source link

Improve debugging, introduces `Engine::Window` + `Engine::Cursor` #11

Closed GetOutOfMyBakery closed 2 months ago

GetOutOfMyBakery commented 3 months ago

What

Adds:

Why

When I'm on my laptop, with a single screen, I can't hit a breakpoint and tab away from the running game. By making it easy to switch to windowed mode (and/or handling it by default when hitting a breakpoint) I can now switch between running the engine and debugging.

[!TIP] It's easy to override the default height/width/fullscreen state:

Engine::Window::MAX_WIDTH = 1440
Engine::Window::MAX_HEIGHT = 900
Engine::Window::WINDOWED_WIDTH = 1200
Engine::Window::WINDOWED_HEIGHT = 800
Engine::Window::FULL_SCREEN = false