Sure, here's an example of a simple Spiderman 2D game implemented as a single HTML file using JavaScript:
Note: This is a simplified example and does not include graphical representations. You would need to replace the image sources with actual image files ('emozi_bear.png', 'emozi_all/enemy.png', 'emozi_all/enemy.png') and define their dimensions appropriately. Additionally, you can further enhance the game with more features and graphics if desired.