You are browsing as a guest. Sign up (or log in) to start making projects!

27m 1s logged

RetroOS Dev Log #3 — Game Fixes & ImprovementsAll 7 games got a round of bug fixes, a tutorial system, and event listener cleanup.Event Listener Leaks FixedEvery game was leaking keydown and setInterval handlers when the window closed. If you opened Snake, played a bit, closed it, then opened it again — you’d have two game loops running simultaneously. Fixed by adding proper destroy() methods to every game that clean up intervals and remove keyboard listeners on window close.Tutorial SystemAdded a first-time “HOW TO PLAY” overlay for each game. Shows control instructions when you open a game for the first time, with a “GOT IT!” button. Uses localStorage to remember which tutorials you’ve seen, so they only appear once. Fixed a bug where the GOT IT button was replacing the entire overlay innerHTML instead of appending — the tutorial layer now sits on top of the game overlay without destroying it.Game-Specific FixesTetris — Fixed a speed scaling bug caused by a const closure in the interval callback. Level progression now correctly adjusts speed (50ms at max, scaling down from 500ms). Hard drop scoring fixed.Pong — Fixed keyboard controls bleeding between windows. Added focus management so arrow keys don’t scroll the page. Prevented default key behavior during gameplay. AI paddle smoothing adjusted for more natural movement.Snake — Fixed game-over overlay not rendering properly. Cleaned up interval cleanup on close. Speed increase now properly floors at 60ms minimum.Breakout — Fixed ball getting stuck in infinite bounce loops at edge cases. Brick collision now uses minimum overlap detection for correct directional bounce. Side panel layout fixed for smaller screens.Minesweeper — Fixed first-click mine placement to guarantee a safe 3x3 starting area. Win detection now correctly counts unrevealed cells vs mine count.2048 — Fixed tile merge logic preventing double-merges in a single move. Win overlay now shows without blocking continued play.Flappy Bird — Fixed pipe spawning overlap on fast refresh. Added state machine to prevent movement before first flap. Touch event support added for mobile.

0
3

Comments 0

No comments yet. Be the first!