Sure, here's an example of a simple game using JavaScript and HTML, based on your description:
In this game, the player is represented by a blue square, and the zombies are represented by red squares. The player can move using the arrow keys and hide under the table using the space key. If the player collides with a zombie, the game is over and an alert message appears.