Battle Cats, but it's Sonic.exe! Click the buttons when you have enough money for the characters! Double click the flag after a victory/loss because the shop and its character icons are a bit buggy.
I gotta give props to Palethorn/Futures Lab for making this great tutorial for how to make a Battle Cats styled game! Credit to Looneydude for making the masterpiece that is Sunky