Castles.cc (Cubic Castles) - Sandbox MMO Building Game

Seele01-Flash
By
Castles.cc (Cubic Castles) is a free-to-play sandbox MMO where players build worlds, mine resources, craft items, and explore with friends. Featuring character customization, trading, and PvP battles in a vibrant cubic universe.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Cubic Castles: Pocket Builder". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: "Soft Voxel" aesthetic. Unlike traditional Minecraft, the world should feel slightly more cartoonish. Use bright, high-saturation colors (Sky Blue, Grass Green, Dirt Brown). * **Character Model**: A "Cubie" protagonist - a simple white, blocky humanoid character with large black eyes (inspired by the logo). Use simple geometric primitives (BoxGeometry) grouped together. * **World Generation**: A flat floating island (chunk) composed of voxel blocks (1x1x1 units). * **Textures/Materials**: Use flat shading or simple colors to reduce texture load. * **Optimization**: Crucial for mobile performance. Use **`THREE.InstancedMesh`** for rendering the terrain blocks (Grass, Dirt, Stone, Wood) to handle high object counts with low draw calls. * **Skybox**: A bright blue background with a subtle "sunburst" radial gradient effect to match the promotional art style. * **Lighting**: HemisphereLight for soft ambient illumination + DirectionalLight (Sun) casting soft shadows. ### 2. Audio Requirements * **BGM**: A cheerful, looping "Chiptune-meets-Orchestral" track. It should feel bouncy and creative (approx. 120 BPM). * **Sound Effects (SFX)**: * **Footsteps**: Soft "tap-tap" sounds varying slightly in pitch. * **Jump**: A cartoonish "whoosh" or spring sound. * **Block Place**: A satisfying, high-pitched "pop" or "bloop". * **Block Break**: A crunchy "crumble" sound. * **UI Interaction**: Soft clicks for inventory selection. ### 3. Gameplay Loop * **Core Mechanic**: A Third-Person Sandbox experience combining Parkour and Building. * **Action Modes**: 1. **Exploration Mode**: The player moves the Cubie character around the island. Physics should apply (gravity, collision with blocks). 2. **Edit Mode**: The player can add or remove blocks within a limited reach distance. * **Inventory System**: A simple "Hotbar" at the bottom of the screen allowing the player to select between 4-5 block types (Grass, Stone, Wood, Brick, Glass). * **Goal**: There is no "win" state. The goal is creative freedom to build structures or parkour courses. * **Physics**: Simple AABB (Axis-Aligned Bounding Box) collision detection for the player against the voxel grid to prevent falling through the world. ### 4. Mobile Controls & Interaction * **Screen Orientation**: **Landscape** (Force landscape if possible via CSS/Meta tags). * **Movement (Left Hand)**: A translucent **Virtual Joystick** on the bottom-left. Controls movement on the X/Z plane. * **Camera/Action (Right Hand)**: * **Swipe area**: Swipe anywhere on the right half of the screen to rotate the Third-Person Camera around the character. * **Jump Button**: A distinct circular button on the bottom-right for jumping. * **Building Interaction**: * **Raycasting**: A reticle (crosshair) in the center of the screen shows where the player is aiming. * **Action Buttons**: Two smaller buttons near the Jump button: 1. **"Break" (Hammer icon)**: Destroys the highlighted block. 2. **"Place" (Plus icon)**: Places the selected block type adjacent to the highlighted face. * **UI Scaling**: All buttons must be large enough for touch targets (min 48px), with semi-transparent backgrounds to not obscure the view. Visual feedback (button scale down) on press is required. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Castles.cc (Cubic Castles) is an expansive open-world sandbox MMO that combines the creativity of world-building with the excitement of multiplayer adventures. In this cubic universe, players can construct their dream worlds, mine valuable resources, craft powerful items, and engage with a thriving community of builders and explorers.

The game offers unlimited creative freedom where your imagination is the only boundary. Whether you want to build towering castles, create intricate farms, or design elaborate parkour courses, Castles.cc provides all the tools needed to bring your visions to life.

Core Features

Complete World Building Freedom

Shape entire landscapes to match your vision. Terraform mountains, dig vast underground networks, or create floating islands in the sky. The game's advanced building system allows for complex architectural designs and detailed world creation.

Character Customization System

Create your unique avatar with extensive customization options. Browse the Cubit store for hats, shirts, pants, wings, and countless accessories to express your personal style. Stand out in the community with your distinctive look.

Resource Mining and Crafting

Explore diverse biomes including forests, deserts, mountain ranges, arctic landscapes, and tropical islands. Each environment offers unique resources for crafting specialized items and tools. Master the crafting system to create everything from basic tools to advanced machinery.

Multiplayer Trading Economy

Engage in a player-driven economy where you can trade resources, crafted items, and rare materials with other players. Build shops, establish trade routes, and become a merchant tycoon in the cubic world.

Action-Packed PvP Combat

Beyond building, engage in thrilling PvP wand battles with other players. Test your combat skills and strategic thinking in intense magical duels across various arenas.

Racing and Vehicles

Drive cars freely across your worlds or compete in organized races. Create custom race tracks and challenge friends to high-speed competitions through your elaborate course designs.

Game Mechanics

Open World Exploration

The game world is vast and constantly expanding with new areas to discover. Each biome contains unique challenges, hidden secrets, and special resources that encourage exploration and adventure.

Farm and Agriculture Systems

Develop sustainable food sources by creating farms with various crops. Manage agricultural operations to support your building projects and trade surplus with other players.

Roleplay Opportunities

Join or create roleplaying communities within the game. Take on different personas, participate in community events, and create stories with fellow players in this social sandbox environment.

Operation Guide

Controls are intuitive and accessible: - WASD keys or Arrow keys : Character movement - Mouse : Camera control and interaction - Left Click : Build, mine, and interact with objects - Right Click : Access context menus and advanced options - Inventory hotkeys : Quick access to tools and building materials

The game features comprehensive tutorials that guide new players through basic mechanics, building techniques, and advanced features progressively.

Why Play Castles.cc

Free-to-Play Access : Enjoy the complete gaming experience without mandatory purchases. All core features are accessible to free players.

Cross-Platform Compatibility : Play seamlessly across web browsers, mobile devices, and desktop platforms. Your progress syncs across all devices.

Active Community : Join thousands of active players in a welcoming community. Participate in events, competitions, and collaborative building projects.

Regular Updates : The game receives frequent content updates with new features, items, and gameplay mechanics to keep the experience fresh and engaging.

Creative Learning : Develop spatial reasoning, planning skills, and creativity while having fun. Perfect for players who enjoy construction and design challenges.

Frequently Asked Questions (FAQ)