Sure! Here's a single HTML file containing the game you described:
🐘
🐱
Health: 40
To play the game, simply open the HTML file in a browser on your smartphone. When you touch the angry elephant (`
🐘`), it will lose 12 health points (`
❤️`). Once it reaches 0 health, the elephant will disappear. On the top right, the health of the elephant (initially 40) will be shown. When you touch the elephant, the cat (`
🐱`) will appear and make the elephant lose 12 health points (`
❤️`). The cat will attack with a scaling animation. The elephant will respawn after 5 seconds with full health.