Sure! Here's a game written in HTML and JavaScript that follows the scenario you described:
To play the game, you can copy the above code and save it in a single HTML file, then open the file in a web browser on your smartphone. The game will start, and you can use the left and right arrow keys (or corresponding touchscreen controls, if available) to move the player and avoid the obstacles (rabid credit cards). The player's goal is to reach the "Flex Tower" obstacles to earn points, while avoiding collision with the "Rabid Credit Card" obstacles. The game will end if the player collides with a rabid credit card. The final score will be displayed, and the game can be restarted by reloading the page.