I developed a simple 2d web-based game like Angry Birds using Javascript, Cocos2d, HTML5 and Box2d about ten years ago for a Cocos2d game-making tutorial for my students.
To play the game, click on the About section link or download the project and open the index.html file in your browser. Have fun 🤗