Daily Sokoban 2

Seele01-Flash
By
Daily Sokoban 2 is a charming puzzle game where you play as an adorable factory worker pushing storage boxes to their designated spots. With new daily challenges and a cute cartoon style, it's perfect for brain training.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Daily Sokoban 2". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Use a **2.5D Orthographic projection** to mimic the flat, clear look of the original screenshot while utilizing Three.js 3D capabilities. Implement a "Toon Shader" or "Cel Shading" material (MeshToonMaterial) to maintain the vibrant, cartoonish aesthetic (Low-poly adorable style). * **Character:** A cute, blocky 3D character model representing a factory worker with a green cap, red overalls, and a mustache. The character should have a subtle "idle breathing" animation and a "walking" bobbing animation when moving. * **Environment:** * **Floor:** Tiled grey industrial pavement with white grid markings. * **Walls:** Bright red, industrial-style container blocks (as seen in the screenshot) with slight bevels to catch light. * **Boxes:** Wooden-textured crates (Brown). * **Targets:** Clearly marked "X" spots or green zones on the floor. When a box is placed correctly, the target should glow green. * **Mobile Optimization:** Use **InstancedMesh** for floor tiles and wall blocks to minimize draw calls. Texture resolution should be capped at 512x512. Use a simple DirectionalLight combined with AmbientLight; avoid expensive real-time shadow maps if possible, use baked shadows or simple blob shadows instead. ### 2. Audio Requirements * **BGM:** A light, cheerful, and "morning routine" style track. Think "Industrial Lo-Fi" or playful pizzicato strings that loop seamlessly without becoming annoying during thinking time. * **Sound Effects (SFX):** * **Movement:** A cute "squeak" or soft footstep sound for each step. * **Push:** A scraping sound (wood on concrete) when moving a box. * **Success/Goal:** A satisfying high-pitched "Ding!" or chime when a box lands on a target. * **Wall Hit:** A dull "thud" if the player tries to walk into a wall. * **Undo:** A "rewind" tape sound effect. ### 3. Gameplay Loop * **Core Logic:** A classic Grid-based movement system. The player moves 1 tile at a time. * **Rules:** * Player can move to adjacent empty tiles (Up, Down, Left, Right). * Player can push **one** box at a time into an empty space. * Player **cannot** pull boxes or push two boxes at once. * **Win Condition:** All boxes must be located on top of Target coordinates. Upon winning, play a particle confetti effect and show a "Level Complete" modal. * **State Management:** Implement a **History Stack** to record every move (player position + box positions) to support the "Undo" feature. * **Level Generation:** Since this is a "Daily" game, implement a level loader that accepts a JSON array layout, or a simple seed-based generator that creates a closed room with solvable box placement. ### 4. Mobile Controls & Interaction * **Touch Controls:** * **Swipe Gestures:** Primary control. Detect swipes (Up/Down/Left/Right) on the entire screen area to move the character. Set a threshold to prevent accidental diagonal inputs. * **Tap-to-Move (Optional):** If the user taps a tile in a straight line from the character, move there instantly. * **UI Overlay:** * **Undo Button:** A large, circular arrow icon in the bottom-left corner (min size 48x48px). * **Restart Button:** A refresh icon next to Undo. * **Move Counter:** Display the number of moves at the top center. * **Orientation:** Lock to **Portrait Mode** logic (or scale the camera zoom dynamically) so the puzzle grid fits width-wise on mobile screens. * **Feedback:** * **Haptic Feedback:** Trigger `navigator.vibrate(10)` on every successful step and `navigator.vibrate(30)` when a box hits a target. * **Visual Feedback:** If the player tries to make an invalid move (into a wall), the character should play a small "shake/deny" animation. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Daily Sokoban 2 is a delightful puzzle game that combines classic Sokoban mechanics with fresh daily challenges. Play as an adorable factory worker character wearing overalls and a green hat, ready to organize storage boxes in various warehouse layouts. With a solid 4.3/5 rating, this game offers the perfect blend of challenge and charm for puzzle enthusiasts.

Core Features

Daily Fresh Challenges

Every day brings a brand new puzzle pattern to solve, ensuring you never run out of brain-teasing content. The daily format keeps the game exciting and gives you a reason to return each day for a new mental workout.

Charming Visual Design

Featuring cute cartoon graphics with a lovable factory worker protagonist, the game creates a warm and inviting atmosphere. The clean, colorful design makes it easy to distinguish between different game elements while maintaining visual appeal.

Progressive Difficulty

While tagged as "Easy," the game offers escalating challenges that test your spatial reasoning and planning skills. Each level requires careful thinking about box placement and movement sequences.

Flexible Gameplay Options

  • Undo Function : Made a mistake? Simply backspace to undo your last move
  • Restart Option : Get completely stuck? Start the level over with a fresh perspective
  • No Time Pressure : Take your time to think through each move strategically

Game Mechanics

The Classic Sokoban Formula

The objective is elegantly simple yet challenging: push all storage boxes to spaces marked with an X. However, boxes can only be pushed, never pulled, and only one box can be moved at a time. This creates engaging spatial puzzles that require forward thinking.

Strategic Elements

  • Wall Navigation : Red blocks represent immovable walls that define your movement paths
  • Box Physics : Boxes cannot be dragged or moved through each other
  • Completion Goal : Successfully place every box on a marked spot to see the green checkmark
  • Movement Planning : Think several moves ahead to avoid trapping boxes in corners

How to Play

Desktop Controls

  • Arrow Keys : Move your factory worker character in four directions
  • Backspace : Undo your previous move if you make a mistake
  • Mouse : Access menu options and restart functions

Mobile Controls

  • Touch and Drag : Use your finger to move the character around the warehouse
  • Tap Interface : Access undo and restart options through on-screen buttons
  • Responsive Design : Optimized for touch screens and various mobile device sizes

Winning Strategy Tips

  1. Plan Ahead : Always think about where boxes will end up before pushing them
  2. Avoid Corners : Don't push boxes into corners unless there's a target spot there
  3. Work Backwards : Sometimes it helps to visualize the final solution first
  4. Use Undo Wisely : Don't be afraid to backtrack and try different approaches

Why Play Daily Sokoban 2

Perfect Brain Training

Sokoban puzzles are scientifically proven to enhance spatial reasoning, problem-solving skills, and logical thinking. Daily Sokoban 2 provides these cognitive benefits in an entertaining, stress-free environment.

Accessible for Everyone

  • Free to Play : Completely free with no hidden costs or premium features
  • No Downloads : Play instantly in any modern web browser
  • Cross-Platform : Works seamlessly on computers, tablets, and smartphones
  • Family-Friendly : Suitable for all ages with its cute graphics and gentle difficulty curve

Ideal Gaming Sessions

Whether you want a quick mental warm-up in the morning or a relaxing puzzle session before bed, Daily Sokoban 2 fits perfectly into any schedule. Each puzzle can be completed in just a few minutes, making it perfect for short breaks.

Community and Competition

With daily challenges, you can compare your puzzle-solving skills with friends and family. See who can complete each day's challenge faster or with fewer moves.

Frequently Asked Questions (FAQ)