Sure, here's a simple game where you can play as a character running away from a zombie for 30 seconds. The game will be implemented as a single HTML file, enclosed in script tags, and written in JavaScript. Please note that this is a basic implementation and not a full-fledged game.
HTML code:
To play the game, save the HTML code as a `.html` file, and open it in a web browser, preferably on a smartphone. The game will start automatically, and you can use the arrow keys or other controls (you can implement them in the `handleKeyPress` function) to control the player and avoid being caught by the zombie for 30 seconds. If the player survives for 30 seconds, you win, and if the player gets caught by the zombie, the game will end.