Sure, here's a simple game written in HTML and JavaScript:
To play the game, simply copy the above code into a single HTML file (e.g., `game.html`) and open it with a web browser. The game will be displayed on the browser window and you can control the player using the right and left arrow keys. The objective is to avoid the falling poo by moving the player left or right. If the poo reaches the top and hits the player, you win by successfully "pooping" on Peter Griffin. Otherwise, you lose and have to make Peter a pumpkin pie.