For almost 20 years, Adobe Flash dominated the internet with games, applications, and other audio and video content. Adobe announced they would not longer be supporting Flash by the end of 2020, and many applications have had to be rewritten into HTML5. The "Revenge of the PETA Tomatoes" game was one game in a series of games being rewritten from Flash.
The game is a simple point-and-click game where you click on fur-wearing targets to hit them with tomatoes. Accidentally hitting an animal or child target deducts points. There are 3 levels total, with each level increasing each target's speed. The original game was developed sometime in the mid-90s, so the image assets extracted from the SWF file definitely reflect the time period.
The wave of targets is a looped timeline of tweens that are programmed to pop up at certain intervals. A click-event is set on each of these targets to trigger the tomato-splat frame and increment or decrement the score. A user can beat a level by reaching a score of 9. If they were already on level 3, a "Congratulations" scene is shown and the user can restart the game, if they wish.
This was my first foray into using Phaser 3 and it was an incredibly fun project. It has inspired me to create more Phaser 3‑based HTML5 games on my own time.