Sure! Here's an example of a simple game where you can control a cube sliding across the screen to beat different levels. The cube will move when you swipe on the screen.
This game uses simple div elements to represent the cube, obstacles, and levels. The cube is controlled by swiping on the screen. Each level includes an obstacle that the player needs to avoid. If the player collides with an obstacle, they lose the level and have to restart. Once the player reaches the end of a level, they move on to the next level. Additional levels can be implemented following the structure provided.