Renaming Engine.screen_{height,width} -> Window.framebuffer_{height,width}:
Dropped Engine.screen_{height,width} since it was just pointing to Window.screen_{height,width}.
Window.screen_{height,width} is actually framebuffer_{height,width}, so I've updated this throughout accordingly, and made them attr_readers on Engine::Window.
Added window and framebuffer dimensions to Asteroids onscreen debugger:
This helps demonstrate the difference between framebuffer dimensions and window dimensions.
Renaming update_screen_size -> get_framebuffer_size
More accurately reflects what the method is doing.
What
Engine.screen_{height,width}
->Window.framebuffer_{height,width}
: DroppedEngine.screen_{height,width}
since it was just pointing toWindow.screen_{height,width}
.Window.screen_{height,width}
is actuallyframebuffer_{height,width}
, so I've updated this throughout accordingly, and made themattr_reader
s onEngine::Window
.update_screen_size
->get_framebuffer_size
More accurately reflects what the method is doing.Setting things up for:
18