# Space Game

📝 Level Editor ⚙️ Settings
Loading...

## 🎮 How to Play

### VR Controllers (Required for VR)

- Left Thumbstick: Move forward/backward and yaw left/right
- Right Thumbstick: Pitch up/down and Roll left/right
- Front Trigger: Fire weapon

### Desktop Controls (Preview Mode)

- W/S: Move forward/backward
- A/D: Yaw left/right
- Arrow Keys: Pitch up, down
- Space: Fire weapon

⚠️ Note: This game is designed for VR headsets with controllers. Desktop controls are provided for preview and testing purposes only.

# Select Your Level

+ Create New Level
← Back to Game

# 🚀 Level Editor

Configure and generate custom level configurations

## Difficulty Presets

## ⚙️ Basic Settings

Level Name
Difficulty
Author (Optional)
Description (Optional)

## 🚀 Ship

Position
X
Y
Z

## 🎯 Start Base

Position
X
Y
Z
Diameter
Height

## ☀️ Sun

Position
X
Y
Z
Diameter

## 🪐 Planets

Count
Min Diameter
Max Diameter
Min Distance from Sun
Max Distance from Sun

## ☄️ Asteroids

Count
Force Multiplier
Controls asteroid speed
Min Size
Max Size
Min Distance
Distance from start base
Max Distance

## 💾 Saved Levels

## Generated JSON

You can edit this JSON directly and save your changes.

← Back to Game

# ⚙️ Game Settings

Configure graphics quality and physics settings

## ⚛️ Physics

Disabling physics can significantly improve performance but will prevent gameplay.

Enable Physics
Required for collisions, shooting, and asteroid movement. Disabling this will prevent gameplay but may help with debugging or viewing the scene.

## 🐛 Developer

Enable debug logging to console for troubleshooting and development.

Enable Debug Logging
When enabled, debug messages will be shown in the browser console. Useful for development and troubleshooting issues.

## 🚀 Ship Physics

Advanced tuning parameters for ship movement and handling. Adjust these to customize how the ship responds to controls.

Max Linear Velocity
Maximum forward/backward speed of the ship. Higher values allow faster movement.
Max Angular Velocity
Maximum rotation speed of the ship. Higher values allow faster turning.
Linear Force Multiplier
Acceleration power for forward/backward thrust. Higher values = faster acceleration.
Angular Force Multiplier
Torque power for rotation. Higher values = faster rotational acceleration.

## ℹ️ Quality Level Guide

Wireframe: Minimal rendering, shows mesh structure only. Best for debugging or very low-end devices.

Simple Material: Basic solid colors without textures. Good performance with basic visuals.

Full Texture: Standard textures with procedural generation. Recommended for most users.

PBR Texture: Physically-based rendering with enhanced materials. Best visual quality but higher GPU usage.

## 💾 Storage Info

Settings are automatically saved to your browser's local storage and will persist between sessions.

⚠️ Note: Changes will take effect when you start a new level. Restart the current level to see changes.