BUG FIX – Game Picker Filtered Listing

Category: | Posted on:January 11, 2022
gamepickerfix

Before the holiday I noticed that the game listing in the Game Picker 9000 didn’t clear on submission. If the user performed a submission with the box unchecked, then checked the box and submitted again, the result would have both played and unplayed games in the listing. In order for the filter to work properly, you’d have to refresh the browser every time you toggled the checkbox. Thankfully the solution turned out to be a one-line fix. Emptying the outputList element at the top of each list generation ensures that the only results are games from the freshest API pull.

 

Tags:

Related Logs


  • NEW PROJECT – Centipede

    February 13, 2025

    CentipedeĀ is a bare-bones facsimile of the classic arcade game of the same name. Objective Continuing my exploration of Game Development with the Javascript Canvas API, I moved onto Centipede mostly by accident. Once again I avoided tutorials in order to try and work through the logic myself. The key goal with this game was handling […]

    Continue Reading
  • UPDATE – Space Invaders

    January 28, 2025

    Quick presentational update to the Space Invaders project. Keep Shields Centered On Hit Shields will now automatically maintain a centered position when hit my an alien missile. I initially thought this was going to involve some math to determine whether the missile hit on the right or left side. I even put together a formula […]

    Continue Reading
  • NEW PROJECT – Space Invaders

    January 27, 2025

    Space Invaders is a bare-bones facsimile of the classic arcade game of the same name. Objective I wanted to take what I learned from the Asteroids Tutorial in my last project and iterate without the training wheels this time. Space Invaders has more lateral movement from the player and hostiles than in Asteroids, and has […]

    Continue Reading