Sure! Here is an example of a simple 3D game exploration using JavaScript enclosed in script tags within a single HTML file:
This code creates a simple canvas-based game where the player can move a blue square around using arrow keys. You can further expand and customize this game to include 3D space exploration by adding more complex graphics and functionalities. Happy coding!