Shadow Factory - Monster Truck Adventure Game

Seele01-Flash
By
Shadow Factory is an intense physics-based monster truck game where you navigate a shadowy vehicle through a treacherous industrial landscape filled with giant machinery, spinning cogs, and dangerous cables.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Shadow Factory". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: High-contrast "Silhouette/Noir" aesthetic. All foreground elements (player truck, platforms, obstacles) must be rendered in pure **matte black**. The background should be a hazy, atmospheric **amber/sepia fog** (hex: #5c4b1f to #2e2208 gradient) to create a backlit industrial factory look. * **Player Model**: A Monster Truck constructed from primitives (black cubes for chassis, large cylinders for tires). The suspension system must be visible (e.g., thin lines connecting wheels to chassis) to emphasize the "bouncing" mechanic. * **Environment Objects**: * **Static**: Steel beams, jagged ramps, hanging crates. * **Dynamic**: Giant rotating cogs (gears), hydraulic pistons that push up/down, and swinging platforms suspended by cables. * **Camera**: Side-scrolling Orthographic camera that smooth-follows the truck. Implement a slight parallax effect for background factory silhouettes to add depth without compromising performance. * **Mobile Optimization**: Use simple geometry (Low-poly) to maintain high FPS. Use `FogExp2` for the atmospheric depth instead of heavy post-processing. ### 2. Audio Requirements * **BGM**: A loop of heavy, rhythmic **Industrial Metal** or Dark Ambient Mechanical drone. It should sound like a working factory (clanking metal, distant steam hisses). * **Sound Effects (SFX)**: * **Engine**: Low-pitched rumble that increases in pitch when the 'Gas' button is held. * **Suspension**: Squeaking sounds when landing a jump. * **Impact**: Heavy metal crunching sound if the truck hits a wall or flips over. * **UI**: Metallic "click" for menu buttons. ### 3. Gameplay Loop * **Core Mechanic**: Physics-based side-scrolling driving. The player must balance speed with stability. * **Physics Engine**: Implement a robust 2D physics simulation (using Cannon.js or Matter.js logic adapted for Three.js). The truck needs independent suspension for each wheel, allowing the body to tilt and bounce realistically. * **Objective**: Navigate from the left side of the "Factory" to the "Exit" sign on the right without crashing. * **Lose Condition**: If the roof of the truck touches the ground (flipping over) or if the player falls into a "pit" (bottom of the screen), the level restarts instantly. * **Win Condition**: Reaching the finish line zone. ### 4. Mobile Controls & Interaction * **Orientation**: Forced **Landscape Mode**. * **Touch Interface**: Create a transparent UI overlay with large hit-boxes (minimum 64x64px): * **Right Screen**: A "Gas" pedal button (bottom right) and "Brake/Reverse" button (left of Gas). * **Left Screen**: Two arrows for "Tilt Balance" (Rotate Left / Rotate Right) to control the truck's pitch while in mid-air. * **Visual Feedback**: Buttons should darken or glow slightly when pressed. * **Haptics**: Trigger `navigator.vibrate(200)` when the player crashes/flips over to provide tactile failure feedback. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Shadow Factory

Shadow Factory is a thrilling monster truck adventure that combines precise physics gameplay with atmospheric industrial environments. In this challenging motorsports game, you'll pilot a mysterious shadowy monster truck through a dangerous factory setting filled with massive mechanical obstacles. The game tests your driving skills as you bounce, flip, and navigate through treacherous terrain while avoiding the deadly machinery that fills this dark industrial world.

Core Features

Atmospheric Shadow Design

The game features a unique silhouette art style that creates an mysterious and engaging visual experience. The shadowy aesthetic adds depth and intrigue to every obstacle and jump.

Realistic Physics Engine

Experience authentic monster truck physics as your vehicle responds realistically to every bump, jump, and landing. Master the weight distribution and momentum to successfully navigate the challenging course.

Industrial Obstacle Course

Face massive spinning cogs, dangerous cables, and complex machinery that create a truly challenging driving experience. Each obstacle requires different strategies and timing to overcome safely.

Progressive Difficulty

The factory environment becomes increasingly treacherous as you advance, with more complex machinery arrangements and tighter navigation requirements testing your growing skills.

Gameplay Mechanics

Shadow Factory delivers pure monster truck action focused on precision driving and physics mastery. Your shadowy vehicle must carefully navigate through the industrial landscape, using momentum and careful steering to overcome obstacles. The game rewards patience and skill over speed, as rushing often leads to crashes against the dangerous machinery.

Factory Environment Challenges

The game's factory setting provides unique obstacles rarely seen in traditional racing games. Massive industrial cogs rotate with perfect timing, requiring you to thread the needle between spinning mechanisms. Hanging cables and moving machinery parts create dynamic obstacles that change the course layout as you play.

Operation Guide

Control your monster truck with simple yet responsive keyboard commands:

  • Up Arrow : Accelerate forward and power through obstacles
  • Down Arrow : Brake and reverse when needed
  • Left Arrow : Tilt truck backward for better landing control
  • Right Arrow : Tilt truck forward for optimal jump angles

Mastering the tilt controls is essential for successful navigation. Proper truck positioning during jumps and landings can mean the difference between clearing an obstacle and crashing into the machinery.

Why Play Shadow Factory

This game offers a unique twist on monster truck gaming with its atmospheric factory setting and precision-based gameplay. Unlike typical racing games focused on speed, Shadow Factory rewards careful planning and skillful execution. The combination of realistic physics, challenging obstacles, and distinctive visual style creates an engaging experience that stands out in the motorsports gaming category.

Perfect for players who enjoy puzzle-platformers with driving elements, the game provides hours of challenging gameplay as you work to master each section of the dangerous factory course.

Frequently Asked Questions (FAQ)