Sure, here is an example of a simple ping pong game implemented in a single HTML file using JavaScript:
This code creates a simple game where a red ball bounces around inside a grey box. The ball's position is updated every 10 milliseconds, causing it to move around the box. You can view and play this game in any modern web browser on a smartphone by copying and pasting the code into an HTML file.