Color Pencil Run - Online Racing Game

Seele01-Flash
By
Color Pencil Run is an addictive racing game where you grow your pencil by collecting matching colors while dodging obstacles. Race through colorful tracks, upgrade your pencil, and see how long you can make it grow!

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Color Pencil Run". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Hyper-casual aesthetic with high contrast. Bright, saturated colors (primary Orange pencil) against a clean, minimal White/Light Grey background (the "paper" floor). * **Player Character (The Pencil):** A low-poly hexagonal cylinder representing a pencil. It must have distinct material zones: a pink eraser at the back, a silver metallic ferrule, an orange wooden body, and a sharpened colored tip. * **The Trail (Drawing Effect):** A continuous colored line mesh (Ribbon/TrailRenderer) must be generated behind the pencil as it moves, mimicking drawing on paper. This trail should be optimized (limit vertex count) for mobile performance. * **Collectibles:** Floating "Pencil Segments" or "Ink Pots" matching the pencil's color. Low-poly spheres or cylinders. * **Obstacles:** Stationery-themed hazards, such as giant pink Erasers (stationary blocks), red "Wrong Color" zones, or Scissors. * **The Track:** An infinite scrolling plane or modular track segments. * **Performance:** Use `BufferGeometry` for all meshes. Implement object pooling for track segments and collectibles to prevent garbage collection stutter on mobile devices. Use simple Lambert or Phong materials to reduce lighting calculation overhead. ### 2. Audio Requirements * **BGM:** Upbeat, energetic, and repetitive "synth-pop" style background music suitable for a runner game. * **Sound Effects (SFX):** * **Movement:** A subtle, looping "scribbling on paper" sound that plays while the pencil is moving. * **Collection:** A satisfying high-pitched "Pop" or "Ding" sound when picking up color segments. * **Damage/Shrink:** A "Snap" or "Wood cracking" sound when hitting obstacles. * **Finish Line:** A "Chop" sound for the slicing mechanic at the end, followed by a celebratory fanfare. ### 3. Gameplay Loop * **Core Mechanic:** The pencil automatically moves forward along the Z-axis. * **Growth Logic:** When the player collects a matching color item, the pencil mesh scales up along its length (Z-axis) or adds a new segment to the body, making it longer. * **Drawing Mechanic:** The pencil leaves a trail. The color of the trail matches the pencil's current tip color. * **Obstacle Logic:** Hitting an obstacle does not instantly kill the player; instead, it reduces the pencil's length (slices off a portion). * **Fail Condition:** Game Over triggers only if the pencil's length reaches zero before the finish line. * **Win Condition/Endgame:** Upon reaching the finish line, the pencil enters a "Bonus Zone." It slides through a series of "Score Walls" (marked x1, x2, x3, etc.). Each wall subtracts a fixed amount of length. The score is determined by how many walls the pencil breaks before disappearing. ### 4. Mobile Controls & Interaction * **Orientation:** **Portrait Mode** (Vertical) is mandatory for one-handed play. * **Controls:** Implement a "Swerve" mechanic. * Use `touchstart` and `touchmove` events. * Calculate the horizontal delta (difference) of the finger swipe. * Map the swipe sensitivity so the pencil follows the finger's X-position smoothly using `MathUtils.lerp` for fluid movement, avoiding jitter. * **Camera:** Follow camera positioned slightly above and behind the pencil (Third-person view). The camera should look slightly downward to show the upcoming track. * **Haptic Feedback:** Trigger `navigator.vibrate(50)` when collecting items and `navigator.vibrate(200)` when hitting obstacles (if supported by the device). * **UI Layout:** * **Top Center:** Current Score / Level Progress bar. * **Start Screen:** A large "Tap to Play" overlay. * **Retry Button:** Minimum size 44x44px for easy tapping on touchscreens. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Color Pencil Run is a unique and engaging racing game that combines speed, skill, and strategy in one colorful package. Unlike traditional racing games, your goal isn't just to reach the finish line first - it's to grow your pencil as long as possible while navigating through challenging obstacles and collecting matching colors along the way.

Starting with a tiny pencil, you'll guide it forward as it draws a colorful trail on the floor. The game's innovative mechanics make every run exciting and unpredictable, as you must balance speed with precision to maximize your pencil's growth.

Core Features

Dynamic Pencil Growth System

The heart of Color Pencil Run lies in its unique growth mechanics. As you collect matching colors scattered throughout each level, your pencil grows longer and more powerful. This isn't just for show - your pencil's length directly impacts your performance and determines how well you'll fare at each level's climactic finish.

Challenging Obstacle Navigation

Each track is filled with various obstacles designed to test your reflexes and decision-making skills. You'll need to swipe left and right with precision timing to avoid barriers that could cut your pencil short or end your run entirely.

Upgrade and Progression System

Don't worry if your first attempts don't go as planned! The game features a comprehensive upgrade system where you can use earned coins to enhance your pencil's capabilities. These upgrades give you better chances of growing longer and reaching further distances in subsequent runs.

Cross-Platform Compatibility

Color Pencil Run is designed to work seamlessly across all devices. Whether you're playing on your desktop computer during a break or on your smartphone while commuting, the game delivers a consistent and enjoyable experience.

Gameplay Mechanics

Color Collection Strategy

Success in Color Pencil Run requires more than just avoiding obstacles. You'll need to develop a keen eye for collecting the right colors at the right time. Matching colors not only make your pencil grow but also contribute to higher scores and better rewards.

End-of-Level Challenges

Each round concludes with an exciting test where your pencil's length is put to the ultimate challenge. Blocks will slice through your pencil, and only the length you've built up will determine how far you can push through to the finish line.

How to Play

Simple Controls for Everyone

The game features intuitive controls that anyone can master:

  • Mobile Devices : Swipe left or right to steer your pencil
  • Desktop/PC : Use A/D keys or left/right arrow keys for movement
  • Precision Timing : Quick reflexes help you collect colors while avoiding obstacles

Gameplay Flow

  1. Start Small : Begin each level with a tiny pencil
  2. Navigate Forward : Guide your pencil through the colorful track
  3. Collect Colors : Gather matching colors to grow your pencil longer
  4. Avoid Obstacles : Dodge barriers and hazards that could end your run
  5. Face the Challenge : Test your pencil's length at the finish line
  6. Earn Rewards : Collect coins based on your performance
  7. Upgrade : Use coins to improve your pencil for the next attempt

Why Play Color Pencil Run

Completely Free Gaming Experience

Color Pencil Run is entirely free to play with no hidden costs or mandatory purchases. Jump in immediately and start enjoying the full game experience without any financial commitment.

Perfect for All Skill Levels

Whether you're a casual gamer looking for quick entertainment or a dedicated player seeking to master every level, Color Pencil Run offers appropriate challenges for everyone. The simple controls make it accessible to beginners, while the strategic depth keeps experienced players engaged.

Endless Replayability

With its dynamic obstacle placement and upgrade system, no two runs feel exactly the same. The constant pursuit of growing a longer pencil and achieving better distances ensures you'll always have a reason to play "just one more round."

Social and Competitive Elements

The game supports multiplayer modes, allowing you to compete with friends or challenge other players online. See who can grow the longest pencil or reach the furthest distance in head-to-head competitions.

Stress Relief and Fun

The colorful graphics, smooth animations, and satisfying gameplay mechanics make Color Pencil Run an excellent choice for unwinding after a long day. The game's positive, vibrant atmosphere provides a perfect escape from daily stress.

Frequently Asked Questions (FAQ)