I recreated this as well as I could in Scratch I might make smth out of this You can add more mechanics and stuff, or you can make your own fights (I suggest adding more marbles, hp, and attacks since these were js for testing) Make sure to change/make the marble name and add a last marble killed sprite for it if you make another marble.
Credit to Doc Desk for creating Marble Siege, this is just a Scratch recreation of it (specifically the older version) Credit to @griffpatch for the counter and ball physics tutorial