No Game Engine Game Dev: Word Sleuth 012: Screen size independent layout and timers

4 months ago
16

Streamed on 2024-07-10 (https://www.twitch.tv/thediscouragerofhesitancy)

Game Engines are for sissies!

Most of the stream was spent laying out the scenes to handle the different screen sizes. Over a couple of refactors, we ended up with a code flow that was reasonably readable and applicable to all three scenes currently in use (MainMenu, Settings, Game). While working on this we updated the MainMenu to have an arrow point to the selected game mode instead of graying out text and fixed a small bug with the Settings not starting with the correct resolution indicated.

With the remaining time we modified some old code I had included in the project ages ago: EggTimer and Stopwatch. They now use game time and are being used in Action, Animation and GameScene.

At the end we found one new bug and there are still two places we need to use the new Timers, so that will be tomorrow's chore.

Loading comments...