Sure! Here's an example of a simple football game implemented as a single HTML file using JavaScript:
This code sets up a canvas element and draws a ball. The ball moves within the canvas boundaries and bounces off the edges. It uses touch input to control player movement (not implemented in this example). You can further expand on this code to add more game logic, player controls, scoring, etc.